package com.luojia_channel.modules.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "用户注册DTO")
public class UserRegisterDTO {
    @Schema(
            description = "用户名",
            example = "ttt",
            required = true,
            minLength = 1,
            maxLength = 15
    )
    private String username;

    @Schema(
            description = "密码",
            example = "123456",
            required = true,
            minLength = 6,
            maxLength = 16,
            format = "password"
    )
    private String password;

    @Schema(
            description = "手机号",
            example = "12345678901",
            pattern = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$"
    )
    private String phone;

    @Schema(
            description = "邮箱",
            example = "123456@qq.com",
            pattern = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"
    )
    private String email;

    @Schema(description = "学生学号，暂不需要")
    private String studentId;
}
