package com.lesingle.creation.dto.teacher;

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 CreateTeacherDTO {

    @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 departmentId;

    @Schema(description = "工号")
    private String employeeNo;

    @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 hireDate;

    @Schema(description = "任教科目")
    private String subject;

    @Schema(description = "职称")
    private String title;

    @Schema(description = "教师描述")
    private String description;
}
