xiaoyong931011
2020-07-29 69fd409bbd0cdce5b376be46e7ca5828568607c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.xcong.excoin.modules.documentary.controller;
 
import javax.validation.Valid;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
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.documentary.service.DocumentaryService;
import com.xcong.excoin.modules.documentary.vo.MemberIsTradeVo;
import com.xcong.excoin.modules.member.parameter.vo.AppVersionListVo;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
 
@RestController
@Slf4j
@RequestMapping(value = "/api/documentary")
@Api(value = "MemberQuickBuySaleController", tags = "跟单")
public class DocumentaryController {
    
    @Autowired
    DocumentaryService documentaryService;
    
    /**
     *  获取用户类型是否是交易员
     */
    @ApiOperation(value="getMemberIsTradeInfo", notes="获取用户类型是否是交易员")
    @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberIsTradeVo.class)})
    @GetMapping(value = "/getMemberIsTradeInfo")
    public Result  getMemberIsTradeInfo() {
        return documentaryService.getMemberIsTradeInfo();
    }
    
    /**
     *  交易员收益信息列表
     */
    @ApiOperation(value="getFollowTraderProfitInfo", notes="交易员收益信息列表")
    @ApiResponses({@ApiResponse( code = 200, message = "success", response = MemberIsTradeVo.class)})
    @GetMapping(value = "/getFollowTraderProfitInfo")
    public Result  getFollowTraderProfitInfo(@RequestBody @Valid RecordsPageDto recordsPageDto) {
        return documentaryService.getFollowTraderProfitInfo(recordsPageDto);
    }
    
    
    
    
    
    
    
    
    
 
}