| | |
| | | package com.xcong.excoin.modules.yunding.controller; |
| | | |
| | | import com.xcong.excoin.common.response.Result; |
| | | import com.xcong.excoin.modules.yunding.dto.InsureChangeUsdtDto; |
| | | import com.xcong.excoin.modules.yunding.dto.PayProductDto; |
| | | import com.xcong.excoin.modules.yunding.dto.YdOrderListDto; |
| | | import com.xcong.excoin.modules.yunding.dto.YdProductListDto; |
| | | import com.xcong.excoin.modules.yunding.dto.*; |
| | | import com.xcong.excoin.modules.yunding.service.YunDingService; |
| | | import com.xcong.excoin.modules.yunding.vo.*; |
| | | import io.swagger.annotations.*; |
| | |
| | | public Result findProductInfoById(@ApiParam(name = "id", value = "产品ID", required = true, example = "1") |
| | | @RequestParam(value = "id") Long id) { |
| | | return yunDingService.findProductInfoById(id); |
| | | } |
| | | |
| | | /** |
| | | * 获取XCH当前价 |
| | | */ |
| | | @ApiOperation(value = "获取XCH当前价") |
| | | @GetMapping(value = "/getXchPrice") |
| | | public Result getXchPrice() { |
| | | return yunDingService.getXchPrice(); |
| | | } |
| | | |
| | | /** |
| | |
| | | return yunDingService.insureChangeUsdt(insureChangeUsdtdto); |
| | | } |
| | | |
| | | /** |
| | | * 获取代理级别列表 |
| | | */ |
| | | @ApiOperation(value = "获取代理级别列表") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 0, message = "success", response = AgentVo.class) |
| | | }) |
| | | @PostMapping(value = "/getAgentList") |
| | | public Result getAgentList(@RequestBody @Validated YdAgentDto ydAgentDto) { |
| | | return yunDingService.getAgentList(ydAgentDto); |
| | | } |
| | | |
| | | /** |
| | | * 购买代理级别 |
| | | */ |
| | | @ApiOperation(value = "购买代理级别") |
| | | @PostMapping(value = "/bugAgentLevel") |
| | | public Result bugAgentLevel(@RequestBody @Validated BugAgentLeveldto bugAgentLeveldto){ |
| | | return yunDingService.bugAgentLevel(bugAgentLeveldto); |
| | | } |
| | | |
| | | /** |
| | | * 我的团队信息 |
| | | */ |
| | | @ApiOperation(value = "我的团队信息") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 0, message = "success", response = TeamVo.class) |
| | | }) |
| | | @PostMapping(value = "/getAgentList") |
| | | public Result getTeamList(@RequestBody @Validated TeamInfoDto teamInfoDto) { |
| | | return yunDingService.getTeamList(teamInfoDto); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |