8 changed files with 106 additions and 16 deletions
@ -0,0 +1,41 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.bigviewdata; |
||||
|
||||
import cn.iocoder.yudao.module.system.controller.admin.bigviewdata.vo.BigViewEnterpriseCountGroup; |
||||
import cn.iocoder.yudao.module.system.controller.admin.home.vo.HomeSelectVO; |
||||
import cn.iocoder.yudao.module.system.service.bigviewdata.BigViewDataService; |
||||
import cn.iocoder.yudao.module.system.service.home.HomeService; |
||||
import io.swagger.v3.oas.annotations.tags.Tag; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.validation.annotation.Validated; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
import javax.annotation.Resource; |
||||
import java.util.List; |
||||
|
||||
@Tag(name = "管理后台 - app首页统计") |
||||
@RestController |
||||
@RequestMapping("/system/big-view-data") |
||||
@Validated |
||||
@Slf4j |
||||
public class BigViewDataController { |
||||
|
||||
@Resource |
||||
private BigViewDataService bigViewDataService; |
||||
|
||||
@GetMapping("/getLeftFist") |
||||
private List<String> leftFirst() { |
||||
return null; |
||||
} |
||||
|
||||
@GetMapping("/getLeftSecond ") |
||||
private List<BigViewEnterpriseCountGroup> getLeftSecond(HomeSelectVO homeSelectVO) { |
||||
return bigViewDataService.getLeftSecond(homeSelectVO); |
||||
} |
||||
|
||||
@GetMapping("/getLeftThird") |
||||
private List<String> getLeftThird() { |
||||
return null; |
||||
} |
||||
} |
@ -0,0 +1,12 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.bigviewdata.vo; |
||||
|
||||
import cn.iocoder.yudao.module.system.controller.admin.home.vo.HomeListVO; |
||||
import lombok.Data; |
||||
|
||||
import java.util.List; |
||||
|
||||
@Data |
||||
public class BigViewEnterpriseCountGroup { |
||||
private Integer enterpriseCount; |
||||
private List<NameCountVO> enterpriseCountGroup; |
||||
} |
@ -0,0 +1,9 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.bigviewdata.vo; |
||||
|
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class NameCountVO { |
||||
private String name; |
||||
private Integer count; |
||||
} |
@ -0,0 +1,10 @@
|
||||
package cn.iocoder.yudao.module.system.service.bigviewdata; |
||||
|
||||
import cn.iocoder.yudao.module.system.controller.admin.bigviewdata.vo.BigViewEnterpriseCountGroup; |
||||
import cn.iocoder.yudao.module.system.controller.admin.home.vo.HomeSelectVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
public interface BigViewDataService { |
||||
List<BigViewEnterpriseCountGroup> getLeftSecond(HomeSelectVO homeSelectVO); |
||||
} |
@ -0,0 +1,15 @@
|
||||
package cn.iocoder.yudao.module.system.service.bigviewdata; |
||||
|
||||
import cn.iocoder.yudao.module.system.controller.admin.bigviewdata.vo.BigViewEnterpriseCountGroup; |
||||
import cn.iocoder.yudao.module.system.controller.admin.home.vo.HomeSelectVO; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
|
||||
@Service |
||||
public class BigViewDataServiceImpl implements BigViewDataService { |
||||
@Override |
||||
public List<BigViewEnterpriseCountGroup> getLeftSecond(HomeSelectVO homeSelectVO) { |
||||
return null; |
||||
} |
||||
} |
Loading…
Reference in new issue