反馈信息列表,详情修改

This commit is contained in:
chy
2025-06-06 10:26:54 +08:00
parent 830f9c236b
commit 74a54fb24d
6 changed files with 35 additions and 24 deletions

View File

@ -1,6 +1,9 @@
package v1
import "github.com/gogf/gf/v2/frame/g"
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
type ListReq struct {
g.Meta `path:"/feedback" method:"get" tags:"Feedback" summary:"根据用户查询反馈列表"`
@ -9,7 +12,7 @@ type ListReq struct {
Page int `json:"page" v:"required#页数不能为空" dc:"页数"`
Size int `json:"size" v:"required#页大小不能为"`
FeedbackType int `json:"feedbackType" v:"required#反馈类型不能为空" dc:"反馈类型"`
Title string `json:"title" v:"required#标题不能为空" dc:"标题"`
Title string `json:"title" dc:"标题"`
}
type ListRes struct {
@ -22,6 +25,8 @@ type CreateReq struct {
Title string `json:"title" v:"required#标题不能为空" dc:"标题"`
Content string `json:"content" v:"required#反馈内容不能为空" dc:"反馈内容"`
FeedbackType int `json:"feedbackType" v:"required#反馈类型不能为空" dc:"反馈类型"`
StoreId int64 `json:"storeId" v:"required#门店ID不能为空" dc:"门店ID"`
MerchantId int64 `json:"merchantId" v:"required#商户ID不能为空" dc:"商户ID"`
}
type CreateRes struct {
@ -62,16 +67,16 @@ type InfoFeedbackReq struct {
}
type InfoFeedbackRes struct {
Id int64 `json:"id" dc:"ID"`
Title string `json:"title" dc:"标题"`
Content string `json:"content" dc:"反馈内容"`
FeedbackType int `json:"feedbackType" dc:"反馈类型"`
Reply string `json:"reply" dc:"回复"`
Status int `json:"status" dc:"状态"`
CreateTime int64 `json:"createTime" dc:"创建时间"`
UpdateTime int64 `json:"updateTime" dc:"更新时间"`
DeleteTime int64 `json:"deleteTime" dc:"删除时间"`
UserId int64 `json:"userId" dc:"用户ID"`
MerchantId int64 `json:"merchantId" dc:"商户ID"`
StoreId int64 `json:"storeId" dc:"店铺ID"`
Id int64 `json:"id" dc:"ID"`
Title string `json:"title" dc:"标题"`
Content string `json:"content" dc:"反馈内容"`
FeedbackType int `json:"feedbackType" dc:"反馈类型"`
Reply string `json:"reply" dc:"回复"`
Status int `json:"status" dc:"状态"`
CreateTime *gtime.Time `json:"createTime" dc:"创建时间"`
UpdateTime *gtime.Time `json:"updateTime" dc:"更新时间"`
DeleteTime *gtime.Time `json:"deleteTime" dc:"删除时间"`
UserId int64 `json:"userId" dc:"用户ID"`
MerchantId int64 `json:"merchantId" dc:"商户ID"`
StoreId int64 `json:"storeId" dc:"店铺ID"`
}