package cn.meowrain.aioj.backend.blogservice.dto.resp;

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

import java.util.Date;

/**
 * 分类响应DTO
 *
 * @author AIOJ
 */
@Data
@Schema(description = "分类响应")
public class CategoryResponseDTO {

    @Schema(description = "分类ID", example = "1")
    private Long id;

    @Schema(description = "分类名称", example = "算法题解")
    private String name;

    @Schema(description = "分类别名", example = "algorithm-solutions")
    private String slug;

    @Schema(description = "分类描述", example = "算法题目解题思路和代码分享")
    private String description;

    @Schema(description = "分类图标", example = "💡")
    private String icon;

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

    @Schema(description = "父分类ID", example = "0")
    private Long parentId;

    @Schema(description = "该分类下的文章数量", example = "10")
    private Integer articleCount;

    @Schema(description = "是否启用", example = "1")
    private Integer isEnabled;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;
}
