feat: aliyun sms
This commit is contained in:
@@ -13,15 +13,19 @@ const (
|
||||
GrantTypePassword = "password"
|
||||
GrantTypeSms = "sms"
|
||||
|
||||
// Type* 登录身份(写入 session.type / X-User-Type),与订单侧约定一致
|
||||
TypeSale uint8 = 1 // 销售
|
||||
TypeStore uint8 = 2 // 门店
|
||||
TypeUser uint8 = 3 // 普通用户
|
||||
SmsSceneLogin int32 = 1
|
||||
SmsSceneResetPassword int32 = 2
|
||||
|
||||
SmsRateLimitSeconds = 60
|
||||
SmsCodeLength = 6
|
||||
|
||||
TypeSale uint8 = 1
|
||||
TypeStore uint8 = 2
|
||||
TypeUser uint8 = 3
|
||||
|
||||
SubjectTypeSale = "sale"
|
||||
SubjectTypeStore = "store"
|
||||
SubjectTypeUser = "user"
|
||||
|
||||
// ExtraJsonEmpty MySQL JSON 列不能写空串,无扩展字段时用 {}
|
||||
ExtraJsonEmpty = "{}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user