重置分销组
This commit is contained in:
@@ -73,12 +73,23 @@ public class DistributionUserController {
|
||||
@OperationLog("分销员-修改")
|
||||
@SaAdminCheckPermission(value = "distribution:user:update", name = "分销员修改")
|
||||
public CzgResult<Void> updateDistributionUser(@RequestBody @Validated({UpdateGroup.class, DefaultGroup.class}) MkDistributionUserDTO dto) {
|
||||
Long shopId = StpKit.USER.getShopId(0L);
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
dto.setShopId(shopId);
|
||||
distributionUserService.updateDistributionUserById(dto);
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/resetLevel")
|
||||
@OperationLog("分销员-重置分销组")
|
||||
@SaAdminCheckPermission(value = "distribution:user:update", name = "重置分销组")
|
||||
public CzgResult<Void> resetDistributionUserLevel(@RequestBody MkDistributionUserDTO dto) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
dto.setShopId(shopId);
|
||||
distributionUserService.resetDistributionUserLevel(dto);
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 分销员:删除
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user