package com.dora.dto;

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

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Min;

/**
 * 更新类目DTO
 */
@Data
@Schema(description = "更新类目请求")
public class CategoryUpdateDto {
    
    @NotNull(message = "类目ID不能为空")
    @Schema(description = "类目ID", example = "1")
    private Long id;
    
    @NotBlank(message = "类目名称不能为空")
    @Schema(description = "类目名称", example = "人工智能")
    private String name;
    
    @Schema(description = "类目描述", example = "人工智能相关的课程和工作流")
    private String description;
    
    @Min(value = 0, message = "排序值不能小于0")
    @Schema(description = "排序字段", example = "1")
    private Integer sortOrder;
    
    @Schema(description = "是否启用", example = "true")
    private Boolean isEnabled;
}
