package com.ycl.controller;
|
|
|
import com.ycl.common.base.Result;
|
import com.ycl.domain.form.ProjectProgressStatisticsForm;
|
import com.ycl.service.IndexHomeService;
|
import lombok.RequiredArgsConstructor;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* nongtou-project-java
|
* 新首页控制层
|
* @author : zxl
|
* @date : 2025-11-26 15:55
|
**/
|
|
@RestController
|
@RequiredArgsConstructor
|
@RequestMapping("/index")
|
public class IndexHomeController {
|
private final IndexHomeService indexHomeService;
|
|
/**
|
* 首页统计项目状态
|
* @return
|
*/
|
@GetMapping("/codingCount")
|
Result projectCodingStatusCount(){
|
return indexHomeService.projectCodingStatusCount();
|
}
|
|
/**
|
* 项目阶段状态统计
|
* @return
|
*/
|
@GetMapping("/stageCount")
|
Result projectStageCount(){
|
return indexHomeService.projectStageCount();
|
}
|
|
/**
|
* 项目进度统计
|
* @return
|
*/
|
Result projectTaskStatus(ProjectProgressStatisticsForm form){
|
return indexHomeService.projectTaskStatus(form);
|
}
|
|
/**
|
* 项目资金状态
|
* @return
|
*/
|
@GetMapping("/fundingStatus")
|
Result projectFundingStatus(){
|
return indexHomeService.projectFundingStatus();
|
}
|
|
/**
|
* 项目推进卡点
|
* @return
|
*/
|
Result projectAdvanceCheckPoint(){
|
return indexHomeService.projectAdvanceCheckPoint();
|
}
|
}
|