From e08d29b508b4bbed9434328284d9939e6ad8b3ce Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 29 Jul 2020 19:09:37 +0800 Subject: [PATCH] 20200729 代码提交 --- src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java | 103 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 99 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java b/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java index 28ec4f5..81f1bb4 100644 --- a/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java +++ b/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java @@ -1,15 +1,27 @@ package com.xcong.excoin.modules.documentary.controller; -import org.springframework.beans.factory.annotation.Autowired; +import javax.annotation.Resource; +import javax.validation.Valid; + import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.xcong.excoin.common.response.Result; +import com.xcong.excoin.modules.coin.parameter.dto.RecordsPageDto; +import com.xcong.excoin.modules.coin.parameter.vo.MemberAgentIntoInfoVo; +import com.xcong.excoin.modules.documentary.dto.FollowRecordsDto; +import com.xcong.excoin.modules.documentary.dto.HistoryOrderRecordsDto; +import com.xcong.excoin.modules.documentary.dto.MyFollowOrderDto; +import com.xcong.excoin.modules.documentary.dto.MyFollowTraderInfoDto; import com.xcong.excoin.modules.documentary.service.DocumentaryService; +import com.xcong.excoin.modules.documentary.vo.FollowInfoVo; +import com.xcong.excoin.modules.documentary.vo.FollowRecordsVo; import com.xcong.excoin.modules.documentary.vo.MemberIsTradeVo; -import com.xcong.excoin.modules.member.parameter.vo.AppVersionListVo; +import com.xcong.excoin.modules.documentary.vo.MyFollowOrderVo; +import com.xcong.excoin.modules.documentary.vo.MyFollowTraderInfoVo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -23,7 +35,7 @@ @Api(value = "MemberQuickBuySaleController", tags = "跟单") public class DocumentaryController { - @Autowired + @Resource DocumentaryService documentaryService; /** @@ -35,5 +47,88 @@ public Result getMemberIsTradeInfo() { return documentaryService.getMemberIsTradeInfo(); } + + /** + * 交易员列表 + */ + @ApiOperation(value="getFollowTraderProfitInfo", notes="交易员列表") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberIsTradeVo.class)}) + @PostMapping(value = "/getFollowTraderProfitInfo") + public Result getFollowTraderProfitInfo(@RequestBody @Valid RecordsPageDto recordsPageDto) { + return documentaryService.getFollowTraderProfitInfo(recordsPageDto); + } + + /** + * 历史带单 + * @return + */ + @ApiOperation(value="getHistoryOrderRecords", notes="历史带单") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberAgentIntoInfoVo.class)}) + @PostMapping(value = "/getHistoryOrderRecords") + public Result getHistoryOrderRecords(@RequestBody @Valid HistoryOrderRecordsDto historyOrderRecordsDto) { + return documentaryService.getHistoryOrderRecords(historyOrderRecordsDto); + } + + /** + * 跟随者 + * @return + */ + @ApiOperation(value="getFollowRecords", notes="跟随者") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = FollowRecordsVo.class)}) + @PostMapping(value = "/getFollowRecords") + public Result getFollowRecords(@RequestBody @Valid FollowRecordsDto followRecordsDto) { + return documentaryService.getFollowRecords(followRecordsDto); + } + + /** + * 我的跟单--头部 + */ + @ApiOperation(value="getFollowInfo", notes="我的跟单--头部") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = FollowInfoVo.class)}) + @GetMapping(value = "/getFollowInfo") + public Result getFollowInfo() { + return documentaryService.getFollowInfo(); + } + + /** + * 我的跟单--我的跟单 + * @return + */ + @ApiOperation(value="getFollowRecords", notes="我的跟单--我的跟单") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MyFollowOrderVo.class)}) + @PostMapping(value = "/getMyFollowOrderRecords") + public Result getMyFollowOrderRecords(@RequestBody @Valid MyFollowOrderDto myFollowOrderDto) { + return documentaryService.getMyFollowOrderRecords(myFollowOrderDto); + } + + /** + * 我的跟单--我的交易员 + */ + @ApiOperation(value="getMyFollowTraderInfo", notes="我的跟单--我的交易员") + @ApiResponses({@ApiResponse( code = 200, message = "success", response = MyFollowTraderInfoVo.class)}) + @PostMapping(value = "/getMyFollowTraderInfo") + public Result getMyFollowTraderInfo(@RequestBody @Valid MyFollowTraderInfoDto myFollowTraderInfoDto) { + return documentaryService.getMyFollowTraderInfo(myFollowTraderInfoDto); + } + + + + + + + + + + + + + + + + + + + + } -- Gitblit v1.9.1