This commit is contained in:
linju 2023-02-20 17:26:08 +08:00
commit 43b55630a9
8 changed files with 163 additions and 36 deletions

View File

@ -81,8 +81,8 @@
}, },
"uni_platform": { "uni_platform": {
"bsonType": "string", "bsonType": "string",
"description": "uni平台信息mp-weixin/web/app", "description": "uni平台信息mp-weixin/web/ios/android",
"label": "平台" "label": "uni 平台"
}, },
"version": { "version": {
"bsonType": "string", "bsonType": "string",
@ -96,8 +96,8 @@
}, },
"url": { "url": {
"bsonType": "string", "bsonType": "string",
"description": "可下载安装包地址", "description": "可下载或跳转的链接",
"label": "包地址" "label": "链接"
}, },
"stable_publish": { "stable_publish": {
"bsonType": "bool", "bsonType": "bool",
@ -129,6 +129,37 @@
"create_env": { "create_env": {
"bsonType": "string", "bsonType": "string",
"description": "创建来源uni-statuni统计自动创建upgrade-center升级中心管理员创建" "description": "创建来源uni-statuni统计自动创建upgrade-center升级中心管理员创建"
},
"store_list": {
"bsonType": "array",
"description": "发布的应用市场",
"label": "应用市场",
"properties": {
"id": {
"bsonType": "string",
"description": "应用id自动生成",
"label": "id"
},
"name": {
"bsonType": "string",
"description": "应用名称",
"label": "应用名称"
},
"scheme": {
"bsonType": "string",
"description": "应用 scheme",
"label": "应用 scheme"
},
"enable": {
"bsonType": "bool",
"description": "是否启用"
},
"priority": {
"bsonType": "int",
"description": "按照从大到小排序",
"label": "优先级"
}
}
} }
}, },
"version": "0.0.1" "version": "0.0.1"

View File

@ -42,15 +42,19 @@
"properties": { "properties": {
"all": { "all": {
"bsonType": "bool", "bsonType": "bool",
"description": "全部用户发送" "description": "全部用户发送;字段废弃,由 condition 替代"
}, },
"type": { "type": {
"bsonType": "string", "bsonType": "string",
"description": "to.all=true时用来区分发送类型, 可选值 user | userTags" "description": "可选值 user | userTags"
}, },
"receiver": { "receiver": {
"bsonType": "array", "bsonType": "array",
"description": "用户ID's \/ 用户标签ID's" "description": "用户ID's \/ 用户标签ID's指定id发送"
},
"condition": {
"bsonType": "object",
"description": "根据条件发送,例如给所有人发送"
} }
} }
}, },

View File

@ -441,6 +441,14 @@
"my_invite_code": { "my_invite_code": {
"bsonType": "string", "bsonType": "string",
"description": "用户自身邀请码" "description": "用户自身邀请码"
},
"identities": {
"bsonType": "array",
"description": "三方平台身份信息;一个对象代表一个身份,参数支持: provider 身份源, userInfo 三方用户信息, openid 三方openid, unionid 三方unionid, uid 三方uid",
"permission": {
"read": "'READ_UNI_ID_USERS' in auth.permission",
"write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission"
}
} }
} }
}, },

View File

