package com.seer.teach.admin.response;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "年级科目列表返回实体类")
public class GradeSubjectResp {

    @Schema(description = "Id")
    private Integer id;

    @Schema(description = "年级Id")
    private Integer gradeId;

    @Schema(description = "年级名称")
    private String grade;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "该年级下的科目")
    private List<SubjectItem> children;

    @Data
    public static class SubjectItem {

        @Schema(description = "Id")
        private Integer relationId;

        @Schema(description = "科目Id")
        private Integer subjectId;

        @Schema(description = "科目名称")
        private String subject;

        @Schema(description = "状态")
        private Integer status;

        @Schema(description = "排序")
        private Integer sort;
    }

}
