package dao const ( StatusEnabled uint8 = 1 StatusDisabled uint8 = 2 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 = "{}" )