Class UserPwdController
java.lang.Object
com.sankcrm.erp.auth.interfaces.user.UserPwdController
用户密码管理
- Since:
- 2.1.0
- Author:
- zhsxin
- create time:
- 2023/4/5 21:35
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.sankcrm.erp.mvc.application.readmodel.Response<Void> reset(ResetCommand command) 重置用户密码com.sankcrm.erp.mvc.application.readmodel.Response<Void> update(UpdateCommand command) 更新用户密码com.sankcrm.erp.mvc.application.readmodel.Response<Void> update(com.sankcrm.erp.auth.domain.model.user.UserId userId, UpdateCommand command) Deprecated.
-
Constructor Details
-
UserPwdController
public UserPwdController()
-
-
Method Details
-
reset
@PostMapping("/v1/app/auth/user/pwd/reset") public com.sankcrm.erp.mvc.application.readmodel.Response<Void> reset(@RequestBody ResetCommand command) throws com.sankcrm.erp.common.exception.CoreException 重置用户密码- Parameters:
command- 密码信息- Returns:
- 修改结果
- Throws:
com.sankcrm.erp.common.exception.CoreException- 重置失败
-
update
@Deprecated(since="2.2.0") @PostMapping("/v1/app/auth/user/pwd/{userId}") public com.sankcrm.erp.mvc.application.readmodel.Response<Void> update(@PathVariable com.sankcrm.erp.auth.domain.model.user.UserId userId, @RequestBody UpdateCommand command) throws com.sankcrm.erp.common.exception.CoreException Deprecated.更新用户密码- Parameters:
userId- 帐号编号command- 密码信息- Returns:
- 修改结果
- Throws:
com.sankcrm.erp.common.exception.CoreException- 更新失败
-
update
@PostMapping("/v1/app/auth/user/pwd/update") public com.sankcrm.erp.mvc.application.readmodel.Response<Void> update(@RequestBody UpdateCommand command) throws com.sankcrm.erp.common.exception.CoreException 更新用户密码- Parameters:
command- 密码信息- Returns:
- 修改结果
- Throws:
com.sankcrm.erp.common.exception.CoreException- 更新失败
-