{ "swagger": "2.0", "info": { "description": "由东师理想数智创新中心研发并提供支持", "title": "统一数据中心", "contact": {}, "license": {}, "version": "1.0" }, "host": "127.0.0.1:8003", "paths": { "/data/datatype": { "get": { "description": "共享的数据类型有哪些", "consumes": [ "application/x-www-form-urlencoded" ], "produces": [ "application/json" ], "tags": [ "统一数据类" ], "summary": "共享的数据类型有哪些", "parameters": [ { "type": "string", "description": "访问票据", "name": "token", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "x-lengthlimit": [ { "token": "26,26" } ] } }, "/data/share": { "get": { "description": "数据分发", "consumes": [ "application/x-www-form-urlencoded" ], "produces": [ "application/json" ], "tags": [ "统一数据类" ], "summary": "数据分发", "parameters": [ { "type": "string", "description": "访问票据", "name": "token", "in": "query", "required": true }, { "type": "string", "description": "获取哪一类数据", "name": "data_type", "in": "query", "required": true }, { "type": "string", "description": "开始时间", "name": "start_time", "in": "query", "required": true }, { "type": "string", "description": "主键值,如果不清楚第一次可以传0,以后按返回的数据再次传入即可", "name": "pk", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "x-datetime": [ "start_time" ], "x-lengthlimit": [ { "token": "26,26" }, { "data_type": "2,20" }, { "start_time": "19,19" }, { "pk": "1,10" } ] } }, "/data/token": { "post": { "description": "获取授权票据", "consumes": [ "application/x-www-form-urlencoded" ], "produces": [ "application/json" ], "tags": [ "统一数据类" ], "summary": "获取授权票据", "parameters": [ { "type": "string", "description": "第三方系统的访问id", "name": "id", "in": "formData", "required": true }, { "type": "string", "description": "第三方系统的访问密码", "name": "secret", "in": "formData", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "x-lengthlimit": [ { "id": "20,20" }, { "secret": "26,26" } ] } }, "/oauth2/authorize": { "post": { "description": "数据上报", "consumes": [ "application/x-www-form-urlencoded" ], "produces": [ "application/json" ], "tags": [ "统一数据类" ], "summary": "数据上报", "parameters": [ { "type": "string", "description": "访问票据", "name": "access_token", "in": "formData", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } } } } }, "definitions": { "Model.Res": { "type": "object", "properties": { "code": { "description": "omitempty有值就输出,没值则不输出", "type": "object" }, "count": { "type": "object" }, "data": { "type": "object" }, "expire_time": { "description": "过期时间", "type": "object" }, "msg": { "description": "omitempty有值就输出,没值则不输出", "type": "object" }, "pk": { "type": "object" }, "start_time": { "type": "object" }, "token": { "description": "omitempty有值就输出,没值则不输出", "type": "object" }, "total_count": { "type": "object" } } } } }