package org.jeecg.modules.system.app.form;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "分班表单对象")
public class ClassGroupingForm implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 分班id
     */
    private String id;

    /**
     * 班级名称
     */
    @NotBlank(message = "班级名称不能为空")
    private String className;


    /**
     * 课程id
     */
    @NotNull(message = "课程ID不能为空")
    private String courseId;

    /**
     * 教练ID
     **/
    @NotNull(message = "教练ID不能为空")
    private String coachUserId;

    /**
     * 家庭成员IDs
     **/
    @NotEmpty(message = "学员不能为空")
    private List<String> familyMemberIds;
}
