|
@@ -13,6 +13,7 @@ import com.pj.api.dto.AppUserDto;
|
|
import com.pj.api.dto.PeopleDto;
|
|
import com.pj.api.dto.PeopleDto;
|
|
import com.pj.api.dto.UpdateAccountDTO;
|
|
import com.pj.api.dto.UpdateAccountDTO;
|
|
import com.pj.current.satoken.StpAPPUserUtil;
|
|
import com.pj.current.satoken.StpAPPUserUtil;
|
|
|
|
+import com.pj.enummj.DeleteStatus;
|
|
import com.pj.face.factory.FaceFactory;
|
|
import com.pj.face.factory.FaceFactory;
|
|
import com.pj.project.app_user.dto.ForgetPasswordDto;
|
|
import com.pj.project.app_user.dto.ForgetPasswordDto;
|
|
import com.pj.project.app_user.dto.LoginDto;
|
|
import com.pj.project.app_user.dto.LoginDto;
|
|
@@ -213,7 +214,12 @@ public class AppUserApiController {
|
|
/** 注销账户 */
|
|
/** 注销账户 */
|
|
@RequestMapping("delete")
|
|
@RequestMapping("delete")
|
|
public AjaxJson delete(Long id){
|
|
public AjaxJson delete(Long id){
|
|
- appUserService.delete(id);
|
|
|
|
|
|
+ AppUser appUser = new AppUser();
|
|
|
|
+ appUser.setId(id);
|
|
|
|
+ appUser.setDeleteStatus(DeleteStatus.DELETE_STATUS_OFF.getCode()); //被逻辑删除
|
|
|
|
+ appUser.setUpdateTime(new Date());
|
|
|
|
+ appUserService.update(appUser);
|
|
|
|
+
|
|
return AjaxJson.getSuccess();
|
|
return AjaxJson.getSuccess();
|
|
}
|
|
}
|
|
|
|
|