|
@@ -1,7 +1,6 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.GetConsoleUserInfoDTO;
|
|
|
import com.diagbot.dto.LoginDTO;
|
|
@@ -26,7 +25,6 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
@@ -79,13 +77,23 @@ public class UserController {
|
|
|
|
|
|
@ApiOperation(value = "重置密码[by:zhoutg]",
|
|
|
notes = "username:用户名,必填<br>" +
|
|
|
- "password:密码, 必填<br> " +
|
|
|
- "diffPassword:值为Y,表示修改前和修改后密码不相同<br>")
|
|
|
+ "password:密码, 必填<br> ")
|
|
|
@PostMapping("/resetPassword")
|
|
|
@SysLogger("resetPassword")
|
|
|
@Transactional
|
|
|
public RespDTO<Boolean> resetPassword(@RequestBody ResetPasswordVO resetPasswordVO) {
|
|
|
- return userFacade.resetPassword(resetPasswordVO.getUsername(), resetPasswordVO.getPassword(), resetPasswordVO.getDiffPassword());
|
|
|
+ return userFacade.resetPassword(resetPasswordVO.getUsername(), resetPasswordVO.getPassword(), "N");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "修改密码[by:zhoutg]",
|
|
|
+ notes = "username:用户名,必填<br>" +
|
|
|
+ "password:密码, 必填<br> ")
|
|
|
+ @PostMapping("/midifyPassword")
|
|
|
+ @SysLogger("midifyPassword")
|
|
|
+ @Transactional
|
|
|
+ public RespDTO<Boolean> midifyPassword(@RequestBody ResetPasswordVO resetPasswordVO) {
|
|
|
+ return userFacade.resetPassword(resetPasswordVO.getUsername(), resetPasswordVO.getPassword(), "Y");
|
|
|
}
|
|
|
|
|
|
|