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
20ddbb1d
Commit
20ddbb1d
authored
Jul 01, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
5c12ee5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletions
+26
-1
engine-product/app/base/api/impl/op/action.js
+7
-1
engine-product/app/base/service/impl/product/productSve.js
+19
-0
No files found.
engine-product/app/base/api/impl/op/action.js
View file @
20ddbb1d
...
...
@@ -53,7 +53,7 @@ class ActionAPI extends APIBase {
break
case
'getAllDic'
:
result
=
await
this
.
productSve
.
getAllDic
(
action_body
.
types
)
break
break
;
case
'getByIds'
:
if
(
!
action_body
.
ids
)
{
return
system
.
getResult
(
null
,
'id列表不能为空'
)
...
...
@@ -63,6 +63,12 @@ class ActionAPI extends APIBase {
case
'getItems'
:
result
=
await
this
.
productSve
.
getItems
(
action_body
.
id
)
break
case
'apiList'
:
result
=
await
this
.
productSve
.
apiList
(
action_body
)
break
case
'apiMap'
:
result
=
await
this
.
productSve
.
apiMap
(
action_body
);
break
;
default
:
break
}
...
...
engine-product/app/base/service/impl/product/productSve.js
View file @
20ddbb1d
...
...
@@ -90,5 +90,23 @@ class ProductService extends ServiceBase {
}
return
result
}
async
apiList
()
{
return
[
{
key
:
"nameTwo_1"
,
name
:
"姓名二要素-e签宝"
},
{
key
:
"sign_1"
,
name
:
"手动签-e签宝"
},
{
key
:
"autoSign_1"
,
name
:
"静默签-e签宝"
},
{
key
:
"bankThree_2"
,
name
:
"银行卡三要素-兰铂旺"
},
{
key
:
"bankFour_2"
,
name
:
"银行卡四要素-兰铂旺"
}
]
}
async
apiMap
()
{
let
list
=
await
this
.
apiList
();
let
map
=
{};
for
(
let
item
of
list
)
{
map
[
item
.
key
]
=
item
;
}
return
map
;
}
}
module
.
exports
=
ProductService
;
\ No newline at end of file
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