package com.lesingle.edu.dto.request;

import com.fasterxml.jackson.annotation.JsonAlias;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "教师创建请求")
public class TeacherCreateRequest {

    @NotBlank(message = "用户名不能为空")
    @JsonAlias("loginAccount")
    @Schema(description = "用户名/登录账号")
    private String username;

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

    @NotBlank(message = "姓名不能为空")
    @Schema(description = "姓名")
    private String name;

    @NotBlank(message = "手机号不能为空")
    @Schema(description = "电话")
    private String phone;

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

    @Schema(description = "性别")
    private String gender;

    @Schema(description = "简介")
    private String bio;

    @Schema(description = "负责班级ID列表")
    private List<Long> classIds;

}
