From 0d02ee0aeeaa7c4df579a57b6f75e59c69a1ed26 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期三, 16 十一月 2022 10:22:06 +0800 Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_server --- ycl-platform/src/main/java/com/ycl/controller/trend/TrendAnalysisController.java | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/ycl-platform/src/main/java/com/ycl/controller/trend/TrendAnalysisController.java b/ycl-platform/src/main/java/com/ycl/controller/trend/TrendAnalysisController.java new file mode 100644 index 0000000..aae2e6d --- /dev/null +++ b/ycl-platform/src/main/java/com/ycl/controller/trend/TrendAnalysisController.java @@ -0,0 +1,41 @@ +package com.ycl.controller.trend; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.ycl.api.CommonResult; +import com.ycl.dto.trend.TrendAnalysisParam; +import com.ycl.service.trend.TrendAnalysisService; +import com.ycl.vo.TrendVo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +@Api(tags = "瓒嬪娍鍒嗘瀽") +@RestController +@RequestMapping("/trendAnalysis") +public class TrendAnalysisController { + @Autowired + TrendAnalysisService trendAnalysisService; + + @ApiOperation("鏁版嵁鏌ヨ") + @PostMapping("/info") + public CommonResult<List<TrendVo>> list(@RequestBody TrendAnalysisParam trendAnalysisParam, Integer pageSize, Integer pageNum) { + return CommonResult.success(trendAnalysisService.list(trendAnalysisParam,pageSize,pageNum)); + } + + @ApiOperation("鐐逛綅鏁版嵁鏌ヨ") + @PostMapping("/pointInfo") + public CommonResult<List<TrendVo>> queryPointInfo(@RequestBody String id) { + JSONObject jsonObject = JSON.parseObject(id); + return CommonResult.success(trendAnalysisService.queryPointInfo(jsonObject.getString("id"))); + } + + @ApiOperation("棣栨鎶ヨ鐐逛綅鏁版嵁鏌ヨ") + @PostMapping("/firstInfo") + public CommonResult<List<TrendVo>> queryListByCount(@RequestBody TrendAnalysisParam trendAnalysisParam, Integer pageSize, Integer pageNum) { + return CommonResult.success(trendAnalysisService.queryListByCount(trendAnalysisParam,pageSize,pageNum)); + } +} -- Gitblit v1.8.0