package com.jeesharp.business.modules.setting.dto;

import com.jeesharp.framework.pojo.dto.BaseSaveDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 站点图标保存请求（后台新增/修改）。
 *
 * @author jeesharp
 * @since 2026-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "站点图标保存请求")
public class SiteIconSaveDTO extends BaseSaveDTO {

    @NotBlank(message = "图标编号不能为空")
    @Schema(description = "图标编号（全局唯一）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String iconCode;

    @NotBlank(message = "分类不能为空")
    @Schema(description = "分类：HOME、COMMON、MALL", requiredMode = Schema.RequiredMode.REQUIRED)
    private String category;

    @Schema(description = "管理端展示名称")
    private String displayName;

    @NotBlank(message = "图标地址不能为空")
    @Schema(description = "图标 URL（HTTPS）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String iconUrl;

    @Schema(description = "排序号（越大越靠前）")
    private Integer sortOrder;

    @Schema(description = "状态：0-禁用 1-启用")
    private Integer status;
}
