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

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 站点图标资源实体，映射表 {@code cms_site_icon}；按分类与编号供各端解析展示。
 *
 * @author jeesharp
 * @since 2026-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("cms_site_icon")
@Schema(description = "站点图标资源")
public class CmsSiteIcon extends BaseEntity<CmsSiteIcon> {

    @Schema(description = "图标编号（全局唯一）")
    private String iconCode;

    @Schema(description = "分类，见 SiteIconCategoryEnum 存储值")
    private String category;

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

    @Schema(description = "图标 URL")
    private String iconUrl;

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

    /**
     * 状态，见 {@link com.jeesharp.business.modules.setting.enums.SiteIconStatusEnum}
     */
    @Schema(description = "状态：0-禁用 1-启用")
    private Integer status;
}
