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 jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 帮助分类保存DTO
 *
 * @author jeesharp
 * @version 2026-02-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "帮助分类保存请求")
public class HelpCategorySaveDTO extends BaseSaveDTO {

    /**
     * 应用标识（APP/WECHAT_MINI/WECHAT_MP/H5等）
     */
    @NotBlank(message = "应用标识不能为空")
    @Schema(description = "应用标识（APP/WECHAT_MINI/WECHAT_MP/H5等）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String app;

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称不能为空")
    @Size(max = 50, message = "分类名称长度不能超过50个字符")
    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String categoryName;

    /**
     * 分类图标
     */
    @Schema(description = "分类图标")
    private String icon;

    /**
     * 分类描述
     */
    @Size(max = 255, message = "分类描述长度不能超过255个字符")
    @Schema(description = "分类描述")
    private String description;

    /**
     * 排序号
     */
    @Schema(description = "排序号")
    private Integer sortOrder;

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