xiaoyong931011
2022-09-09 c2a2a7f123eb1ac950d51da5033ddc3d23567765
src/main/java/cc/mrbird/febs/mall/controller/AdminMallTeamLeaderController.java
@@ -49,8 +49,26 @@
     */
    @PostMapping("leaderUpdate")
    @ControllerEndpoint(operation = "团长信息--审核", exceptionMessage = "审核失败")
    public FebsResponse leaderUpdate(@Valid AdminLeaderUpdateDto adminLeaderUpdateDto) {
        return iAdminMallTeamLeaderService.leaderUpdate(adminLeaderUpdateDto);
    public FebsResponse leaderUpdate(@Valid MallTeamLeader mallTeamLeader) {
        return iAdminMallTeamLeaderService.leaderUpdate(mallTeamLeader);
    }
    /**
     * 团长-开启返利
     */
    @GetMapping("startProfit/{id}")
    @ControllerEndpoint(operation = "团长-开启返利", exceptionMessage = "操作失败")
    public FebsResponse startProfit(@NotNull(message = "{required}") @PathVariable Long id) {
        return iAdminMallTeamLeaderService.startProfit(id);
    }
    /**
     * 团长-关闭返利
     */
    @GetMapping("closeProfit/{id}")
    @ControllerEndpoint(operation = "团长-关闭返利", exceptionMessage = "操作失败")
    public FebsResponse closeProfit(@NotNull(message = "{required}") @PathVariable Long id) {
        return iAdminMallTeamLeaderService.closeProfit(id);
    }