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:"是否成功"`
}
