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.

206 lines
6.0 KiB

// Package docs GENERATED BY SWAG; DO NOT EDIT
// This file was generated by swaggo/swag
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": {
"/index": {
"get": {
"tags": [
"首页"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
}
}
}
},
"/user/createUser": {
"get": {
"tags": [
"用户模块"
],
"summary": "新增用户",
"parameters": [
{
"type": "string",
"description": "用户名",
"name": "name",
"in": "query"
},
{
"type": "string",
"description": "密码",
"name": "password",
"in": "query"
},
{
"type": "string",
"description": "确认密码",
"name": "repassword",
"in": "query"
}
],
"responses": {
"200": {
"description": "code\",\"message\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/user/deleteUser": {
"get": {
"tags": [
"用户模块"
],
"summary": "删除用户",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query"
}
],
"responses": {
"200": {
"description": "code\",\"message\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/user/findUserByNameAndPwd": {
"get": {
"tags": [
"用户模块"
],
"summary": "所有用户",
"parameters": [
{
"type": "string",
"description": "用户名",
"name": "name",
"in": "query"
},
{
"type": "string",
"description": "密码",
"name": "password",
"in": "query"
}
],
"responses": {
"200": {
"description": "code\",\"message\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/user/getUserList": {
"get": {
"tags": [
"用户模块"
],
"summary": "所有用户",
"responses": {
"200": {
"description": "code\",\"message\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/user/updateUser": {
"post": {
"tags": [
"用户模块"
],
"summary": "修改用户",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "formData"
},
{
"type": "string",
"description": "name",
"name": "name",
"in": "formData"
},
{
"type": "string",
"description": "password",
"name": "password",
"in": "formData"
},
{
"type": "string",
"description": "phone",
"name": "phone",
"in": "formData"
},
{
"type": "string",
"description": "email",
"name": "email",
"in": "formData"
}
],
"responses": {
"200": {
"description": "code\",\"message\"}",
"schema": {
"type": "string"
}
}
}
}
}
}
}`
// 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,
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}