@ -1,6 +1,6 @@
{ {
"name": "@opendb/uni-id-users", "name": "@opendb/uni-id-users",
"version": "1.0.2", "version": "1.0.3",
"description": "uni-id-users", "description": "uni-id-users",
"keywords": ["uni-id", "用户管理", "登录", "注册"], "keywords": ["uni-id", "用户管理", "登录", "注册"],
"opendb": { "opendb": {

View File

@ -0,0 +1,69 @@
{
"schema": {
"bsonType": "object",
"description": "存储sourceMap文件资源地址",
"required": [],
"permission": {
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"appid": {
"bsonType": "string",
"description": "应用ID"
},
"uni_platform": {
"title": "应用平台",
"bsonType": "string",
"description": "uni客户端平台,如web、mp-weixin、mp-alipay、app等",
"trim": "both"
},
"version": {
"bsonType": "string",
"description": "客户端上报的应用版本号"
},
"file_id": {
"bsonType": "string",
"description": "fileID"
},
"url": {
"bsonType": "string",
"description": "文件外网url路径"
},
"name": {
"bsonType": "string",
"description": "文件名"
},
"size": {
"bsonType": "int",
"description": "文件大小"
},
"cloud_path": {
"bsonType": "string",
"description": "云端路径,通过该值识别是否是同一个文件"
},
"base": {
"bsonType": "string",
"description": "基础路径"
},
"create_time": {
"bsonType": "timestamp",
"description": "上传时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
},
"index": [
{"IndexName": "appid","MgoKeySchema": {"MgoIndexKeys": [{"Name": "appid","Direction": "1"}],"MgoIsUnique": false}},
{"IndexName": "base","MgoKeySchema": {"MgoIndexKeys": [{"Name": "base","Direction": "1"}],"MgoIsUnique": false}},
{"IndexName": "cloud_path","MgoKeySchema": {"MgoIndexKeys": [{"Name": "cloud_path","Direction": "1"}],"MgoIsUnique": false}},
{"IndexName": "create_time","MgoKeySchema": {"MgoIndexKeys": [{"Name": "create_time","Direction": "1"}],"MgoIsUnique": false}}
]
}

View File

@ -0,0 +1,13 @@
{
"name": "@opendb/uni-stat-error-source-map",
"version": "0.0.1",
"description": "uni-stat-error-source-map",
"keywords": ["存储sourceMap文件资源地址"],
"opendb": {
"title": "存储sourceMap文件资源地址",
"type": "collection",
"contributors": [
{ "name": "DCloud", "email": "", "homepage": "https://gitee.com/dcloud/opendb" }
]
}
}

View File

@ -1,10 +1,10 @@
{ {
"opendb-admin-menus": {}, "opendb-admin-menus": {},
"opendb-admin-log":{}, "opendb-admin-log": {},
"opendb-app-list":{}, "opendb-app-list": {},
"opendb-department":{}, "opendb-department": {},
"opendb-device":{}, "opendb-device": {},
"opendb-app-versions":{}, "opendb-app-versions": {},
"uni-stat-active-devices": {}, "uni-stat-active-devices": {},
"uni-stat-active-users": {}, "uni-stat-active-users": {},
"uni-stat-app-channels": {}, "uni-stat-app-channels": {},
@ -12,6 +12,7 @@
"uni-stat-app-platforms": {}, "uni-stat-app-platforms": {},
"uni-stat-error-logs": {}, "uni-stat-error-logs": {},
"uni-stat-error-result": {}, "uni-stat-error-result": {},
"uni-stat-error-source-map": {},
"uni-stat-event-logs": {}, "uni-stat-event-logs": {},
"uni-stat-event-result": {}, "uni-stat-event-result": {},
"uni-stat-events": {}, "uni-stat-events": {},
@ -25,7 +26,7 @@
"uni-stat-session-logs": {}, "uni-stat-session-logs": {},
"uni-stat-share-logs": {}, "uni-stat-share-logs": {},
"uni-stat-user-session-logs": {}, "uni-stat-user-session-logs": {},
"uni-stat-pay-result":{}, "uni-stat-pay-result": {},
"uni-batch-sms-template": {}, "uni-batch-sms-template": {},
"uni-batch-sms-task": {}, "uni-batch-sms-task": {},
"uni-batch-sms-result": {} "uni-batch-sms-result": {}

View File

@ -7,6 +7,7 @@
"uni-stat-app-versions": {}, "uni-stat-app-versions": {},
"uni-stat-error-logs": {}, "uni-stat-error-logs": {},
"uni-stat-error-result": {}, "uni-stat-error-result": {},
"uni-stat-error-source-map": {},
"uni-stat-event-logs": {}, "uni-stat-event-logs": {},
"uni-stat-event-result": {}, "uni-stat-event-result": {},
"uni-stat-events": {}, "uni-stat-events": {},