From 3c4cdc9c331a937caeca2d2d9bd14230827e819c Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 8 Aug 2022 22:03:22 +0800 Subject: [PATCH] feat: modify department id --- collection/uni-id-users/collection.json | 10 ++++++++-- collection/uni-id-users/package.json | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/collection/uni-id-users/collection.json b/collection/uni-id-users/collection.json index 4ead6cc..4e2194b 100644 --- a/collection/uni-id-users/collection.json +++ b/collection/uni-id-users/collection.json @@ -130,10 +130,11 @@ "title": "头像文件", "description": "用file类型方便使用uni-file-picker组件" }, - "department_id": { - "bsonType": "array", + "d_id": { + "bsonType": "string", "description": "部门ID", "title": "部门", + "foreignKey": "opendb-department._id", "enumType": "tree", "enum": { "collection": "opendb-department", @@ -141,6 +142,11 @@ "field": "_id as value, name as text" } }, + "e_id": { + "bsonType": "string", + "description": "企业ID", + "title": "企业" + }, "role": { "bsonType": "array", "title": "角色", diff --git a/collection/uni-id-users/package.json b/collection/uni-id-users/package.json index 6eda3aa..21f0d64 100644 --- a/collection/uni-id-users/package.json +++ b/collection/uni-id-users/package.json @@ -1,6 +1,6 @@ { "name": "@opendb/uni-id-users", - "version": "1.0.0", + "version": "1.0.1", "description": "uni-id-users", "keywords": ["uni-id", "用户管理", "登录", "注册"], "opendb": {