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 TagResponseDTO {

    @Schema(description = "标签ID", example = "1")
    private Long id;

    @Schema(description = "标签名称", example = "数据结构")
    private String name;

    @Schema(description = "标签别名", example = "data-structure")
    private String slug;

    @Schema(description = "标签描述", example = "数据结构与算法相关内容")
    private String description;

    @Schema(description = "标签颜色", example = "#3498db")
    private String color;

    @Schema(description = "使用该标签的文章数量", example = "5")
    private Integer articleCount;

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

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

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