package com.gxwebsoft.cms.param;

import com.baomidou.mybatisplus.annotation.TableField;
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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文章记录表查询参数
 *
 * @author WebSoft
 * @since 2022-11-16 11:40:27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "ArticleParam对象", description = "文章记录表查询参数")
public class ArticleParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "文章标题")
    private String title;

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

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

    @ApiModelProperty(value = "封面图")
    private String image;

    @ApiModelProperty(value = "来源")
    private String source;

    @ApiModelProperty(value = "文章内容")
    private String content;

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

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

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

    @ApiModelProperty(value = "所属门店ID")
    @QueryField(type = QueryType.EQ)
    private Integer shopId;

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

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "状态, 0正常, 1冻结")
    @QueryField(type = QueryType.EQ)
    private Integer status;

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

    @ApiModelProperty("用户昵称")
    @TableField(exist = false)
    private String nickname;

}
