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;

/**
 * 帮助文章实体类
 *
 * @author jeesharp
 * @version 2026-02-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("app_help_article")
@Schema(description = "帮助文章实体")
public class HelpArticle extends BaseEntity<HelpArticle> {

    /**
     * 应用标识（APP/WECHAT_MINI/WECHAT_MP/H5等）
     */
    @Schema(description = "应用标识（APP/WECHAT_MINI/WECHAT_MP/H5等）")
    private String app;

    /**
     * 分类ID
     */
    @Schema(description = "分类ID")
    private String categoryId;

    /**
     * 文章标题
     */
    @Schema(description = "文章标题")
    private String title;

    /**
     * 文章内容（支持富文本）
     */
    @Schema(description = "文章内容（支持富文本）")
    private String content;

    /**
     * 文章摘要
     */
    @Schema(description = "文章摘要")
    private String summary;

    /**
     * 封面图片
     */
    @Schema(description = "封面图片")
    private String coverImage;

    /**
     * 是否常见问题：0-否 1-是
     */
    @Schema(description = "是否常见问题：0-否 1-是")
    private Integer isFaq;

    /**
     * 浏览次数
     */
    @Schema(description = "浏览次数")
    private Integer viewCount;

    /**
     * 点赞次数
     */
    @Schema(description = "点赞次数")
    private Integer likeCount;

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

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