mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
管理员的增删改查
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package xyz.playedu.api.request.backend;
|
||||
|
||||
import jakarta.validation.constraints.Email;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
* @create 2023/2/19 09:43
|
||||
*/
|
||||
@Data
|
||||
public class AdminUserRequest implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@NotNull(message = "请输入管理员姓名")
|
||||
@Length(min = 1, max = 12, message = "管理员姓名长度在1-12个字符之间")
|
||||
private String name;
|
||||
|
||||
@NotNull(message = "请输入管理员邮箱")
|
||||
@Email(message = "请输入合法邮箱")
|
||||
private String email;
|
||||
|
||||
private String password;
|
||||
|
||||
private Integer isBanLogin;
|
||||
|
||||
}
|
||||
@@ -1,14 +1,16 @@
|
||||
package xyz.playedu.api.request;
|
||||
package xyz.playedu.api.request.backend;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import xyz.playedu.api.request.types.ImageCaptchaRequestInterface;
|
||||
import xyz.playedu.api.request.backend.types.ImageCaptchaRequestInterface;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class LoginRequest implements Serializable, ImageCaptchaRequestInterface {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@NotNull(message = "请输入邮箱")
|
||||
@@ -1,12 +1,14 @@
|
||||
package xyz.playedu.api.request;
|
||||
package xyz.playedu.api.request.backend;
|
||||
|
||||
import jakarta.validation.constraints.Max;
|
||||
import jakarta.validation.constraints.Min;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class PaginationRequest implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Min(value = 1, message = "page参数值不能少于1")
|
||||
@@ -1,4 +1,4 @@
|
||||
package xyz.playedu.api.request.types;
|
||||
package xyz.playedu.api.request.backend.types;
|
||||
|
||||
public interface ImageCaptchaRequestInterface {
|
||||
|
||||
Reference in New Issue
Block a user