@mshow3/basic-user-api
Advanced tools
Comparing version
{ | ||
"name": "@mshow3/basic-user-api", | ||
"version": "1.0.58", | ||
"version": "1.0.60", | ||
"description": "你好示例API", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.groupApi = void 0; | ||
var api_1 = require("@vmm/api"); | ||
@@ -11,19 +12,19 @@ /** | ||
*/ | ||
savePageConfig: api_1.HTTP(["user"], "admin"), | ||
savePageConfig: (0, api_1.HTTP)(["user"], "admin"), | ||
/** | ||
* 显示页面配置 | ||
*/ | ||
showPageConfig: api_1.HTTP(["user"], "admin"), | ||
showPageConfig: (0, api_1.HTTP)(["user"], "admin"), | ||
/** | ||
* 保存页面的配置(发给用户前) | ||
*/ | ||
saveWebPageConfig: api_1.HTTP(["user"], "admin"), | ||
saveWebPageConfig: (0, api_1.HTTP)(["user"], "admin"), | ||
/** | ||
* 显示页面配置 | ||
*/ | ||
showWebPageConfig: api_1.HTTP(["user"], "admin"), | ||
showWebPageConfig: (0, api_1.HTTP)(["user"], "admin"), | ||
/** | ||
* 修改组信息(查询条件条件为_id的) | ||
*/ | ||
updateGroupMsg: api_1.HTTP(["user"], "admin"), | ||
updateGroupMsg: (0, api_1.HTTP)(["user"], "admin"), | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loginApi = void 0; | ||
var api_1 = require("@vmm/api"); | ||
@@ -11,15 +12,15 @@ /** | ||
*/ | ||
captcha: api_1.HTTP(['user'], ''), | ||
captcha: (0, api_1.HTTP)(['user'], ''), | ||
/** | ||
* 恢复用户会话信息,以及续订用户会话超时时间 | ||
*/ | ||
resume: api_1.HTTP(['user'], ''), | ||
resume: (0, api_1.HTTP)(['user'], ''), | ||
/** | ||
* 检测设备登录状态 单账号同时只能登录一类设备端(pc,phone) | ||
*/ | ||
resumeLogin: api_1.HTTP(['user'], ''), | ||
resumeLogin: (0, api_1.HTTP)(['user'], ''), | ||
/** | ||
* 用户注册 | ||
*/ | ||
register: api_1.HTTP(['user'], ''), | ||
register: (0, api_1.HTTP)(['user'], ''), | ||
/** | ||
@@ -29,7 +30,7 @@ * 使用用户名和密码进行登录 | ||
*/ | ||
pwLogin: api_1.HTTP(['user'], ''), | ||
pwLogin: (0, api_1.HTTP)(['user'], ''), | ||
/** | ||
* 三方登录 | ||
*/ | ||
thirdLogin: api_1.HTTP(['user', 'thirdLogin'], ''), | ||
thirdLogin: (0, api_1.HTTP)(['user', 'thirdLogin'], ''), | ||
/** | ||
@@ -39,3 +40,3 @@ * 绑定三方账户 | ||
*/ | ||
bindThird: api_1.HTTP(['user', 'thirdLogin'], 'user'), | ||
bindThird: (0, api_1.HTTP)(['user', 'thirdLogin'], 'user'), | ||
/** | ||
@@ -49,9 +50,9 @@ * 解除用户三方账号绑定(用于切换绑定账号)---> 前端直接删除 | ||
*/ | ||
musemu_sso: api_1.HTTP(['user'], ''), | ||
musemu_sso: (0, api_1.HTTP)(['user'], ''), | ||
/* | ||
* 用户注册 | ||
*/ | ||
setManager: api_1.HTTP(['user'], ''), | ||
setManager: (0, api_1.HTTP)(['user'], ''), | ||
// 查询用户信息(_id)为查询条件) | ||
searchUserBy_Id: api_1.HTTP(['user'], ''), | ||
searchUserBy_Id: (0, api_1.HTTP)(['user'], ''), | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DbApi = void 0; | ||
var api_1 = require("@vmm/api"); | ||
@@ -7,11 +8,11 @@ var DbSchema_1 = require("./DbSchema"); | ||
exports.DbApi = { | ||
userAdmin: api_1.DB_CRUD(DbSchema_1.schemasUser.user, {}, ["user"], "admin"), | ||
userGroup: api_1.DB_CRUD(DbSchema_1.schemasUser.groups, {}, ["user"], "admin"), | ||
pageGroup: api_1.DB_CRUD(DbSchema_1.schemasUser.pageGroups, {}, ["user"], "admin"), | ||
extBlackList: api_1.DB_CRUD(DbSchema_1.schemasUser.blackList, {}, [], ""), | ||
user: api_1.DB_R(DbSchema_1.schemasUser.user, { | ||
userAdmin: (0, api_1.DB_CRUD)(DbSchema_1.schemasUser.user, {}, ["user"], "admin"), | ||
userGroup: (0, api_1.DB_CRUD)(DbSchema_1.schemasUser.groups, {}, ["user"], "admin"), | ||
pageGroup: (0, api_1.DB_CRUD)(DbSchema_1.schemasUser.pageGroups, {}, ["user"], "admin"), | ||
extBlackList: (0, api_1.DB_CRUD)(DbSchema_1.schemasUser.blackList, {}, [], ""), | ||
user: (0, api_1.DB_R)(DbSchema_1.schemasUser.user, { | ||
excludeFields: [], | ||
sessionMatch: { name: "{{user.client.name}}" } | ||
}, ["user"], ""), | ||
allUser: api_1.DB_R(DbSchema_1.schemasUser.user, { | ||
allUser: (0, api_1.DB_R)(DbSchema_1.schemasUser.user, { | ||
excludeFields: ["pwHash", "mobile", "email"], | ||
@@ -18,0 +19,0 @@ sessionMatch: {} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.schemasUser = void 0; | ||
var api_1 = require("@vmm/api"); | ||
@@ -7,3 +8,3 @@ /** | ||
*/ | ||
exports.schemasUser = api_1.createDbSchemas({ | ||
exports.schemasUser = (0, api_1.createDbSchemas)({ | ||
// 用户数据库 | ||
@@ -10,0 +11,0 @@ user: new api_1.DbSchema( |
@@ -13,6 +13,14 @@ "use strict"; | ||
}; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.dbSchemas = void 0; | ||
var package_json_1 = require("../package.json"); | ||
@@ -38,2 +46,2 @@ var loginApi_1 = require("./api/loginApi"); | ||
exports.dbSchemas = __assign({}, DbSchema_1.schemasUser); | ||
__export(require("./db/DbSchema")); | ||
__exportStar(require("./db/DbSchema"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sessions = void 0; | ||
exports.sessions = { | ||
@@ -15,6 +16,6 @@ user: { | ||
loginTime: "", | ||
captcha: "", | ||
captcha: "", // 用户校验码 | ||
}, | ||
server: { | ||
captcha: "", | ||
captcha: "", // 用户校验码 | ||
}, | ||
@@ -27,9 +28,9 @@ }, | ||
imgUrl: "", | ||
nickName: "", | ||
nickName: "", // 用户显示名称 | ||
}, | ||
server: { | ||
moduleName: "", | ||
id: "", | ||
id: "", // 三方用户id | ||
}, | ||
}, | ||
}; |
{ | ||
"name": "@mshow3/basic-user-api", | ||
"version": "1.0.58", | ||
"version": "1.0.60", | ||
"description": "你好示例API", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
24155
3.33%698
1.9%