|
|
@@ -16,6 +16,7 @@ import com.zhongshu.card.server.core.service.org.IndexService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.util.Assert;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
@@ -45,10 +46,10 @@ public class UserController {
|
|
|
UserAccountService userAccountService;
|
|
|
|
|
|
@ResourceAuth(value = "user",type = AuthType.User)
|
|
|
- @Operation(summary = "重置用户密码", description = "重置用户密码")
|
|
|
+ @Operation(summary = "重置用户密码", description = "重置用户密码(重置为默认密码)")
|
|
|
@RequestMapping(value = {"resetPassWord"}, method = {RequestMethod.POST})
|
|
|
public ResultContent<UserCountDetailsModel> resetPassWord(@RequestBody UserIdModel param) {
|
|
|
- param.setUserId(authHelper.getCurrentUser().getUserId());
|
|
|
+ Assert.hasText(param.getUserId(), "userId不能为空");
|
|
|
return userAccountService.resetPassWord(param);
|
|
|
}
|
|
|
}
|