From ba5348215da5c5937e3be35032690e343129d882 Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期五, 19 八月 2022 20:05:05 +0800 Subject: [PATCH] 优化 --- phi-sms-feign/src/main/java/com/hz/sms/dto/SmsGeneralSendDto.java | 121 +++++++++++----------------------------- 1 files changed, 33 insertions(+), 88 deletions(-) diff --git a/phi-sms-feign/src/main/java/com/hz/sms/dto/SmsGeneralSendDto.java b/phi-sms-feign/src/main/java/com/hz/sms/dto/SmsGeneralSendDto.java index 0102b19..01914c5 100644 --- a/phi-sms-feign/src/main/java/com/hz/sms/dto/SmsGeneralSendDto.java +++ b/phi-sms-feign/src/main/java/com/hz/sms/dto/SmsGeneralSendDto.java @@ -1,103 +1,48 @@ package com.hz.sms.dto; - -import java.text.SimpleDateFormat; +import lombok.Data; import java.util.Date; - +@Data public class SmsGeneralSendDto { - /*鏍囪瘑*/ - private String id; - /*鐭俊鍐呭*/ + /**鐭俊绫诲瀷 - Y*/ + private Integer smsType; + /**鐭俊鍐呭 - Y*/ private String msg; - /*鎵嬫満鍙风爜*/ + /**鎺ユ敹浜哄悕绉� - N*/ + private String receiveMan; + /**鎵嬫満鍙风爜 - Y*/ private String phone; - /*瀹氭椂鍙戦�佺煭淇℃椂闂�*/ - private String sendtime; - /*濡傞渶鐘舵�佹姤鍛婂垯浼爐rue*/ - private String report = "false"; - /*涓嬪彂鐭俊鍙风爜鎵╁睍鐮�*/ + /**瀹氭椂鍙戦�佺煭淇℃椂闂达紝鍊煎皬浜庢垨绛変簬褰撳墠鏃堕棿鍒欑珛鍗冲彂閫侊紝榛樿绔嬪嵆鍙戦�侊細鏍煎紡yyyy-MM-dd HH:mm:dd - N*/ + private Date sendTime; + /**濡傞渶鐘舵�佹姤鍛婂垯浼爐rue - N*/ + private String report; + /**涓嬪彂鐭俊鍙风爜鎵╁睍鐮� - N*/ private String extend; - /*璇ユ潯鐭俊鍦ㄦ偍涓氬姟绯荤粺鍐呯殑ID*/ + /**璇ユ潯鐭俊鍦ㄦ偍涓氬姟绯荤粺鍐呯殑ID锛屽彲涓嶅~ - N*/ private String uid; + /** 鍙戦�佹ā寮� (0: 绔嬪嵆鍙戦��; 1:寮傛鍙戦�侊紝榛樿1) - Y*/ + private Integer sendModel = SEND_TYPE_ASYNCHRONOUS; + + /**鐭俊绫诲瀷-鐭俊楠岃瘉鐮�*/ + public static final int SMS_TYPE_VERIFICATION = 0; + /**鐭俊绫诲瀷-閫氱煡鐭俊*/ + public static final int SMS_TYPE_NOTICE = 1; + /**鐭俊绫诲瀷-钀ラ攢鐭俊*/ + public static final int SMS_TYPE_MARKETING= 2; + + /**鍙戦�佺被鍨�-绔嬪嵆鍙戦��*/ + public static final int SEND_TYPE_IMMEDIATELY = 0; + /**鍙戦�佺被鍨�-寮傛鍙戦��*/ + public static final int SEND_TYPE_ASYNCHRONOUS = 1; + + /**鏁板瓧0*/ + public static final int NUMBER_0 = 0; + /**鏁板瓧1*/ + public static final int NUMBER_1 = 1; - public SmsGeneralSendDto() { - } - public SmsGeneralSendDto(String id, String msg, String phone, String sendtime, String report, String extend, String uid) { - this.id = id; - this.msg = msg; - this.phone = phone; - this.sendtime = sendtime; - this.report = report; - this.extend = extend; - this.uid = uid; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getMsg() { - return msg; - } - - public void setMsg(String msg) { - this.msg = msg; - } - - public String getPhone() { - return phone; - } - - public void setPhone(String phone) { - this.phone = phone; - } - - public String getSendtime() { - return sendtime; - } - public Date getDateSendTime(){ - try { - Date dateSendTime = new SimpleDateFormat("yyyyMMddHHmm").parse(sendtime); - return dateSendTime; - }catch (Exception e){ - return null; - } - } - - public void setSendtime(String sendtime) { - this.sendtime = sendtime; - } - - public String getReport() { - return report; - } - - public void setReport(String report) { - this.report = report; - } - - public String getExtend() { - return extend; - } - - public void setExtend(String extend) { - this.extend = extend; - } - - public String getUid() { - return uid; - } - - public void setUid(String uid) { - this.uid = uid; - } } -- Gitblit v1.8.0