xiaoyong931011
2021-05-17 7572b8dbd4c41ca9b6437a032da2aa1a0fdd5444
src/main/java/com/xcong/excoin/modules/yunding/controller/BasicSettingController.java
@@ -1,8 +1,10 @@
package com.xcong.excoin.modules.yunding.controller;
import com.xcong.excoin.common.annotation.ControllerEndpoint;
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.helpCenter.entity.HelpCenterArticleEntity;
import com.xcong.excoin.modules.member.entity.MemberEntity;
import com.xcong.excoin.modules.yunding.entity.YdOrderEntity;
import com.xcong.excoin.modules.yunding.entity.YdProductEntity;
@@ -10,10 +12,10 @@
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.lang.reflect.Member;
import java.util.Map;
@@ -101,4 +103,35 @@
        return new FebsResponse().success().data(dataTable);
    }
    /**
     * 合伙人设置--同意
     * @param id
     * @return
     */
    @GetMapping("addIsTraderOn/{id}")
    @ControllerEndpoint(operation = "合伙人设置--同意", exceptionMessage = "操作失败")
    public FebsResponse addIsTraderOn(@NotNull(message = "{required}") @PathVariable Long id) {
        return basicSettingService.addIsTraderOn(id);
    }
    /**
     * 合伙人设置--取消
     * @param id
     * @return
     */
    @GetMapping("delIsTraderOn/{id}")
    @ControllerEndpoint(operation = "合伙人设置--取消", exceptionMessage = "操作失败")
    public FebsResponse delIsTraderOn(@NotNull(message = "{required}") @PathVariable Long id) {
        return basicSettingService.delIsTraderOn(id);
    }
    /**
     * 产品---更新
     * @return
     */
    @PostMapping("ydProductUpdateOn")
    @ControllerEndpoint(operation = "产品---更新", exceptionMessage = "设置失败")
    public FebsResponse ydProductUpdateOn(@Valid YdProductEntity ydProductEntity) {
        return basicSettingService.ydProductUpdateOn(ydProductEntity);
    }
}