mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-09-20 11:33:01 +08:00
feat: uni-id-users 1.0.0
This commit is contained in:
parent
08477d2966
commit
3197bf92e8
@ -162,13 +162,21 @@
|
|||||||
"bsonType": "object",
|
"bsonType": "object",
|
||||||
"description": "微信各个平台openid",
|
"description": "微信各个平台openid",
|
||||||
"properties": {
|
"properties": {
|
||||||
"app-plus": {
|
"app": {
|
||||||
"bsonType": "string",
|
"bsonType": "string",
|
||||||
"description": "app平台微信openid"
|
"description": "app平台微信openid"
|
||||||
},
|
},
|
||||||
"mp-weixin": {
|
"mp": {
|
||||||
"bsonType": "string",
|
"bsonType": "string",
|
||||||
"description": "微信小程序平台openid"
|
"description": "微信小程序平台openid"
|
||||||
|
},
|
||||||
|
"h5": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "微信公众号平台openid"
|
||||||
|
},
|
||||||
|
"web": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "微信网页登录openid"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -191,6 +199,100 @@
|
|||||||
"description": "备注",
|
"description": "备注",
|
||||||
"trim": "both"
|
"trim": "both"
|
||||||
},
|
},
|
||||||
|
"third_party" : {
|
||||||
|
"bsonType": "object",
|
||||||
|
"description": "缓存用户在三方平台的token等信息",
|
||||||
|
"properties": {
|
||||||
|
"mp_weixin": {
|
||||||
|
"bsonType": "object",
|
||||||
|
"description": "微信小程序相关信息",
|
||||||
|
"properties": {
|
||||||
|
"session_key": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "微信小程序session key"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"app_weixin": {
|
||||||
|
"bsonType": "object",
|
||||||
|
"description": "app平台微信相关信息",
|
||||||
|
"properties": {
|
||||||
|
"access_token": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "app平台微信access token"
|
||||||
|
},
|
||||||
|
"access_token_expired": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "app平台微信access token过期时间"
|
||||||
|
},
|
||||||
|
"refresh_token": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "app平台微信refresh token"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"h5_weixin": {
|
||||||
|
"bsonType": "object",
|
||||||
|
"description": "微信公众号平台微信相关信息",
|
||||||
|
"properties": {
|
||||||
|
"access_token": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "微信公众号平台access token"
|
||||||
|
},
|
||||||
|
"access_token_expired": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "微信公众号平台access token过期时间"
|
||||||
|
},
|
||||||
|
"refresh_token": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "微信公众号平台refresh token"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"web_weixin": {
|
||||||
|
"bsonType": "object",
|
||||||
|
"description": "web平台微信相关信息",
|
||||||
|
"properties": {
|
||||||
|
"access_token": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "web平台微信access token"
|
||||||
|
},
|
||||||
|
"access_token_expired": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "web平台微信access token过期时间"
|
||||||
|
},
|
||||||
|
"refresh_token": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "web平台微信refresh token"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mp_qq": {
|
||||||
|
"bsonType": "object",
|
||||||
|
"description": "QQ小程序相关信息",
|
||||||
|
"properties": {
|
||||||
|
"session_key": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "QQ小程序session key"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"app_qq": {
|
||||||
|
"bsonType": "object",
|
||||||
|
"description": "app平台QQ相关信息",
|
||||||
|
"properties": {
|
||||||
|
"access_token": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "app平台QQ access token"
|
||||||
|
},
|
||||||
|
"access_token_expired": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "app平台QQ access token过期时间"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"register_env": {
|
"register_env": {
|
||||||
"bsonType": "object",
|
"bsonType": "object",
|
||||||
"description": "注册环境信息",
|
"description": "注册环境信息",
|
||||||
@ -375,11 +477,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"IndexName": "wx_openid.app-plus",
|
"IndexName": "wx_openid.app",
|
||||||
"MgoKeySchema": {
|
"MgoKeySchema": {
|
||||||
"MgoIndexKeys": [
|
"MgoIndexKeys": [
|
||||||
{
|
{
|
||||||
"Name": "wx_openid.app-plus",
|
"Name": "wx_openid.app",
|
||||||
"Direction": "1"
|
"Direction": "1"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -387,11 +489,35 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"IndexName": "wx_openid.mp-weixin",
|
"IndexName": "wx_openid.mp",
|
||||||
"MgoKeySchema": {
|
"MgoKeySchema": {
|
||||||
"MgoIndexKeys": [
|
"MgoIndexKeys": [
|
||||||
{
|
{
|
||||||
"Name": "wx_openid.mp-weixin",
|
"Name": "wx_openid.mp",
|
||||||
|
"Direction": "1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"MgoIsUnique": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"IndexName": "wx_openid.h5",
|
||||||
|
"MgoKeySchema": {
|
||||||
|
"MgoIndexKeys": [
|
||||||
|
{
|
||||||
|
"Name": "wx_openid.h5",
|
||||||
|
"Direction": "1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"MgoIsUnique": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"IndexName": "wx_openid.web",
|
||||||
|
"MgoKeySchema": {
|
||||||
|
"MgoIndexKeys": [
|
||||||
|
{
|
||||||
|
"Name": "wx_openid.web",
|
||||||
"Direction": "1"
|
"Direction": "1"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -410,6 +536,42 @@
|
|||||||
"MgoIsUnique": false
|
"MgoIsUnique": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"IndexName": "qq_openid.app",
|
||||||
|
"MgoKeySchema": {
|
||||||
|
"MgoIndexKeys": [
|
||||||
|
{
|
||||||
|
"Name": "qq_openid.app",
|
||||||
|
"Direction": "1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"MgoIsUnique": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"IndexName": "qq_openid.mp",
|
||||||
|
"MgoKeySchema": {
|
||||||
|
"MgoIndexKeys": [
|
||||||
|
{
|
||||||
|
"Name": "qq_openid.mp",
|
||||||
|
"Direction": "1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"MgoIsUnique": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"IndexName": "qq_unionid",
|
||||||
|
"MgoKeySchema": {
|
||||||
|
"MgoIndexKeys": [
|
||||||
|
{
|
||||||
|
"Name": "qq_unionid",
|
||||||
|
"Direction": "1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"MgoIsUnique": false
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"IndexName": "ali_openid",
|
"IndexName": "ali_openid",
|
||||||
"MgoKeySchema": {
|
"MgoKeySchema": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@opendb/uni-id-users",
|
"name": "@opendb/uni-id-users",
|
||||||
"version": "0.0.1",
|
"version": "1.0.0",
|
||||||
"description": "uni-id-users",
|
"description": "uni-id-users",
|
||||||
"keywords": ["uni-id", "用户管理", "登录", "注册"],
|
"keywords": ["uni-id", "用户管理", "登录", "注册"],
|
||||||
"opendb": {
|
"opendb": {
|
||||||
|
Loading…
Reference in New Issue
Block a user