feat: openid login
This commit is contained in:
@@ -7,6 +7,20 @@ const (
|
||||
CredentialTypePassword = "password"
|
||||
CredentialTypeWecom = "wecom"
|
||||
CredentialTypeOpenid = "openid"
|
||||
CredentialTypeUnionid = "unionid"
|
||||
|
||||
GrantTypeOpenid = "openid"
|
||||
GrantTypePassword = "password"
|
||||
GrantTypeSms = "sms"
|
||||
|
||||
// Type* 登录身份(写入 session.type / X-User-Type),与订单侧约定一致
|
||||
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