291 lines
9.2 KiB
Go
291 lines
9.2 KiB
Go
// Code generated by swaggo/swag. DO NOT EDIT
|
|
package docs
|
|
|
|
import "github.com/swaggo/swag"
|
|
|
|
const docTemplate = `{
|
|
"schemes": {{ marshal .Schemes }},
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"description": "{{escape .Description}}",
|
|
"title": "{{.Title}}",
|
|
"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": "{{.Version}}"
|
|
},
|
|
"host": "{{.Host}}",
|
|
"basePath": "{{.BasePath}}",
|
|
"paths": {
|
|
"/bot/type/add": {
|
|
"post": {
|
|
"description": "添加 bot 类型",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"BotType"
|
|
],
|
|
"summary": "添加 bot 类型",
|
|
"parameters": [
|
|
{
|
|
"description": "bot 类型",
|
|
"name": "vo",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/bottype.AddBotTypeDto"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/resp.Response"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"default": {
|
|
"description": "",
|
|
"schema": {
|
|
"$ref": "#/definitions/errorx.CodeErrorResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/bot/type/del": {
|
|
"delete": {
|
|
"description": "根据 id 删除 bot 类型",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"BotType"
|
|
],
|
|
"summary": "删除 bot 类型",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "bot 类型id",
|
|
"name": "id",
|
|
"in": "query",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/definitions/resp.Response"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"default": {
|
|
"description": "",
|
|
"schema": {
|
|
"$ref": "#/definitions/errorx.CodeErrorResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/record/location/post": {
|
|
"post": {
|
|
"description": "上报定位信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Record"
|
|
],
|
|
"summary": "上报定位信息",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/resp.Response"
|
|
}
|
|
},
|
|
"default": {
|
|
"description": "",
|
|
"schema": {
|
|
"$ref": "#/definitions/errorx.CodeErrorResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"bottype.AddBotTypeDto": {
|
|
"type": "object",
|
|
"required": [
|
|
"active",
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"active": {
|
|
"description": "是否启用",
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"description": "名称",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"errorx.CodeErrorResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"example": 200
|
|
},
|
|
"data": {
|
|
"description": "数据"
|
|
},
|
|
"msg": {
|
|
"description": "信息",
|
|
"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": {
|
|
"description": "状态码",
|
|
"type": "integer",
|
|
"example": 200
|
|
},
|
|
"data": {
|
|
"description": "数据"
|
|
},
|
|
"msg": {
|
|
"description": "信息",
|
|
"type": "string",
|
|
"example": "OK"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}`
|
|
|
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
|
var SwaggerInfo = &swag.Spec{
|
|
Version: "1.0",
|
|
Host: "",
|
|
BasePath: "/",
|
|
Schemes: []string{},
|
|
Title: "matrix-middle-service API",
|
|
Description: "matrix-middle-service 的 swagger",
|
|
InfoInstanceName: "swagger",
|
|
SwaggerTemplate: docTemplate,
|
|
}
|
|
|
|
func init() {
|
|
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
|
}
|