tj
7 天以前 b428226d0cf78bbb843fa17bffb1e338230fae6c
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
package com.mzl.flower.dto.response.system;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mzl.flower.base.AbstractTransDTO;
import com.mzl.flower.base.annotation.DictTrans;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.time.LocalDateTime;
 
@Data
public class UserMessageDTO extends AbstractTransDTO {
    private String id;
 
    @ApiModelProperty(value = "消息类型(MSG_TYPE)")
    @DictTrans(target = "typeStr", codeType = "MSG_TYPE")
    private String type;
    private String typeStr;
 
    @ApiModelProperty(value = "标题")
    private String title;
 
    @ApiModelProperty(value = "内容")
    private String content;
 
    @ApiModelProperty(value = "是否已读")
    private Boolean read;
 
    @ApiModelProperty(value = "关联内容id")
    private String relatedId;
 
    @ApiModelProperty(value = "关联内容类型")
    private String relatedType;
 
    @ApiModelProperty(value = "关联内容信息")
    private String relatedInfo;
 
    @ApiModelProperty(value = "创建日期")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime createTime;
}