|
|
@ -4,7 +4,7 @@ import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|
|
|
import com.epmet.commons.extappauth.bean.ExternalAppRequestParam; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.datareport.service.evaluationindex.screen.KcScreenService; |
|
|
|
import com.epmet.evaluationindex.screen.dto.result.SummaryResultDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.result.HomepageSummaryResultDTO; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
@ -31,8 +31,10 @@ public class KcScreenController { |
|
|
|
*/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("homepage/summary") |
|
|
|
public Result<SummaryResultDTO> summary(ExternalAppRequestParam externalAppRequestParam){ |
|
|
|
return new Result<SummaryResultDTO>().ok(kcScreenService.summary(externalAppRequestParam)); |
|
|
|
public Result<HomepageSummaryResultDTO> homepageSummary(ExternalAppRequestParam externalAppRequestParam){ |
|
|
|
return new Result<HomepageSummaryResultDTO>().ok(kcScreenService.homepageSummary(externalAppRequestParam)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|