@gtrmt/document-manager-api
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@gtrmt/document-manager-api", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "稿件管理api", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -15,3 +15,13 @@ "use strict"; | ||
}, | ||
}), | ||
taskList: new api_1.DbSchema( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{ | ||
name: { | ||
fields: { name: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}) | ||
}); |
{ | ||
"name": "@gtrmt/document-manager-api", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "稿件管理api", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -11,2 +11,8 @@ import { DbSchema, createDbSchemas } from '@vmm/api'; | ||
*/ | ||
export interface ITaskList { | ||
id: string, | ||
title: string, | ||
startTime: string, | ||
endTime: string | ||
} | ||
export interface IDocumentList { | ||
@@ -16,12 +22,14 @@ id: string, | ||
content: string, | ||
publishTime: string, | ||
author: string, | ||
resource: string, | ||
clickNumber: number, | ||
commentNumber: number, | ||
pushTime: string | ||
publishTime: string, // 发布时间 | ||
author: string, // 作者 | ||
source: string, // 来源 | ||
clickNumber: number, // 点击量 | ||
commentNumber: number, // 评论量 | ||
pushTime: string, // 推送时间 | ||
examine: string // 审核 | ||
status: string // 通过不通过 | ||
} | ||
export const schemas = createDbSchemas({ | ||
documentList: new DbSchema<// 数据库定义: | ||
documentList: new DbSchema< | ||
{}>( | ||
@@ -37,2 +45,14 @@ // 数据库创建参数: | ||
}, | ||
), | ||
taskList: new DbSchema< | ||
{}>( | ||
// 数据库创建参数: | ||
{}, | ||
// 数据库索引: | ||
{ | ||
name: { | ||
fields: { name: 1 }, | ||
options: { unique: true, sparse: false, dropDups: true }, | ||
}, | ||
}, | ||
) | ||
@@ -39,0 +59,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
15408
343