init
This commit is contained in:
38
Backend/api/user/user.go
Normal file
38
Backend/api/user/user.go
Normal file
@@ -0,0 +1,38 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package user
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"leke/api/user/v1"
|
||||
)
|
||||
|
||||
type IUserV1 interface {
|
||||
FansList(ctx context.Context, req *v1.FansListReq) (res *v1.FansListRes, err error)
|
||||
FansView(ctx context.Context, req *v1.FansViewReq) (res *v1.FansViewRes, err error)
|
||||
FansUpdate(ctx context.Context, req *v1.FansUpdateReq) (res *v1.FansUpdateRes, err error)
|
||||
FansDelete(ctx context.Context, req *v1.FansDeleteReq) (res *v1.FansDeleteRes, err error)
|
||||
FansCreate(ctx context.Context, req *v1.FansCreateReq) (res *v1.FansCreateRes, err error)
|
||||
RoleCreate(ctx context.Context, req *v1.RoleCreateReq) (res *v1.RoleCreateRes, err error)
|
||||
RoleUpdate(ctx context.Context, req *v1.RoleUpdateReq) (res *v1.RoleUpdateRes, err error)
|
||||
RoleView(ctx context.Context, req *v1.RoleViewReq) (res *v1.RoleViewRes, err error)
|
||||
RoleList(ctx context.Context, req *v1.RoleListReq) (res *v1.RoleListRes, err error)
|
||||
RoleDelete(ctx context.Context, req *v1.RoleDeleteReq) (res *v1.RoleDeleteRes, err error)
|
||||
RolePermissionCheck(ctx context.Context, req *v1.RolePermissionCheckReq) (res *v1.RolePermissionCheckRes, err error)
|
||||
SubscribeList(ctx context.Context, req *v1.SubscribeListReq) (res *v1.SubscribeListRes, err error)
|
||||
SubscribeView(ctx context.Context, req *v1.SubscribeViewReq) (res *v1.SubscribeViewRes, err error)
|
||||
SubscribeUpdate(ctx context.Context, req *v1.SubscribeUpdateReq) (res *v1.SubscribeUpdateRes, err error)
|
||||
SubscribeDelete(ctx context.Context, req *v1.SubscribeDeleteReq) (res *v1.SubscribeDeleteRes, err error)
|
||||
SubscribeCreate(ctx context.Context, req *v1.SubscribeCreateReq) (res *v1.SubscribeCreateRes, err error)
|
||||
TraceList(ctx context.Context, req *v1.TraceListReq) (res *v1.TraceListRes, err error)
|
||||
TraceView(ctx context.Context, req *v1.TraceViewReq) (res *v1.TraceViewRes, err error)
|
||||
TraceUpdate(ctx context.Context, req *v1.TraceUpdateReq) (res *v1.TraceUpdateRes, err error)
|
||||
TraceReduce(ctx context.Context, req *v1.TraceReduceReq) (res *v1.TraceReduceRes, err error)
|
||||
UserList(ctx context.Context, req *v1.UserListReq) (res *v1.UserListRes, err error)
|
||||
UserView(ctx context.Context, req *v1.UserViewReq) (res *v1.UserViewRes, err error)
|
||||
UserUpdate(ctx context.Context, req *v1.UserUpdateReq) (res *v1.UserUpdateRes, err error)
|
||||
UserDelete(ctx context.Context, req *v1.UserDeleteReq) (res *v1.UserDeleteRes, err error)
|
||||
}
|
||||
80
Backend/api/user/v1/fans.go
Normal file
80
Backend/api/user/v1/fans.go
Normal file
@@ -0,0 +1,80 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"leke/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// FansListItem 粉丝列表项
|
||||
type FansListItem struct {
|
||||
Id uint64 `json:"id" description:"自增主键"`
|
||||
UserId uint64 `json:"userId" description:"用户ID(被关注者,本人)"`
|
||||
FanId uint64 `json:"fanId" description:"粉丝用户ID"`
|
||||
Status int `json:"status" description:"状态:1=粉丝 0=取关/无效"`
|
||||
Remark string `json:"remark" description:"备注名(user_id 对 fan_id 的备注/分组)"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
}
|
||||
|
||||
// FansListReq 粉丝列表请求参数
|
||||
type FansListReq struct {
|
||||
response.PageResult
|
||||
g.Meta `path:"/fans/list" method:"get" tags:"粉丝" summary:"粉丝列表"`
|
||||
UserId uint64 `json:"userId" v:"required#用户ID不能为空"`
|
||||
Status int `json:"status" description:"状态:1=粉丝 0=取关/无效"`
|
||||
}
|
||||
|
||||
// FansListRes 粉丝列表响应参数
|
||||
type FansListRes struct {
|
||||
response.PageResult
|
||||
List []*FansListItem `json:"list"`
|
||||
}
|
||||
|
||||
// FansViewReq 粉丝详情请求参数
|
||||
type FansViewReq struct {
|
||||
g.Meta `path:"/fans/view" method:"get" tags:"粉丝" summary:"粉丝详情"`
|
||||
Id uint64 `json:"id" v:"required#粉丝关系ID不能为空"`
|
||||
}
|
||||
|
||||
// FansViewRes 粉丝详情响应参数
|
||||
type FansViewRes struct {
|
||||
FansListItem
|
||||
}
|
||||
|
||||
// FansUpdateReq 粉丝更新请求参数
|
||||
type FansUpdateReq struct {
|
||||
g.Meta `path:"/fans/update" method:"put" tags:"粉丝" summary:"更新粉丝"`
|
||||
Id uint64 `json:"id" v:"required#粉丝关系ID不能为空"`
|
||||
Status int `json:"status" description:"状态:1=粉丝 0=取关/无效"`
|
||||
Remark string `json:"remark" description:"备注名(user_id 对 fan_id 的备注/分组)"`
|
||||
}
|
||||
|
||||
// FansUpdateRes 粉丝更新响应参数
|
||||
type FansUpdateRes struct {
|
||||
Id uint64 `json:"id"`
|
||||
}
|
||||
|
||||
// FansDeleteReq 粉丝删除请求参数
|
||||
type FansDeleteReq struct {
|
||||
g.Meta `path:"/fans/delete" method:"delete" tags:"粉丝" summary:"删除粉丝"`
|
||||
Id uint64 `json:"id" v:"required#粉丝关系ID不能为空"`
|
||||
}
|
||||
|
||||
// FansDeleteRes 粉丝删除响应参数
|
||||
type FansDeleteRes struct {
|
||||
}
|
||||
|
||||
// FansCreateReq 粉丝创建请求参数
|
||||
type FansCreateReq struct {
|
||||
g.Meta `path:"/fans/create" method:"post" tags:"粉丝" summary:"创建粉丝"`
|
||||
UserId uint64 `json:"userId" v:"required#用户ID不能为空"`
|
||||
FanId uint64 `json:"fanId" v:"required#粉丝用户ID不能为空"`
|
||||
Remark string `json:"remark" description:"备注名(user_id 对 fan_id 的备注/分组)"`
|
||||
}
|
||||
|
||||
// FansCreateRes 粉丝创建响应参数
|
||||
type FansCreateRes struct {
|
||||
Id uint64 `json:"id"`
|
||||
}
|
||||
113
Backend/api/user/v1/role.go
Normal file
113
Backend/api/user/v1/role.go
Normal file
@@ -0,0 +1,113 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"leke/internal/model/response"
|
||||
)
|
||||
|
||||
type RoleCreateReq struct {
|
||||
g.Meta `path:"/role/create" method:"post" tags:"角色" summary:"创建角色"`
|
||||
UserId uint64 `json:"userId" v:"required" description:"所属用户ID"`
|
||||
DepartmentId uint64 `json:"departmentId" description:"所属部门ID"`
|
||||
AgentName string `json:"agentName" v:"required|length:1,50" description:"特工名字"`
|
||||
CodeName string `json:"codeName" v:"required|length:1,50" description:"代号"`
|
||||
Gender string `json:"gender" v:"required|in:male,female,other" description:"性别"`
|
||||
ArcAbnormal string `json:"arcAbnormal" description:"ARC:异常"`
|
||||
ArcReality string `json:"arcReality" description:"ARC:现实"`
|
||||
ArcPosition string `json:"arcPosition" description:"ARC:职位"`
|
||||
}
|
||||
|
||||
type RoleCreateRes struct {
|
||||
Id uint64 `json:"id" description:"角色ID"`
|
||||
}
|
||||
|
||||
type RoleUpdateReq struct {
|
||||
g.Meta `path:"/role/update" method:"put" tags:"角色" summary:"更新角色"`
|
||||
Id uint64 `json:"id" v:"required" description:"角色ID"`
|
||||
DepartmentId uint64 `json:"departmentId" description:"所属部门ID"`
|
||||
AgentName string `json:"agentName" v:"required|length:1,50" description:"特工名字"`
|
||||
CodeName string `json:"codeName" v:"required|length:1,50" description:"代号"`
|
||||
Gender string `json:"gender" v:"required|in:male,female,other" description:"性别"`
|
||||
ArcAbnormal string `json:"arcAbnormal" description:"ARC:异常"`
|
||||
ArcReality string `json:"arcReality" description:"ARC:现实"`
|
||||
ArcPosition string `json:"arcPosition" description:"ARC:职位"`
|
||||
Commendation uint `json:"commendation" description:"嘉奖次数"`
|
||||
Reprimand uint `json:"reprimand" description:"申戒次数"`
|
||||
BlueTrack uint `json:"blueTrack" description:"蓝轨(0-40)"`
|
||||
YellowTrack uint `json:"yellowTrack" description:"黄轨(0-40)"`
|
||||
RedTrack uint `json:"redTrack" description:"红轨(0-40)"`
|
||||
}
|
||||
|
||||
type RoleUpdateRes struct {
|
||||
Id uint64 `json:"id" description:"角色ID"`
|
||||
}
|
||||
|
||||
type RoleViewReq struct {
|
||||
g.Meta `path:"/role/view" method:"get" tags:"角色" summary:"查看角色"`
|
||||
Id uint64 `json:"id" v:"required" description:"角色ID"`
|
||||
}
|
||||
|
||||
type RoleViewRes struct {
|
||||
RoleViewParams `json:",inline"`
|
||||
}
|
||||
|
||||
type RoleViewParams struct {
|
||||
Id uint64 `json:"id" description:"角色卡ID"`
|
||||
UserId uint64 `json:"userId" description:"所属用户ID"`
|
||||
DepartmentId uint64 `json:"departmentId" description:"所属部门ID"`
|
||||
Commendation uint `json:"commendation" description:"嘉奖次数"`
|
||||
Reprimand uint `json:"reprimand" description:"申戒次数"`
|
||||
BlueTrack uint `json:"blueTrack" description:"蓝轨(0-40)"`
|
||||
YellowTrack uint `json:"yellowTrack" description:"黄轨(0-40)"`
|
||||
RedTrack uint `json:"redTrack" description:"红轨(0-40)"`
|
||||
ArcAbnormal string `json:"arcAbnormal" description:"ARC:异常"`
|
||||
ArcReality string `json:"arcReality" description:"ARC:现实"`
|
||||
ArcPosition string `json:"arcPosition" description:"ARC:职位"`
|
||||
AgentName string `json:"agentName" description:"特工名字"`
|
||||
CodeName string `json:"codeName" description:"代号"`
|
||||
Gender string `json:"gender" description:"性别"`
|
||||
QaMeticulous uint `json:"qaMeticulous" description:"Meticulousness (0-100, QA)"`
|
||||
QaDeception uint `json:"qaDeception" description:"Deception (0-100, QA)"`
|
||||
QaVigor uint `json:"qaVigor" description:"Vigor / Drive (0-100, QA)"`
|
||||
QaEmpathy uint `json:"qaEmpathy" description:"Empathy (0-100, QA)"`
|
||||
QaInitiative uint `json:"qaInitiative" description:"Initiative (0-100, QA)"`
|
||||
QaResilience uint `json:"qaResilience" description:"Resilience / Persistence (0-100, QA)"`
|
||||
QaPresence uint `json:"qaPresence" description:"Presence / Charisma (0-100, QA)"`
|
||||
QaProfessional uint `json:"qaProfessional" description:"Professionalism (0-100, QA)"`
|
||||
QaDiscretion uint `json:"qaDiscretion" description:"Discretion / Low profile (0-100, QA)"`
|
||||
}
|
||||
|
||||
type RoleListReq struct {
|
||||
g.Meta `path:"/role/list" method:"get" tags:"角色" summary:"角色列表"`
|
||||
response.PageResult
|
||||
UserId uint64 `json:"userId" description:"用户ID"`
|
||||
DepartmentId uint64 `json:"departmentId" description:"部门ID"`
|
||||
}
|
||||
|
||||
type RoleListRes struct {
|
||||
response.PageResult
|
||||
List []*RoleViewParams `json:"list" description:"角色列表"`
|
||||
}
|
||||
|
||||
type RoleDeleteReq struct {
|
||||
g.Meta `path:"/role/delete" method:"delete" tags:"角色" summary:"删除角色"`
|
||||
Id uint64 `json:"id" v:"required" description:"角色ID"`
|
||||
}
|
||||
|
||||
type RoleDeleteRes struct {
|
||||
Id uint64 `json:"id" description:"角色ID"`
|
||||
}
|
||||
|
||||
// RolePermissionCheckReq 权限查询请求
|
||||
type RolePermissionCheckReq struct {
|
||||
g.Meta `path:"/role/permission/check" method:"post" tags:"角色" summary:"检查角色权限"`
|
||||
RoleId uint64 `json:"roleId" v:"required" description:"角色ID"`
|
||||
FileValue uint `json:"fileValue" v:"required|min:0|max:40" description:"文件需要的轨道值(0-40)"`
|
||||
TrackType string `json:"trackType" v:"required|in:blue,yellow,red" description:"轨道类型:blue(蓝轨),yellow(黄轨),red(红轨)"`
|
||||
}
|
||||
|
||||
// RolePermissionCheckRes 权限查询响应
|
||||
type RolePermissionCheckRes struct {
|
||||
Code int `json:"code" description:"响应码:333表示成功"`
|
||||
Mes string `json:"mes" description:"响应消息"`
|
||||
}
|
||||
81
Backend/api/user/v1/subscribe.go
Normal file
81
Backend/api/user/v1/subscribe.go
Normal file
@@ -0,0 +1,81 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"leke/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SubscribeListItem 关注列表项
|
||||
type SubscribeListItem struct {
|
||||
Id uint64 `json:"id" description:"自增主键"`
|
||||
UserId uint64 `json:"userId" description:"用户ID(关注者,本人)"`
|
||||
FollowId uint64 `json:"followId" description:"被关注的用户ID"`
|
||||
Status int `json:"status" description:"状态:1=关注中 0=取消关注"`
|
||||
Remark string `json:"remark" description:"备注名(user_id 对 follow_id 的备注)"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
}
|
||||
|
||||
// SubscribeListReq 关注列表请求参数
|
||||
type SubscribeListReq struct {
|
||||
response.PageResult
|
||||
g.Meta `path:"/subscribe/list" method:"get" tags:"关注" summary:"关注列表"`
|
||||
UserId uint64 `json:"userId" v:"required#用户ID不能为空"`
|
||||
Status int `json:"status" description:"状态:1=关注中 0=取消关注"`
|
||||
FollowId uint64 `json:"followId" description:"被关注的用户ID"`
|
||||
}
|
||||
|
||||
// SubscribeListRes 关注列表响应参数
|
||||
type SubscribeListRes struct {
|
||||
response.PageResult
|
||||
List []*SubscribeListItem `json:"list"`
|
||||
}
|
||||
|
||||
// SubscribeViewReq 关注详情请求参数
|
||||
type SubscribeViewReq struct {
|
||||
g.Meta `path:"/subscribe/view" method:"get" tags:"关注" summary:"关注详情"`
|
||||
Id uint64 `json:"id" v:"required#关注关系ID不能为空"`
|
||||
}
|
||||
|
||||
// SubscribeViewRes 关注详情响应参数
|
||||
type SubscribeViewRes struct {
|
||||
SubscribeListItem
|
||||
}
|
||||
|
||||
// SubscribeUpdateReq 关注更新请求参数
|
||||
type SubscribeUpdateReq struct {
|
||||
g.Meta `path:"/subscribe/update" method:"put" tags:"关注" summary:"更新关注"`
|
||||
Id uint64 `json:"id" v:"required#关注关系ID不能为空"`
|
||||
Status int `json:"status" description:"状态:1=关注中 0=取消关注"`
|
||||
Remark string `json:"remark" description:"备注名(user_id 对 follow_id 的备注)"`
|
||||
}
|
||||
|
||||
// SubscribeUpdateRes 关注更新响应参数
|
||||
type SubscribeUpdateRes struct {
|
||||
Id uint64 `json:"id"`
|
||||
}
|
||||
|
||||
// SubscribeDeleteReq 关注删除请求参数
|
||||
type SubscribeDeleteReq struct {
|
||||
g.Meta `path:"/subscribe/delete" method:"delete" tags:"关注" summary:"删除关注"`
|
||||
Id uint64 `json:"id" v:"required#关注关系ID不能为空"`
|
||||
}
|
||||
|
||||
// SubscribeDeleteRes 关注删除响应参数
|
||||
type SubscribeDeleteRes struct {
|
||||
}
|
||||
|
||||
// SubscribeCreateReq 关注创建请求参数
|
||||
type SubscribeCreateReq struct {
|
||||
g.Meta `path:"/subscribe/create" method:"post" tags:"关注" summary:"创建关注"`
|
||||
UserId uint64 `json:"userId" v:"required#用户ID不能为空"`
|
||||
FollowId uint64 `json:"followId" v:"required#被关注用户ID不能为空"`
|
||||
Remark string `json:"remark" description:"备注名(user_id 对 follow_id 的备注)"`
|
||||
}
|
||||
|
||||
// SubscribeCreateRes 关注创建响应参数
|
||||
type SubscribeCreateRes struct {
|
||||
Id uint64 `json:"id"`
|
||||
}
|
||||
80
Backend/api/user/v1/trace.go
Normal file
80
Backend/api/user/v1/trace.go
Normal file
@@ -0,0 +1,80 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"leke/internal/model/response"
|
||||
)
|
||||
|
||||
// TraceListReq 查询轨迹列表请求参数
|
||||
type TraceListReq struct {
|
||||
response.PageResult
|
||||
g.Meta `path:"/trace/list" method:"get" tags:"轨迹" summary:"轨迹列表"`
|
||||
UserId uint64 `json:"userId" description:"用户ID"`
|
||||
RoleId uint64 `json:"roleId" description:"角色ID"`
|
||||
DepartmentId uint64 `json:"departmentId" description:"部门ID"`
|
||||
RedTrace int `json:"redTrace" description:"红轨"`
|
||||
YellowTrace int `json:"yellowTrace" description:"黄轨"`
|
||||
BlueTrace int `json:"blueTrace" description:"蓝轨"`
|
||||
}
|
||||
|
||||
// TraceListRes 查询轨迹列表响应数据
|
||||
type TraceListRes struct {
|
||||
response.PageResult
|
||||
List []*TraceViewParams `json:"list"`
|
||||
}
|
||||
|
||||
// TraceViewParams 轨迹视图参数
|
||||
type TraceViewParams struct {
|
||||
UserId uint64 `json:"userId" description:"用户ID"`
|
||||
RoleId uint64 `json:"roleId" description:"角色ID"`
|
||||
DepartmentId uint64 `json:"departmentId" description:"部门ID"`
|
||||
RedTrace int `json:"redTrace" description:"红轨"`
|
||||
YellowTrace int `json:"yellowTrace" description:"黄轨"`
|
||||
BlueTrace int `json:"blueTrace" description:"蓝轨"`
|
||||
}
|
||||
|
||||
// TraceViewReq 查看轨迹详情请求参数
|
||||
type TraceViewReq struct {
|
||||
g.Meta `path:"/trace/view" method:"get" tags:"轨迹" summary:"轨迹详情"`
|
||||
RoleId uint64 `json:"roleId" description:"角色ID"`
|
||||
RedTrace int `json:"redTrace" description:"红轨"`
|
||||
YellowTrace int `json:"yellowTrace" description:"黄轨"`
|
||||
BlueTrace int `json:"blueTrace" description:"蓝轨"`
|
||||
}
|
||||
|
||||
// TraceViewRes 查看轨迹详情响应数据
|
||||
type TraceViewRes struct {
|
||||
TraceViewParams
|
||||
}
|
||||
|
||||
// TraceUpdateReq 更新轨迹请求参数
|
||||
type TraceUpdateReq struct {
|
||||
g.Meta `path:"/trace/update" method:"put" tags:"轨迹" summary:"更新轨迹"`
|
||||
UserId uint64 `json:"userId"`
|
||||
RoleId uint64 `json:"roleId" description:"角色ID"`
|
||||
DepartmentId uint64 `json:"departmentId"`
|
||||
RedTrace int `json:"redTrace" description:"红轨"`
|
||||
YellowTrace int `json:"yellowTrace" description:"黄轨"`
|
||||
BlueTrace int `json:"blueTrace" description:"蓝轨"`
|
||||
}
|
||||
|
||||
// TraceUpdateRes 更新轨迹响应数据
|
||||
type TraceUpdateRes struct {
|
||||
RoleId uint64 `json:"roleId" description:"角色ID"`
|
||||
RedTrace int `json:"redTrace" description:"红轨"`
|
||||
YellowTrace int `json:"yellowTrace" description:"黄轨"`
|
||||
BlueTrace int `json:"blueTrace" description:"蓝轨"`
|
||||
}
|
||||
|
||||
// TraceReduceReq 删除轨迹请求参数
|
||||
type TraceReduceReq struct {
|
||||
g.Meta `path:"/trace/Reduce" method:"delete" tags:"轨迹" summary:"删除轨迹"`
|
||||
RoleId uint64 `json:"roleId" description:"角色ID"`
|
||||
RedTrace int `json:"redTrace" description:"红轨"`
|
||||
YellowTrace int `json:"yellowTrace" description:"黄轨"`
|
||||
BlueTrace int `json:"blueTrace" description:"蓝轨"`
|
||||
}
|
||||
|
||||
// TraceReduceRes 删除轨迹响应数据
|
||||
type TraceReduceRes struct {
|
||||
}
|
||||
44
Backend/api/user/v1/user.go
Normal file
44
Backend/api/user/v1/user.go
Normal file
@@ -0,0 +1,44 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"leke/internal/model"
|
||||
"leke/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type UserListReq struct {
|
||||
response.PageResult
|
||||
g.Meta `path:"/user/list" method:"get" tags:"用户" summary:"用户列表"`
|
||||
Account string `json:"account" orm:"account" description:"账号"`
|
||||
Nickname string `json:"nickname" orm:"nickname" description:"昵称"`
|
||||
}
|
||||
|
||||
type UserListRes struct {
|
||||
response.PageResult
|
||||
Users []*model.UserViewParams
|
||||
}
|
||||
|
||||
type UserViewReq struct {
|
||||
g.Meta `path:"/user/view" method:"get" tags:"用户" summary:"用户详情"`
|
||||
Account string `json:"account" orm:"account" description:"账号"`
|
||||
Nickname string `json:"nickname" orm:"nickname" description:"昵称"`
|
||||
Id uint64 `json:"id" orm:"id" description:"用户ID"`
|
||||
}
|
||||
type UserViewRes struct {
|
||||
model.UserViewParams
|
||||
}
|
||||
type UserUpdateReq struct {
|
||||
g.Meta `path:"/user/update" method:"put" tags:"用户" summary:"更新用户"`
|
||||
Account string `json:"account" orm:"account" description:"账号"`
|
||||
model.User
|
||||
}
|
||||
type UserUpdateRes struct {
|
||||
Id uint64 `json:"id" orm:"id" description:"用户ID"`
|
||||
}
|
||||
type UserDeleteReq struct {
|
||||
g.Meta `path:"/user/delete" method:"delete" tags:"用户" summary:"删除用户"`
|
||||
Account string `json:"account" orm:"account" description:"账号"`
|
||||
}
|
||||
type UserDeleteRes struct {
|
||||
}
|
||||
Reference in New Issue
Block a user