Helius
2021-02-05 311322c7f97dbedb3f51deb99827633252a1f016
src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java
@@ -18,7 +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.systemSetting.entity.PlatformBannerEntity;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@@ -33,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
     */