店铺修改操作密码校验验证码
This commit is contained in:
@@ -5,7 +5,6 @@ import jakarta.validation.constraints.Size;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.czg.account.dto.user;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@Data
|
||||
public class SysUserEditPwdDTO {
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@NotNull(message = "ID不能为空")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 原密码
|
||||
*/
|
||||
@NotBlank(message = "原密码不为空")
|
||||
private String originalPassword;
|
||||
|
||||
/**
|
||||
* 确认密码
|
||||
*/
|
||||
@NotBlank(message = "确认密码不为空")
|
||||
private String checkPassword;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
@Size(min = 1, message = "密码不为空")
|
||||
private String password;
|
||||
|
||||
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package com.czg.account.service;
|
||||
|
||||
import com.czg.account.dto.user.SysUserAddDTO;
|
||||
import com.czg.account.dto.user.SysUserEditDTO;
|
||||
import com.czg.account.dto.user.SysUserEditPwdDTO;
|
||||
import com.czg.account.entity.SysUser;
|
||||
import com.czg.account.vo.SysUserDetailVO;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
@@ -35,4 +36,7 @@ public interface SysUserService extends IService<SysUser> {
|
||||
void download(String key, String startTime, String endTime, Integer status, HttpServletResponse response) throws IOException;
|
||||
|
||||
SysUserDetailVO detail(Integer id);
|
||||
|
||||
Boolean editPwd(long sysUserId, SysUserEditPwdDTO sysUserEditPwdDTO);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user