From 6b711396166ce1a90bffe4d97801557a8de199e7 Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期一, 22 八月 2022 16:47:01 +0800 Subject: [PATCH] 优化 --- phi-sms-feign/src/main/java/com/hz/sms/dto/TemplateMessageDto.java | 74 ++++++++++++++++--------------------- 1 files changed, 32 insertions(+), 42 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 1b537d6..386a8fd 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,47 @@ @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涓�� */ + /** 閮ㄩ棬ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓��- O */ private String toParty; - /** 鏍囩ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓�� */ + /** 鏍囩ID鍒楄〃锛屽涓帴鏀惰�呯敤鈥榺鈥欏垎闅旓紝鏈�澶氭敮鎸�100涓��- O */ private String toTag; - /** 娑堟伅绫诲瀷 ,姝ゆ椂鍥哄畾涓猴細miniprogram_notice */ - private String msgType; - /** 鍙傛暟鍐呭 */ + /** 娑堟伅绫诲瀷 ,姝ゆ椂鍥哄畾涓猴細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 enableIdTrans; - /** 琛ㄧず鏄惁寮�鍚噸澶嶆秷鎭鏌ワ紝0琛ㄧず鍚︼紝1琛ㄧず鏄紝榛樿0 */ - private Integer enableDuplicateCheck; - /** 琛ㄧず鏄惁閲嶅娑堟伅妫�鏌ョ殑鏃堕棿闂撮殧锛岄粯璁�1800s锛屾渶澶т笉瓒呰繃4灏忔椂 */ - private Integer duplicateCheckInterval; - /** 鍙戦�佹ā寮� (0: 绔嬪嵆鍙戦��; 1:寮傛鍙戦��)*/ - private Integer sendModel; + /** 琛ㄧず鏄惁寮�鍚痠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(enableIdTrans)){ - return null; - } - return enableIdTrans; - } + /**璇ユ潯淇℃伅鍦ㄦ偍涓氬姟绯荤粺鍐呯殑ID锛屽彲涓嶅~ - N*/ + private String uid; - public Integer getEnable_duplicate_check() { - if (ObjectUtils.isEmpty(enableDuplicateCheck)){ - return null; - } - return enableDuplicateCheck; - } + /**鏁板瓧0*/ + public static final int NUMBER_0 = 0; + /**鏁板瓧1*/ + public static final int NUMBER_1 = 1; - public Integer getDuplicate_check_interval() { - if (ObjectUtils.isEmpty(duplicateCheckInterval)){ - return null; - } - return duplicateCheckInterval; - } + /**鍙戦�佺被鍨�-绔嬪嵆鍙戦��*/ + public static final int SEND_TYPE_IMMEDIATELY = 0; + /**鍙戦�佺被鍨�-寮傛鍙戦��*/ + public static final int SEND_TYPE_ASYNCHRONOUS = 1; + + /**閲嶅娑堟伅妫�鏌ョ殑鏃堕棿闂撮殧 - 绉�*/ + public static final int REPEAT_TIME_SECOND = 1800; + + } \ No newline at end of file -- Gitblit v1.8.0