新增华为云短信字段

This commit is contained in:
阿沐 2022-08-23 22:42:16 +08:00
parent a40c0e273d
commit ebda373ac8
4 changed files with 40 additions and 26 deletions

View File

@ -30,6 +30,7 @@ CREATE TABLE sms_platform
template_id varchar(100) NOT NULL COMMENT '短信模板', template_id varchar(100) NOT NULL COMMENT '短信模板',
app_id varchar(100) NOT NULL COMMENT '短信应用ID腾讯云等', app_id varchar(100) NOT NULL COMMENT '短信应用ID腾讯云等',
sender_id varchar(100) NOT NULL COMMENT '腾讯云国际短信、华为云等需要', sender_id varchar(100) NOT NULL COMMENT '腾讯云国际短信、华为云等需要',
url varchar(200) NOT NULL COMMENT '接入地址,如:华为云',
access_key varchar(100) COMMENT 'AccessKey', access_key varchar(100) COMMENT 'AccessKey',
secret_key varchar(100) COMMENT 'SecretKey', secret_key varchar(100) COMMENT 'SecretKey',
status tinyint COMMENT '状态 0禁用 1启用', status tinyint COMMENT '状态 0禁用 1启用',

View File

@ -40,6 +40,11 @@ public class SmsPlatformEntity extends BaseEntity {
private String senderId; private String senderId;
/** /**
* 接入地址华为云
*/
private String url;
/**
* AccessKey * AccessKey
*/ */
private String accessKey; private String accessKey;

View File

@ -40,6 +40,11 @@ public class SmsConfig {
private String senderId; private String senderId;
/** /**
* 接入地址华为云
*/
private String url;
/**
* AccessKey * AccessKey
*/ */
private String accessKey; private String accessKey;

View File

@ -9,44 +9,47 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
/** /**
* 短信平台 * 短信平台
* *
* @author 阿沐 babamu@126.com * @author 阿沐 babamu@126.com
*/ */
@Data @Data
@Schema(description = "短信平台") @Schema(description = "短信平台")
public class SmsPlatformVO implements Serializable { public class SmsPlatformVO implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Schema(description = "id") @Schema(description = "id")
private Long id; private Long id;
@Schema(description = "平台类型 0阿里云 1腾讯云") @Schema(description = "平台类型 0阿里云 1腾讯云")
private Integer platform; private Integer platform;
@Schema(description = "短信签名") @Schema(description = "短信签名")
private String signName; private String signName;
@Schema(description = "短信模板") @Schema(description = "短信模板")
private String templateId; private String templateId;
@Schema(description = "短信应用的ID腾讯云等") @Schema(description = "短信应用的ID腾讯云等")
private String appId; private String appId;
@Schema(description = "腾讯云国际短信、华为云等需要") @Schema(description = "腾讯云国际短信、华为云等需要")
private String senderId; private String senderId;
@Schema(description = "AccessKey") @Schema(description = "接入地址,如:华为云")
private String accessKey; private String url;
@Schema(description = "SecretKey") @Schema(description = "AccessKey")
private String secretKey; private String accessKey;
@Schema(description = "状态 0禁用 1启用") @Schema(description = "SecretKey")
private Integer status; private String secretKey;
@Schema(description = "创建时间") @Schema(description = "状态 0禁用 1启用")
@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN) private Integer status;
private Date createTime;
@Schema(description = "创建时间")
@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
private Date createTime;
} }