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
6b4ac18e
Commit
6b4ac18e
authored
Jan 13, 2020
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
cf71f2c1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
0 deletions
+86
-0
igirl-zcapi/app/base/api/impl/action/patentQuery.js
+86
-0
igirl-zcapi/app/base/api/impl/patent/chinapatentsearch.js
+0
-0
igirl-zcapi/app/base/api/impl/patent/copyrightsearch.js
+0
-0
No files found.
igirl-zcapi/app/base/api/impl/action/patentQuery.js
0 → 100644
View file @
6b4ac18e
var
APIBase
=
require
(
"../../api.base"
);
var
system
=
require
(
"../../../system"
);
class
PatentQueryAPI
extends
APIBase
{
constructor
()
{
super
();
this
.
cpatentsearchApi
=
system
.
getObject
(
"api.patent.chinapatentsearch"
);
this
.
cpatentaggApi
=
system
.
getObject
(
"api.patent.cpatentaggregations"
);
this
.
caffairsearchApi
=
system
.
getObject
(
"api.patent.chinaaffairsearch"
);
this
.
wpatentsearchApi
=
system
.
getObject
(
"api.patent.wordpatentsearch"
);
this
.
wpatentaggApi
=
system
.
getObject
(
"api.patent.wpatentaggregations"
);
this
.
copyrightApi
=
system
.
getObject
(
"api.patent.copyrightsearch"
);
}
/**
* 接口跳转-POST请求
* action_type 执行的类型
* action_body 执行的参数
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
var
result
=
await
this
.
opActionProcess
(
pobj
.
actionType
,
pobj
.
actionBody
);
return
result
;
}
async
opActionProcess
(
action_type
,
action_body
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
case
"test"
:
//测试
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
break
;
case
"CommomSearchbyApplicant"
:
//根据申请人查询聚合
opResult
=
await
this
.
cpatentsearchApi
.
CommomSearchbyApplicant
(
action_body
);
break
;
case
"paCountByApplicantName"
:
//根据申请人获取专利量
opResult
=
await
this
.
cpatentsearchApi
.
paCountByApplicantName
(
action_body
);
break
;
case
"paShortListByApplicantName"
:
//根据申请人获取专利详情列表
opResult
=
await
this
.
cpatentsearchApi
.
paShortListByApplicantName
(
action_body
);
break
;
case
"paDetailsBypubNo"
:
//根据公开或授权号获取专利详情列表
opResult
=
await
this
.
cpatentsearchApi
.
paDetailsBypubNo
(
action_body
);
break
;
case
"paDetailsByfilingNo"
:
//根据申请号获取专利详情列表
opResult
=
await
this
.
cpatentsearchApi
.
paDetailsByfilingNo
(
action_body
);
break
;
case
"softwareCountByAuthor"
:
//根据公司名称得到软著量
opResult
=
await
this
.
copyrightApi
.
softwareCountByAuthor
(
action_body
);
break
;
case
"softwareListByAuthor"
:
//根据公司名称得到软著详情
opResult
=
await
this
.
copyrightApi
.
softwareListByAuthor
(
action_body
);
break
;
case
"softwareDetailsByregNum"
:
//根据登记号获取软著详情
opResult
=
await
this
.
copyrightApi
.
softwareDetailsByregNum
(
action_body
);
break
;
case
"worksCountByAuthor"
:
//根据公司名称得到著作权量
opResult
=
await
this
.
copyrightApi
.
worksCountByAuthor
(
action_body
);
break
;
case
"worksListByAuthor"
:
//根据公司名称得到著作权详情
opResult
=
await
this
.
copyrightApi
.
worksListByAuthor
(
action_body
);
break
;
case
"worksDetailsByregNum"
:
//根据登记号获取著作权详情
opResult
=
await
this
.
copyrightApi
.
worksDetailsByregNum
(
action_body
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
PatentQueryAPI
;
var
tesk
=
new
PatentQueryAPI
();
var
parm
=
{
actionType
:
"paCountByApplicantName"
,
actionBody
:{
applicant_name
:
"上海华虹宏力半导体制造有限公司"
}
};
tesk
.
springBoard
(
parm
).
then
(
function
(
result
){
console
.
log
(
result
);
// console.log(result.data.rows[0]);
}).
catch
(
function
(
e
){
console
.
log
(
e
);
});
\ No newline at end of file
igirl-zcapi/app/base/api/impl/patent/chinapatentsearch.js
View file @
6b4ac18e
This diff is collapsed.
Click to expand it.
igirl-zcapi/app/base/api/impl/patent/copyrightsearch.js
0 → 100644
View file @
6b4ac18e
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