WeMaterial.java
1.58 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
package com.linkwechat.wecom.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.linkwechat.common.core.domain.BaseEntity;
import com.linkwechat.common.utils.SnowFlakeUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @description: 企业微信上传临时素材实体
* @author: KEWEN
* @create: 2020-09-21 21:17
**/
@ApiModel
@Data
@TableName("we_material")
public class WeMaterial extends BaseEntity {
private static final long serialVersionUID = 1L;
private Long id = SnowFlakeUtil.nextId();
/**
* 分类id
*/
@ApiModelProperty("分类id")
private Long categoryId;
/**
* 本地资源文件地址
*/
@ApiModelProperty("本地资源文件地址")
private String materialUrl;
/**
* 文本内容、图片文案
*/
@ApiModelProperty("文本内容、图片文案")
private String content;
/**
* 素材标题
*/
@ApiModelProperty("素材标题【小程序标题】")
private String materialName;
/**
* 摘要
*/
@ApiModelProperty("摘要【小程序id用改字段】")
private String digest;
/**
* 封面本地资源文件
*/
@ApiModelProperty("封面本地资源文件")
private String coverUrl;
/**
* 音频时长
*/
@ApiModelProperty("音频时长")
private String audioTime;
/**
* 素材是否被选中
*/
@TableField(exist = false)
private Boolean isCheck=false;
}