wzy
2020-10-15 089a6010a74bf128d1025968284fdfa9cd35adfd
src/main/java/com/xcong/excoin/modules/agent/controller/AgentController.java
@@ -47,6 +47,8 @@
    public FebsResponse add(@Valid AgentUser agentUser) {
        User user = getCurrentUser();
        agentService.addAgent(agentUser, user);
        log.info("{}添加代理商{}", user.getInviteId(), agentUser.getInviteId());
        return new FebsResponse().success();
    }
@@ -66,4 +68,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();
    }
}