Files
sundynix-plant-be/docs/swagger.json
T
2026-02-06 14:44:06 +08:00

7058 lines
222 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"swagger": "2.0",
"info": {
"description": "使用gin + gorm进行极速开发的全栈开发基础平台",
"title": "Swagger API接口文档",
"contact": {},
"version": "v1.0.0"
},
"paths": {
"/auth/captcha": {
"get": {
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "获取验证码",
"responses": {
"200": {
"description": "获取验证码",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.CaptchaRes"
}
}
}
]
}
}
}
}
},
"/auth/getLocation": {
"get": {
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "获取位置信息",
"parameters": [
{
"type": "string",
"description": "longitude",
"name": "longitude",
"in": "query",
"required": true
},
{
"type": "string",
"description": "latitude",
"name": "latitude",
"in": "query",
"required": true
}
],
"responses": {}
}
},
"/auth/getPhone": {
"get": {
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "获取手机号",
"parameters": [
{
"type": "string",
"description": "code",
"name": "code",
"in": "query",
"required": true
},
{
"type": "string",
"description": "openId",
"name": "openId",
"in": "query",
"required": true
}
],
"responses": {}
}
},
"/auth/getWeather": {
"get": {
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "获取天气信息",
"parameters": [
{
"type": "string",
"description": "adcode",
"name": "adcode",
"in": "query",
"required": true
}
],
"responses": {}
}
},
"/auth/login": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "pc登录",
"parameters": [
{
"description": "用户名, 密码, 验证码,验证码id",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.Login"
}
}
],
"responses": {
"200": {
"description": "登录成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/auth/logout": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "pc登出",
"responses": {
"200": {
"description": "登出成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/auth/miniLogin": {
"get": {
"produces": [
"application/json"
],
"tags": [
"登录相关"
],
"summary": "小程序登录",
"parameters": [
{
"type": "string",
"description": "code",
"name": "code",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "小程序登录",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.LoginResponse"
}
}
}
]
}
}
}
}
},
"/badge/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "添加",
"parameters": [
{
"description": "添加",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateBadge"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/all": {
"get": {
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "获取所有无分页",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/class/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "添加分类",
"parameters": [
{
"description": "添加分类",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateBadgeCategory"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/class/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "删除分类",
"parameters": [
{
"description": "删除分类",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/class/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "分类详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/class/list": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "分类列表",
"parameters": [
{
"description": "分类列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.PageCategory"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/class/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "修改分类",
"parameters": [
{
"description": "修改分类",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateBadgeCategory"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "删除ByIds",
"parameters": [
{
"description": "删除ByIds",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/list": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "获取列表有分页",
"parameters": [
{
"description": "获取列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.PageBadge"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/listByKeyword": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "获取列表byKeyword无分页",
"parameters": [
{
"type": "string",
"description": "keyword",
"name": "keyword",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/my/all": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "我的所有徽章",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/my/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "我的徽章详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/my/list": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "我的徽章",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "修改",
"parameters": [
{
"description": "修改",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateBadge"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/badge/uploadImg": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"徽章"
],
"summary": "上传图片",
"parameters": [
{
"description": "上传图片",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UploadFile"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/claim/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"兑换植物"
],
"summary": "配置植物",
"parameters": [
{
"description": "添加",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateClaimPlant"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/claim/cancelUnion": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"兑换植物"
],
"summary": "取消关联百科植物",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"取消关联成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/claim/claim": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"兑换植物"
],
"summary": "认养",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
},
{
"type": "string",
"description": "addressId",
"name": "addressId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"认养成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/claim/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"兑换植物"
],
"summary": "删除ByIds",
"parameters": [
{
"description": "删除",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/claim/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"兑换植物"
],
"summary": "详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/claim/list": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"兑换植物"
],
"summary": "获取列表",
"parameters": [
{
"description": "获取列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.PageClaimPlant"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/claim/myClaims": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"兑换植物"
],
"summary": "我的认养",
"parameters": [
{
"description": "获取列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.PageClaimPlant"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/claim/unionLibrary": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"兑换植物"
],
"summary": "关联百科植物",
"parameters": [
{
"description": "关联",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UnionLibrary"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"关联成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/claim/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"兑换植物"
],
"summary": "修改植物",
"parameters": [
{
"description": "修改",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateClaimPlant"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/class/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库分类"
],
"summary": "新增分类",
"parameters": [
{
"description": "新增分类",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateClassification"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"新增成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/class/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库分类"
],
"summary": "删除分类",
"parameters": [
{
"description": "删除分类",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/class/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"植物库分类"
],
"summary": "分类详情",
"parameters": [
{
"type": "string",
"description": "分类id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/class/list": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库分类"
],
"summary": "分类列表",
"parameters": [
{
"description": "分类列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.PageInfo"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/class/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库分类"
],
"summary": "修改分类",
"parameters": [
{
"description": "修改分类",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateClassification"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/client/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"客户端管理"
],
"summary": "删除client",
"parameters": [
{
"description": "ids",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "删除client",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/client/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "id获取详情",
"produces": [
"application/json"
],
"tags": [
"客户端管理"
],
"summary": "获取client详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "获取client详情",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/system.Client"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/client/getClientList": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"客户端管理"
],
"summary": "获取client列表",
"parameters": [
{
"description": "client",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetClientList"
}
}
],
"responses": {
"200": {
"description": "获取client列表",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.PageResult"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/client/save": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"客户端管理"
],
"summary": "创建client",
"parameters": [
{
"description": "client",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.Client"
}
}
],
"responses": {
"200": {
"description": "创建client",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/client/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"客户端管理"
],
"summary": "更新client",
"parameters": [
{
"description": "client",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.Client"
}
}
],
"responses": {
"200": {
"description": "更新client",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/comment/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"帖子评论"
],
"summary": "发表评论",
"parameters": [
{
"description": "添加评论",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateComment"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/comment/delete": {
"delete": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"帖子评论"
],
"summary": "删除评论",
"parameters": [
{
"description": "删除评论",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/invitation/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"配置中心"
],
"summary": "配置邀请码",
"parameters": [
{
"description": "配置邀请码",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateInvitationConfig"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"配置成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/invitation/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"配置中心"
],
"summary": "删除邀请码配置",
"parameters": [
{
"description": "删除邀请码",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/invitation/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"配置中心"
],
"summary": "获取邀请码配置",
"parameters": [
{
"type": "string",
"description": "邀请码id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/invitation/list": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"配置中心"
],
"summary": "获取邀请码列表",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/invitation/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"配置中心"
],
"summary": "更新邀请码配置",
"parameters": [
{
"description": "更新邀请码",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateInvitationConfig"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/qrcode/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"配置中心"
],
"summary": "配置二维码",
"parameters": [
{
"description": "配置二维码",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateQrcode"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"配置成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/qrcode/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"配置中心"
],
"summary": "删除二维码",
"parameters": [
{
"description": "二维码id",
"name": "ids",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/qrcode/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"配置中心"
],
"summary": "获取二维码详情",
"parameters": [
{
"type": "string",
"description": "二维码id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/qrcode/list": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"tags": [
"配置中心"
],
"summary": "获取二维码",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/qrcode/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"配置中心"
],
"summary": "更新二维码",
"parameters": [
{
"description": "更新二维码",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateQrcode"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/config/qrcode/uploadImg": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"配置中心"
],
"summary": "上传二维码图片",
"parameters": [
{
"description": "上传二维码图片",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UploadFile"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/library/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "新增植物库",
"parameters": [
{
"description": "新增植物库",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateLibrary"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/all": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "获取所有植物库列表",
"parameters": [
{
"description": "获取所有植物库列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.LibraryList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/alterClass": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "修改分类",
"parameters": [
{
"description": "修改分类",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AlterClass"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "删除植物库",
"parameters": [
{
"description": "删除植物库",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/deleteClass": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "取消关联分类",
"parameters": [
{
"description": "取消关联分类",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.DeleteClass"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/deleteImg": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "上传图片",
"parameters": [
{
"description": "上传图片",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.DeleteOss"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/deleteRelateLibrary": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "删除关联植物",
"parameters": [
{
"description": "删除关联",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.DeleteRelatedLibrary"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "获取植物库详情",
"parameters": [
{
"type": "string",
"description": "获取植物库详情",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/hot": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "设置或取消热门",
"parameters": [
{
"description": "设置热门",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/page": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "获取植物库列表",
"parameters": [
{
"description": "获取植物库列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.LibraryPage"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/reateLibrary": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "添加关联植物",
"parameters": [
{
"description": "添加关联",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.AlterRelatedLibrary"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "修改植物库",
"parameters": [
{
"description": "修改植物库",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateLibrary"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/library/uploadImg": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"植物库"
],
"summary": "上传图片",
"parameters": [
{
"description": "上传图片",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UploadOss"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/delete": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "删除menu",
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "删除menu",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "详情",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "id获取详情",
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "获取menu详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "详情",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/system.Menu"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/getAllMenuTree": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "获取所有菜单树",
"parameters": [
{
"description": "菜单信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetMenuTree"
}
}
],
"responses": {
"200": {
"description": "获取所有菜单树",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/system.Menu"
}
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/getUserMenuTree": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "用户菜单数据",
"responses": {
"200": {
"description": "用户菜单数据",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/system.Menu"
}
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/route": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "用户路由",
"responses": {
"200": {
"description": "用户route",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/system.Menu"
}
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/save": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "新增菜单",
"parameters": [
{
"description": "menu",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/system.Menu"
}
}
],
"responses": {
"200": {
"description": "新建菜单/按钮",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/menu/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"菜单管理"
],
"summary": "更新菜单",
"parameters": [
{
"description": "menu",
"name": "data",
"in": "body",
"schema": {
"$ref": "#/definitions/system.Menu"
}
}
],
"responses": {
"200": {
"description": "更新菜单",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/ocr/base64": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
"识别相关"
],
"summary": "base64植物识别",
"parameters": [
{
"type": "file",
"description": "植物识别",
"name": "file",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "文件OCR",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/ocr/url": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
"识别相关"
],
"summary": "url植物识别",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "文件OCR",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/order/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"订单"
],
"summary": "删除订单",
"parameters": [
{
"description": "删除订单",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"订单"
],
"summary": "订单详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/export": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"订单"
],
"summary": "导出订单",
"parameters": [
{
"type": "integer",
"description": "页码",
"name": "current",
"in": "query"
},
{
"type": "integer",
"description": "是否发货 0 1",
"name": "isShipped",
"in": "query"
},
{
"type": "string",
"description": "关键字",
"name": "keyword",
"in": "query"
},
{
"type": "integer",
"description": "每页大小",
"name": "pageSize",
"in": "query"
},
{
"type": "integer",
"description": "支付状态 1.SUCCESS 2.REFUND 3.NOTPAY 4.CLOSED",
"name": "status",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/page": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"订单"
],
"summary": "订单列表",
"parameters": [
{
"description": "获取列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.OrderPage"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/order/ship": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"订单"
],
"summary": "发货",
"parameters": [
{
"description": "发货",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/oss/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"文件相关"
],
"summary": "删除文件",
"parameters": [
{
"description": "批量删除文件",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "删除文件",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/oss/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"文件相关"
],
"summary": "文件详情",
"parameters": [
{
"type": "string",
"description": "文件id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "文件详情",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/oss/getFileList": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"文件相关"
],
"summary": "文件列表",
"parameters": [
{
"description": "文件列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetOssFileList"
}
}
],
"responses": {
"200": {
"description": "文件列表",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/oss/upload": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
"文件相关"
],
"summary": "文件上传",
"parameters": [
{
"type": "file",
"description": "上传文件",
"name": "file",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "上传文件",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/pay/prePay": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"微信支付"
],
"summary": "支付",
"parameters": [
{
"type": "string",
"description": "支付",
"name": "orderId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"支付成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/personal/address/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"个人中心"
],
"summary": "添加地址",
"parameters": [
{
"description": "添加地址",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateAddress"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/personal/address/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"个人中心"
],
"summary": "删除地址",
"parameters": [
{
"description": "删除地址",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/personal/address/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"个人中心"
],
"summary": "地址详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/personal/address/list": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"个人中心"
],
"summary": "地址列表",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/personal/address/setDefault": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"个人中心"
],
"summary": "设置默认地址",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/personal/address/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"个人中心"
],
"summary": "修改地址",
"parameters": [
{
"description": "修改地址",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateAddress"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/personal/centerCount": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"个人中心"
],
"summary": "个人中心统计",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/personal/inviteCode/accept": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"个人中心"
],
"summary": "接受邀请",
"parameters": [
{
"type": "string",
"description": "inviteCode",
"name": "inviteCode",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"接受成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/personal/inviteCode/code": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"个人中心"
],
"summary": "生成邀请码",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"生成成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/personal/inviteCode/records": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"个人中心"
],
"summary": "邀请记录",
"parameters": [
{
"description": "分页参数",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.PageInfo"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "添加植物",
"parameters": [
{
"description": "创建植物",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateMyPlant"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/carePlant": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "立即养护",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"操作成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/careRecords": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "养护记录",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"操作成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "删除ByIds",
"parameters": [
{
"description": "删除ByIds",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/deleteImg": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "删除图片",
"parameters": [
{
"description": "删除图片",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.DeleteOss"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "获取ById",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/grow/addRecord": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "添加成长记录",
"parameters": [
{
"description": "添加成长记录",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreateGrowRecord"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"操作成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/grow/recordDetail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "成长记录详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"操作成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/grow/recordList": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "成长记录列表",
"parameters": [
{
"description": "成长记录列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.PageGrowRecord"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"操作成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/makeCare": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "根据任务完成养护",
"parameters": [
{
"description": "养护操作",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.MakeCare"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"操作成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/myPlants": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "植物列表不分页",
"parameters": [
{
"type": "string",
"description": "name",
"name": "name",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/needCare": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "待养护",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"操作成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/page": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "植物列表",
"parameters": [
{
"description": "获取植物列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.PagePlant"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/taskProgress": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "任务进度",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"操作成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/todayCare": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"tags": [
"我的植物"
],
"summary": "今日养护",
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"操作成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "修改植物",
"parameters": [
{
"description": "修改植物",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateMyPlant"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/updateCarePlan": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "修改养护事项周期",
"parameters": [
{
"description": "修改养护周期",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateCarePlan"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/plant/uploadImg": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的植物"
],
"summary": "上传图片",
"parameters": [
{
"description": "上传图片",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UploadOss"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/post/add": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"帖子"
],
"summary": "发布",
"parameters": [
{
"description": "创建帖子",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.CreatePost"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/post/cancelLike": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"帖子"
],
"summary": "取消点赞",
"parameters": [
{
"type": "string",
"description": "帖子id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"取消点赞成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/post/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"帖子"
],
"summary": "删除帖子",
"parameters": [
{
"description": "删除帖子",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/post/deleteImg": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"帖子"
],
"summary": "删除帖子图片",
"parameters": [
{
"description": "删除帖子图片",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.DeleteOss"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/post/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"帖子"
],
"summary": "帖子详情",
"parameters": [
{
"type": "string",
"description": "帖子id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/post/like": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"帖子"
],
"summary": "点赞帖子",
"parameters": [
{
"type": "string",
"description": "帖子id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"点赞成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/post/myPosts": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"帖子"
],
"summary": "我的帖子",
"parameters": [
{
"type": "integer",
"description": "页码",
"name": "current",
"in": "query"
},
{
"type": "string",
"description": "关键字",
"name": "keyword",
"in": "query"
},
{
"type": "integer",
"description": "每页大小",
"name": "pageSize",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/post/page": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"帖子"
],
"summary": "帖子列表",
"parameters": [
{
"description": "帖子列表",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.PostPage"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/post/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"帖子"
],
"summary": "修改帖子",
"parameters": [
{
"description": "修改帖子",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdatePost"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/post/uploadImg": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"帖子"
],
"summary": "上传帖子图片",
"parameters": [
{
"description": "上传帖子图片",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UploadOss"
}
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/role/delete": {
"post": {
"description": "删除角色",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "删除角色",
"parameters": [
{
"description": "批量删除角色",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "删除角色",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/role/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "角色详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "角色详情",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/system.Role"
}
}
}
]
}
}
}
}
},
"/role/getRoleList": {
"post": {
"description": "获取角色列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "获取角色列表",
"parameters": [
{
"description": "页码, 每页大小, 搜索条件",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetRoleList"
}
}
],
"responses": {
"200": {
"description": "获取角色列表,返回包括列表,总数,页码,每页大小",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.PageResult"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/role/grantMenu": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "授权菜单给角色",
"parameters": [
{
"description": "授权菜单给角色",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GrantMenu"
}
}
],
"responses": {
"200": {
"description": "授权菜单给角色",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/role/save": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "创建角色",
"parameters": [
{
"description": "角色信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.Role"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/role/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色管理"
],
"summary": "修改角色",
"parameters": [
{
"description": "角色ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.Role"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/user/changePassword": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "修改密码",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "修改密码",
"parameters": [
{
"description": "用户id",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.ChangePwd"
}
}
],
"responses": {
"200": {
"description": "修改密码成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/system.User"
}
}
}
]
}
}
}
}
},
"/user/delete": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "删除用户",
"parameters": [
{
"description": "批量删除用户",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.IdsReq"
}
}
],
"responses": {
"200": {
"description": "删除用户",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/user/detail": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "获取用户详情",
"parameters": [
{
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "获取用户详情成功",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/system.User"
}
}
}
]
}
}
}
}
},
"/user/getUserList": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "获取用户列表",
"parameters": [
{
"description": "页码, 每页大小, 搜索条件",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetUserList"
}
}
],
"responses": {
"200": {
"description": "获取用户列表,返回包括列表,总数,页码,每页大小",
"schema": {
"allOf": [
{
"$ref": "#/definitions/response.Response"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/response.PageResult"
},
"msg": {
"type": "string"
}
}
}
]
}
}
}
}
},
"/user/grantRole": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "给用户分配角色",
"parameters": [
{
"description": "用户ID, 角色ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GrantRole"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/user/save": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "新增用户",
"parameters": [
{
"description": "用户信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.User"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": {}, \"msg\": \"添加成功\"}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/user/update": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"用户管理"
],
"summary": "更新用户",
"parameters": [
{
"description": "用户ID,用户信息",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/system.User"
}
}
],
"responses": {
"200": {
"description": "{\"code\": 200, \"data\": [...]}",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
}
},
"definitions": {
"request.AlterClass": {
"type": "object",
"properties": {
"id": {
"description": "植物id",
"type": "string"
},
"ids": {
"description": "要关联的分类ids",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"request.AlterRelatedLibrary": {
"type": "object",
"properties": {
"id": {
"description": "植物id",
"type": "string"
},
"ids": {
"description": "要关联的植物ids",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"request.CareItem": {
"type": "object",
"properties": {
"desc": {
"type": "string"
},
"name": {
"type": "string"
},
"period": {
"type": "integer"
}
}
},
"request.CarePlan": {
"type": "object",
"properties": {
"desc": {
"type": "string"
},
"name": {
"description": "农事名称",
"type": "string"
},
"period": {
"description": "周期",
"type": "integer"
}
}
},
"request.CareSchedule": {
"type": "object",
"properties": {
"careItems": {
"description": "养护项目",
"type": "array",
"items": {
"$ref": "#/definitions/request.CareItem"
}
},
"desc": {
"description": "描述",
"type": "string"
},
"season": {
"description": "季节",
"type": "string"
},
"sort": {
"description": "排序",
"type": "integer"
}
}
},
"request.ChangePwd": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"newPwd": {
"type": "string"
}
}
},
"request.CreateAddress": {
"type": "object",
"properties": {
"detail": {
"type": "string"
},
"isDefault": {
"type": "integer"
},
"name": {
"type": "string"
},
"phone": {
"type": "string"
}
}
},
"request.CreateBadge": {
"type": "object",
"required": [
"countLimit"
],
"properties": {
"categoryId": {
"type": "string"
},
"countLimit": {
"description": "获取徽章需要完成的操作次数",
"type": "integer"
},
"desc": {
"type": "string"
},
"keyword": {
"type": "string"
},
"name": {
"type": "string"
},
"ossId": {
"type": "string"
}
}
},
"request.CreateBadgeCategory": {
"type": "object",
"required": [
"name"
],
"properties": {
"desc": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"request.CreateClaimPlant": {
"type": "object",
"properties": {
"content": {
"type": "string"
},
"libraryId": {
"description": "百科id",
"type": "string"
},
"name": {
"type": "string"
},
"ossIds": {
"type": "array",
"items": {
"type": "string"
}
},
"points": {
"type": "integer"
},
"postage": {
"description": "邮费 单位(分)",
"type": "integer"
},
"stock": {
"description": "库存",
"type": "integer"
},
"tag": {
"type": "string"
},
"videoUrl": {
"type": "string"
}
}
},
"request.CreateClassification": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"description": "分类名称",
"type": "string"
},
"ossId": {
"description": "图片id",
"type": "string"
},
"tag": {
"description": "标签",
"type": "string"
}
}
},
"request.CreateComment": {
"type": "object",
"required": [
"content",
"parentId",
"postId",
"rootId"
],
"properties": {
"content": {
"description": "评论内容",
"type": "string"
},
"parentId": {
"description": "父级评论id\" 默认为0",
"type": "string"
},
"postId": {
"description": "帖子id",
"type": "string"
},
"rootId": {
"description": "根评论id 默认为0 如评论1 评论2 评论3 1是根评论 2是1的子评论 3是2的子评论 那么2和3的rootId都是1的主键id",
"type": "string"
}
}
},
"request.CreateGrowRecord": {
"type": "object",
"required": [
"plantId"
],
"properties": {
"content": {
"type": "string"
},
"desc": {
"type": "string"
},
"name": {
"type": "string"
},
"ossIds": {
"type": "array",
"items": {
"type": "string"
}
},
"plantId": {
"type": "string"
},
"tag": {
"type": "string"
}
}
},
"request.CreateInvitationConfig": {
"type": "object",
"properties": {
"codeExpireDays": {
"description": "邀请码有效期(天)",
"type": "integer"
},
"codeLength": {
"description": "邀请码长度",
"type": "integer"
},
"enableAutoAward": {
"description": "是否自动发放积分",
"type": "integer"
},
"isActive": {
"description": "是否启用",
"type": "integer"
},
"maxInvitesPerDay": {
"description": "每日最大邀请奖励次数",
"type": "integer"
},
"maxPointsPerUser": {
"description": "单用户最大邀请奖励积分",
"type": "integer"
},
"name": {
"description": "配置名称",
"type": "string"
},
"pointsPerInvite": {
"description": "每成功邀请奖励积分",
"type": "integer"
}
}
},
"request.CreateLibrary": {
"type": "object",
"required": [
"name"
],
"properties": {
"aliases": {
"description": "别名",
"type": "string"
},
"careSchedule": {
"description": "养护计划",
"type": "array",
"items": {
"$ref": "#/definitions/request.CareSchedule"
}
},
"classIds": {
"description": "分类id",
"type": "array",
"items": {
"type": "string"
}
},
"difficulty": {
"description": "种植难度 1-5级",
"type": "integer"
},
"distributionArea": {
"description": "分布区域",
"type": "string"
},
"flowerDiameter": {
"description": "花直径(cm)",
"type": "integer"
},
"floweringColor": {
"description": "花色",
"type": "string"
},
"floweringPeriod": {
"description": "开花特征",
"type": "string"
},
"floweringShape": {
"description": "花形",
"type": "string"
},
"foliageColor": {
"description": "叶色",
"type": "string"
},
"foliageShape": {
"description": "叶形",
"type": "string"
},
"foliageType": {
"description": "植物特征",
"type": "string"
},
"fruit": {
"description": "果",
"type": "string"
},
"genus": {
"description": "属",
"type": "string"
},
"growthHabit": {
"description": "生长习性",
"type": "string"
},
"height": {
"description": "高度(cm)",
"type": "integer"
},
"isHot": {
"description": "是否热门",
"type": "integer"
},
"latinName": {
"description": "拉丁名",
"type": "string"
},
"lifeCycle": {
"description": "生命周期",
"type": "string"
},
"lightIntensity": {
"description": "光照强度",
"type": "string"
},
"lightType": {
"description": "光照类型(直射,散射等)",
"type": "string"
},
"name": {
"description": "基本信息",
"type": "string"
},
"optimalTempPeriod": {
"description": "最佳温度区间",
"type": "string"
},
"ossIds": {
"description": "图片",
"type": "array",
"items": {
"type": "string"
}
},
"pestsDiseases": {
"description": "常见病虫害",
"type": "string"
},
"relatedLibraryIds": {
"description": "相关推荐 library",
"type": "array",
"items": {
"type": "string"
}
},
"reproductionMethod": {
"description": "繁殖方法",
"type": "string"
},
"stem": {
"description": "茎",
"type": "string"
},
"tag": {
"description": "标签",
"type": "string"
}
}
},
"request.CreateMyPlant": {
"type": "object",
"properties": {
"carePlans": {
"description": "养护计划",
"type": "array",
"items": {
"$ref": "#/definitions/request.CarePlan"
}
},
"name": {
"description": "植物名称",
"type": "string"
},
"ossIds": {
"description": "图片",
"type": "array",
"items": {
"type": "string"
}
},
"placement": {
"description": "摆放位置",
"type": "string"
},
"plantTime": {
"description": "种植时间",
"type": "string"
},
"plantingMaterial": {
"description": "植料(即土的材质)",
"type": "string"
},
"potMaterial": {
"description": "花盆材质",
"type": "string"
},
"potSize": {
"description": "花盆大小 如直径 20cm × 高度 18cm",
"type": "string"
},
"sunlight": {
"description": "光照条件如每日12小时",
"type": "string"
}
}
},
"request.CreatePost": {
"type": "object",
"properties": {
"content": {
"description": "内容",
"type": "string"
},
"location": {
"description": "位置",
"type": "string"
},
"ossIds": {
"description": "图片id[]",
"type": "array",
"items": {
"type": "string"
}
},
"title": {
"description": "标题 必须",
"type": "string"
}
}
},
"request.CreateQrcode": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"ossId": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"request.DeleteClass": {
"type": "object",
"properties": {
"id": {
"description": "植物id",
"type": "string"
},
"ids": {
"description": "要取消关联的分类ids",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"request.DeleteOss": {
"type": "object",
"required": [
"id",
"ossIds"
],
"properties": {
"id": {
"description": "数据主键",
"type": "string"
},
"ossIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"request.DeleteRelatedLibrary": {
"type": "object",
"properties": {
"id": {
"description": "植物id",
"type": "string"
},
"ids": {
"description": "要取消关联的植物ids",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"request.GetClientList": {
"type": "object",
"properties": {
"clientId": {
"type": "string"
},
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.GetMenuTree": {
"type": "object",
"properties": {
"category": {
"type": "integer"
},
"parentId": {
"type": "string"
}
}
},
"request.GetOssFileList": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.GetRoleList": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.GetUserList": {
"type": "object",
"properties": {
"account": {
"type": "string"
},
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
},
"phone": {
"type": "string"
}
}
},
"request.GrantMenu": {
"type": "object",
"properties": {
"menuIds": {
"type": "array",
"items": {
"type": "string"
}
},
"roleId": {
"type": "string"
}
}
},
"request.GrantRole": {
"type": "object",
"properties": {
"roleIds": {
"type": "array",
"items": {
"type": "string"
}
},
"userId": {
"type": "string"
}
}
},
"request.IdsReq": {
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"request.LibraryList": {
"type": "object",
"properties": {
"isHot": {
"description": "是否热门 0否 1是",
"type": "integer"
},
"name": {
"description": "植物名称",
"type": "string"
}
}
},
"request.LibraryPage": {
"type": "object",
"properties": {
"classId": {
"description": "分类id",
"type": "string"
},
"current": {
"description": "页码",
"type": "integer"
},
"isHot": {
"description": "是否热门 0否 1是",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"description": "植物名称",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.Login": {
"type": "object",
"properties": {
"account": {
"type": "string"
},
"captcha": {
"type": "string"
},
"captchaId": {
"type": "string"
},
"password": {
"type": "string"
}
}
},
"request.MakeCare": {
"type": "object",
"required": [
"id",
"status"
],
"properties": {
"id": {
"description": "今日养护id(任务id",
"type": "string"
},
"remark": {
"description": "备注",
"type": "string"
},
"status": {
"description": "状态 1:未完成 2:完成 3:跳过 4:逾期",
"type": "integer"
}
}
},
"request.OrderPage": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"isShipped": {
"description": "是否发货 0 1",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
},
"status": {
"description": "支付状态 1.SUCCESS 2.REFUND 3.NOTPAY 4.CLOSED",
"type": "integer"
}
}
},
"request.PageBadge": {
"type": "object",
"properties": {
"categoryId": {
"type": "string"
},
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.PageCategory": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.PageClaimPlant": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.PageGrowRecord": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"id": {
"description": "植物id",
"type": "string"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.PageInfo": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.PagePlant": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"name": {
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
}
}
},
"request.PostPage": {
"type": "object",
"properties": {
"current": {
"description": "页码",
"type": "integer"
},
"hasReviewed": {
"description": "是否审核通过",
"type": "integer"
},
"keyword": {
"description": "关键字",
"type": "string"
},
"pageSize": {
"description": "每页大小",
"type": "integer"
},
"title": {
"description": "标题",
"type": "string"
}
}
},
"request.UnionLibrary": {
"type": "object",
"properties": {
"id": {
"description": "植物id",
"type": "string"
},
"libraryId": {
"description": "百科植物id",
"type": "string"
}
}
},
"request.UpdateAddress": {
"type": "object",
"required": [
"id"
],
"properties": {
"detail": {
"type": "string"
},
"id": {
"type": "string"
},
"isDefault": {
"type": "integer"
},
"name": {
"type": "string"
},
"phone": {
"type": "string"
}
}
},
"request.UpdateBadge": {
"type": "object",
"required": [
"countLimit",
"id"
],
"properties": {
"categoryId": {
"type": "string"
},
"countLimit": {
"description": "获取徽章需要完成的操作次数",
"type": "integer"
},
"desc": {
"type": "string"
},
"id": {
"type": "string"
},
"keyword": {
"type": "string"
},
"name": {
"type": "string"
},
"ossId": {
"type": "string"
}
}
},
"request.UpdateBadgeCategory": {
"type": "object",
"required": [
"id"
],
"properties": {
"desc": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"request.UpdateCarePlan": {
"type": "object",
"required": [
"id",
"period"
],
"properties": {
"id": {
"description": "养护计划id",
"type": "string"
},
"period": {
"description": "周期",
"type": "integer"
}
}
},
"request.UpdateClaimPlant": {
"type": "object",
"required": [
"id"
],
"properties": {
"content": {
"type": "string"
},
"id": {
"type": "string"
},
"libraryId": {
"description": "百科id",
"type": "string"
},
"name": {
"type": "string"
},
"points": {
"type": "integer"
},
"postage": {
"description": "邮费 单位(分)",
"type": "integer"
},
"stock": {
"description": "库存",
"type": "integer"
},
"tag": {
"type": "string"
},
"videoUrl": {
"type": "string"
}
}
},
"request.UpdateClassification": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"description": "分类名称",
"type": "string"
},
"ossId": {
"description": "图片id",
"type": "string"
},
"tag": {
"description": "标签",
"type": "string"
}
}
},
"request.UpdateInvitationConfig": {
"type": "object",
"required": [
"id"
],
"properties": {
"codeExpireDays": {
"description": "邀请码有效期(天)",
"type": "integer"
},
"codeLength": {
"description": "邀请码长度",
"type": "integer"
},
"enableAutoAward": {
"description": "是否自动发放积分",
"type": "integer"
},
"id": {
"type": "string"
},
"isActive": {
"description": "是否启用",
"type": "integer"
},
"maxInvitesPerDay": {
"description": "每日最大邀请奖励次数",
"type": "integer"
},
"maxPointsPerUser": {
"description": "单用户最大邀请奖励积分",
"type": "integer"
},
"name": {
"description": "配置名称",
"type": "string"
},
"pointsPerInvite": {
"description": "每成功邀请奖励积分",
"type": "integer"
}
}
},
"request.UpdateLibrary": {
"type": "object",
"required": [
"id"
],
"properties": {
"aliases": {
"description": "别名",
"type": "string"
},
"difficulty": {
"description": "种植难度 1-5级",
"type": "integer"
},
"distributionArea": {
"description": "分布区域",
"type": "string"
},
"flowerDiameter": {
"description": "花直径(cm)",
"type": "integer"
},
"floweringColor": {
"description": "花色",
"type": "string"
},
"floweringPeriod": {
"description": "开花特征",
"type": "string"
},
"floweringShape": {
"description": "花形",
"type": "string"
},
"foliageColor": {
"description": "叶色",
"type": "string"
},
"foliageShape": {
"description": "叶形",
"type": "string"
},
"foliageType": {
"description": "植物特征",
"type": "string"
},
"fruit": {
"description": "果",
"type": "string"
},
"genus": {
"description": "属",
"type": "string"
},
"growthHabit": {
"description": "生长习性",
"type": "string"
},
"height": {
"description": "高度(cm)",
"type": "integer"
},
"id": {
"type": "string"
},
"isHot": {
"description": "是否热门",
"type": "integer"
},
"latinName": {
"description": "拉丁名",
"type": "string"
},
"lifeCycle": {
"description": "生命周期",
"type": "string"
},
"lightIntensity": {
"description": "光照强度",
"type": "string"
},
"lightType": {
"description": "光照类型(直射,散射等)",
"type": "string"
},
"name": {
"description": "名称",
"type": "string"
},
"optimalTempPeriod": {
"description": "温度",
"type": "string"
},
"ossId": {
"description": "ossId",
"type": "string"
},
"pestsDiseases": {
"description": "常见病虫害",
"type": "string"
},
"stem": {
"description": "茎",
"type": "string"
},
"tag": {
"description": "标签",
"type": "string"
}
}
},
"request.UpdateMyPlant": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"description": "植物名称",
"type": "string"
},
"placement": {
"description": "摆放位置",
"type": "string"
},
"plantingMaterial": {
"description": "植料(即土的材质)",
"type": "string"
},
"potMaterial": {
"description": "花盆材质",
"type": "string"
},
"potSize": {
"description": "花盆大小 如直径 20cm × 高度 18cm",
"type": "string"
},
"sunlight": {
"description": "光照条件如每日12小时",
"type": "string"
}
}
},
"request.UpdatePost": {
"type": "object",
"required": [
"id"
],
"properties": {
"content": {
"description": "内容",
"type": "string"
},
"id": {
"type": "string"
},
"title": {
"description": "标题",
"type": "string"
}
}
},
"request.UpdateQrcode": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"request.UploadFile": {
"type": "object",
"required": [
"id",
"ossIds"
],
"properties": {
"id": {
"description": "数据主键",
"type": "string"
},
"ossIds": {
"description": "ossId",
"type": "string"
}
}
},
"request.UploadOss": {
"type": "object",
"required": [
"id",
"ossIds"
],
"properties": {
"id": {
"description": "数据主键",
"type": "string"
},
"ossIds": {
"description": "ossIds",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"response.CaptchaRes": {
"type": "object",
"properties": {
"captcha": {
"type": "string"
},
"captchaId": {
"type": "string"
}
}
},
"response.LoginResponse": {
"type": "object",
"properties": {
"expiresAt": {
"type": "integer"
},
"token": {
"type": "string"
},
"user": {
"$ref": "#/definitions/system.User"
}
}
},
"response.PageResult": {
"type": "object",
"properties": {
"list": {},
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer"
},
"total": {
"type": "integer"
}
}
},
"response.Response": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"data": {},
"msg": {
"type": "string"
}
}
},
"system.Client": {
"type": "object",
"properties": {
"activeTimeout": {
"type": "integer"
},
"additionalInfo": {
"type": "string"
},
"clientId": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"createdAtStr": {
"type": "string"
},
"grantType": {
"type": "string"
},
"id": {
"description": "主键ID",
"type": "string"
},
"name": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
},
"system.Menu": {
"type": "object",
"properties": {
"category": {
"type": "integer"
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/system.Menu"
}
},
"code": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"createdAtStr": {
"type": "string"
},
"icon": {
"type": "string"
},
"id": {
"description": "主键ID",
"type": "string"
},
"locale": {
"type": "string"
},
"name": {
"type": "string"
},
"parentId": {
"type": "string"
},
"permission": {
"type": "string"
},
"sort": {
"type": "integer"
},
"title": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
},
"system.Oss": {
"type": "object",
"properties": {
"createdAt": {
"type": "string"
},
"createdAtStr": {
"type": "string"
},
"height": {
"type": "integer"
},
"id": {
"description": "主键ID",
"type": "string"
},
"key": {
"type": "string"
},
"md5": {
"type": "string"
},
"name": {
"type": "string"
},
"suffix": {
"type": "string"
},
"tag": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"url": {
"type": "string"
},
"width": {
"type": "integer"
}
}
},
"system.Role": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"createdAtStr": {
"type": "string"
},
"id": {
"description": "主键ID",
"type": "string"
},
"menus": {
"type": "array",
"items": {
"$ref": "#/definitions/system.Menu"
}
},
"name": {
"type": "string"
},
"sort": {
"type": "integer"
},
"updatedAt": {
"type": "string"
}
}
},
"system.User": {
"type": "object",
"properties": {
"account": {
"type": "string"
},
"avatar": {
"$ref": "#/definitions/system.Oss"
},
"avatarId": {
"type": "string"
},
"clientId": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"createdAtStr": {
"type": "string"
},
"id": {
"description": "主键ID",
"type": "string"
},
"miniOpenId": {
"description": "植趣小程序openid",
"type": "string"
},
"name": {
"type": "string"
},
"phone": {
"type": "string"
},
"saOpenId": {
"description": "植趣服务号openid",
"type": "string"
},
"sessionKey": {
"type": "string"
},
"tenantId": {
"type": "string"
},
"unionId": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
}
},
"securityDefinitions": {
"ApiKeyAuth": {
"type": "apiKey",
"name": "Authorization",
"in": "header"
}
}
}