Material.java
2.93 KB
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
package com.bs.reception.entity.materials;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
@Data
@TableName("material")
@Schema(name = "Material", description = "素材实体")
public class Material implements Serializable {
@Schema(description = "ID")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@Schema(description = "素材名称")
@TableField("material_name")
private String materialName;
@Schema(description = "素材编码")
@TableField("material_code")
private String materialCode;
@Schema(description = "业务类型编码")
@TableField("type_code")
private String typeCode;
@Schema(description = "文件夹编码")
@TableField("folder_code")
private String folderCode;
@Schema(description = "素材URL")
@TableField("material_url")
private String materialUrl;
@Schema(description = "素材存储路径")
@TableField("material_path")
private String materialPath;
@Schema(description = "素材类型:1-图片,2-视频,3-文档,4-其他")
@TableField("material_type")
private Integer materialType;
@Schema(description = "文件大小(字节)")
@TableField("file_size")
private Long fileSize;
@Schema(description = "文件扩展名")
@TableField("file_extension")
private String fileExtension;
@Schema(description = "排序")
@TableField("sort_order")
private Integer sortOrder;
@Schema(description = "是否首页展示:0-否,1-是")
@TableField("show_on_homepage")
private Integer showOnHomepage;
@Schema(description = "状态:0-启用,1-停用")
@TableField("status")
private Integer status;
@Schema(description = "创建人")
@TableField("create_by")
private String createBy;
@Schema(description = "创建人ID")
@TableField("create_by_id")
private Long createById;
@Schema(description = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField("create_time")
private Date createTime;
@Schema(description = "更新人")
@TableField("update_by")
private String updateBy;
@Schema(description = "更新人ID")
@TableField("update_by_id")
private Long updateById;
@Schema(description = "更新时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField("update_time")
private Date updateTime;
@Schema(description = "备注")
@TableField("remark")
private String remark;
@Schema(description = "删除标记:0-正常,1-删除")
@TableField("del_flag")
private Integer delFlag;
}