From aedf1a2e260c87a6293443e538ca8651258ee73e Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 26 Jan 2021 15:48:05 +0800 Subject: [PATCH] 20210126 --- src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 42 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java b/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java index 621939d..6941e80 100644 --- a/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java +++ b/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java @@ -18,8 +18,9 @@ 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; @@ -34,6 +35,46 @@ 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(); + } + + /** * 交易员申请---列表 * @return */ -- Gitblit v1.9.1