Files
novel_server/api/feedback/v1/feedback.go

28 lines
798 B
Go
Raw Permalink 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.

package v1
import (
"server/internal/model"
"github.com/gogf/gf/v2/frame/g"
)
type ListReq struct {
g.Meta `path:"/feedback" tags:"Backend/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 ListRes struct {
Total int `json:"total" dc:"总数"`
List []model.Feedback `json:"list" dc:"反馈列表"`
}
type AddReq struct {
g.Meta `path:"/feedback" tags:"APP/Feedback" method:"post" summary:"新增反馈"`
Content string `json:"content" dc:"反馈内容" v:"required"`
}
type AddRes struct {
Success bool `json:"success" dc:"是否成功"`
}