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
820e1316
Commit
820e1316
authored
Jul 02, 2020
by
wkliang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'engine-product' of gitlab.gongsibao.com:jiangyong/zhichan into engine-product
parents
0f5b1611
a0b4fade
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
engine-product/app/base/api/impl/op/action.js
+9
-3
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 @
820e1316
...
@@ -53,16 +53,22 @@ class ActionAPI extends APIBase {
...
@@ -53,16 +53,22 @@ class ActionAPI extends APIBase {
break
break
case
'getAllDic'
:
case
'getAllDic'
:
result
=
await
this
.
productSve
.
getAllDic
(
action_body
.
types
)
result
=
await
this
.
productSve
.
getAllDic
(
action_body
.
types
)
break
break
;
case
'getByIds'
:
case
'getByIds'
:
if
(
!
action_body
.
ids
)
{
if
(
!
action_body
.
ids
)
{
return
system
.
getResult
(
null
,
'id列表不能为空'
)
return
system
.
getResult
(
null
,
'id列表不能为空'
)
}
}
result
=
await
this
.
productSve
.
getByIds
(
action_body
.
ids
)
result
=
await
this
.
productSve
.
getByIds
(
action_body
.
ids
)
break
break
;
case
'getItems'
:
case
'getItems'
:
result
=
await
this
.
productSve
.
getItems
(
action_body
.
id
)
result
=
await
this
.
productSve
.
getItems
(
action_body
.
id
)
break
break
;
case
'apiList'
:
result
=
await
this
.
productSve
.
apiList
(
action_body
);
break
;
case
'apiMap'
:
result
=
await
this
.
productSve
.
apiMap
(
action_body
);
break
;
default
:
default
:
break
break
}
}
...
...
engine-product/app/base/service/impl/product/productSve.js
View file @
820e1316
...
@@ -110,5 +110,23 @@ class ProductService extends ServiceBase {
...
@@ -110,5 +110,23 @@ class ProductService extends ServiceBase {
}
}
return
result
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
;
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