Commit facc8784 by 庄冰

temp

parent 28964490
...@@ -30,36 +30,16 @@ class Template extends APIBase { ...@@ -30,36 +30,16 @@ class Template extends APIBase {
pobj.clientIp = req.clientIp; pobj.clientIp = req.clientIp;
pobj.xctx = req.xctx; pobj.xctx = req.xctx;
switch (action_type) { switch (action_type) {
case "test"://测试
opResult = system.getResultSuccess("测试接口");
break;
// case "createTemplate"://创建模板
// opResult = await this.templateinfoSve.createTemplate(pobj);
// break;
case "editTemplateContent"://修改模板内容 case "editTemplateContent"://修改模板内容
opResult = await this.templateinfoSve.editTemplateContent(pobj); opResult = await this.templateinfoSve.editTemplateContent(pobj);
break; break;
// case "getLinkConfigParams"://获取模板链接配置参数
// opResult = await this.templatelinkSve.getLinkConfigParams(pobj);
// break;
// case "updateSwitchStatus"://修改模板启用状态
// opResult = await this.templateinfoSve.updateSwitchStatus(pobj);
// break;
// case "findAndCountAll"://模板列表查询
// pobj.actionBody.company_id = pobj.company_id;
// opResult = await this.templateinfoSve.findAndCountAll(pobj.actionBody);
// break;
case "findOneByCode"://模板查询 case "findOneByCode"://模板查询
opResult = await this.templateinfoSve.getTemplateInfoByCode(pobj); opResult = await this.templateinfoSve.getTemplateInfoByCode(pobj);
break; break;
// case "editTemplateTdk"://编辑模板TDK
// opResult = await this.templateinfoSve.editTemplateTdk(pobj);
// break;
case "getTemplateAndLinkInfo"://根据链接参数获取模板链接信息 case "getTemplateAndLinkInfo"://根据链接参数获取模板链接信息
opResult = await this.templatelinkSve.getTemplateAndLinkInfo2(pobj); opResult = await this.templatelinkSve.getTemplateAndLinkInfo2(pobj);
break; break;
case "submitFormRecord"://提交表单记录 case "submitFormRecord"://提交表单记录
var a=0;
opResult = await this.formsubmitrecordSve.submitFormRecord(pobj); opResult = await this.formsubmitrecordSve.submitFormRecord(pobj);
break; break;
default: default:
......
...@@ -30,22 +30,6 @@ class Templatelink extends APIBase { ...@@ -30,22 +30,6 @@ class Templatelink extends APIBase {
case "test"://测试 case "test"://测试
opResult = system.getResultSuccess("测试接口"); opResult = system.getResultSuccess("测试接口");
break; break;
// case "createTemplateLink"://创建模板链接
// opResult = await this.templatelinkSve.createTemplateLink(pobj);
// break;
// case "editTemplateLink"://修改模板链接
// opResult = await this.templatelinkSve.editTemplateLink(pobj);
// break;
// case "updateLaunchStatus"://修改投放状态
// opResult = await this.templatelinkSve.updateLaunchStatus(pobj);
// break;
// case "findAndCountAll"://链接列表查询
// pobj.actionBody.company_id = pobj.company_id;
// opResult = await this.templatelinkSve.findAndCountAll(pobj.actionBody);
// break;
// case "findOneByCode"://获取模板链接详情数据
// opResult = await this.templatelinkSve.findOneByCode(pobj);
// break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
break; break;
......
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