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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 标签更新请求DTO
 *
 * @author AIOJ
 */
@Data
@Schema(description = "标签更新请求")
public class TagUpdateRequestDTO {

    @NotNull(message = "标签ID不能为空")
    @Schema(description = "标签ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @NotBlank(message = "标签名称不能为空")
    @Schema(description = "标签名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "数据结构")
    private String name;

    @NotBlank(message = "标签别名不能为空")
    @Schema(description = "标签别名（URL友好标识）", requiredMode = Schema.RequiredMode.REQUIRED, example = "data-structure")
    private String slug;

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

    @Schema(description = "标签颜色（十六进制）", example = "#3498db")
    private String color;

    @Schema(description = "是否启用（1=启用，0=禁用）", example = "1")
    private Integer isEnabled;
}
