Commit 51cfcbd2 by 高宇强

gyq

parent 39cf4ce2
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.actionProcess) {
return system.getResult(null, "actionProcess参数不能为空");
}
if (!pobj.actionType) {
return system.getResult(null, "actionType参数不能为空");
}
var result = await this.opActionProcess(pobj, pobj.actionType, req);
return result;
}
async opActionProcess(pobj, action_type, req) {
var opResult = null;
switch (action_type) {
case "test"://测试
opResult = system.getResultSuccess(null, "测试成功");
break;
case "gxCountByAuthor"://获取企业高薪信息数量
case "gxListByAuthor"://获取企业高薪信息列表
case "gameCountByAuthor"://获取企业游戏出版及运营数量
case "gameListByAuthor"://获取企业游戏出版及运营信息列表
case "licenseCountByAuthor"://获取企业证照信息数量
case "licenseListByAuthor"://获取企业证照信息列表
opResult = await this.enterSve.opReqResult(pobj, req);
break;
default:
opResult = system.getResult(null, "action_type参数错误");
break;
}
return opResult;
}
}
module.exports = EnterpriseQueryAPI;
\ No newline at end of file
const System = require("../../../system");
var settings = require("../../../../config/settings");
const querystring = require('querystring');
const AppServiceBase = require("../../app.base");
class EnterpriseService extends AppServiceBase {
constructor() {
super();
this.zcApiUrl = settings.reqZcApi();
};
async opReqResult(pobj, req) {
var url = this.zcApiUrl + "action/enterpriseQuery/springBoard";
var result = await this.restPostUrl(pobj, url);
return result;
};
}
module.exports = EnterpriseService;
\ No newline at end of file
......@@ -25,5 +25,5 @@
## 5. 专利检索接口
  1 [专利检索](doc/api/patentDesc/patent.md)
## 6. 证书推荐接口
  1 [证书推荐](doc/api/licensesDesc/license.md)
\ No newline at end of file
## 6. 证照相关接口
  1 [证照相关推荐](doc/api/licensesDesc/license.md)
