|
|
|
@ -1,10 +1,12 @@
|
|
|
|
|
package com.zh.project0512.controller.manage;
|
|
|
|
|
|
|
|
|
|
import com.zh.project0512.annotation.AdminTokenValid;
|
|
|
|
|
import com.zh.project0512.mapper.AdminMapper;
|
|
|
|
|
import com.zh.project0512.model.dto.RankListDTO;
|
|
|
|
|
import com.zh.project0512.utils.result.Result;
|
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
@ -18,11 +20,14 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/manage/statistics")
|
|
|
|
|
public class StatisticsController {
|
|
|
|
|
// @Operation(summary = "排行列表")
|
|
|
|
|
// @PostMapping("/list")
|
|
|
|
|
// @AdminTokenValid
|
|
|
|
|
// public Result rankList(@Validated @RequestBody RankListDTO rankListDTO) {
|
|
|
|
|
// return Result.success(rankService.rankList(rankListDTO), "请求成功");
|
|
|
|
|
// }
|
|
|
|
|
@Autowired
|
|
|
|
|
private AdminMapper adminMapper;
|
|
|
|
|
@Operation(summary = "数据")
|
|
|
|
|
@PostMapping("/data1")
|
|
|
|
|
@AdminTokenValid
|
|
|
|
|
public Result rankList(@Validated @RequestBody RankListDTO rankListDTO) {
|
|
|
|
|
adminMapper.statistics1();
|
|
|
|
|
return Result.success( adminMapper.statistics1(), "请求成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|