Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
facc8784
Commit
facc8784
authored
Aug 20, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp
parent
28964490
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
36 deletions
+0
-36
gsb-marketplat/app/base/api/impl/action/template.js
+0
-20
gsb-marketplat/app/base/api/impl/action/templatelink.js
+0
-16
No files found.
gsb-marketplat/app/base/api/impl/action/template.js
View file @
facc8784
...
@@ -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
:
...
...
gsb-marketplat/app/base/api/impl/action/templatelink.js
View file @
facc8784
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment