xiaoyong931011
2021-04-23 fe86da92bf703556de6030ec40f3c3bf5b999f91
src/main/java/com/xcong/excoin/modules/agent/controller/AgentController.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.core.toolkit.StringPool;
import com.xcong.excoin.common.annotation.ControllerEndpoint;
import com.xcong.excoin.common.annotation.SubmitRepeat;
import com.xcong.excoin.common.controller.BaseController;
import com.xcong.excoin.common.entity.FebsResponse;
import com.xcong.excoin.common.entity.QueryRequest;
@@ -41,14 +42,14 @@
        return new FebsResponse().success().data(map);
    }
//    @SubmitRepeat
    @PostMapping("add")
    @RequiresPermissions("agent:add")
    @ControllerEndpoint(operation = "新增代理商", exceptionMessage = "新增代理商失败")
    public FebsResponse add(@Valid AgentUser agentUser) {
        User user = getCurrentUser();
        agentService.addAgent(agentUser, user);
        log.info("{}添加代理商{}", user.getInviteId(), agentUser.getInviteId());
        agentService.addAgent(agentUser, user);
        return new FebsResponse().success();
    }