153 lines
3.4 KiB
YAML
153 lines
3.4 KiB
YAML
basePath: /
|
|
definitions:
|
|
bottype.AddBotTypeDto:
|
|
properties:
|
|
active:
|
|
description: 是否启用
|
|
type: boolean
|
|
name:
|
|
description: 名称
|
|
type: string
|
|
required:
|
|
- active
|
|
- name
|
|
type: object
|
|
errorx.CodeErrorResponse:
|
|
properties:
|
|
code:
|
|
description: 状态码
|
|
example: 200
|
|
type: integer
|
|
data:
|
|
description: 数据
|
|
msg:
|
|
description: 信息
|
|
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:
|
|
description: 状态码
|
|
example: 200
|
|
type: integer
|
|
data:
|
|
description: 数据
|
|
msg:
|
|
description: 信息
|
|
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/add:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: 添加 bot 类型
|
|
parameters:
|
|
- description: bot 类型
|
|
in: body
|
|
name: vo
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/bottype.AddBotTypeDto'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
allOf:
|
|
- $ref: '#/definitions/resp.Response'
|
|
- properties:
|
|
data:
|
|
type: boolean
|
|
type: object
|
|
default:
|
|
description: ""
|
|
schema:
|
|
$ref: '#/definitions/errorx.CodeErrorResponse'
|
|
summary: 添加 bot 类型
|
|
tags:
|
|
- BotType
|
|
/bot/type/del:
|
|
delete:
|
|
consumes:
|
|
- application/json
|
|
description: 根据 id 删除 bot 类型
|
|
parameters:
|
|
- description: bot 类型id
|
|
in: query
|
|
name: id
|
|
required: true
|
|
type: string
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
allOf:
|
|
- $ref: '#/definitions/resp.Response'
|
|
- properties:
|
|
data:
|
|
type: boolean
|
|
type: object
|
|
default:
|
|
description: ""
|
|
schema:
|
|
$ref: '#/definitions/errorx.CodeErrorResponse'
|
|
summary: 删除 bot 类型
|
|
tags:
|
|
- BotType
|
|
/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"
|