This commit is contained in:
阿沐 2022-08-20 16:21:37 +08:00
parent 521367db70
commit cc5f8cd58d
2 changed files with 44 additions and 36 deletions

View File

@ -11,47 +11,47 @@ import net.maku.framework.common.entity.BaseEntity;
* @author 阿沐 babamu@126.com * @author 阿沐 babamu@126.com
*/ */
@Data @Data
@EqualsAndHashCode(callSuper=false) @EqualsAndHashCode(callSuper = false)
@TableName("sms_platform") @TableName("sms_platform")
public class SmsPlatformEntity extends BaseEntity { public class SmsPlatformEntity extends BaseEntity {
/** /**
* 平台类型 0阿里云 1腾讯云 * 平台类型 0阿里云 1腾讯云 2七牛云 3华为云
*/ */
private Integer platform; private Integer platform;
/** /**
* 短信签名 * 短信签名
*/ */
private String signName; private String signName;
/** /**
* 短信模板 * 短信模板
*/ */
private String templateId; private String templateId;
/** /**
* 短信应用的ID腾讯云等 * 短信应用的ID腾讯云等
*/ */
private String appId; private String appId;
/** /**
* 腾讯云国际短信华为云等需要 * 腾讯云国际短信华为云等需要
*/ */
private String senderId; private String senderId;
/** /**
* AccessKey * AccessKey
*/ */
private String accessKey; private String accessKey;
/** /**
* SecretKey * SecretKey
*/ */
private String secretKey; private String secretKey;
/** /**
* 状态 0禁用 1启用 * 状态 0禁用 1启用
*/ */
private Integer status; private Integer status;
} }

View File

@ -11,14 +11,22 @@ import lombok.Getter;
@Getter @Getter
@AllArgsConstructor @AllArgsConstructor
public enum SmsPlatformEnum { public enum SmsPlatformEnum {
/** /**
* 阿里云 * 阿里云
*/ */
ALIYUN(0), ALIYUN(0),
/** /**
* 腾讯云 * 腾讯云
*/ */
QCLOUD(1); QCLOUD(1),
/**
* 七牛云
*/
QINIU(2),
/**
* 华为云
*/
HUAWEI(3);
private final int value; private final int value;