2025-09-13 15:12:01 +08:00
|
|
|
|
package com.hivekion.statistic.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import com.hivekion.common.entity.ResponseData;
|
|
|
|
|
|
import com.hivekion.statistic.bean.StatisticBean;
|
2025-09-14 14:19:32 +08:00
|
|
|
|
import com.hivekion.statistic.service.StatisticService;
|
|
|
|
|
|
import javax.annotation.Resource;
|
2025-09-13 15:12:01 +08:00
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* [类的简要说明]
|
|
|
|
|
|
* <p>
|
|
|
|
|
|
* [详细描述,可选]
|
|
|
|
|
|
* <p>
|
|
|
|
|
|
*
|
|
|
|
|
|
* @author LiDongYU
|
|
|
|
|
|
* @since 2025/7/22
|
|
|
|
|
|
*/
|
|
|
|
|
|
@RestController
|
|
|
|
|
|
@RequestMapping("/statistic")
|
|
|
|
|
|
public class StatisticController {
|
|
|
|
|
|
|
2025-09-14 14:19:32 +08:00
|
|
|
|
@Resource
|
|
|
|
|
|
private StatisticService statisticService;
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/info")
|
|
|
|
|
|
|
|
|
|
|
|
public ResponseData<StatisticBean> statistic(String resourceId) {
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseData.success(statisticService.statistic(resourceId));
|
|
|
|
|
|
}
|
2025-09-13 15:12:01 +08:00
|
|
|
|
}
|