package com.lesingle.creation.dto.student;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

/**
 * 创建学生 DTO
 */
@Data
@Schema(description = "创建学生请求")
public class CreateStudentDTO {

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;

    @NotBlank(message = "昵称不能为空")
    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "头像 URL")
    private String avatar;

    @NotNull(message = "行政班级 ID 不能为空")
    @Schema(description = "行政班级 ID")
    private Long classId;

    @Schema(description = "学号")
    private String studentNo;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "身份证号")
    private String idCard;

    @Schema(description = "性别：1-男，2-女")
    private Integer gender;

    @Schema(description = "出生日期")
    private LocalDate birthDate;

    @Schema(description = "入学日期")
    private LocalDate enrollmentDate;

    @Schema(description = "家长姓名")
    private String parentName;

    @Schema(description = "家长电话")
    private String parentPhone;

    @Schema(description = "家庭地址")
    private String address;

    @Schema(description = "学生描述")
    private String description;
}
