package com.gxwebsoft.shop.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品文章
 *
 * @author 科技小王子
 * @since 2025-08-13 05:14:53
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopArticle对象", description = "商品文章")
public class ShopArticle implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "文章ID")
    @TableId(value = "article_id", type = IdType.AUTO)
    private Integer articleId;

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

    @Schema(description = "文章类型 0常规 1视频")
    private Integer type;

    @Schema(description = "模型")
    private String model;

    @Schema(description = "详情页模板")
    private String detail;

    @Schema(description = "文章分类ID")
    private Integer categoryId;

    @Schema(description = "上级id, 0是顶级")
    private Integer parentId;

    @Schema(description = "话题")
    private String topic;

    @Schema(description = "标签")
    private String tags;

    @Schema(description = "封面图")
    private String image;

    @Schema(description = "封面图宽")
    private Integer imageWidth;

    @Schema(description = "封面图高")
    private Integer imageHeight;

    @Schema(description = "付费金额")
    private BigDecimal price;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "来源")
    private String source;

    @Schema(description = "产品概述")
    private String overview;

    @Schema(description = "虚拟阅读量(仅用作展示)")
    private Integer virtualViews;

    @Schema(description = "实际阅读量")
    private Integer actualViews;

    @Schema(description = "评分")
    private BigDecimal rate;

    @Schema(description = "列表显示方式(10小图展示 20大图展示)")
    private Integer showType;

    @Schema(description = "访问密码")
    private String password;

    @Schema(description = "可见类型 0所有人 1登录可见 2密码可见")
    private Integer permission;

    @Schema(description = "发布来源客户端 (APP、H5、小程序等)")
    private String platform;

    @Schema(description = "文章附件")
    private String files;

    @Schema(description = "视频地址")
    private String video;

    @Schema(description = "接受的文件类型")
    private String accept;

    @Schema(description = "经度")
    private String longitude;

    @Schema(description = "纬度")
    private String latitude;

    @Schema(description = "所在省份")
    private String province;

    @Schema(description = "所在城市")
    private String city;

    @Schema(description = "所在辖区")
    private String region;

    @Schema(description = "街道地址")
    private String address;

    @Schema(description = "点赞数")
    private Integer likes;

    @Schema(description = "评论数")
    private Integer commentNumbers;

    @Schema(description = "提醒谁看")
    private String toUsers;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "推荐")
    private Integer recommend;

    @Schema(description = "报名人数")
    private Integer bmUsers;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "项目ID")
    private Integer projectId;

    @Schema(description = "语言")
    private String lang;

    @Schema(description = "关联默认语言的文章ID")
    private Integer langArticleId;

    @Schema(description = "是否自动翻译")
    private Boolean translation;

    @Schema(description = "编辑器类型 0 Markdown编辑器 1 富文本编辑器 ")
    private Boolean editor;

    @Schema(description = "pdf文件地址")
    private String pdfUrl;

    @Schema(description = "版本号")
    private Integer version;

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "状态, 0已发布, 1待审核 2已驳回 3违规内容")
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

}
