32 lines
598 B
Go
32 lines
598 B
Go
package dao
|
|
|
|
const (
|
|
StatusEnabled uint8 = 1
|
|
StatusDisabled uint8 = 2
|
|
|
|
CredentialTypePassword = "password"
|
|
CredentialTypeWecom = "wecom"
|
|
CredentialTypeOpenid = "openid"
|
|
CredentialTypeUnionid = "unionid"
|
|
|
|
GrantTypeOpenid = "openid"
|
|
GrantTypePassword = "password"
|
|
GrantTypeSms = "sms"
|
|
|
|
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 = "{}"
|
|
)
|