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.

177 lines
5.3 KiB

{
"swagger": "2.0",
"info": {
"contact": {}
},
"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"
}
}
}
}
}
}
}