package com.zc.business.controller; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.zc.business.service.ModuleCallService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; 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; /** * 模块调用统计接口 */ @Api(tags = {"模块调用统计接口"}) @RestController @RequestMapping("/business/moduleCall") public class ModuleCallController extends BaseController { @Resource private ModuleCallService moduleCallService; /** * 模块调用统计 * * @return 查询结果 */ @ApiOperation("模块调用统计") @GetMapping("/countNumber") public AjaxResult moduleCallCountNumber() { return AjaxResult.success(moduleCallService.selectModuleCall()); } /** * 基础数据统计 * * @return 查询结果 */ @ApiOperation("基础数据统计") @GetMapping("/basicDataNumber") public AjaxResult basicDataNumber() { return AjaxResult.success(moduleCallService.selectBasicData()); } }