|
@@ -4,9 +4,11 @@ import java.util.List;
|
|
|
|
|
|
import com.pj.api.dto.*;
|
|
|
|
|
|
+import com.pj.project.app_user.dto.PassDto;
|
|
|
import com.pj.utils.so.SoMap;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import com.pj.utils.sg.*;
|
|
@@ -61,6 +63,14 @@ public class AppUserController {
|
|
|
return AjaxJson.getSuccess();
|
|
|
}
|
|
|
|
|
|
+ /** 修改密码 */
|
|
|
+ @RequestMapping("pass")
|
|
|
+ @SaCheckPermission( AppUser.PERMISSION_CODE_EDIT)
|
|
|
+ public AjaxJson pass(@Validated PassDto dto){
|
|
|
+ System.out.println("dto:"+dto.getPassword());
|
|
|
+ return AjaxJson.toAjax(appUserService.pass(dto));
|
|
|
+ }
|
|
|
+
|
|
|
/** 查 - 根据id */
|
|
|
@RequestMapping("getById")
|
|
|
@SaCheckPermission(AppUser.PERMISSION_CODE)
|