webstorm模板
vscode模板
egg controller
'use strict';
const { Controller } = require("egg");
class UserController extends Controller {
async echo() {
}
}
module.exports = UserController;
egg service
'use strict';
const { Service } = require('egg');
class UserService extends Service {
async echo() {
}
}
module.exports = UserService;
egg config
'use strict';
module.exports = appInfo => {
const config = {};
/**
* @member Config#
* @property {String} KEY - description
*/
config. = {
};
return config;
};
egg plugin
exports. = {
enable: true,
package: '',
};