267 lines
5.9 KiB
YAML
267 lines
5.9 KiB
YAML
basePath: /
|
|
definitions:
|
|
bottype.AddBotTypeDto:
|
|
properties:
|
|
active:
|
|
description: 是否启用
|
|
type: boolean
|
|
name:
|
|
description: 名称
|
|
type: string
|
|
required:
|
|
- active
|
|
- name
|
|
type: object
|
|
dto.GetDto:
|
|
properties:
|
|
endTime:
|
|
type: string
|
|
startTime:
|
|
type: string
|
|
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
|
|
model.LocationRecord:
|
|
properties:
|
|
accuracy:
|
|
type: number
|
|
adCode:
|
|
type: string
|
|
address:
|
|
type: string
|
|
altitude:
|
|
type: number
|
|
bearing:
|
|
type: number
|
|
callbackTime:
|
|
type: string
|
|
city:
|
|
type: string
|
|
cityCode:
|
|
type: string
|
|
country:
|
|
type: string
|
|
description:
|
|
type: string
|
|
district:
|
|
type: string
|
|
id:
|
|
type: string
|
|
latitude:
|
|
type: number
|
|
locationTime:
|
|
type: string
|
|
locationType:
|
|
type: integer
|
|
longitude:
|
|
type: number
|
|
province:
|
|
type: string
|
|
speed:
|
|
type: number
|
|
street:
|
|
type: string
|
|
streetNumber:
|
|
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
|
|
/record/location/get:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: 查询定位信息
|
|
parameters:
|
|
- description: 查询查询定位信息
|
|
in: body
|
|
name: vo
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/dto.GetDto'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
allOf:
|
|
- $ref: '#/definitions/resp.Response'
|
|
- properties:
|
|
data:
|
|
items:
|
|
$ref: '#/definitions/model.LocationRecord'
|
|
type: array
|
|
type: object
|
|
default:
|
|
description: ""
|
|
schema:
|
|
$ref: '#/definitions/errorx.CodeErrorResponse'
|
|
summary: 查询定位信息
|
|
tags:
|
|
- Record
|
|
/record/location/post:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: 上报定位信息
|
|
parameters:
|
|
- description: 定位信息
|
|
in: body
|
|
name: vo
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/model.LocationRecord'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
allOf:
|
|
- $ref: '#/definitions/resp.Response'
|
|
- properties:
|
|
data:
|
|
$ref: '#/definitions/model.LocationRecord'
|
|
type: object
|
|
default:
|
|
description: ""
|
|
schema:
|
|
$ref: '#/definitions/errorx.CodeErrorResponse'
|
|
summary: 上报定位信息
|
|
tags:
|
|
- Record
|
|
swagger: "2.0"
|