完善功能
This commit is contained in:
@ -11,6 +11,6 @@ import (
|
||||
)
|
||||
|
||||
type IFeedbackV1 interface {
|
||||
FeedbackList(ctx context.Context, req *v1.FeedbackListReq) (res *v1.FeedbackListRes, err error)
|
||||
FeedbackAdd(ctx context.Context, req *v1.FeedbackAddReq) (res *v1.FeedbackAddRes, err error)
|
||||
List(ctx context.Context, req *v1.ListReq) (res *v1.ListRes, err error)
|
||||
Add(ctx context.Context, req *v1.AddReq) (res *v1.AddRes, err error)
|
||||
}
|
||||
|
||||
@ -6,22 +6,22 @@ import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
type FeedbackListReq struct {
|
||||
g.Meta `path:"/feedback" tags:"Feedback" method:"get" summary:"获取反馈列表"`
|
||||
Page int `json:"page" dc:"页码"`
|
||||
Size int `json:"size" dc:"每页数量"`
|
||||
UserId int64 `json:"userId" dc:"用户ID"`
|
||||
Status int `json:"status" dc:"处理状态:1未处理,2处理中,3已处理"`
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/feedback" tags:"Backend/Admin" method:"get" summary:"获取反馈列表"`
|
||||
Page int `json:"page" dc:"页码"`
|
||||
Size int `json:"size" dc:"每页数量"`
|
||||
UserId int64 `json:"userId" dc:"用户ID"`
|
||||
Status int `json:"status" dc:"处理状态:1未处理,2处理中,3已处理"`
|
||||
}
|
||||
type FeedbackListRes struct {
|
||||
type ListRes struct {
|
||||
Total int `json:"total" dc:"总数"`
|
||||
List []model.Feedback `json:"list" dc:"反馈列表"`
|
||||
}
|
||||
|
||||
type FeedbackAddReq struct {
|
||||
g.Meta `path:"/feedback" tags:"APP/Feedback" method:"post" summary:"新增反馈"`
|
||||
Content string `json:"content" dc:"反馈内容"`
|
||||
type AddReq struct {
|
||||
g.Meta `path:"/feedback" tags:"APP" method:"post" summary:"新增反馈"`
|
||||
Content string `json:"content" dc:"反馈内容" v:"required"`
|
||||
}
|
||||
type FeedbackAddRes struct {
|
||||
type AddRes struct {
|
||||
Success bool `json:"success" dc:"是否成功"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user