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
f3223a8a
Commit
f3223a8a
authored
Aug 10, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tempconfig
parent
b201a75e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
4 deletions
+47
-4
gsb-marketplat/app/base/api/impl/action/template.js
+4
-4
gsb-marketplat/app/base/api/impl/action/templateconfig.js
+43
-0
No files found.
gsb-marketplat/app/base/api/impl/action/template.js
View file @
f3223a8a
...
@@ -41,10 +41,10 @@ class Template extends APIBase {
...
@@ -41,10 +41,10 @@ class Template extends APIBase {
// case "updateSwitchStatus"://修改模板启用状态
// case "updateSwitchStatus"://修改模板启用状态
// opResult = await this.templateinfoSve.updateSwitchStatus(pobj);
// opResult = await this.templateinfoSve.updateSwitchStatus(pobj);
// break;
// break;
//
case "findAndCountAll"://模板列表查询
case
"findAndCountAll"
:
//模板列表查询
//
pobj.actionBody.company_id = pobj.company_id;
pobj
.
actionBody
.
company_id
=
pobj
.
company_id
;
//
opResult = await this.templateinfoSve.findAndCountAll(pobj.actionBody);
opResult
=
await
this
.
templateinfoSve
.
findAndCountAll
(
pobj
.
actionBody
);
//
break;
break
;
case
"findOneByCode"
:
//模板查询
case
"findOneByCode"
:
//模板查询
opResult
=
await
this
.
templateinfoSve
.
findOneByCode
(
pobj
);
opResult
=
await
this
.
templateinfoSve
.
findOneByCode
(
pobj
);
break
;
break
;
...
...
gsb-marketplat/app/base/api/impl/action/templateconfig.js
0 → 100644
View file @
f3223a8a
const
APIBase
=
require
(
"../../api.base"
);
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
/**
* 用户端调用订单相关接口
*/
class
Templateconfig
extends
APIBase
{
constructor
()
{
super
();
// this.templateinfoSve = system.getObject("service.template.templateinfoSve");
// this.templatelinkSve = system.getObject("service.template.templatelinkSve");
}
/**
* 接口跳转-POST请求
* action_process 执行的流程
* action_type 执行的类型
* action_body 执行的参数
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
req
);
return
result
;
}
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
var
opResult
=
null
;
var
self
=
this
;
pobj
.
clientIp
=
req
.
clientIp
;
pobj
.
xctx
=
req
.
xctx
;
switch
(
action_type
)
{
case
"test"
:
//测试
opResult
=
system
.
getResultSuccess
(
"测试接口"
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
Templateconfig
;
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