wzy
2020-10-15 396eb7eac27d0bcb9466337b3a89977b2607890c
src/main/java/com/xcong/excoin/modules/agent/controller/AgentController.java
@@ -46,6 +46,7 @@
    @ControllerEndpoint(operation = "新增代理商", exceptionMessage = "新增代理商失败")
    public FebsResponse add(@Valid AgentUser agentUser) {
        User user = getCurrentUser();
        log.info("{}添加代理商{}", user.getInviteId(), agentUser.getInviteId());
        agentService.addAgent(agentUser, user);
        return new FebsResponse().success();
    }
@@ -66,4 +67,13 @@
        agentService.resetPwd(id);
        return new FebsResponse().success();
    }
    @PostMapping("edit")
    @RequiresPermissions("agent:edit")
    @ControllerEndpoint(operation = "修改代理商", exceptionMessage = "修改代理商失败")
    public FebsResponse edit(@Valid AgentUser agentUser) {
        User user = getCurrentUser();
        agentService.editAgent(agentUser, user);
        return new FebsResponse().success();
    }
}