TASK: 教育管理员账号到期后降为游客并移除所有子账号
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.ai.da.controller;
|
||||
|
||||
import com.ai.da.common.config.exception.BusinessException;
|
||||
import com.ai.da.common.context.UserContext;
|
||||
import com.ai.da.common.response.PageBaseResponse;
|
||||
import com.ai.da.common.response.Response;
|
||||
import com.ai.da.mapper.primary.entity.Account;
|
||||
@@ -302,7 +303,7 @@ public class AccountController {
|
||||
@ApiOperation(value = "子账号删除")
|
||||
public Response<Boolean> deleteSubAccount(@Valid @RequestBody AddSubAccountDTO addSubAccountDTO) {
|
||||
// return Response.success(accountService.deleteSubAccount(addSubAccountDTO));
|
||||
accountService.removeSubAccount(addSubAccountDTO);
|
||||
accountService.removeSubAccount(addSubAccountDTO, UserContext.getUserHolder().getId());
|
||||
return Response.success();
|
||||
}
|
||||
|
||||
@@ -390,6 +391,11 @@ public class AccountController {
|
||||
public void refreshCreditsMonthly() {
|
||||
accountService.refreshCreditsMonthly();
|
||||
}*/
|
||||
@GetMapping("/checkEduAdminExpireStatus")
|
||||
@ApiOperation(value = "检查教育管理员账号到期情况")
|
||||
public void checkEduAdminExpireStatus() {
|
||||
accountService.checkEduAdminExpireStatus();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user