| | |
| | | import com.xcong.excoin.utils.api.response.Symbol; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | | 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 org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | return Result.fail("非法类型"); |
| | | } |
| | | |
| | | return Result.ok("123"); |
| | | return contractEntrustOrderService.addContractEntrustOrder(submitEntrustDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取当前委托单列表", notes = "获取当前委托单列表") |
| | | @GetMapping(value = "/findCurrentEntrustOrderList") |
| | | public Result findCurrentEntrustOrderList() { |
| | | return null; |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "撤销委托单", notes = "撤销委托单") |
| | | @GetMapping(value = "/cancelEntrustOrder") |
| | | public Result cancelEntrustOrder(@ApiParam(name = "id", value="委托单ID", required = true, example = "1") @RequestParam("id") Long id) { |
| | | return contractEntrustOrderService.cancelEntrustOrder(id); |
| | | } |
| | | } |