Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gtrmt/document-manager-api

Package Overview
Dependencies
Maintainers
2
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gtrmt/document-manager-api - npm Package Compare versions

Comparing version 1.0.118 to 1.0.135

2

dist/package.json
{
"name": "@gtrmt/document-manager-api",
"version": "1.0.118",
"version": "1.0.135",
"description": "稿件管理api",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

@@ -7,3 +7,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Api = void 0;
const api_1 = require("@vmm/api");

@@ -44,2 +43,6 @@ exports.Api = {

getExamineCompete: api_1.HTTP([], ''),
// 获取领导对应的部门或人员
getRelatedPerson: api_1.HTTP([], ''),
// 日期查询通讯员发稿记录,类似统计
statisticsDoc: api_1.HTTP([], '')
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DbApi = void 0;
const api_1 = require("@vmm/api");

@@ -14,2 +13,5 @@ const DbSchema_1 = require("./DbSchema");

leaderNumber: api_1.DB_CRUD(DbSchema_1.schemas.leaderNumber, {}, ['user'], 'admin'),
taskFlow: api_1.DB_CRUD(DbSchema_1.schemas.taskFlow, {}, ['user'], 'admin'),
correspondent: api_1.DB_CRUD(DbSchema_1.schemas.correspondent, {}, ['user'], 'admin'),
summaryReport: api_1.DB_CRUD(DbSchema_1.schemas.summaryReport, {}, ['user'], 'admin'),
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.schemas = void 0;
const api_1 = require("@vmm/api");

@@ -75,3 +74,43 @@ exports.schemas = api_1.createDbSchemas({

},
}),
taskFlow: new api_1.DbSchema(
// 数据库创建参数:
{},
// 数据库索引:
{
id: {
fields: { id: 1 },
options: { unique: true, sparse: false, dropDups: true },
},
}),
correspondent: new api_1.DbSchema(
// 数据库创建参数:
{},
// 数据库索引:
{
id: {
fields: { id: 1 },
options: { unique: true, sparse: false, dropDups: true },
},
}),
summaryReport: new api_1.DbSchema(
// 数据库创建参数:
{},
// 数据库索引:
{
id: {
fields: { id: 1 },
options: { unique: true, sparse: false, dropDups: true },
},
}),
appraising: new api_1.DbSchema(
// 数据库创建参数:
{},
// 数据库索引:
{
id: {
fields: { id: 1 },
options: { unique: true, sparse: false, dropDups: true },
},
})
});
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.schemaHello = void 0;
const package_json_1 = require("../package.json");

@@ -28,2 +27,2 @@ const Api_1 = require("./api/Api");

var DbSchema_1 = require("./db/DbSchema");
Object.defineProperty(exports, "schemaHello", { enumerable: true, get: function () { return DbSchema_1.schemas; } });
exports.schemaHello = DbSchema_1.schemas;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sessions = void 0;
exports.sessions = {

@@ -5,0 +4,0 @@ res: {

{
"name": "@gtrmt/document-manager-api",
"version": "1.0.118",
"version": "1.0.135",
"description": "稿件管理api",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

@@ -34,2 +34,3 @@ /**

),
getDocumentList: HTTP<

@@ -141,2 +142,12 @@ { type: string, task: string, skip: number, deptName: string, title: string },

>([], ''),
// 获取领导对应的部门或人员
getRelatedPerson: HTTP<
{ userid: string, userName: string},
{ status: number; data?: any; msg?: string }
>([], ''),
// 日期查询通讯员发稿记录,类似统计
statisticsDoc: HTTP<
{ startDate: string, endDate: string, source: string},
{ status: number; data?: any; msg?: string }
>([], '')
};

@@ -12,2 +12,5 @@ import { DB_CRUD, DB_R, DB_RU } from '@vmm/api';

leaderNumber: DB_CRUD(schemas.leaderNumber, {}, ['user'], 'admin'),
taskFlow: DB_CRUD(schemas.taskFlow, {}, ['user'], 'admin'),
correspondent: DB_CRUD(schemas.correspondent, {}, ['user'], 'admin'),
summaryReport:DB_CRUD(schemas.summaryReport, {}, ['user'], 'admin'),
};

@@ -25,2 +25,4 @@ import { DbSchema, createDbSchemas } from '@vmm/api';

name: string,
deptIdArr: string[],
level: number,
deptName: string,

@@ -106,4 +108,52 @@ apply: Boolean,

}
// 定义任务流程表
export interface ITaskFlow {
id: string,
taskName: string,
taskType: string,
taskDetail: string,
taskEndTime: Date,
assign: string,
leaderAdvice: string,
feedback: object[], //层层下发
report: object[], //层层上报
isPublish: boolean
}
// 定义通讯员表
export interface ICorrespondent {
id: string,
name: string,
mobile: string,
dept: string,
workshop: string,
bank: string,
bankCard: string
}
// 汇总上报模块
export interface ISummaryReport {
id: string,
mobile: string,
name: string,
dept: string,
workshop: string,
bank: string,
bankCard: string,
publishTime: string[],
money: number,
platForm: string[],
idArr: string[], //稿件们id数组
title: string[],
editor: string
}
// 评优评先模块
export interface IAppraising {
id: string,
taskName: string,
startTime: string,
endTime: string,
reviewer: string,
introduce: string,
agree: number, // 通过数量
refuse: number, // 不通过数量
}
export const schemas = createDbSchemas({

@@ -186,2 +236,46 @@ documentList: new DbSchema<IDocumentList>(

},
),
taskFlow: new DbSchema<ITaskFlow>(
// 数据库创建参数:
{},
// 数据库索引:
{
id: {
fields: { id: 1 },
options: { unique: true, sparse: false, dropDups: true },
},
},
),
correspondent: new DbSchema<ICorrespondent>(
// 数据库创建参数:
{},
// 数据库索引:
{
id: {
fields: { id: 1 },
options: { unique: true, sparse: false, dropDups: true },
},
},
),
summaryReport: new DbSchema<ISummaryReport>(
// 数据库创建参数:
{},
// 数据库索引:
{
id: {
fields: { id: 1 },
options: { unique: true, sparse: false, dropDups: true },
},
},
),
appraising: new DbSchema<IAppraising>(
// 数据库创建参数:
{},
// 数据库索引:
{
id: {
fields: { id: 1 },
options: { unique: true, sparse: false, dropDups: true },
},
},
)

@@ -188,0 +282,0 @@ }

@@ -6,4 +6,2 @@ import { name, version, description } from '../package.json';

/**

@@ -10,0 +8,0 @@ * 缺省导出 api 结构

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc