| | |
| | |
|
| | | import java.util.Map;
|
| | |
|
| | | import javax.validation.constraints.NotNull;
|
| | |
|
| | | import org.springframework.validation.annotation.Validated;
|
| | | import org.springframework.web.bind.annotation.GetMapping;
|
| | | import org.springframework.web.bind.annotation.PathVariable;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import com.xcong.excoin.common.annotation.ControllerEndpoint;
|
| | | import com.xcong.excoin.common.controller.BaseController;
|
| | | import com.xcong.excoin.common.entity.FebsResponse;
|
| | | import com.xcong.excoin.common.entity.QueryRequest;
|
| | |
| | | public class TradeManageController extends BaseController{
|
| | |
|
| | | private final TradeManageService tradeManageService;
|
| | |
|
| | | /**
|
| | | * 持仓设置---列表
|
| | | */
|
| | | @GetMapping("positionSetting")
|
| | | public FebsResponse getPositionSettingList(MemberEntity memberEntity, QueryRequest request) {
|
| | | Map<String, Object> data = getDataTable(tradeManageService.getPositionSettingList(memberEntity, request));
|
| | | return new FebsResponse().success().data(data);
|
| | | }
|
| | | |
| | | /**
|
| | | * 持仓设置---禁止
|
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | @GetMapping("disagreePositionSetting/{id}")
|
| | | @ControllerEndpoint(operation = "持仓设置---禁止", exceptionMessage = "禁止失败")
|
| | | public FebsResponse disagreePositionSetting(@NotNull(message = "{required}") @PathVariable Long id) {
|
| | | return tradeManageService.disagreePositionSetting(id);
|
| | | }
|
| | | |
| | | /**
|
| | | * 持仓设置---开启
|
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | @GetMapping("agreePositionSetting/{id}")
|
| | | @ControllerEndpoint(operation = "持仓设置---开启", exceptionMessage = "开启失败")
|
| | | public FebsResponse agreePositionSetting(@NotNull(message = "{required}") @PathVariable Long id) {
|
| | | return tradeManageService.agreePositionSetting(id);
|
| | | }
|
| | |
|
| | | /**
|
| | | * 历史委托明细---列表---17773261001
|