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