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
91f66031
Commit
91f66031
authored
Jan 15, 2020
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
8b64d42e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
20 deletions
+73
-20
igirl-zcapi/app/base/api/impl/action/enterpriseQuery.js
+66
-0
igirl-zcapi/app/base/api/impl/patent/copyrightsearch.js
+7
-20
igirl-zcapi/app/base/service/impl/enterprise/enterpriseSve.js
+0
-0
No files found.
igirl-zcapi/app/base/api/impl/action/enterpriseQuery.js
0 → 100644
View file @
91f66031
var
APIBase
=
require
(
"../../api.base"
);
var
system
=
require
(
"../../../system"
);
class
EnterpriseQueryAPI
extends
APIBase
{
constructor
()
{
super
();
this
.
enterSve
=
system
.
getObject
(
"service.enterprise.enterpriseSve"
);
}
/**
* 接口跳转-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
"gxCountByAuthor"
:
//获取企业高薪信息数量
opResult
=
await
this
.
enterSve
.
gxCountByAuthor
(
action_body
);
break
;
case
"gxListByAuthor"
:
//获取企业高薪信息列表
opResult
=
await
this
.
enterSve
.
gxListByAuthor
(
action_body
);
break
;
case
"gameCountByAuthor"
:
//获取企业游戏出版及运营数量
opResult
=
await
this
.
enterSve
.
gameCountByAuthor
(
action_body
);
break
;
case
"gameListByAuthor"
:
//获取企业游戏出版及运营信息列表
opResult
=
await
this
.
enterSve
.
gameListByAuthor
(
action_body
);
break
;
case
"licenseCountByAuthor"
:
//获取企业证照信息数量
opResult
=
await
this
.
enterSve
.
licenseCountByAuthor
(
action_body
);
break
;
case
"licenseListByAuthor"
:
//获取企业证照信息列表
opResult
=
await
this
.
enterSve
.
licenseListByAuthor
(
action_body
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
EnterpriseQueryAPI
;
// var tesk = new EnterpriseQueryAPI();
// var parm = {
// actionType:"getLicenses",
// actionBody:{name:"上海盛霄云计算技术有限公司"}
// };
// tesk.springBoard(parm).then(function(result){
// console.log(result);
// //console.log(result.data.data[0]);
// }).catch(function(e){
// console.log(e);
// });
\ No newline at end of file
igirl-zcapi/app/base/api/impl/patent/copyrightsearch.js
View file @
91f66031
...
...
@@ -64,18 +64,10 @@ class CopyRightSearchApi extends ApiBase {
try
{
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
return
rtn
=
{
status
:
0
,
msg
:
"操作成功"
,
data
:
j
.
hits
.
total
};
return
System
.
getResult2
(
j
.
hits
.
total
,
null
);
}
catch
(
e
)
{
return
rtn
=
{
status
:
-
1
,
msg
:
"操作失败"
,
data
:
null
};
return
System
.
getResult2
(
null
,
"获取数据出错"
);
};
};
...
...
@@ -133,7 +125,9 @@ class CopyRightSearchApi extends ApiBase {
"reg_num"
,
"cat_num"
,
"reg_time"
,
"reg_date"
,
"publish_time"
,
"publish_date"
,
"software_version"
],
"sort"
:
[
...
...
@@ -275,19 +269,12 @@ class CopyRightSearchApi extends ApiBase {
try
{
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
return
rtn
=
{
status
:
0
,
msg
:
"操作成功"
,
data
:
j
.
hits
.
total
};
return
System
.
getResult2
(
j
.
hits
.
total
,
null
);
}
catch
(
e
)
{
return
rtn
=
{
status
:
-
1
,
msg
:
"操作失败"
,
data
:
null
};
return
System
.
getResult2
(
null
,
"获取数据出错"
);
};
};
/*查询某一个作品著作权人名下作品著作权列表(author:作品著作权人-精确、page_size:每页大小、current_page:当前第几页,从1开始)
...
...
igirl-zcapi/app/base/service/impl/enterprise/enterpriseSve.js
0 → 100644
View file @
91f66031
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