Commit 160bbf45 by 任晓松

获取渠道和产品

parent 9303114d
...@@ -50,6 +50,9 @@ class ProductAPI extends WEBBase { ...@@ -50,6 +50,9 @@ class ProductAPI extends WEBBase {
case "getRegProducePrice": case "getRegProducePrice":
opResult = await this.utilsProductSve.getRegProducePrice(pobj,pobj.actionBody) opResult = await this.utilsProductSve.getRegProducePrice(pobj,pobj.actionBody)
break; break;
case "getAllProducts":
opResult = await this.utilsProductSve.getAllProducts(pobj);
break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
} }
......
...@@ -112,6 +112,9 @@ class AccessAuthAPI extends WEBBase { ...@@ -112,6 +112,9 @@ class AccessAuthAPI extends WEBBase {
case "logout"://用户退出--已经废弃,前端自己进行移除userpin信息 case "logout"://用户退出--已经废弃,前端自己进行移除userpin信息
opResult = await this.utilsAuthSve.userLogout(pobj, pobj.actionBody); opResult = await this.utilsAuthSve.userLogout(pobj, pobj.actionBody);
break; break;
case "getAllChannels":
opResult = await this.utilsAuthSve.getAllChannels(pobj);
break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
break; break;
......
...@@ -293,5 +293,15 @@ class UtilsAuthService extends AppServiceBase { ...@@ -293,5 +293,15 @@ class UtilsAuthService extends AppServiceBase {
return result; return result;
} }
/**
* 获取所有渠道
* @returns {Promise<void>}
*/
async getAllChannels(pobj){
let url= this.centerAppUrl + 'auth/accessAuth/getAllChannels';
let result = await this.restPostUrl(pobj,url);
return result
}
} }
module.exports = UtilsAuthService; module.exports = UtilsAuthService;
...@@ -142,6 +142,17 @@ class UtilsProductService extends AppServiceBase { ...@@ -142,6 +142,17 @@ class UtilsProductService extends AppServiceBase {
let url = settings.centerAppUrl() + "action/opProduct/springBoard"; let url = settings.centerAppUrl() + "action/opProduct/springBoard";
return await this.restPostUrl(pobj,url); return await this.restPostUrl(pobj,url);
} }
/**
* 获取全部产品
* @returns {Promise<{msg: string, data, bizmsg: *|string, status: number}|any>}
*/
async getAllProducts(pobj){
let url = settings.centerAppUrl() + 'action/opProduct/springBoard';
pobj.actionType = 'getAllProducts'
let result = await this.restPostUrl(pobj,url);
return result;
}
} }
module.exports = UtilsProductService; module.exports = UtilsProductService;
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