@mshow3/basic-user-api
Advanced tools
Comparing version 1.0.18 to 1.0.28
{ | ||
"name": "@mshow3/basic-user-api", | ||
"version": "1.0.18", | ||
"version": "1.0.28", | ||
"description": "你好示例API", | ||
"main": "dist/src/index.js", | ||
"types": "./src/index.ts", | ||
"types": "src/index.ts", | ||
"moduleType": "api", | ||
@@ -16,3 +16,6 @@ "license": "MIT", | ||
"@vmm/api": "^1.0.7" | ||
}, | ||
"dependencies": { | ||
"@mshow3/basic-user-api": "^1.0.23" | ||
} | ||
} |
@@ -29,3 +29,3 @@ "use strict"; | ||
{}), | ||
// 页面组 | ||
// 页面权限组 | ||
pageGroups: new api_1.DbSchema( | ||
@@ -32,0 +32,0 @@ // 数据库创建参数: |
@@ -7,3 +7,4 @@ "use strict"; | ||
const package_json_1 = require("../package.json"); | ||
const Api_1 = require("./api/Api"); | ||
const loginApi_1 = require("./api/loginApi"); | ||
const groupApi_1 = require("./api/groupApi"); | ||
const DbApi_1 = require("./db/DbApi"); | ||
@@ -17,3 +18,4 @@ const SessionDefine_1 = require("./session/SessionDefine"); | ||
api: { | ||
...Api_1.Api, | ||
...loginApi_1.loginApi, | ||
...groupApi_1.groupApi | ||
}, | ||
@@ -20,0 +22,0 @@ db: { |
{ | ||
"name": "@mshow3/basic-user-api", | ||
"version": "1.0.18", | ||
"version": "1.0.28", | ||
"description": "你好示例API", | ||
"main": "dist/src/index.js", | ||
"types": "./src/index.ts", | ||
"types": "src/index.ts", | ||
"moduleType": "api", | ||
@@ -16,3 +16,6 @@ "license": "MIT", | ||
"@vmm/api": "^1.0.7" | ||
}, | ||
"dependencies": { | ||
"@mshow3/basic-user-api": "^1.0.23" | ||
} | ||
} |
@@ -19,4 +19,4 @@ import { DbSchema, createDbSchemas } from '@vmm/api'; | ||
pwHash: string; // 用户密码 | ||
actor: string[]; // 用户角色 | ||
group?: string[]; // 用户分组 | ||
// actor: string[]; // 用户角色 | ||
group: string[]; // 用户分组-->actor,menu | ||
avatar?: string; // 用户头像 | ||
@@ -27,3 +27,4 @@ tag?: string[]; // 用户标签 | ||
permissions?: {}; // 自定义权限 | ||
thirdAccounts?: string[]; // 第三方账户登录信息 | ||
// thirdAccounts?: string[]; // 第三方账户登录信息 | ||
// 三方moduleName:id | ||
extra?: {}; // 扩展信息 | ||
@@ -50,3 +51,5 @@ }>( | ||
actor: string; // 用户组所属的角色名 | ||
pageGroup: string[]; // 页面组 | ||
pageGroup: string[]; // 页面权限组id | ||
bBase?:Boolean; // 基础分组,无法删除、修改(基础访客分组) | ||
bDefault?:Boolean; // 默认分组,用户注册时默认分配的分组 | ||
}>( | ||
@@ -58,3 +61,3 @@ // 数据库创建参数: | ||
), | ||
// 页面组 | ||
// 页面权限组 | ||
pageGroups: new DbSchema<// 数据库定义: | ||
@@ -64,2 +67,3 @@ { | ||
menu: IPERMISSIONS[]; // 页面组 | ||
bBase?:Boolean; // 基础分组,无法删除、修改(基础访客:登录页面) | ||
}>( | ||
@@ -66,0 +70,0 @@ // 数据库创建参数: |
import { name, version, description } from '../package.json'; | ||
import { Api } from './api/Api'; | ||
import { loginApi } from './api/loginApi'; | ||
import { groupApi } from './api/groupApi'; | ||
import { DbApi } from './db/DbApi'; | ||
@@ -12,3 +13,4 @@ import { sessions } from './session/SessionDefine'; | ||
api: { | ||
...Api, | ||
...loginApi, | ||
...groupApi | ||
}, | ||
@@ -15,0 +17,0 @@ db: { |
Sorry, the diff of this file is not supported yet
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
19765
21
548
1
1