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
bf9e72fe
Commit
bf9e72fe
authored
Jan 14, 2020
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
02b07289
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
132 additions
and
0 deletions
+132
-0
center-channel/app/base/api/impl/action/licenseQuery.js
+42
-0
center-channel/app/base/api/impl/action/patentQuery.js
+69
-0
center-channel/app/base/service/impl/licenses/licenseSve.js
+21
-0
center-channel/app/base/service/impl/patent/patentycSve.js
+0
-0
center-channel/app/front/entry/public/apidoc/licensesDesc/license.md
+0
-0
center-channel/app/front/entry/public/apidoc/patentDesc/patent.md
+0
-0
No files found.
center-channel/app/base/api/impl/action/licenseQuery.js
0 → 100644
View file @
bf9e72fe
var
APIBase
=
require
(
"../../api.base"
);
var
system
=
require
(
"../../../system"
);
class
LicenseQueryAPI
extends
APIBase
{
constructor
()
{
super
();
this
.
liecseSve
=
system
.
getObject
(
"service.licenses.licenseSve"
);
}
/**
* 接口跳转-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
"getLicenses"
:
//根据公司得到推荐要办的证书
opResult
=
await
this
.
liecseSve
.
getLicenses
(
action_body
);
break
;
// case "getLicenfgfg"://根据公司得到推荐要办的证书
// opResult = await this.liecseSve.getLicenfgfg(action_body);
// break;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
LicenseQueryAPI
;
\ No newline at end of file
center-channel/app/base/api/impl/action/patentQuery.js
0 → 100644
View file @
bf9e72fe
var
APIBase
=
require
(
"../../api.base"
);
var
system
=
require
(
"../../../system"
);
class
PatentQueryAPI
extends
APIBase
{
constructor
()
{
super
();
this
.
patentSve
=
system
.
getObject
(
"service.patent.patentycSve"
);
}
/**
* 接口跳转-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
.
patentSve
.
CommomSearchbyApplicant
(
action_body
);
break
;
case
"paCountByApplicantName"
:
//根据申请人获取专利量
opResult
=
await
this
.
patentSve
.
paCountByApplicantName
(
action_body
);
break
;
case
"paShortListByApplicantName"
:
//根据申请人获取专利详情列表
opResult
=
await
this
.
patentSve
.
paShortListByApplicantName
(
action_body
);
break
;
case
"paDetailsBypubNo"
:
//根据公开或授权号获取专利详情列表
opResult
=
await
this
.
patentSve
.
paDetailsBypubNo
(
action_body
);
break
;
case
"paDetailsByfilingNo"
:
//根据申请号获取专利详情列表
opResult
=
await
this
.
patentSve
.
paDetailsByfilingNo
(
action_body
);
break
;
case
"softwareCountByAuthor"
:
//根据公司名称得到软著量
opResult
=
await
this
.
patentSve
.
softwareCountByAuthor
(
action_body
);
break
;
case
"softwareListByAuthor"
:
//根据公司名称得到软著详情
opResult
=
await
this
.
patentSve
.
softwareListByAuthor
(
action_body
);
break
;
case
"softwareDetailsByregNum"
:
//根据登记号获取软著详情
opResult
=
await
this
.
patentSve
.
softwareDetailsByregNum
(
action_body
);
break
;
case
"worksCountByAuthor"
:
//根据公司名称得到著作权量
opResult
=
await
this
.
patentSve
.
worksCountByAuthor
(
action_body
);
break
;
case
"worksListByAuthor"
:
//根据公司名称得到著作权详情
opResult
=
await
this
.
patentSve
.
worksListByAuthor
(
action_body
);
break
;
case
"worksDetailsByregNum"
:
//根据登记号获取著作权详情
opResult
=
await
this
.
patentSve
.
worksDetailsByregNum
(
action_body
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
PatentQueryAPI
;
\ No newline at end of file
center-channel/app/base/service/impl/licenses/licenseSve.js
0 → 100644
View file @
bf9e72fe
const
System
=
require
(
"../../../system"
);
const
querystring
=
require
(
'querystring'
);
class
LicenseService
{
constructor
()
{
this
.
zcApiUrl
=
settings
.
reqZcApi
();
};
//得到公司推荐的证照信息
async
getLicenses
(
queryobj
,
req
)
{
var
url
=
this
.
zcApiUrl
+
"api/action/licenseQuery/getLicenses"
;
return
await
this
.
opReqResult
(
url
,
queryobj
,
req
);
};
//根据登记号ggg获取著作权详情
// async getLicenses(queryobj, req) {
// var url = this.zcApiUrl + "api/action/licenseQuery/getLicenfgfg";
// return await this.opReqResult(url, queryobj, req);
// };
}
module
.
exports
=
LicenseService
;
\ No newline at end of file
center-channel/app/base/service/impl/patent/patentycSve.js
View file @
bf9e72fe
This diff is collapsed.
Click to expand it.
center-channel/app/front/entry/public/apidoc/licensesDesc/license.md
0 → 100644
View file @
bf9e72fe
This diff is collapsed.
Click to expand it.
center-channel/app/front/entry/public/apidoc/patentDesc/patent.md
0 → 100644
View file @
bf9e72fe
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