package cn.iocoder.yudao.module.knowledge.controller.requestdto;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.module.knowledge.validated.EditGroup;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 课程目录表查询
 *
 * @author admin
 * @since 1.0.0 2024-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "课程目录表查询")
public class TCourseDirectoryRequest extends PageParam {
    @Schema(description = "主键")
    @NotNull(groups = EditGroup.class, message = "id不能为空")
    private Long id;

    @NotNull(message = "父id不能为空")
    @Schema(description = "父id", example = "1")
    private Long parentId;

    @NotBlank(message = "目录名称不能为空")
    @Schema(description = "目录名称", example = "数学")
    private String name;

    @Schema(description = "序号", example = "1")
    private Integer sequence;

}
