|
@@ -17,6 +17,7 @@ import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.core.tool.utils.DigestUtil;
|
|
|
import org.springblade.core.tool.utils.WebUtil;
|
|
|
import org.springblade.modules.api.request.AddChildAccountRequest;
|
|
|
+import org.springblade.modules.api.request.AlertChildAccountRequest;
|
|
|
import org.springblade.modules.api.vo.MerchantIncomeVO;
|
|
|
import org.springblade.modules.auth.enums.UserEnum;
|
|
|
import org.springblade.modules.auth.utils.TokenUtil;
|
|
@@ -103,6 +104,19 @@ public class ApiMerchantUserController {
|
|
|
return R.success("添加成功");
|
|
|
}
|
|
|
|
|
|
+ @Transactional
|
|
|
+ @PostMapping("/updateChildAccount")
|
|
|
+ @ApiOperationSupport(order = 3)
|
|
|
+ @ApiOperation(value = "修改子账号", notes = "alertChildAccountRequest")
|
|
|
+ public R<Void> deleteChildAccount(@Valid @RequestBody AlertChildAccountRequest request) {
|
|
|
+ UserMerchantVO userMerchant = iUserMerchantService.getByUserId(request.getId());
|
|
|
+ userMerchant.setParentId(AuthUtil.getUserId());
|
|
|
+ userMerchant.setAuditStatus(AuditStatusEnum.PASS.getValue());
|
|
|
+ userMerchant.setAuthShop(request.getAuthShopIds());
|
|
|
+ iUserMerchantService.updateById(userMerchant);
|
|
|
+ return R.success("修改成功");
|
|
|
+ }
|
|
|
+
|
|
|
@Transactional
|
|
|
@PostMapping("/deleteChildAccount")
|
|
|
@ApiOperationSupport(order = 3)
|