@mshow3/basic-user-api
Advanced tools
Comparing version 1.0.12 to 1.0.14
{ | ||
"name": "@mshow3/basic-user-api", | ||
"version": "1.0.12", | ||
"version": "1.0.14", | ||
"description": "你好示例API", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -9,3 +9,3 @@ "use strict"; | ||
userGroup: api_1.DB_CRUD(DbSchema_1.schemasUser.groups, {}, ["user"], "admin"), | ||
showModule: api_1.DB_R(DbSchema_1.schemasUser.showModule, {}, ["user"], ""), | ||
pageGroup: api_1.DB_CRUD(DbSchema_1.schemasUser.pageGroups, {}, ["user"], "admin"), | ||
user: api_1.DB_R(DbSchema_1.schemasUser.user, { | ||
@@ -12,0 +12,0 @@ excludeFields: [], |
@@ -16,8 +16,8 @@ "use strict"; | ||
fields: { name: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true } | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
name: { | ||
fields: { name: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true } | ||
} | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}), | ||
@@ -30,8 +30,8 @@ // 用户组 | ||
{}), | ||
// 需要显示的模块 | ||
showModule: new api_1.DbSchema( | ||
// 页面组 | ||
pageGroups: new api_1.DbSchema( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{}) | ||
{}), | ||
}); |
{ | ||
"name": "@mshow3/basic-user-api", | ||
"version": "1.0.12", | ||
"version": "1.0.14", | ||
"description": "你好示例API", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -8,3 +8,3 @@ import { DB_CRUD, DB_R, DB_RU } from "@vmm/api"; | ||
userGroup: DB_CRUD(schemasUser.groups, {}, ["user"], "admin"), | ||
showModule: DB_R(schemasUser.showModule, {}, ["user"], ""), | ||
pageGroup: DB_CRUD(schemasUser.pageGroups, {}, ["user"], "admin"), | ||
user: DB_R( | ||
@@ -11,0 +11,0 @@ schemasUser.user, |
@@ -1,2 +0,2 @@ | ||
import { DbSchema, createDbSchemas } from "@vmm/api"; | ||
import { DbSchema, createDbSchemas } from '@vmm/api'; | ||
@@ -16,2 +16,3 @@ export interface PERM { | ||
{ | ||
id: string; // 用户唯一ID | ||
name: string; // 用户登录名称 | ||
@@ -36,9 +37,9 @@ displayName?: string; //用户显示名称 | ||
fields: { name: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true } | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
name: { | ||
fields: { name: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true } | ||
} | ||
} | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}, | ||
), | ||
@@ -49,3 +50,4 @@ // 用户组 | ||
name: string; // 用户组名称 | ||
menu: PERM[]; //用户显示名称 | ||
actor: string; // 用户组所属的角色名 | ||
pageGroup: string[]; // 页面组 | ||
}>( | ||
@@ -55,8 +57,9 @@ // 数据库创建参数: | ||
// 数据库索引: | ||
{} | ||
{}, | ||
), | ||
// 需要显示的模块 | ||
showModule: new DbSchema<// 数据库定义: | ||
// 页面组 | ||
pageGroups: new DbSchema<// 数据库定义: | ||
{ | ||
module: string; | ||
name: string; // 页面组名称 | ||
menu: PERM[]; // 页面组 | ||
}>( | ||
@@ -66,4 +69,4 @@ // 数据库创建参数: | ||
// 数据库索引: | ||
{} | ||
) | ||
{}, | ||
), | ||
}); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16463
467
1