|  |  |  | 
|---|
|  |  |  | import cc.mrbird.febs.common.entity.QueryRequest; | 
|---|
|  |  |  | import cc.mrbird.febs.common.enumerates.DataDictionaryEnum; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.dto.AdminLeaderAddDto; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.dto.AdminLeaderAddFenceDto; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.dto.AdminLeaderUpdateDto; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.dto.ApiApplayLeaderDto; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.entity.*; | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | return new FebsResponse().success(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 团长--设置电子围栏 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("addFence") | 
|---|
|  |  |  | @ControllerEndpoint(operation = "团长信息--设置电子围栏", exceptionMessage = "设置失败") | 
|---|
|  |  |  | public FebsResponse addFence(@Valid AdminLeaderAddFenceDto adminLeaderAddFenceDto) { | 
|---|
|  |  |  | return iAdminMallTeamLeaderService.addFence(adminLeaderAddFenceDto); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 团长--在线 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("startOnline/{id}") | 
|---|
|  |  |  | @ControllerEndpoint(operation = "团长--在线", exceptionMessage = "操作失败") | 
|---|
|  |  |  | public FebsResponse startOnline(@NotNull(message = "{required}") @PathVariable Long id) { | 
|---|
|  |  |  | return iAdminMallTeamLeaderService.startOnline(id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 团长--离线 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("closeOnline/{id}") | 
|---|
|  |  |  | @ControllerEndpoint(operation = "团长--离线", exceptionMessage = "操作失败") | 
|---|
|  |  |  | public FebsResponse closeOnline(@NotNull(message = "{required}") @PathVariable Long id) { | 
|---|
|  |  |  | return iAdminMallTeamLeaderService.closeOnline(id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|