\ No newline at end of file
<a name="menu" href="/doc">返回主目录</a>
1. [根据公司得到推荐要办的证书](#getLicenses)
1. [获取企业高薪信息数量](#gxCountByAuthor)
1. [获取企业高薪信息列表](#gxListByAuthor)
1. [获取企业游戏出版及运营数量](#gameCountByAuthor)
1. [获取企业游戏出版及运营信息列表](#gameListByAuthor)
1. [获取企业证照信息数量](#licenseCountByAuthor)
1. [获取企业证照信息列表](#licenseListByAuthor)
## **<a name="getLicenses"> 根据公司得到推荐要办的证书</a>**
[返回到目录](#menu)
......@@ -29,3 +35,211 @@
}
```
## **<a name="gxCountByAuthor"> 获取企业高薪信息数量</a>**
[返回到目录](#menu)
##### URL
[/action/enterpriseQuery/gxCountByAuthor]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:gxCountByAuthor
``` javascript
{
"author": "中国专利信息中心"//公司名称
}
```
#### 返回结果
```javascript
{ status: 0, msg: '操作成功', data: 5370, bizmsg: 'empty' }
```
## **<a name="gxListByAuthor"> 获取企业高薪信息列表</a>**
[返回到目录](#menu)
##### URL
[/action/enterpriseQuery/gxListByAuthor]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:gxListByAuthor
``` javascript
{
"author": "中国专利信息中心",//公司名称
"page_size":10,
"current_page":0
}
```
#### 返回结果
```javascript
{
status: 0,
msg: '操作成功',
data: {
total: 1,
data: [
{
area: '广州',//地区
address: '广州市番禺区南村镇兴业路南侧地段(2号厂房)',//企业地址
year: 2018,//年份
businessScope:
'家用厨房电器具制造;其他家用电力器具制造;其他非电力家用器具制造;塑料薄膜制造;日用塑料制品制造;泵及真空设备制造;液压和气压动力机械及元件制造;制冷、空调设备制造;风动和电动工具制造;电子测量仪器制造;实验分析仪器制造;电气机械设备销售;家用电器批发;塑料制品批发;电子产品批发;技术进出口;货物进出口(专营专控商品除外);',//经营范围
certificateNo: 'GR201844010345',//证书编号
techType: '国家高新' //类型
}
]
},
bizmsg: 'empty'
}
```
## **<a name="gameCountByAuthor"> 获取企业游戏出版及运营数量</a>**
[返回到目录](#menu)
##### URL
[/action/enterpriseQuery/gameCountByAuthor]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:gameCountByAuthor
``` javascript
{
"author": "中国专利信息中心"//公司名称
"type":""//游戏证照类型,取值:[网络游戏出版备案,网络游戏运营备案]
}
```
#### 返回结果
```javascript
{ status: 0, msg: '操作成功', data: 5370, bizmsg: 'empty' }
```
## **<a name="gameListByAuthor"> 获取企业游戏出版及运营信息列表</a>**
[返回到目录](#menu)
##### URL
[/action/enterpriseQuery/gameListByAuthor]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:gameListByAuthor
``` javascript
{
"author": "中国专利信息中心",//公司名称
"type":""//游戏证照类型,取值:[网络游戏出版备案,网络游戏运营备案]
"page_size":10,
"current_page":0
}
```
#### 返回结果
```javascript
{
status: 0,
msg: '操作成功',
data: {
total: 1,
data: [
{
game_name: '武侠乂',//游戏名称
symbol: '国新出审[2019]3526号',//文号
publishing_number: 'ISBN 978-7-498-07137-8',//出版物号
operation_record: '网络游戏运营备案',//游戏运营证照
publish_time: '2019-12-20',//出版时间
declaration_category: '客户端',//申报类别
publishing_record: '网络游戏出版备案',//游戏出版证照
industry_type: '文化、体育和娱乐业,科学研究和技术服务业',//行业类型
publishing_unit: '安徽新华电子音像出版社',//出版单位
operation_unit: '皖新文化科技有限公司' //运营单位
}
]
},
bizmsg: 'empty'
}
```
## **<a name="licenseCountByAuthor"> 获取企业证照信息数量</a>**
[返回到目录](#menu)
##### URL
[/action/enterpriseQuery/licenseCountByAuthor]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:licenseCountByAuthor
``` javascript
{
"author": "中国专利信息中心"//公司名称
}
```
#### 返回结果
```javascript
{
status: 0,
msg: '操作成功',
data: {
total: 5,
data: [
{
"key": "网络文化经营许可证",
"doc_count": 25106
},
{
"key": "广播电视节目制作经营许可证",
"doc_count": 10232
},
{
"key": "ICP许可证",
"doc_count": 4930
},
{
"key": "IDC许可证",
"doc_count": 538
},
{
"key": "EDI许可证",
"doc_count": 33
}
]
},
bizmsg: 'empty'
}
```
## **<a name="licenseListByAuthor"> 获取企业证照信息列表</a>**
[返回到目录](#menu)
##### URL
[/action/enterpriseQuery/licenseListByAuthor]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:licenseListByAuthor
``` javascript
{
"author": "中国专利信息中心",//公司名称
"licence":""//证照类型,取值:[参见上个接口返回结果]
"page_size":10,
"current_page":0
}
```
#### 返回结果
```javascript
{
status: 0,
msg: '操作成功',
data: {
total: 1,
data: [
{
start_date:'2010-01-01',//开始时间
end_date: '2022-09-18',//到期时间
licence: 'IDC许可证',//证照类型
licence_no: 'B1-20172237',//证书编号
companyName: '上海橙域网络科技有限公司',//企业名称
service_category: '互联网数据中心业务、互联网接入服务业务',//业务种类
industry_type: '信息传输、软件和信息技术服务业'//行业类型
}
]
},
bizmsg: 'empty'
}
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment