xiaoyong931011
2020-08-04 d4f2d98927d4f60f390f6146435bc370fede19ae
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package com.xcong.excoin.modules.documentary.controller;
 
import javax.annotation.Resource;
import javax.validation.Valid;
 
import org.springframework.web.bind.annotation.GetMapping;
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.documentary.dto.UpdateDocumentaryOrderSetDto;
import com.xcong.excoin.modules.documentary.dto.UpdateTradeSetInfoDto;
import com.xcong.excoin.modules.documentary.service.DocumentaryService;
import com.xcong.excoin.modules.documentary.vo.DocumentaryOrderSetInfoVo;
import com.xcong.excoin.modules.documentary.vo.MyFollowOrderVo;
import com.xcong.excoin.modules.documentary.vo.TradeSetInfoVo;
import com.xcong.excoin.modules.documentary.vo.TraderStatusVo;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
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/trader")
@Api(value = "TraderController", tags = "跟单---交易员")
public class TraderController {
    
    @Resource
    DocumentaryService documentaryService;
    
    /**
     *  成为交易员---状态查询
     */
    @ApiOperation(value="成为交易员---状态查询", notes="成为交易员---状态查询")
    @ApiResponses({@ApiResponse( code = 200, message = "success", response = TraderStatusVo.class)})
    @GetMapping(value = "/beTraderStatus")
    public Result  beTraderStatus() {
        return documentaryService.beTraderStatus();
    }
    
    /**
     *  成为交易员---立即入驻
     */
    @ApiOperation(value="成为交易员---立即入驻", notes="成为交易员---立即入驻")
    @GetMapping(value = "/beTrader")
    public Result  beTrader() {
        return documentaryService.beTrader();
    }
    
    /**
     * 交易员设置--进入编辑
     */
    @ApiOperation(value="交易员设置--进入编辑", notes="交易员设置--进入编辑")
    @ApiResponses({@ApiResponse( code = 200, message = "success", response = TradeSetInfoVo.class)})
    @GetMapping(value = "/getTradeSetInfo")
    public Result  getTradeSetInfo() {
        return documentaryService.getTradeSetInfo();
    }
    
    /**
     * 交易员设置--更新设置
     */
    @ApiOperation(value="交易员设置--更新设置", notes="交易员设置--更新设置")
    @PostMapping(value = "/updateTradeSetInfo")
    public Result  updateTradeSetInfo(@RequestBody @Valid UpdateTradeSetInfoDto updateTradeSetInfoDto) {
        return documentaryService.updateTradeSetInfo(updateTradeSetInfoDto);
    }
 
}