上传报错修复
员工账号登录修改
This commit is contained in:
@@ -12,6 +12,9 @@ import org.aspectj.lang.annotation.Aspect;
|
||||
import org.aspectj.lang.annotation.Pointcut;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.multipart.support.StandardMultipartHttpServletRequest;
|
||||
|
||||
|
||||
/**
|
||||
@@ -39,6 +42,8 @@ public class ControllerAspect {
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
if (args[i] instanceof HttpServletRequest) {
|
||||
args[i] = null;
|
||||
}else if (args[i] instanceof MultipartFile) {
|
||||
args[i] = "上传图片";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,12 @@ import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
public record SysLoginDTO(
|
||||
/*
|
||||
商户账号
|
||||
*/
|
||||
@NotEmpty(message = "用户名不为空")
|
||||
String username, // 用户名
|
||||
String username,
|
||||
String staffUserName,
|
||||
@NotEmpty(message = "密码不为空")
|
||||
String password, // 密码
|
||||
@NotEmpty(message = "验证码不为空")
|
||||
|
||||
@@ -21,7 +21,7 @@ public class ShopStaffAddDTO {
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 登录账号
|
||||
* 登录账号 账号前缀会加上店铺id@
|
||||
*/
|
||||
@NotEmpty(message = "登录账号不为空")
|
||||
private String accountName;
|
||||
|
||||
Reference in New Issue
Block a user