mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-10 11:09:44 +08:00
feat: opendb-app-client-key
This commit is contained in:
parent
d43584c142
commit
0a81e441f3
47
collection/opendb-app-client-key/collection.json
Normal file
47
collection/opendb-app-client-key/collection.json
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"schema": {
|
||||||
|
"bsonType": "object",
|
||||||
|
"required": ["_id", "value"],
|
||||||
|
"properties": {
|
||||||
|
"_id": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "自动生成的id"
|
||||||
|
},
|
||||||
|
"app_id": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "客户端DCloud AppId"
|
||||||
|
},
|
||||||
|
"device_id": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "客户端设备id"
|
||||||
|
},
|
||||||
|
"private_key": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "私钥,仅保存在云端"
|
||||||
|
},
|
||||||
|
"public_key": {
|
||||||
|
"bsonType": "string",
|
||||||
|
"description": "公钥,下发给客户端使用"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"index": [
|
||||||
|
{
|
||||||
|
"IndexName": "app_device_id_",
|
||||||
|
"MgoKeySchema": {
|
||||||
|
"MgoIndexKeys": [
|
||||||
|
{
|
||||||
|
"Name": "app_id",
|
||||||
|
"Direction": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "device_id",
|
||||||
|
"Direction": "1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"MgoIsUnique": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
17
collection/opendb-app-client-key/package.json
Normal file
17
collection/opendb-app-client-key/package.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "@opendb/opendb-app-client-key",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"description": "opendb-app-client-key",
|
||||||
|
"keywords": ["App平台安全网络密钥对"],
|
||||||
|
"opendb": {
|
||||||
|
"title": "App平台安全网络密钥对",
|
||||||
|
"type": "collection",
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "DCloud",
|
||||||
|
"email": "",
|
||||||
|
"homepage": "https://gitee.com/dcloud/opendb"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user