package com.yunniu.farming.webadmin.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunniu.farming.common.plugin.PageInfo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Article {
	
	// 辅助对象:分页信息对象
	@TableField(exist = false)
	private PageInfo pageinfo;
	@TableField(exist = false)
	private Integer curpage; // 分页页码
	@TableField(exist = false)
	private Integer pagesize; // 分页个数
	@TableField(exist = false)
	private String sortfields;//排序字段
	@TableField(exist = false)
	private String itypexy;
	@TableField(exist = false)
	private Integer readflag; //是否已读[1 已读 0 未读]
	@TableField(exist = false)
	private Integer customerid;

	private Integer id;				//id
	private String stitle;			//FI:文章标题[最多50个字]
	private String sthumbpic;		//FI:封面图[图片上传]
	private Integer itype;			//B:文章类型[10: 系统通知 20:意见反馈]
	private String scontent;		//富文本
	private Integer pcatalogid;		//商品id
	private Integer catalogid;		//分类id
	private String sshortpic1;		//配图1
	private String sshortpic2;		//配图2
	private String sshortpic3;		//配图3
	private String sshortpic4;		//配图4
	private String sshortpic5;		//配图5
	private String sshortpic6;		//配图6
	private String spubdate;		//发布日期[格式:yyyy-MM-dd]
	private Date tcreatetime;		//发布时间[后台自动生成系统时间]
	private Integer istop;			//是否置顶[0:否1:是]
	private String sauthor;			//发布人
	private Integer iviewnum;		//浏览量
	private Integer isharenum;		//转发量
	private Integer isshow;			//是否显示
	private String svideourl;  		//视频链接

	@JsonInclude(JsonInclude.Include.NON_NULL)
	private String sdef1;//自定义1
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private String sdef2;//自定义2
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private String sdef3;//自定义3
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private String sdef4;//自定义4
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private String sdef5;//自定义5
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private Integer idef6;//自定义6
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private Integer idef7;//自定义7
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private BigDecimal ddef8;//自定义8
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private BigDecimal ddef9;//自定义9
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private Date ddef10;//自定义10
	

}
