|
@@ -1,17 +1,14 @@
|
|
|
package com.pj.project.app_user;
|
|
|
|
|
|
-
|
|
|
import com.pj.api.consts.FeignFactory;
|
|
|
-import com.pj.api.dto.AppUserCreateDTO;
|
|
|
import com.pj.api.dto.AppUserDto;
|
|
|
import com.pj.api.dto.PeopleDto;
|
|
|
import com.pj.current.satoken.StpAPPUserUtil;
|
|
|
+import com.pj.enummj.DeleteStatus;
|
|
|
import com.pj.project.app_user.dto.ForgetPasswordDto;
|
|
|
import com.pj.project.app_user.dto.LoginDto;
|
|
|
import com.pj.project.app_user.dto.RegisterDto;
|
|
|
import com.pj.project.app_user.vo.AppUserVo;
|
|
|
-import com.pj.project4sp.face.factory.FaceFactory;
|
|
|
-import com.pj.project4sp.utils.ImageUtils;
|
|
|
import com.pj.utils.sg.AjaxJson;
|
|
|
import com.pj.utils.so.SoMap;
|
|
|
|
|
@@ -22,6 +19,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -203,8 +201,13 @@ public class AppUserApiController {
|
|
|
* 注销账户
|
|
|
*/
|
|
|
@RequestMapping("delete")
|
|
|
- public AjaxJson delete(Long id) {
|
|
|
- appUserService.delete(id);
|
|
|
+ public AjaxJson delete(Long 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();
|
|
|
}
|
|
|
|