TemplateStateDTO.java 1.31 KB
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;
    }
}