34 lines
846 B
Java
34 lines
846 B
Java
package com.hivekion.statistic.controller;
|
|
|
|
import com.hivekion.common.entity.ResponseData;
|
|
import com.hivekion.statistic.bean.StatisticBean;
|
|
import com.hivekion.statistic.service.StatisticService;
|
|
import javax.annotation.Resource;
|
|
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 {
|
|
|
|
@Resource
|
|
private StatisticService statisticService;
|
|
|
|
@GetMapping("/info")
|
|
|
|
public ResponseData<StatisticBean> statistic(String resourceId) {
|
|
|
|
return ResponseData.success(statisticService.statistic(resourceId));
|
|
}
|
|
}
|