feat: 用户中心
This commit is contained in:
+334
-27
@@ -27,6 +27,22 @@ definitions:
|
||||
required:
|
||||
- taskId
|
||||
type: object
|
||||
request.CreateCarePlan:
|
||||
properties:
|
||||
icon:
|
||||
description: icon信息
|
||||
type: string
|
||||
name:
|
||||
description: 农事名称
|
||||
type: string
|
||||
period:
|
||||
description: 周期
|
||||
type: integer
|
||||
plantId:
|
||||
type: string
|
||||
required:
|
||||
- plantId
|
||||
type: object
|
||||
request.CreateComment:
|
||||
properties:
|
||||
content:
|
||||
@@ -39,6 +55,40 @@ definitions:
|
||||
- content
|
||||
- postId
|
||||
type: object
|
||||
request.CreateGrowthRecord:
|
||||
properties:
|
||||
content:
|
||||
type: string
|
||||
desc:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
ossIds:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
plantId:
|
||||
type: string
|
||||
tag:
|
||||
type: string
|
||||
required:
|
||||
- plantId
|
||||
type: object
|
||||
request.CreateLevelConf:
|
||||
properties:
|
||||
level:
|
||||
description: 等级数值
|
||||
type: integer
|
||||
minSunlight:
|
||||
description: 达到该等级所需的最小阳光值
|
||||
type: integer
|
||||
perks:
|
||||
description: 解锁权益描述 (e.g., "解锁智能诊断")
|
||||
type: string
|
||||
title:
|
||||
description: 等级称号 (e.g., "萌芽园丁")
|
||||
type: string
|
||||
type: object
|
||||
request.CreateMyPlant:
|
||||
properties:
|
||||
carePlans:
|
||||
@@ -339,6 +389,25 @@ definitions:
|
||||
description: 标题
|
||||
type: string
|
||||
type: object
|
||||
request.UpdateLevelConf:
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
level:
|
||||
description: 等级数值
|
||||
type: integer
|
||||
minSunlight:
|
||||
description: 达到该等级所需的最小阳光值
|
||||
type: integer
|
||||
perks:
|
||||
description: 解锁权益描述 (e.g., "解锁智能诊断")
|
||||
type: string
|
||||
title:
|
||||
description: 等级称号 (e.g., "萌芽园丁")
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
type: object
|
||||
request.UpdateMyPlant:
|
||||
properties:
|
||||
carePlans:
|
||||
@@ -384,6 +453,19 @@ definitions:
|
||||
required:
|
||||
- id
|
||||
type: object
|
||||
request.UpdateProfile:
|
||||
properties:
|
||||
avatarId:
|
||||
type: string
|
||||
currentSunlight:
|
||||
type: integer
|
||||
levelId:
|
||||
type: string
|
||||
nickname:
|
||||
type: string
|
||||
totalSunlight:
|
||||
type: integer
|
||||
type: object
|
||||
request.UpdateTopic:
|
||||
properties:
|
||||
end_time:
|
||||
@@ -823,6 +905,61 @@ paths:
|
||||
summary: 小程序登录
|
||||
tags:
|
||||
- 登录相关
|
||||
/classify/myClassifyLog:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: 分页
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.PageInfo'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 识别记录
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/response.Response'
|
||||
- properties:
|
||||
msg:
|
||||
type: string
|
||||
type: object
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: 我的植物识别记录
|
||||
tags:
|
||||
- 识别相关
|
||||
/classify/plant:
|
||||
post:
|
||||
consumes:
|
||||
- multipart/form-data
|
||||
parameters:
|
||||
- description: 植物识别
|
||||
in: formData
|
||||
name: file
|
||||
required: true
|
||||
type: file
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 文件OCR
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/response.Response'
|
||||
- properties:
|
||||
msg:
|
||||
type: string
|
||||
type: object
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: base64植物识别
|
||||
tags:
|
||||
- 识别相关
|
||||
/client/delete:
|
||||
post:
|
||||
consumes:
|
||||
@@ -965,6 +1102,86 @@ paths:
|
||||
summary: 更新client
|
||||
tags:
|
||||
- 客户端管理
|
||||
/config/level/add:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: 添加等级配置
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.CreateLevelConf'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: '{"success":true,"data":{},"msg":"添加成功"}'
|
||||
schema:
|
||||
type: string
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 添加等级配置
|
||||
tags:
|
||||
- 等级配置
|
||||
/config/level/detail:
|
||||
get:
|
||||
parameters:
|
||||
- description: 等级配置id
|
||||
in: query
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: '{"success":true,"data":{},"msg":"查询成功"}'
|
||||
schema:
|
||||
type: string
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 等级配置详情
|
||||
tags:
|
||||
- 等级配置
|
||||
/config/level/list:
|
||||
get:
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: '{"success":true,"data":{},"msg":"查询成功"}'
|
||||
schema:
|
||||
type: string
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 等级配置列表
|
||||
tags:
|
||||
- 等级配置
|
||||
/config/level/update:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: 修改等级配置
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.UpdateLevelConf'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: '{"success":true,"data":{},"msg":"修改成功"}'
|
||||
schema:
|
||||
type: string
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 修改等级配置
|
||||
tags:
|
||||
- 等级配置
|
||||
/menu/delete:
|
||||
get:
|
||||
description: 删除menu
|
||||
@@ -1151,33 +1368,6 @@ paths:
|
||||
summary: 更新菜单
|
||||
tags:
|
||||
- 菜单管理
|
||||
/ocr/base64:
|
||||
post:
|
||||
consumes:
|
||||
- multipart/form-data
|
||||
parameters:
|
||||
- description: 植物识别
|
||||
in: formData
|
||||
name: file
|
||||
required: true
|
||||
type: file
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 文件OCR
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/response.Response'
|
||||
- properties:
|
||||
msg:
|
||||
type: string
|
||||
type: object
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: base64植物识别
|
||||
tags:
|
||||
- 识别相关
|
||||
/oss/delete:
|
||||
post:
|
||||
consumes:
|
||||
@@ -1398,6 +1588,29 @@ paths:
|
||||
summary: ById植物详情
|
||||
tags:
|
||||
- 我的植物
|
||||
/plant/growth/add:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: 添加成长记录
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.CreateGrowthRecord'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: '{"success":true,"data":{},"msg":"添加成功"}'
|
||||
schema:
|
||||
type: string
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 添加成长记录
|
||||
tags:
|
||||
- 我的植物
|
||||
/plant/page:
|
||||
post:
|
||||
consumes:
|
||||
@@ -1421,6 +1634,49 @@ paths:
|
||||
summary: 植物列表
|
||||
tags:
|
||||
- 我的植物
|
||||
/plant/plan/add:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: 添加养护事项
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.CreateCarePlan'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: '{"success":true,"data":{},"msg":"添加成功"}'
|
||||
schema:
|
||||
type: string
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 添加养护事项
|
||||
tags:
|
||||
- 我的植物
|
||||
/plant/plan/delete:
|
||||
get:
|
||||
parameters:
|
||||
- description: id
|
||||
in: query
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: '{"success":true,"data":{},"msg":"删除成功"}'
|
||||
schema:
|
||||
type: string
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 删除养护事项
|
||||
tags:
|
||||
- 我的植物
|
||||
/plant/todayTask:
|
||||
get:
|
||||
consumes:
|
||||
@@ -1577,6 +1833,43 @@ paths:
|
||||
summary: 发布帖子
|
||||
tags:
|
||||
- 帖子
|
||||
/profile/detail:
|
||||
get:
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: '{"success":true,"data":{},"msg":"查询成功"}'
|
||||
schema:
|
||||
type: string
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 用户详情
|
||||
tags:
|
||||
- 个人中心
|
||||
/profile/update:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- description: 修改用户信息
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/request.UpdateProfile'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: '{"success":true,"data":{},"msg":"修改成功"}'
|
||||
schema:
|
||||
type: string
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: 修改用户信息
|
||||
tags:
|
||||
- 个人中心
|
||||
/role/delete:
|
||||
post:
|
||||
consumes:
|
||||
@@ -1965,6 +2258,20 @@ paths:
|
||||
summary: 给用户分配角色
|
||||
tags:
|
||||
- 用户管理
|
||||
/user/info:
|
||||
get:
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: '{"code": 200, "data": {}, "msg": "添加成功"}'
|
||||
schema:
|
||||
$ref: '#/definitions/response.Response'
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: 当前登录用户
|
||||
tags:
|
||||
- 用户管理
|
||||
/user/save:
|
||||
post:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user