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
3e28f572
Commit
3e28f572
authored
Aug 25, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据中心工商接口
parent
b44426b6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
0 deletions
+86
-0
center-channel/app/base/api/impl/action/icbcTools.js
+48
-0
center-channel/app/base/service/impl/trademark/icbcSve.js
+36
-0
center-channel/app/front/entry/public/apidoc/README.md
+2
-0
center-channel/app/front/entry/public/apidoc/opTrademark/newicbcSearch.md
+0
-0
No files found.
center-channel/app/base/api/impl/action/icbcTools.js
0 → 100644
View file @
3e28f572
var
WEBBase
=
require
(
"../../web.base"
);
var
system
=
require
(
"../../../system"
);
class
IcbcToolsAPI
extends
WEBBase
{
constructor
()
{
super
();
this
.
icbcSve
=
system
.
getObject
(
"service.trademark.icbcSve"
);
}
/**
* 接口跳转-POST请求
* action_process 执行的流程
* action_type 执行的类型
* action_body 执行的参数
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionProcess
)
{
return
system
.
getResult
(
null
,
"actionProcess参数不能为空"
);
}
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
pobj
.
actionBody
,
req
);
return
result
;
}
async
opActionProcess
(
pobj
,
action_type
,
action_body
,
req
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
case
"getCompanyListByVague"
:
//企业模糊查询
opResult
=
await
this
.
icbcSve
.
getCompanyListByVague
(
req
.
app
,
action_body
.
opStr
);
break
;
case
"getDetailByCompanyName"
:
//企业详情
opResult
=
await
this
.
icbcSve
.
getDetailByCompanyName
(
req
.
app
,
action_body
.
opStr
);
break
;
case
"getCompanyChangeByName"
:
//企业变更记录查询
opResult
=
await
this
.
icbcSve
.
getCompanyChangeByName
(
req
.
app
,
action_body
.
opStr
);
break
;
case
"getCompanyIcpByName"
:
//工商icp证照查询
opResult
=
await
this
.
icbcSve
.
getCompanyIcpByName
(
req
.
app
,
action_body
.
opStr
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
IcbcToolsAPI
;
\ No newline at end of file
center-channel/app/base/service/impl/trademark/icbcSve.js
0 → 100644
View file @
3e28f572
const
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
AppServiceBase
=
require
(
"../../app.base"
);
class
IcbcService
extends
AppServiceBase
{
constructor
()
{
super
();
this
.
zcApiUrl
=
settings
.
reqZcApi
();
}
async
getCompanyListByVague
(
obj
,
req
)
{
var
url
=
this
.
zcApiUrl
+
"api/tool/toolApi/getCompanyListByVague"
;
return
await
this
.
opReqResult
(
url
,
obj
,
req
);
}
//企业模糊查询
async
getDetailByCompanyName
(
obj
,
req
)
{
var
url
=
this
.
zcApiUrl
+
"api/tool/toolApi/getDetailByCompanyName"
;
return
await
this
.
opReqResult
(
url
,
queryobj
,
req
);
}
//企业详情
async
getNclByLikeNameAndNcl
(
queryobj
,
req
)
{
var
url
=
this
.
zcApiUrl
+
"api/tool/toolApi/getNclByLikeNameAndNcl"
;
return
await
this
.
opReqResult
(
url
,
queryobj
,
req
);
}
//企业变更记录查询
async
getCompanyChangeByName
(
queryobj
,
req
)
{
var
url
=
this
.
zcApiUrl
+
"api/tool/toolApi/getCompanyChangeByName"
;
return
await
this
.
opReqResult
(
url
,
queryobj
,
req
);
}
//工商icp证照查询
async
getCompanyIcpByName
(
queryobj
,
req
)
{
var
url
=
this
.
zcApiUrl
+
"api/tool/toolApi/getCompanyIcpByName"
;
return
await
this
.
opReqResult
(
url
,
queryobj
,
req
);
}
}
module
.
exports
=
IcbcService
;
center-channel/app/front/entry/public/apidoc/README.md
View file @
3e28f572
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
## 1. 工商检索相关接口
## 1. 工商检索相关接口
1
[
工商检索中心
](
doc/api/opTrademark/icbcSearch.md
)
1
[
工商检索中心
](
doc/api/opTrademark/icbcSearch.md
)
2
[
数据中心工商接口
](
doc/api/opTrademark/newicbcSearch.md
)
## 2. 商标检索相关接口
## 2. 商标检索相关接口
1
[
商标检索中心
](
doc/api/opTrademark/tmSearch.md
)
1
[
商标检索中心
](
doc/api/opTrademark/tmSearch.md
)
...
...
center-channel/app/front/entry/public/apidoc/opTrademark/newicbcSearch.md
0 → 100644
View file @
3e28f572
This diff is collapsed.
Click to expand it.
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