package model import ( "github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/os/gtime" ) type Feedback struct { g.Meta `orm:"table:feedback"` Id int64 `json:"id" orm:"id" description:"反馈唯一标识符"` // 反馈唯一标识符 UserId int64 `json:"userId" orm:"user_id" description:"提交者用户ID"` // 提交者用户ID Title string `json:"title" orm:"title" description:"反馈标题"` // 反馈标题 Content string `json:"content" orm:"content" description:"反馈内容"` // 反馈内容 FeedbackType int `json:"feedbackType" orm:"feedback_type" description:"反馈类型:1=BUG,2=建议,3=投诉,4=其他"` // 反馈类型:1=BUG,2=建议,3=投诉,4=其他 Status int `json:"status" orm:"status" description:"处理状态:1=待处理,2=处理中,3=已处理,4=已驳回"` // 处理状态:1=待处理,2=处理中,3=已处理,4=已驳回 Reply string `json:"reply" orm:"reply" description:"管理员回复内容"` // 管理员回复内容 CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"反馈提交时间"` // 反馈提交时间 UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"反馈更新时间"` // 反馈更新时间 DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳 StoreId int64 `json:"storeId" orm:"store_id" description:"门店唯一 id"` // 门店唯一 id MerchantId int64 `json:"merchantId" orm:"merchant_id" description:"商户唯一 id"` // 商户唯一 id } type FeedbackIn struct { Keyword string Page int Size int FeedbackType int Status int Role string OperatorId int64 } type FeedbackOut struct { List []Feedback Total int } type FeedbackCreateIn struct { Title string Content string FeedbackType int OperatorId int64 StoreId int64 MerchantId int64 } type FeedbackCreateOut struct { Success bool `json:"success" dc:"是否成功"` } // FeedbackUpdateIn 修改反馈信息传入参数 type FeedbackUpdateIn struct { Id int64 Title string Content string FeedbackType int //OperatorId int64 //OperatorRole string } // FeedbackUpdateOut 修改反馈信息返回参数 type FeedbackUpdateOut struct { Success bool `json:"success" dc:"是否成功"` } // FeedbackUpdateReplyIn 修改反馈回复信息传入参数 type FeedbackUpdateReplyIn struct { Id int64 Reply string Status int } // FeedbackUpdateReplyOut 修改反馈回复信息返回参数 type FeedbackUpdateReplyOut struct { Success bool `json:"success" dc:"是否成功"` } // FeedbackInfoIn 反馈信息详情传入参数 type FeedbackInfoIn struct { Id int64 } // FeedbackInfoOut 反馈信息详情返回参数 type FeedbackInfoOut struct { Id int64 UserId int64 Title string Content string FeedbackType int Status int Reply string CreateTime *gtime.Time UpdateTime *gtime.Time DeleteTime *gtime.Time StoreId int64 MerchantId int64 }