diff --git a/db/mysql/module/fast-boot-message.sql b/db/mysql/module/fast-boot-message.sql index c920a18..5b0d4e9 100644 --- a/db/mysql/module/fast-boot-message.sql +++ b/db/mysql/module/fast-boot-message.sql @@ -30,6 +30,7 @@ CREATE TABLE sms_platform template_id varchar(100) NOT NULL COMMENT '短信模板', app_id varchar(100) NOT NULL COMMENT '短信应用ID,如:腾讯云等', sender_id varchar(100) NOT NULL COMMENT '腾讯云国际短信、华为云等需要', + url varchar(200) NOT NULL COMMENT '接入地址,如:华为云', access_key varchar(100) COMMENT 'AccessKey', secret_key varchar(100) COMMENT 'SecretKey', status tinyint COMMENT '状态 0:禁用 1:启用', diff --git a/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/entity/SmsPlatformEntity.java b/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/entity/SmsPlatformEntity.java index 740c280..d91a0c0 100644 --- a/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/entity/SmsPlatformEntity.java +++ b/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/entity/SmsPlatformEntity.java @@ -40,6 +40,11 @@ public class SmsPlatformEntity extends BaseEntity { private String senderId; /** + * 接入地址,如:华为云 + */ + private String url; + + /** * AccessKey */ private String accessKey; diff --git a/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/sms/config/SmsConfig.java b/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/sms/config/SmsConfig.java index 8cb17bf..9020773 100644 --- a/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/sms/config/SmsConfig.java +++ b/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/sms/config/SmsConfig.java @@ -40,6 +40,11 @@ public class SmsConfig { private String senderId; /** + * 接入地址,如:华为云 + */ + private String url; + + /** * AccessKey */ private String accessKey; diff --git a/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/vo/SmsPlatformVO.java b/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/vo/SmsPlatformVO.java index 4015ea3..79a216f 100644 --- a/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/vo/SmsPlatformVO.java +++ b/fast-boot-module/fast-boot-message/src/main/java/net/maku/message/vo/SmsPlatformVO.java @@ -9,44 +9,47 @@ import java.io.Serializable; import java.util.Date; /** -* 短信平台 -* -* @author 阿沐 babamu@126.com -*/ + * 短信平台 + * + * @author 阿沐 babamu@126.com + */ @Data @Schema(description = "短信平台") public class SmsPlatformVO implements Serializable { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = 1L; - @Schema(description = "id") - private Long id; + @Schema(description = "id") + private Long id; - @Schema(description = "平台类型 0:阿里云 1:腾讯云") - private Integer platform; + @Schema(description = "平台类型 0:阿里云 1:腾讯云") + private Integer platform; - @Schema(description = "短信签名") - private String signName; + @Schema(description = "短信签名") + private String signName; - @Schema(description = "短信模板") - private String templateId; + @Schema(description = "短信模板") + private String templateId; - @Schema(description = "短信应用的ID,如:腾讯云等") - private String appId; + @Schema(description = "短信应用的ID,如:腾讯云等") + private String appId; - @Schema(description = "腾讯云国际短信、华为云等需要") - private String senderId; + @Schema(description = "腾讯云国际短信、华为云等需要") + private String senderId; - @Schema(description = "AccessKey") - private String accessKey; + @Schema(description = "接入地址,如:华为云") + private String url; - @Schema(description = "SecretKey") - private String secretKey; + @Schema(description = "AccessKey") + private String accessKey; - @Schema(description = "状态 0:禁用 1:启用") - private Integer status; + @Schema(description = "SecretKey") + private String secretKey; - @Schema(description = "创建时间") - @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN) - private Date createTime; + @Schema(description = "状态 0:禁用 1:启用") + private Integer status; + + @Schema(description = "创建时间") + @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN) + private Date createTime; } \ No newline at end of file