Commit 1dbde40c by wkliang

add api interface

parent ece0b830
......@@ -51,6 +51,24 @@ class ProductCtl extends CtlBase {
return system.getResultFail(500, err.message)
}
}
async apiList (pobj) {
try {
let res = await this.prodSve.apiList(pobj)
return res
} catch (error) {
return system.getResultFail(500, err.message)
}
}
async apiMap (pobj) {
try {
let res = await this.prodSve.apiMap(pobj)
return res
} catch (error) {
return system.getResultFail(500, err.message)
}
}
}
module.exports = ProductCtl;
\ No newline at end of file
......@@ -45,6 +45,22 @@ class ProductService extends ServiceBase {
throw error
}
}
async apiList (params) {
try {
return await this.callms("engine_product", "apiList", params)
} catch (error) {
throw error
}
}
async apiMap (params) {
try {
return await this.callms("engine_product", "apiMap", params)
} catch (error) {
throw error
}
}
}
module.exports = ProductService;
\ No newline at end of file
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