| | |
| | | import java.util.Map;
|
| | |
|
| | | import javax.validation.Valid;
|
| | | 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.PostMapping;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
| | | import com.xcong.excoin.common.controller.BaseController;
|
| | | import com.xcong.excoin.common.entity.FebsResponse;
|
| | | import com.xcong.excoin.common.entity.QueryRequest;
|
| | | import com.xcong.excoin.modules.documentary.dto.FollowTraderInfoDto;
|
| | | import com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity;
|
| | | import com.xcong.excoin.modules.documentary.entity.FollowTraderLabelEntity;
|
| | | import com.xcong.excoin.modules.documentary.service.DocumentaryService;
|
| | | import com.xcong.excoin.modules.member.dto.MemberDetailConfirmDto;
|
| | | import com.xcong.excoin.modules.systemSetting.entity.PlatformBannerEntity;
|
| | |
|
| | | import lombok.RequiredArgsConstructor;
|
| | | import lombok.extern.slf4j.Slf4j;
|
| | |
| | | public class DocumentaryController extends BaseController {
|
| | |
|
| | | private final DocumentaryService documentaryService;
|
| | | |
| | | /**
|
| | | * 标签---列表
|
| | | * @return
|
| | | */
|
| | | @GetMapping("traderLabelList")
|
| | | public FebsResponse traderLabelList(FollowTraderLabelEntity followTraderLabelEntity, QueryRequest request) {
|
| | | Map<String, Object> data = getDataTable(documentaryService.traderLabelList(followTraderLabelEntity, request));
|
| | | return new FebsResponse().success().data(data);
|
| | | }
|
| | | |
| | | /**
|
| | | * 标签---删除
|
| | | * @return
|
| | | */
|
| | | @GetMapping("traderLabelDelete/{id}")
|
| | | @ControllerEndpoint(operation = "标签---删除", exceptionMessage = "删除失败")
|
| | | public FebsResponse traderLabelDelete(@NotNull(message = "{required}") @PathVariable Long id) {
|
| | | return documentaryService.traderLabelDelete(id);
|
| | | }
|
| | | |
| | | /**
|
| | | * 标签---新增
|
| | | */
|
| | | @PostMapping("followLabelSetAdd")
|
| | | @ControllerEndpoint(operation = "标签---新增", exceptionMessage = "新增失败")
|
| | | public FebsResponse followLabelSetAdd(@Valid FollowTraderLabelEntity followTraderLabelEntity) {
|
| | | documentaryService.followLabelSetAdd(followTraderLabelEntity);
|
| | | return new FebsResponse().success();
|
| | | }
|
| | | |
| | | /**
|
| | | * 标签---修改
|
| | | */
|
| | | @PostMapping("followLabelSetUpdate")
|
| | | @ControllerEndpoint(operation = "标签---修改", exceptionMessage = "修改失败")
|
| | | public FebsResponse followLabelSetUpdate(@Valid FollowTraderLabelEntity followTraderLabelEntity) {
|
| | | documentaryService.followLabelSetUpdate(followTraderLabelEntity);
|
| | | return new FebsResponse().success();
|
| | | }
|
| | |
|
| | | /**
|
| | | * 交易员申请---列表
|
| | |
| | | */
|
| | | @PostMapping("traderConfirm")
|
| | | @ControllerEndpoint(operation = "交易员申请---确认", exceptionMessage = "认证失败")
|
| | | public FebsResponse traderConfirm(@Valid FollowTraderInfoEntity followTraderInfoEntity) {
|
| | | return documentaryService.traderConfirm(followTraderInfoEntity);
|
| | | public FebsResponse traderConfirm(@Valid FollowTraderInfoDto followTraderInfoDto) {
|
| | | return documentaryService.traderConfirm(followTraderInfoDto);
|
| | | }
|
| | | |
| | | /**
|
| | | * 踢出交易员
|
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | @GetMapping("traderGetOut/{id}")
|
| | | @ControllerEndpoint(operation = "踢出交易员", exceptionMessage = "踢出失败")
|
| | | public FebsResponse traderGetOut(@NotNull(message = "{required}") @PathVariable Long id) {
|
| | | return documentaryService.traderGetOut(id);
|
| | | }
|
| | | |
| | | /**
|
| | | * 设置成【满员】状态
|
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | @GetMapping("traderGetFull/{id}")
|
| | | @ControllerEndpoint(operation = "设置成【满员】状态", exceptionMessage = "设置失败")
|
| | | public FebsResponse traderGetFull(@NotNull(message = "{required}") @PathVariable Long id) {
|
| | | return documentaryService.traderGetFull(id);
|
| | | }
|
| | |
|
| | | }
|