|
@@ -0,0 +1,410 @@
|
|
|
+{
|
|
|
+ "swagger": "2.0",
|
|
|
+ "info": {
|
|
|
+ "title": "beego Test API",
|
|
|
+ "description": "beego has a very cool tools to autogenerate documents for your API",
|
|
|
+ "version": "1.0.0",
|
|
|
+ "termsOfService": "http://beego.me/",
|
|
|
+ "contact": {
|
|
|
+ "email": "astaxie@gmail.com"
|
|
|
+ },
|
|
|
+ "license": {
|
|
|
+ "name": "Apache 2.0",
|
|
|
+ "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "basePath": "/edbapi",
|
|
|
+ "paths": {
|
|
|
+ "/calculate/add": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "calculate"
|
|
|
+ ],
|
|
|
+ "description": "编辑指标接口",
|
|
|
+ "operationId": "CalculateController.编辑指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/data_manage.EditEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/calculate/batch/save": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "calculate"
|
|
|
+ ],
|
|
|
+ "description": "累计值转月-同比值-同差等计算新增接口",
|
|
|
+ "operationId": "CalculateController.累计值转月-同比值-同差等计算新增",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "in": "body",
|
|
|
+ "name": "request",
|
|
|
+ "description": "type json string",
|
|
|
+ "required": true,
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/data_manage.EdbInfoCalculateBatchSaveReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "responses": {
|
|
|
+ "Ret=200": {
|
|
|
+ "description": "返回指标id"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/lt/add": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "lt"
|
|
|
+ ],
|
|
|
+ "description": "新增路透指标接口",
|
|
|
+ "operationId": "LtController.新增路透指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.AddEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/lt/refresh": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "lt"
|
|
|
+ ],
|
|
|
+ "description": "刷新路透社指标接口",
|
|
|
+ "operationId": "LtController.刷新路透社指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.RefreshEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/lz/add": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "lz"
|
|
|
+ ],
|
|
|
+ "description": "新增隆众指标接口",
|
|
|
+ "operationId": "LzController.新增隆众指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.AddEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/lz/refresh": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "lz"
|
|
|
+ ],
|
|
|
+ "description": "刷新隆众指标接口",
|
|
|
+ "operationId": "LzController.刷新隆众指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.RefreshEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/manual/add": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "manual"
|
|
|
+ ],
|
|
|
+ "description": "新增手工指标接口",
|
|
|
+ "operationId": "ManualController.新增手工指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.AddEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/manual/refresh": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "manual"
|
|
|
+ ],
|
|
|
+ "description": "刷新手工指标接口",
|
|
|
+ "operationId": "ManualController.刷新手工指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.RefreshEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/mysteel/add": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "mysteel"
|
|
|
+ ],
|
|
|
+ "description": "新增钢联指标接口",
|
|
|
+ "operationId": "MySteelController.新增钢联指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.AddEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/mysteel/refresh": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "mysteel"
|
|
|
+ ],
|
|
|
+ "description": "刷新钢联指标接口",
|
|
|
+ "operationId": "MySteelController.刷新钢联指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.RefreshEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/pb/add": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "pb"
|
|
|
+ ],
|
|
|
+ "description": "新增彭博指标接口",
|
|
|
+ "operationId": "PbController.新增彭博指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.AddEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/pb/refresh": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "pb"
|
|
|
+ ],
|
|
|
+ "description": "刷新彭博指标接口",
|
|
|
+ "operationId": "PbController.刷新彭博指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.RefreshEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/smm/add": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "smm"
|
|
|
+ ],
|
|
|
+ "description": "新增有色指标接口",
|
|
|
+ "operationId": "SmmController.新增有色指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.AddEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/smm/refresh": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "smm"
|
|
|
+ ],
|
|
|
+ "description": "刷新有色指标接口",
|
|
|
+ "operationId": "SmmController.刷新有色指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.RefreshEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/ths/add": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "ths"
|
|
|
+ ],
|
|
|
+ "description": "新增同花顺指标接口",
|
|
|
+ "operationId": "ThsController.新增同花顺指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.AddEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/ths/refresh": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "ths"
|
|
|
+ ],
|
|
|
+ "description": "刷新同花顺指标接口",
|
|
|
+ "operationId": "ThsController.刷新同花顺指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.RefreshEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/wind/add": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "wind"
|
|
|
+ ],
|
|
|
+ "description": "新增wind指标接口",
|
|
|
+ "operationId": "WindController.新增wind指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.AddEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/wind/refresh": {
|
|
|
+ "post": {
|
|
|
+ "tags": [
|
|
|
+ "wind"
|
|
|
+ ],
|
|
|
+ "description": "刷新wind指标接口",
|
|
|
+ "operationId": "WindController.刷新wind指标接口",
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "",
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/definitions/models.RefreshEdbInfoReq"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "definitions": {
|
|
|
+ "data_manage.EdbInfoCalculateBatchSaveReq": {
|
|
|
+ "title": "EdbInfoCalculateBatchSaveReq",
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "data_manage.EditEdbInfoReq": {
|
|
|
+ "title": "EditEdbInfoReq",
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "models.AddEdbInfoReq": {
|
|
|
+ "title": "AddEdbInfoReq",
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "EdbCode": {
|
|
|
+ "description": "指标编码",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "models.RefreshEdbInfoReq": {
|
|
|
+ "title": "RefreshEdbInfoReq",
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "EdbCode": {
|
|
|
+ "description": "指标编码",
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "EdbInfoId": {
|
|
|
+ "description": "指标ID",
|
|
|
+ "type": "integer",
|
|
|
+ "format": "int64"
|
|
|
+ },
|
|
|
+ "StartDate": {
|
|
|
+ "description": "开始日期",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "tags": [
|
|
|
+ {
|
|
|
+ "name": "ths",
|
|
|
+ "description": "同花顺\n"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "pb",
|
|
|
+ "description": "彭博\n"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "wind",
|
|
|
+ "description": "wind\n"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "lz",
|
|
|
+ "description": "隆众\n"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "lt",
|
|
|
+ "description": "路透社\n"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "smm",
|
|
|
+ "description": "有色\n"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "mysteel",
|
|
|
+ "description": "钢联\n"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "manual",
|
|
|
+ "description": "手工指标\n"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "calculate",
|
|
|
+ "description": "CalculateController 计算指标\n"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+}
|