Commit 3135940d by 王昆

gsb

parent 705f563b
......@@ -4,6 +4,9 @@ const settings = require("../../../../config/settings")
class MerchantService extends ServiceBase {
constructor() {
super("merchant", ServiceBase.getDaoName(MerchantService));
// 举例
this.oplogSve = system.getObject("service.common.oplogSve");
}
async apiNameList(params) {
......
const system = require("../../../system");
const ServiceBase = require("../../sve2.base")
const settings = require("../../../../config/settings")
class SignService extends ServiceBase {
constructor() {
}
async apiNameList(params) {
try {
return await this.nameList(params);
} catch (error) {
console.log(error)
return system.getResult(null, "接口异常");
}
}
// -----------------------以此间隔,上面为API,下面为service---------------------------------
async nameList() {
var nameList = await this.dao.nameList();
return system.getResultSuccess(nameList);
}
}
super("merchant", ServiceBase.getDaoName(SignService));
module.exports = MerchantService;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment