commit | author | age
|
9bcb19
|
1 |
/* |
I |
2 |
Copyright [2020] [https://www.xiaonuo.vip] |
|
3 |
|
|
4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
you may not use this file except in compliance with the License. |
|
6 |
You may obtain a copy of the License at |
|
7 |
|
|
8 |
http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
|
|
10 |
Unless required by applicable law or agreed to in writing, software |
|
11 |
distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
See the License for the specific language governing permissions and |
|
14 |
limitations under the License. |
|
15 |
|
|
16 |
Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点: |
|
17 |
|
|
18 |
1.请不要删除和修改根目录下的LICENSE文件。 |
|
19 |
2.请不要删除和修改Snowy源码头部的版权声明。 |
|
20 |
3.请保留源码和相关描述文件的项目出处,作者声明等。 |
|
21 |
4.分发源码时候,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
22 |
5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
23 |
6.若您的项目无法满足以上几点,可申请商业授权,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip |
|
24 |
*/ |
|
25 |
package vip.xiaonuo.core.sms.modular.aliyun.enums; |
|
26 |
|
|
27 |
|
|
28 |
import lombok.Getter; |
|
29 |
|
|
30 |
/** |
|
31 |
* 短信发送异常相关枚举 |
|
32 |
* |
|
33 |
* @author xuyuxiang |
|
34 |
* @date 2018/1/4 22:40 |
|
35 |
*/ |
|
36 |
@Getter |
|
37 |
public enum AliyunSmsResultEnum { |
|
38 |
|
|
39 |
|
|
40 |
/** |
|
41 |
* 初始化sms客户端错误,accessKey错误 |
|
42 |
*/ |
|
43 |
INIT_SMS_CLIENT_ERROR("SMS_CLIENT_INIT_ERROR", "初始化sms客户端错误,accessKey错误"), |
|
44 |
|
|
45 |
/** |
|
46 |
* 请求参数为空 |
|
47 |
*/ |
|
48 |
PARAM_NULL("NULL", "请求参数为空"), |
|
49 |
|
|
50 |
/** |
|
51 |
* 请求成功 |
|
52 |
*/ |
|
53 |
OK("OK", "请求成功"), |
|
54 |
|
|
55 |
/** |
|
56 |
* RAM权限DENY |
|
57 |
*/ |
|
58 |
RAM_PERMISSION_DENY("isp.RAM_PERMISSION_DENY", "RAM权限DENY"), |
|
59 |
|
|
60 |
/** |
|
61 |
* 产品未开通 |
|
62 |
*/ |
|
63 |
PRODUCT_UNSUBSCRIBE("isv.PRODUCT_UNSUBSCRIBE", "产品未开通"), |
|
64 |
|
|
65 |
/** |
|
66 |
* 账户不存在 |
|
67 |
*/ |
|
68 |
ACCOUNT_NOT_EXISTS("isv.ACCOUNT_NOT_EXISTS", "账户不存在"), |
|
69 |
|
|
70 |
/** |
|
71 |
* 账户异常 |
|
72 |
*/ |
|
73 |
ACCOUNT_ABNORMAL("isv.ACCOUNT_ABNORMAL", "账户异常"), |
|
74 |
|
|
75 |
/** |
|
76 |
* 短信模板不合法 |
|
77 |
*/ |
|
78 |
SMS_TEMPLATE_ILLEGAL("isv.SMS_TEMPLATE_ILLEGAL", "短信模板不合法"), |
|
79 |
|
|
80 |
/** |
|
81 |
* 短信签名不合法 |
|
82 |
*/ |
|
83 |
SMS_SIGNATURE_ILLEGAL("isv.SMS_SIGNATURE_ILLEGAL", "短信签名不合法"), |
|
84 |
|
|
85 |
/** |
|
86 |
* 参数异常 |
|
87 |
*/ |
|
88 |
INVALID_PARAMETERS("isv.INVALID_PARAMETERS", "参数异常"), |
|
89 |
|
|
90 |
/** |
|
91 |
* 系统错误 |
|
92 |
*/ |
|
93 |
SYSTEM_ERROR("isp.SYSTEM_ERROR", "系统错误"), |
|
94 |
|
|
95 |
/** |
|
96 |
* 非法手机号 |
|
97 |
*/ |
|
98 |
MOBILE_NUMBER_ILLEGAL("isv.MOBILE_NUMBER_ILLEGAL", "非法手机号"), |
|
99 |
|
|
100 |
/** |
|
101 |
* 手机号码数量超过限制 |
|
102 |
*/ |
|
103 |
MOBILE_COUNT_OVER_LIMIT("isv.MOBILE_COUNT_OVER_LIMIT", "手机号码数量超过限制"), |
|
104 |
|
|
105 |
/** |
|
106 |
* 模板缺少变量 |
|
107 |
*/ |
|
108 |
TEMPLATE_MISSING_PARAMETERS("isv.TEMPLATE_MISSING_PARAMETERS", "模板缺少变量"), |
|
109 |
|
|
110 |
/** |
|
111 |
* 发送短信过于频繁,请稍后再试 |
|
112 |
*/ |
|
113 |
BUSINESS_LIMIT_CONTROL("isv.BUSINESS_LIMIT_CONTROL", "发送短信过于频繁,请稍后再试"), |
|
114 |
|
|
115 |
/** |
|
116 |
* JSON参数不合法,只接受字符串值 |
|
117 |
*/ |
|
118 |
INVALID_JSON_PARAM("isv.INVALID_JSON_PARAM", "JSON参数不合法,只接受字符串值"), |
|
119 |
|
|
120 |
/** |
|
121 |
* 黑名单管控 |
|
122 |
*/ |
|
123 |
BLACK_KEY_CONTROL_LIMIT("isv.BLACK_KEY_CONTROL_LIMIT", "黑名单管控"), |
|
124 |
|
|
125 |
/** |
|
126 |
* 参数超出长度限制 |
|
127 |
*/ |
|
128 |
PARAM_LENGTH_LIMIT("isv.PARAM_LENGTH_LIMIT", "参数超出长度限制"), |
|
129 |
|
|
130 |
/** |
|
131 |
* 不支持URL |
|
132 |
*/ |
|
133 |
PARAM_NOT_SUPPORT_URL("isv.PARAM_NOT_SUPPORT_URL", "不支持URL"), |
|
134 |
|
|
135 |
/** |
|
136 |
* 账户余额不足 |
|
137 |
*/ |
|
138 |
AMOUNT_NOT_ENOUGH("isv.AMOUNT_NOT_ENOUGH", "账户余额不足"); |
|
139 |
|
|
140 |
private String code; |
|
141 |
|
|
142 |
private final String message; |
|
143 |
|
|
144 |
AliyunSmsResultEnum(String code, String message) { |
|
145 |
this.code = code; |
|
146 |
this.message = message; |
|
147 |
} |
|
148 |
} |