linwe
2023-11-30 6adf5d37de9739bde5bb75c51af1846da3ce6ca4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
package org.springblade.modules.article.entity;
 
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
 
/**
 * @author zhongrj
 * @time 2021-06-07
 *
 */
@Data
@TableName("jczz_article")
public class Article implements Serializable {
 
    /**
     * 主键id,自增
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
 
    /**
     * 标题
     */
//    @NotNull(message = "标题不能为空")
    private String title;
 
    /**
     * 类型
     */
//    @NotNull(message = "类型")
    private Integer type;
 
    /**
     * 内容
     */
    private String content;
 
    /**
     * logo 图片url
     */
    private String url;
 
    /**
     * logo 图片url
     */
    @TableField("video_url")
    private String videoUrl;
 
 
    /**
     * 发布来源id
     */
    @TableField("source_id")
    private String sourceId;
 
    /**
     * 发布来源名称
     */
    @TableField("source_name")
    private String sourceName;
 
    /**
     * 资讯类型,对应业务字典数据 articleType
     */
    @TableField("article_type")
    private String articleType;
 
    /**
     * 是否推荐  1:推荐  2:不推荐
     */
    private Integer recommend;
 
    /**
     * 发布状态 0:未发布 1:已发布
     */
    private String publish;
 
    /**
     * 开启评论区 0:关闭 1:开启
     */
    private String iscomment;
    /**
     * 查看数量
     */
    @ApiModelProperty(value = "查看数量")
    private Integer viewNumber;
 
 
    /**
     * 创建人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("创建人")
    private Long createUser;
 
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("创建时间")
    private Date createTime;
 
    /**
     * 更新人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("更新人")
    private Long updateUser;
 
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private Date updateTime;
 
    /**
     * 是否删除
     */
    @TableLogic
    @ApiModelProperty("是否已删除 0:否  1:是")
    private Integer isDeleted;
 
 
    /** 资讯范围 */
    @ApiModelProperty(value = "资讯范围", example = "")
    @TableField("article_range")
    private String articleRange;
}