|
@@ -1,12 +1,13 @@
|
|
swagger: "2.0"
|
|
swagger: "2.0"
|
|
info:
|
|
info:
|
|
title: 弘则开放API接口
|
|
title: 弘则开放API接口
|
|
- description: 这是弘则开放API接口文档 <br/><br/><b>1、参数格式与调用方式:</b><br/>(1)接口传输的所有参数使用 UTF8
|
|
|
|
- 编码格式,包括签名。接口调用方式请以接口定义的方式进行调用。<br/>(2)接口地址(测试):http://8.136.199.33:8608/api/<br/><br/><b>2、公共参数:</b><br/><table
|
|
|
|
- style="text-align:center"><tr><td style="border:1px solid">参数名</td><td style="border:1px
|
|
|
|
- solid">类型</td><td style="border:1px solid">是否必传</td><td style="border:1px solid">说明</td><tr><td
|
|
|
|
- style="border:1px solid">appid</td><td style="border:1px solid">string</td><td
|
|
|
|
- style="border:1px solid">是</td><td style="border:1px solid">开放平台给分配的appid</td></tr></tr><tr><td
|
|
|
|
|
|
+ description: '这是弘则开放API接口文档 <br/><br/><b>1、参数格式与调用方式:</b><br/>(1)接口传输的所有参数使用 UTF8
|
|
|
|
+ 编码格式,包括签名。接口调用方式请以接口定义的方式进行调用。<br/>(2)接口地址(测试):http://8.136.199.33:8608/api/<br/>(3)如果是POST请求,那么header头请以Content-Type:
|
|
|
|
+ application/json的方式请求<br/><br/><b>2、公共参数:</b><br/><table style="text-align:center"><tr><td
|
|
|
|
+ style="border:1px solid">参数名</td><td style="border:1px solid">类型</td><td style="border:1px
|
|
|
|
+ solid">是否必传</td><td style="border:1px solid">说明</td><tr><td style="border:1px
|
|
|
|
+ solid">appid</td><td style="border:1px solid">string</td><td style="border:1px
|
|
|
|
+ solid">是</td><td style="border:1px solid">开放平台给分配的appid</td></tr></tr><tr><td
|
|
style="border:1px solid">nonce_str</td><td style="border:1px solid">string</td><td
|
|
style="border:1px solid">nonce_str</td><td style="border:1px solid">string</td><td
|
|
style="border:1px solid">是</td><td style="border:1px solid">随机字符串,最大32位长度,26位大小写字母a,b…z和数字组成</td></tr><tr><td
|
|
style="border:1px solid">是</td><td style="border:1px solid">随机字符串,最大32位长度,26位大小写字母a,b…z和数字组成</td></tr><tr><td
|
|
style="border:1px solid">timestamp</td><td style="border:1px solid">int</td><td
|
|
style="border:1px solid">timestamp</td><td style="border:1px solid">int</td><td
|
|
@@ -28,7 +29,7 @@ info:
|
|
style="text-align:center"><tr><td style="border:1px solid">200</td><td style="border:1px
|
|
style="text-align:center"><tr><td style="border:1px solid">200</td><td style="border:1px
|
|
solid">正常响应码</td></tr> <tr><td style="border:1px solid">400</td><td style="border:1px
|
|
solid">正常响应码</td></tr> <tr><td style="border:1px solid">400</td><td style="border:1px
|
|
solid">业务处理失败响应码</td></tr> <tr><td style="border:1px solid">401</td><td style="border:1px
|
|
solid">业务处理失败响应码</td></tr> <tr><td style="border:1px solid">401</td><td style="border:1px
|
|
- solid">参数签名异常,检查下签名是否正常</td></tr></table>
|
|
|
|
|
|
+ solid">参数签名异常,检查下签名是否正常</td></tr></table>'
|
|
version: 1.0.0
|
|
version: 1.0.0
|
|
contact:
|
|
contact:
|
|
email: pyan@hzinsights.com
|
|
email: pyan@hzinsights.com
|
|
@@ -82,8 +83,8 @@ paths:
|
|
get:
|
|
get:
|
|
tags:
|
|
tags:
|
|
- report
|
|
- report
|
|
- description: 获取报告列表
|
|
|
|
- operationId: ReportController.获取报告列表接口
|
|
|
|
|
|
+ description: 获取章节详情
|
|
|
|
+ operationId: ReportControllerCommon.获取章节详情接口
|
|
parameters:
|
|
parameters:
|
|
- in: query
|
|
- in: query
|
|
name: ResearchReportTypeId
|
|
name: ResearchReportTypeId
|
|
@@ -104,8 +105,8 @@ paths:
|
|
get:
|
|
get:
|
|
tags:
|
|
tags:
|
|
- report
|
|
- report
|
|
- description: 获取报告列表
|
|
|
|
- operationId: ReportController.获取报告列表接口
|
|
|
|
|
|
+ description: 获取报告详情
|
|
|
|
+ operationId: ReportControllerCommon.获取报告详情
|
|
parameters:
|
|
parameters:
|
|
- in: query
|
|
- in: query
|
|
name: research_report_id
|
|
name: research_report_id
|
|
@@ -162,13 +163,41 @@ paths:
|
|
description: ""
|
|
description: ""
|
|
schema:
|
|
schema:
|
|
$ref: '#/definitions/report.ReportListResp'
|
|
$ref: '#/definitions/report.ReportListResp'
|
|
|
|
+ /sys_user/create:
|
|
|
|
+ post:
|
|
|
|
+ tags:
|
|
|
|
+ - sys_user
|
|
|
|
+ description: 创建系统用户
|
|
|
|
+ operationId: Admin.创建系统用户
|
|
|
|
+ parameters:
|
|
|
|
+ - in: body
|
|
|
|
+ name: request
|
|
|
|
+ description: type json string
|
|
|
|
+ required: true
|
|
|
|
+ schema:
|
|
|
|
+ $ref: '#/definitions/admin.CreateUserReq'
|
|
|
|
+ responses:
|
|
|
|
+ "200":
|
|
|
|
+ description: 创建成功
|
|
definitions:
|
|
definitions:
|
|
|
|
+ admin.CreateUserReq:
|
|
|
|
+ title: CreateUserReq
|
|
|
|
+ type: object
|
|
|
|
+ properties:
|
|
|
|
+ mobile:
|
|
|
|
+ description: 手机号
|
|
|
|
+ type: string
|
|
|
|
+ real_name:
|
|
|
|
+ description: 用户真实姓名
|
|
|
|
+ type: string
|
|
|
|
+ role_type:
|
|
|
|
+ description: 角色类型,枚举值。1:ficc研究员;2:权益研究员;3:ficc销售;4:权益销售
|
|
|
|
+ type: integer
|
|
|
|
+ format: int64
|
|
company_report_permission.ResearchReportTypeContent:
|
|
company_report_permission.ResearchReportTypeContent:
|
|
title: ResearchReportTypeContent
|
|
title: ResearchReportTypeContent
|
|
type: object
|
|
type: object
|
|
properties:
|
|
properties:
|
|
- ResearchReportTypeTitle:
|
|
|
|
- type: string
|
|
|
|
content:
|
|
content:
|
|
description: 内容
|
|
description: 内容
|
|
type: string
|
|
type: string
|
|
@@ -194,6 +223,9 @@ definitions:
|
|
description: 研究报告内容id
|
|
description: 研究报告内容id
|
|
type: integer
|
|
type: integer
|
|
format: int64
|
|
format: int64
|
|
|
|
+ research_report_type_title:
|
|
|
|
+ description: 标题
|
|
|
|
+ type: string
|
|
sort:
|
|
sort:
|
|
description: 排序
|
|
description: 排序
|
|
type: integer
|
|
type: integer
|
|
@@ -202,18 +234,6 @@ definitions:
|
|
title: ResearchReportTypeInfo
|
|
title: ResearchReportTypeInfo
|
|
type: object
|
|
type: object
|
|
properties:
|
|
properties:
|
|
- ResearchReportID:
|
|
|
|
- description: 报告id
|
|
|
|
- type: integer
|
|
|
|
- format: int64
|
|
|
|
- ResearchReportTypeID:
|
|
|
|
- description: 研究报告id
|
|
|
|
- type: integer
|
|
|
|
- format: int64
|
|
|
|
- TypeID:
|
|
|
|
- description: 分类id
|
|
|
|
- type: integer
|
|
|
|
- format: int64
|
|
|
|
banner_url:
|
|
banner_url:
|
|
description: banner url
|
|
description: banner url
|
|
type: string
|
|
type: string
|
|
@@ -224,9 +244,23 @@ definitions:
|
|
report_chapter_type_name:
|
|
report_chapter_type_name:
|
|
description: 章节名称
|
|
description: 章节名称
|
|
type: string
|
|
type: string
|
|
|
|
+ research_report_id:
|
|
|
|
+ description: 报告id
|
|
|
|
+ type: integer
|
|
|
|
+ format: int64
|
|
|
|
+ research_report_type_id:
|
|
|
|
+ description: 研究报告id
|
|
|
|
+ type: integer
|
|
|
|
+ format: int64
|
|
research_report_type_title:
|
|
research_report_type_title:
|
|
description: 研究报告标题
|
|
description: 研究报告标题
|
|
type: string
|
|
type: string
|
|
|
|
+ type:
|
|
|
|
+ type: string
|
|
|
|
+ type_id:
|
|
|
|
+ description: 分类id
|
|
|
|
+ type: integer
|
|
|
|
+ format: int64
|
|
company_report_permission.ResearchReportTypeList:
|
|
company_report_permission.ResearchReportTypeList:
|
|
title: ResearchReportTypeList
|
|
title: ResearchReportTypeList
|
|
type: object
|
|
type: object
|
|
@@ -342,9 +376,6 @@ definitions:
|
|
title: ResearchReport
|
|
title: ResearchReport
|
|
type: object
|
|
type: object
|
|
properties:
|
|
properties:
|
|
- ResearchReportID:
|
|
|
|
- type: integer
|
|
|
|
- format: int64
|
|
|
|
author:
|
|
author:
|
|
type: string
|
|
type: string
|
|
createdTime:
|
|
createdTime:
|
|
@@ -367,6 +398,9 @@ definitions:
|
|
format: int64
|
|
format: int64
|
|
reportVariety:
|
|
reportVariety:
|
|
type: string
|
|
type: string
|
|
|
|
+ research_report_id:
|
|
|
|
+ type: integer
|
|
|
|
+ format: int64
|
|
researchReportDate:
|
|
researchReportDate:
|
|
type: string
|
|
type: string
|
|
format: datetime
|
|
format: datetime
|
|
@@ -415,6 +449,10 @@ definitions:
|
|
$ref: '#/definitions/company_report_permission.ResearchReportTypeContent'
|
|
$ref: '#/definitions/company_report_permission.ResearchReportTypeContent'
|
|
research_report_type_info:
|
|
research_report_type_info:
|
|
$ref: '#/definitions/company_report_permission.ResearchReportTypeInfo'
|
|
$ref: '#/definitions/company_report_permission.ResearchReportTypeInfo'
|
|
|
|
+ research_report_type_list:
|
|
|
|
+ type: array
|
|
|
|
+ items:
|
|
|
|
+ $ref: '#/definitions/company_report_permission.ResearchReportTypeList'
|
|
tables.ViewReportList:
|
|
tables.ViewReportList:
|
|
title: ViewReportList
|
|
title: ViewReportList
|
|
type: object
|
|
type: object
|
|
@@ -479,3 +517,10 @@ tags:
|
|
- name: report
|
|
- name: report
|
|
description: |
|
|
description: |
|
|
报告模块
|
|
报告模块
|
|
|
|
+- name: report
|
|
|
|
+ description: |
|
|
|
|
+ 报告模块
|
|
|
|
+- name: sys_user
|
|
|
|
+ description: |
|
|
|
|
+ Admin
|
|
|
|
+ 系统用户模块
|