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

eggooo

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eggooo

## 特性

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-92.31%
Maintainers
1
Weekly downloads
 
Created
Source

ooo

特性

  • 自动加载 app/schema。
  • 根据app/schema中的配置自动生成同名service和controller。

需要先定义 app/service/base.js 和 app/controller/base.js,自动生成的service和controller均继承自这两个class。

配置

config.schema = {
  extendBaseFields: true, // 是否扩展基础字段
  service: true, // 是否自动生成 service
  controller: true, // 是否自动生成 controller
  baseFields: { // 扩展基础字段
    createAt: {
      type: Date,
      name: '创建时间',
      default: Date.now,
    },
    creater: {
      type: String,
      name: '创建人',
    },
    lastUpTime: {
      type: Date,
      name: '最后更新时间',
      default: Date.now,
    },
    lastUpUser: {
      type: String,
      name: '最后修改人',
    },
  },
  extend: {
    user: {}, // 扩展user表
  },
};

Keywords

FAQs

Package last updated on 30 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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