You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.5 KiB
41 lines
1.5 KiB
package cn.iocoder.yudao.module.zhuguang.controller.admin.basic_info.vo;
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import lombok.*;
|
|
import java.util.*;
|
|
import jakarta.validation.constraints.*;
|
|
import cn.iocoder.yudao.module.zhuguang.dal.dataobject.basic_info.CourseClassDO;
|
|
|
|
@Schema(description = "管理后台 - 老师新增/修改 Request VO")
|
|
@Data
|
|
public class TeacherSaveReqVO {
|
|
|
|
@Schema(description = "主键,唯一标识一个老师", requiredMode = Schema.RequiredMode.REQUIRED, example = "1420")
|
|
private Long id;
|
|
|
|
@Schema(description = "老师工号", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@NotEmpty(message = "老师工号不能为空")
|
|
private String teacherNumber;
|
|
|
|
@Schema(description = "老师姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
|
@NotEmpty(message = "老师姓名不能为空")
|
|
private String teacherName;
|
|
|
|
@Schema(description = "老师性别 (M: 男, F: 女)", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@NotEmpty(message = "老师性别 (M: 男, F: 女)不能为空")
|
|
private String teacherSex;
|
|
|
|
@Schema(description = "老师年龄", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@NotNull(message = "老师年龄不能为空")
|
|
private Integer teacherAge;
|
|
|
|
@Schema(description = "老师邮箱")
|
|
private String teacherEmail;
|
|
|
|
@Schema(description = "电话号码")
|
|
private String phoneNumber;
|
|
|
|
@Schema(description = "课程班级列表")
|
|
private List<CourseClassDO> courseClasss;
|
|
|
|
} |