TemplateStateDTO.java
1.31 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
package com.diligrp.assistant.sms.domain;
import java.time.LocalDateTime;
public class TemplateStateDTO {
// 短信模板ID
private String templateId;
// 模板状态
private Integer state;
// 数据版本
private Integer version;
// 修改时间
private LocalDateTime modifiedTime;
public static TemplateStateDTO of(String templateId, Integer state, Integer version, LocalDateTime modifiedTime) {
TemplateStateDTO stateDTO = new TemplateStateDTO();
stateDTO.setTemplateId(templateId);
stateDTO.setState(state);
stateDTO.setVersion(version);
stateDTO.setModifiedTime(modifiedTime);
return stateDTO;
}
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public Integer getState() {
return state;
}
public void setState(Integer state) {
this.state = state;
}
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
public LocalDateTime getModifiedTime() {
return modifiedTime;
}
public void setModifiedTime(LocalDateTime modifiedTime) {
this.modifiedTime = modifiedTime;
}
}