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
1
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.2 to 1.0.3

2

dist/package.json
{
"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 @@ }

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