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 | 75 +++++++++++++++---------------------- 1 files changed, 31 insertions(+), 44 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 f093f8b..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 @@ -6,57 +6,44 @@ @Data public class TemplateMessageDto { - /** 浼佷笟寰俊id*/ + + /** 浼佷笟寰俊id - Y*/ private String corpId; - /** 鍏宠仈灏忕▼搴廼d*/ + /** 鍏宠仈灏忕▼搴廼d - Y*/ private String appId; - /** 鏍囪瘑 (璁板綍corp_wx_application琛ㄦ暟鎹殑id) (涓嶇敤浼�)*/ - private String id; - /** 鎴愬憳ID鍒楄〃锛堟秷鎭帴鏀惰�咃紝澶氫釜鎺ユ敹鑰呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�1000涓級 */ + /** 鎴愬憳ID鍒楄〃锛堟秷鎭帴鏀惰�咃紝澶氫釜鎺ユ敹鑰呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�1000涓級 - Y*/ private String touSer; - /** 閮ㄩ棬ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓�� */ - private String toparty; - /** 鏍囩ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓�� */ + /** 閮ㄩ棬ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓��- O */ + private String toParty; + /** 鏍囩ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓��- O */ private String toTag; - /** 娑堟伅绫诲瀷 ,姝ゆ椂鍥哄畾涓猴細miniprogram_notice */ - private String msgType; - /** 鍙傛暟鍐呭 */ - private TemplateMsgDto miniprogram_notice; + /** 娑堟伅绫诲瀷 ,姝ゆ椂鍥哄畾涓猴細miniprogram_notice - Y*/ + private String msgType = "miniprogram_notice"; + /** 鍙傛暟鍐呭 - Y*/ + private TemplateMsgDto minIProgramNotice; + /** 鍙戦�佹ā寮� (0: 绔嬪嵆鍙戦��; 1:寮傛鍙戦�侊紝榛樿1) - Y*/ + private Integer sendModel = SEND_TYPE_ASYNCHRONOUS; - /** 琛ㄧず鏄惁寮�鍚痠d杞瘧锛�0琛ㄧず鍚︼紝1琛ㄧず鏄紝榛樿0 */ - private Integer enable_id_trans; - /** 琛ㄧず鏄惁寮�鍚噸澶嶆秷鎭鏌ワ紝0琛ㄧず鍚︼紝1琛ㄧず鏄紝榛樿0 */ - private Integer enable_duplicate_check; - /** 琛ㄧず鏄惁閲嶅娑堟伅妫�鏌ョ殑鏃堕棿闂撮殧锛岄粯璁�1800s锛屾渶澶т笉瓒呰繃4灏忔椂 */ - private Integer duplicate_check_interval; - /** 鍙戦�佺姸鎬� (0: 绔嬪嵆鍙戦��; 1:寮傛鍙戦��)*/ - private Integer sendStatus; + /** 琛ㄧず鏄惁寮�鍚痠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 getMsgType() { - if (!StringUtils.isEmpty(msgType) && !"miniprogram_notice".equals(msgType)){ - return null; - } - return msgType; - } - public Integer getEnable_id_trans() { - if (ObjectUtils.isEmpty(enable_id_trans)){ - return null; - } - return enable_id_trans; - } + /**鏁板瓧0*/ + public static final int NUMBER_0 = 0; + /**鏁板瓧1*/ + public static final int NUMBER_1 = 1; - public Integer getEnable_duplicate_check() { - if (ObjectUtils.isEmpty(enable_duplicate_check)){ - return null; - } - return enable_duplicate_check; - } + /**鍙戦�佺被鍨�-绔嬪嵆鍙戦��*/ + public static final int SEND_TYPE_IMMEDIATELY = 0; + /**鍙戦�佺被鍨�-寮傛鍙戦��*/ + public static final int SEND_TYPE_ASYNCHRONOUS = 1; - public Integer getDuplicate_check_interval() { - if (ObjectUtils.isEmpty(duplicate_check_interval)){ - return null; - } - return duplicate_check_interval; - } + /**閲嶅娑堟伅妫�鏌ョ殑鏃堕棿闂撮殧 - 绉�*/ + public static final int REPEAT_TIME_SECOND = 1800; + + } \ No newline at end of file -- Gitblit v1.8.0