From 7bcdafce8e8923833c85a3bb59df55b9985422e5 Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期五, 19 八月 2022 21:18:19 +0800 Subject: [PATCH] 新增表 --- phi-sms-feign/src/main/java/com/hz/sms/dto/TemplateMessageDto.java | 130 ++++++++++++------------------------------- 1 files changed, 37 insertions(+), 93 deletions(-) diff --git a/phi-sms-feign/src/main/java/com/hz/sms/dto/TemplateMessageDto.java b/phi-sms-feign/src/main/java/com/hz/sms/dto/TemplateMessageDto.java index 994cd6e..cdc806a 100644 --- a/phi-sms-feign/src/main/java/com/hz/sms/dto/TemplateMessageDto.java +++ b/phi-sms-feign/src/main/java/com/hz/sms/dto/TemplateMessageDto.java @@ -1,105 +1,49 @@ package com.hz.sms.dto; +import lombok.Data; +import org.apache.commons.lang.StringUtils; +import org.springframework.util.ObjectUtils; + +@Data public class TemplateMessageDto { - /** 鏍囪瘑 */ - private String id; - /** 浼佷笟ID */ - private String corpid; - /** 鎴愬憳ID鍒楄〃锛堟秷鎭帴鏀惰�咃紝澶氫釜鎺ユ敹鑰呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�1000涓級 */ - private String touser; - /** 閮ㄩ棬ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓�� */ - private String toparty; - /** 鏍囩ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓�� */ - private String totag; - /** 娑堟伅绫诲瀷 ,姝ゆ椂鍥哄畾涓猴細miniprogram_notice */ - private String msgtype = "miniprogram_notice"; - /** 鍙傛暟鍐呭 */ - private TemplateMsgDto miniprogram_notice; - /** 琛ㄧず鏄惁寮�鍚痠d杞瘧锛�0琛ㄧず鍚︼紝1琛ㄧず鏄紝榛樿0 */ - private Integer enable_id_trans = 0; - /** 琛ㄧず鏄惁寮�鍚噸澶嶆秷鎭鏌ワ紝0琛ㄧず鍚︼紝1琛ㄧず鏄紝榛樿0 */ - private Integer enable_duplicate_check = 0; - /** 琛ㄧず鏄惁閲嶅娑堟伅妫�鏌ョ殑鏃堕棿闂撮殧锛岄粯璁�1800s锛屾渶澶т笉瓒呰繃4灏忔椂 */ - private Integer duplicate_check_interval = 1800; + /** 浼佷笟寰俊id - Y*/ + private String corpId; + /** 鍏宠仈灏忕▼搴廼d - Y*/ + private String appId; - public String getId() { - return id; - } + /** 鎴愬憳ID鍒楄〃锛堟秷鎭帴鏀惰�咃紝澶氫釜鎺ユ敹鑰呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�1000涓級 - Y*/ + private String touSer; + /** 閮ㄩ棬ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓��- O */ + private String toParty; + /** 鏍囩ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓��- O */ + private String toTag; + /** 娑堟伅绫诲瀷 ,姝ゆ椂鍥哄畾涓猴細miniprogram_notice - Y*/ + private String msgType = "miniprogram_notice"; + /** 鍙傛暟鍐呭 - Y*/ + private TemplateMsgDto minIProgramNotice; + /** 鍙戦�佹ā寮� (0: 绔嬪嵆鍙戦��; 1:寮傛鍙戦�侊紝榛樿1) - Y*/ + private Integer sendModel = SEND_TYPE_ASYNCHRONOUS; - public void setId(String id) { - this.id = id; - } + /** 琛ㄧず鏄惁寮�鍚痠d杞瘧锛�0琛ㄧず鍚︼紝1琛ㄧず鏄紝榛樿0 - N*/ + private Integer enableIdTrans = NUMBER_0; + /** 琛ㄧず鏄惁寮�鍚噸澶嶆秷鎭鏌ワ紝0琛ㄧず鍚︼紝1琛ㄧず鏄紝榛樿0 - N*/ + private Integer enableDuplicateCheck = NUMBER_0; + /** 琛ㄧず鏄惁閲嶅娑堟伅妫�鏌ョ殑鏃堕棿闂撮殧锛岄粯璁�1800s锛屾渶澶т笉瓒呰繃4灏忔椂 - N*/ + private Integer duplicateCheckInterval = REPEAT_TIME_SECOND; - public String getCorpid() { - return corpid; - } + /**鏁板瓧0*/ + public static final int NUMBER_0 = 0; + /**鏁板瓧1*/ + public static final int NUMBER_1 = 1; - public void setCorpid(String corpid) { - this.corpid = corpid; - } + /**鍙戦�佺被鍨�-绔嬪嵆鍙戦��*/ + public static final int SEND_TYPE_IMMEDIATELY = 0; + /**鍙戦�佺被鍨�-寮傛鍙戦��*/ + public static final int SEND_TYPE_ASYNCHRONOUS = 1; - public String getTouser() { - return touser; - } + /**閲嶅娑堟伅妫�鏌ョ殑鏃堕棿闂撮殧 - 绉�*/ + public static final int REPEAT_TIME_SECOND = 1800; - public void setTouser(String touser) { - this.touser = touser; - } - public String getToparty() { - return toparty; - } - - public void setToparty(String toparty) { - this.toparty = toparty; - } - - public String getTotag() { - return totag; - } - - public void setTotag(String totag) { - this.totag = totag; - } - - public String getMsgtype() { - return msgtype; - } - - public void setMsgtype(String msgtype) { - this.msgtype = msgtype; - } - - public TemplateMsgDto getMiniprogram_notice() { - return miniprogram_notice; - } - - public void setMiniprogram_notice(TemplateMsgDto miniprogram_notice) { - this.miniprogram_notice = miniprogram_notice; - } - - public Integer getEnable_id_trans() { - return enable_id_trans; - } - - public void setEnable_id_trans(Integer enable_id_trans) { - this.enable_id_trans = enable_id_trans; - } - - public Integer getEnable_duplicate_check() { - return enable_duplicate_check; - } - - public void setEnable_duplicate_check(Integer enable_duplicate_check) { - this.enable_duplicate_check = enable_duplicate_check; - } - - public Integer getDuplicate_check_interval() { - return duplicate_check_interval; - } - - public void setDuplicate_check_interval(Integer duplicate_check_interval) { - this.duplicate_check_interval = duplicate_check_interval; - } } \ No newline at end of file -- Gitblit v1.8.0