@xj-hospital/data-dict-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@xj-hospital/data-dict-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "西京系统设置api", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -7,28 +7,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Api = void 0; | ||
var api_1 = require("@vmm/api"); | ||
exports.Api = { | ||
// hello: HTTP< | ||
// { | ||
// /** | ||
// * 参数 1 | ||
// */ | ||
// arg1: number; | ||
// /** | ||
// * 参数 2 | ||
// */ | ||
// arg2: number; | ||
// }, | ||
// { | ||
// /** | ||
// * 错误信息 | ||
// */ | ||
// err?: string; | ||
// } | ||
// >([], ''), | ||
// /** | ||
// * 超级用户 hello 测试,必须要求 admin 用户角色 | ||
// */ | ||
// adminHello: HTTP<{ arg1: number; arg2: number }, { err?: string }>( | ||
// ['user'], | ||
// 'admin', | ||
// ), | ||
sysLog: api_1.HTTP(["user"], ""), | ||
clearSysLog: api_1.HTTP(["user"], ""), | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DbApi = void 0; | ||
var api_1 = require("@vmm/api"); | ||
@@ -4,0 +5,0 @@ var DbSchema_1 = require("./DbSchema"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.schemas = void 0; | ||
var api_1 = require("@vmm/api"); | ||
@@ -26,3 +27,8 @@ exports.schemas = api_1.createDbSchemas({ | ||
} | ||
}) | ||
}), | ||
sysLogs: new api_1.DbSchema( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{}), | ||
}); |
@@ -14,2 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.schemaHello = void 0; | ||
var package_json_1 = require("../package.json"); | ||
@@ -33,2 +34,2 @@ var Api_1 = require("./api/Api"); | ||
var DbSchema_1 = require("./db/DbSchema"); | ||
exports.schemaHello = DbSchema_1.schemas; | ||
Object.defineProperty(exports, "schemaHello", { enumerable: true, get: function () { return DbSchema_1.schemas; } }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sessions = void 0; | ||
exports.sessions = {}; |
{ | ||
"name": "@xj-hospital/data-dict-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "西京系统设置api", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -9,28 +9,44 @@ /** | ||
export const Api = { | ||
// hello: HTTP< | ||
// { | ||
// /** | ||
// * 参数 1 | ||
// */ | ||
// arg1: number; | ||
// /** | ||
// * 参数 2 | ||
// */ | ||
// arg2: number; | ||
// }, | ||
// { | ||
// /** | ||
// * 错误信息 | ||
// */ | ||
// err?: string; | ||
// } | ||
// >([], ''), | ||
// /** | ||
// * 超级用户 hello 测试,必须要求 admin 用户角色 | ||
// */ | ||
// adminHello: HTTP<{ arg1: number; arg2: number }, { err?: string }>( | ||
// ['user'], | ||
// 'admin', | ||
// ), | ||
sysLog: HTTP< | ||
{ | ||
/** | ||
* 用户日志事件,事件简述 如 场地管理-增加场地 (一级菜单-二级菜单) | ||
*/ | ||
action: string; | ||
/** | ||
* 用户操作数据库表名 如 会议表 请使用中文描述 | ||
*/ | ||
actionDbName?: string; | ||
/** | ||
* 用户操作数据库的内容 如 { 第五会议室 } 等,使用中文描述 | ||
*/ | ||
actionContent?: string; | ||
/** | ||
/** | ||
* 操作结果,可以为错误代码,操作失败描述等,成功则为null | ||
*/ | ||
actErr: string | null; | ||
}, | ||
{ | ||
/** | ||
* 错误信息 | ||
*/ | ||
err?: string; | ||
} | ||
>(["user"], ""), | ||
clearSysLog: HTTP< | ||
{ | ||
/** | ||
* 清除多少天的日志 | ||
*/ | ||
day: number; | ||
}, | ||
{ | ||
/** | ||
* 错误信息 | ||
*/ | ||
err?: string; | ||
} | ||
>(["user"], ""), | ||
}; |
@@ -74,2 +74,32 @@ import { DbSchema, createDbSchemas } from '@vmm/api'; | ||
export interface ILog { | ||
/** | ||
* 用户日志事件,事件简述 如 场地管理-增加场地 (一级菜单-二级菜单) | ||
*/ | ||
action: string; | ||
/** | ||
* 用户操作数据库表名 如 会议表 请使用中文描述 | ||
*/ | ||
actionDbName?: string; | ||
/** | ||
* 用户操作数据库的内容 如 { 第五会议室 } 等,使用中文描述 | ||
*/ | ||
actionContent?: string; | ||
/** | ||
* 操作结果,可以为错误代码,操作失败描述等,成功则为null | ||
*/ | ||
actErr: string | null; | ||
/** | ||
* 操作人员信息 | ||
*/ | ||
actorName: string; | ||
actorId: string; | ||
/** | ||
* 操作IP | ||
*/ | ||
ip: string; | ||
createdTime: Date; | ||
} | ||
export const schemas = createDbSchemas({ | ||
@@ -88,3 +118,3 @@ // 课题 | ||
//药品 | ||
Drug: new DbSchema<IDrug>({},{ | ||
Drug: new DbSchema<IDrug>({}, { | ||
id: { | ||
@@ -98,3 +128,9 @@ fields: { | ||
} | ||
}) | ||
}), | ||
sysLogs: new DbSchema<ILog>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{}, | ||
), | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18376
426
1