You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
3.1 KiB
105 lines
3.1 KiB
4 weeks ago
|
// Package docs 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}}",
|
||
|
"contact": {},
|
||
|
"version": "{{.Version}}"
|
||
|
},
|
||
|
"host": "{{.Host}}",
|
||
|
"basePath": "{{.BasePath}}",
|
||
|
"paths": {
|
||
|
"/api/v1/login/register": {
|
||
|
"post": {
|
||
|
"description": "该接口用于用户通过手机号和密码进行登录。如果登录失败,系统会记录错误信息并限制登录次数。",
|
||
|
"consumes": [
|
||
|
"application/json"
|
||
|
],
|
||
|
"produces": [
|
||
|
"application/json"
|
||
|
],
|
||
|
"tags": [
|
||
|
"login"
|
||
|
],
|
||
|
"summary": "用户登录",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"type": "string",
|
||
|
"description": "用户手机号",
|
||
|
"name": "mobile",
|
||
|
"in": "query",
|
||
|
"required": true
|
||
|
},
|
||
|
{
|
||
|
"type": "string",
|
||
|
"description": "用户密码",
|
||
|
"name": "password",
|
||
|
"in": "query",
|
||
|
"required": true
|
||
|
}
|
||
|
],
|
||
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "登录成功返回Token",
|
||
|
"schema": {
|
||
|
"$ref": "#/definitions/login.SsoLoginResponse"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"definitions": {
|
||
|
"login.SsoLoginResponse": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"code": {
|
||
|
"description": "返回Code 200 成功 其他是失败",
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"count": {
|
||
|
"description": "条数",
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"data": {
|
||
|
"description": "数据列表",
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"token": {
|
||
|
"description": "返回token",
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"message": {
|
||
|
"description": "返回信息"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}`
|
||
|
|
||
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
||
|
var SwaggerInfo = &swag.Spec{
|
||
|
Version: "",
|
||
|
Host: "",
|
||
|
BasePath: "",
|
||
|
Schemes: []string{},
|
||
|
Title: "",
|
||
|
Description: "",
|
||
|
InfoInstanceName: "swagger",
|
||
|
SwaggerTemplate: docTemplate,
|
||
|
LeftDelim: "{{",
|
||
|
RightDelim: "}}",
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
||
|
}
|