package com.gxwebsoft.shop.param;

import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品文章查询参数
 *
 * @author 科技小王子
 * @since 2025-08-13 05:14:52
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopArticleParam对象", description = "商品文章查询参数")
public class ShopArticleParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "文章ID")
    @QueryField(type = QueryType.EQ)
    private Integer articleId;

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

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

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

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

    @Schema(description = "文章分类ID")
    @QueryField(type = QueryType.EQ)
    private Integer categoryId;

    @Schema(description = "上级id, 0是顶级")
    @QueryField(type = QueryType.EQ)
    private Integer parentId;

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

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

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

    @Schema(description = "封面图宽")
    @QueryField(type = QueryType.EQ)
    private Integer imageWidth;

    @Schema(description = "封面图高")
    @QueryField(type = QueryType.EQ)
    private Integer imageHeight;

    @Schema(description = "付费金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal price;

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

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

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

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

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

    @Schema(description = "实际阅读量")
    @QueryField(type = QueryType.EQ)
    private Integer actualViews;

    @Schema(description = "评分")
    @QueryField(type = QueryType.EQ)
    private BigDecimal rate;

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

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

    @Schema(description = "可见类型 0所有人 1登录可见 2密码可见")
    @QueryField(type = QueryType.EQ)
    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 = "点赞数")
    @QueryField(type = QueryType.EQ)
    private Integer likes;

    @Schema(description = "评论数")
    @QueryField(type = QueryType.EQ)
    private Integer commentNumbers;

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

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

    @Schema(description = "推荐")
    @QueryField(type = QueryType.EQ)
    private Integer recommend;

    @Schema(description = "报名人数")
    @QueryField(type = QueryType.EQ)
    private Integer bmUsers;

    @Schema(description = "用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "项目ID")
    @QueryField(type = QueryType.EQ)
    private Integer projectId;

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

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

    @Schema(description = "是否自动翻译")
    @QueryField(type = QueryType.EQ)
    private Boolean translation;

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

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

    @Schema(description = "版本号")
    @QueryField(type = QueryType.EQ)
    private Integer version;

    @Schema(description = "排序(数字越小越靠前)")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

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

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

    @Schema(description = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

}
