k.e.book.ddh.entity.CcNewsAddDTO Maven / Gradle / Ivy
package k.e.book.ddh.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
* @author kk
* @date 2023-05-21 14:25
*/
@Data
@ApiModel(value="CcNewsAddDTO", description="CcNews")
public class CcNewsAddDTO implements Serializable{
@ApiModelProperty(value = "id")
private Integer id;
@ApiModelProperty(value = "标题")
private String subject;
@ApiModelProperty(value = "类目")
private String categoryIds;
@ApiModelProperty(value = "封面图")
private String image;
@ApiModelProperty(value = "内容")
private String content;
@ApiModelProperty(value = "浏览量")
private Integer views;
@ApiModelProperty(value = "创建时间")
private Integer createtime;
@ApiModelProperty(value = "更新时间")
private Integer updatetime;
@ApiModelProperty(value = "状态:0=隐藏,1=已发布")
private Boolean status;
@ApiModelProperty(value = "标志")
private String flag;
@ApiModelProperty(value = "权重")
private Integer weigh;
@ApiModelProperty(value = "否推送:0=否,1=是")
private Integer isPush;
@ApiModelProperty(value = "推送内容")
private String minContent;
@ApiModelProperty(value = "推送TAG")
private String pushTags;
@ApiModelProperty(value = "updatedAt")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedAt;
}