Helius
2020-08-03 1fb2df70d0845e74d93d5eb8f9f5f891fe3699ac
src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java
@@ -7,6 +7,7 @@
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.xcong.excoin.common.response.Result;
@@ -30,7 +31,10 @@
import com.xcong.excoin.modules.documentary.vo.MyFollowTraderInfoVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
@@ -38,7 +42,7 @@
@RestController
@Slf4j
@RequestMapping(value = "/api/documentary")
@Api(value = "MemberQuickBuySaleController", tags = "跟单")
@Api(value = "DocumentaryController", tags = "跟单---跟随者")
public class DocumentaryController {
   
   @Resource
@@ -62,6 +66,16 @@
   @PostMapping(value = "/getFollowTraderProfitInfo")
   public Result  getFollowTraderProfitInfo(@RequestBody @Valid RecordsPageDto recordsPageDto) {
      return documentaryService.getFollowTraderProfitInfo(recordsPageDto);
   }
   /**
    *  交易员详情---头部
    */
   @ApiOperation(value="交易员详情---头部", notes="交易员详情---头部")
   @ApiResponses({@ApiResponse( code = 200, message = "success", response = FollowTraderProfitInfoVo.class)})
   @GetMapping(value = "/getFollowTraderProfit")
   public Result  getFollowTraderProfit(@ApiParam(name = "traderId", value = "交易员ID", example = "1") @RequestParam(value = "traderId", required = false) long traderId) {
      return documentaryService.getFollowTraderProfit(traderId);
   }
   
   /**
@@ -152,9 +166,12 @@
    */
   @ApiOperation(value="跟单---跟单设置--进入编辑", notes="跟单---跟单设置--进入编辑")
   @ApiResponses({@ApiResponse( code = 200, message = "success", response = DocumentaryOrderSetInfoVo.class)})
   @ApiImplicitParams({
      @ApiImplicitParam(name = "tradeId", value = "交易员ID", required = true, dataType = "String", paramType="query")
   })
   @GetMapping(value = "/getDocumentaryOrderSetInfo")
   public Result  getDocumentaryOrderSetInfo() {
      return documentaryService.getDocumentaryOrderSetInfo();
   public Result  getDocumentaryOrderSetInfo(String tradeId) {
      return documentaryService.getDocumentaryOrderSetInfo(tradeId);
   }
   
   /**