bindbox-game/docs/swagger.yaml
2025-10-16 13:50:20 +08:00

67 lines
1.4 KiB
YAML

basePath: /
definitions:
admin.loginRequest:
properties:
password:
description: 密码 (MD5加密后的密码)
type: string
username:
description: 用户名
type: string
required:
- password
- username
type: object
admin.loginResponse:
properties:
token:
description: 登录成功后颁发的 Token
type: string
type: object
code.Failure:
properties:
code:
description: 业务码
type: integer
message:
description: 描述信息
type: string
type: object
info:
contact: {}
title: mini-chat 接口文档
version: v0.0.1
paths:
/admin/login:
post:
consumes:
- application/json
description: 管理员登录
parameters:
- description: 请求参数
in: body
name: RequestBody
required: true
schema:
$ref: '#/definitions/admin.loginRequest'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/admin.loginResponse'
"400":
description: Bad Request
schema:
$ref: '#/definitions/code.Failure'
summary: 管理员登录
tags:
- 管理端.登录
securityDefinitions:
LoginVerifyToken:
in: header
name: Authorization
type: apiKey
swagger: "2.0"