@gtrmt/document-manager-api
Advanced tools
Comparing version 1.0.161 to 1.0.163
{ | ||
"name": "@gtrmt/document-manager-api", | ||
"version": "1.0.161", | ||
"version": "1.0.163", | ||
"description": "稿件管理api", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -53,2 +53,4 @@ "use strict"; | ||
importFile: api_1.HTTP([], ''), | ||
// importWeibo | ||
applySatisfied: api_1.HTTP([], ''), | ||
}; |
@@ -14,3 +14,4 @@ "use strict"; | ||
leaderNumber: api_1.DB_CRUD(DbSchema_1.schemas.leaderNumber, {}, ['user'], 'admin'), | ||
correspondent: api_1.DB_CRUD(DbSchema_1.schemas.correspondent, {}, ['user'], 'admin') | ||
correspondent: api_1.DB_CRUD(DbSchema_1.schemas.correspondent, {}, ['user'], 'admin'), | ||
satisfiedList: api_1.DB_CRUD(DbSchema_1.schemas.satisfiedList, {}, ['user'], 'admin') | ||
}; |
@@ -114,2 +114,12 @@ "use strict"; | ||
}), | ||
satisfiedList: new api_1.DbSchema( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{ | ||
created: { | ||
fields: { created: -1 }, | ||
options: { unique: false, sparse: false, dropDups: false }, | ||
}, | ||
}), | ||
}); |
{ | ||
"name": "@gtrmt/document-manager-api", | ||
"version": "1.0.161", | ||
"version": "1.0.163", | ||
"description": "稿件管理api", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -169,2 +169,7 @@ /** | ||
>([], ''), | ||
// importWeibo | ||
applySatisfied: HTTP< | ||
{ data: any }, | ||
{ data: string; task: string; userId: string, value: string } | ||
>([], ''), | ||
}; |
@@ -12,3 +12,4 @@ import { DB_CRUD, DB_R, DB_RU } from '@vmm/api'; | ||
leaderNumber: DB_CRUD(schemas.leaderNumber, {}, ['user'], 'admin'), | ||
correspondent: DB_CRUD(schemas.correspondent, {}, ['user'], 'admin') | ||
correspondent: DB_CRUD(schemas.correspondent, {}, ['user'], 'admin'), | ||
satisfiedList: DB_CRUD(schemas.satisfiedList, {}, ['user'], 'admin') | ||
}; |
@@ -149,3 +149,10 @@ import { DbSchema, createDbSchemas } from '@vmm/api'; | ||
} | ||
export interface satisfiedList { | ||
id: string, | ||
task: string, | ||
userId: string, | ||
data: string, | ||
value: string, | ||
publishTime: Date, | ||
} | ||
export const schemas = createDbSchemas({ | ||
@@ -270,2 +277,14 @@ documentList: new DbSchema<IDocumentList>( | ||
), | ||
satisfiedList: new DbSchema<satisfiedList>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{ | ||
created: { | ||
fields: { created: -1 }, | ||
options: { unique: false, sparse: false, dropDups: false }, | ||
}, | ||
}, | ||
), | ||
} | ||
@@ -272,0 +291,0 @@ ) |
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
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
28227
865