steedos-platform/packages/accounts/package.service.js
2021-03-31 16:48:48 +08:00

72 lines
1.1 KiB
JavaScript

"use strict";
const project = require('./package.json');
const packageName = project.name;
const packageLoader = require('@steedos/service-meteor-package-loader');
const init = require('./lib').init;
/**
* @typedef {import('moleculer').Context} Context Moleculer's Context
* 软件包服务启动后也需要抛出事件。
*/
module.exports = {
name: packageName,
namespace: "steedos",
mixins: [packageLoader],
/**
* Settings
*/
settings: {
packageInfo: {
}
},
/**
* Dependencies
*/
dependencies: [],
/**
* Actions
*/
actions: {
},
/**
* Events
*/
events: {
},
/**
* Methods
*/
methods: {
init: function (context) {
init(context);
}
},
/**
* Service created lifecycle event handler
*/
async created() {
},
/**
* Service started lifecycle event handler
*/
async started() {
},
/**
* Service stopped lifecycle event handler
*/
async stopped() {
}
};