{ "swagger": "2.0", "info": { "description": "matrix-middle-service 的 swagger", "title": "matrix-middle-service API", "termsOfService": "http://swagger.io/terms/", "contact": { "name": "Shikong", "email": "919411476@qq.com" }, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, "version": "1.0" }, "basePath": "/", "paths": { "/bot/type/list": { "get": { "description": "获取 bot 类型列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "BotType" ], "summary": "获取 bot 类型列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/resp.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/model.BotType" } } } } ] } }, "default": { "description": "", "schema": { "$ref": "#/definitions/errorx.CodeErrorResponse" } } } } } }, "definitions": { "errorx.CodeErrorResponse": { "type": "object", "properties": { "code": { "type": "integer", "example": 200 }, "data": {}, "msg": { "type": "string", "example": "OK" } } }, "model.BotType": { "type": "object", "properties": { "active": { "description": "是否启用", "type": "boolean" }, "id": { "description": "id", "type": "string" }, "name": { "description": "名称", "type": "string" } } }, "resp.Response": { "type": "object", "properties": { "code": { "type": "integer", "example": 200 }, "data": {}, "msg": { "type": "string", "example": "OK" } } } } }