Files
arenax-server/internal/model/feedback.go
2025-06-06 10:26:54 +08:00

99 lines
2.7 KiB
Go
Raw 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 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" dc:"ID" orm:"id,primary"`
UserId int64 `json:"user_id" dc:"用户ID" orm:"user_id"`
Title string `json:"title" dc:"反馈标题" orm:"title"`
Content string `json:"content" dc:"反馈内容" orm:"content"`
FeedbackType int `json:"feedback_type" dc:"反馈类型" orm:"feedback_type"`
Status int `json:"status" dc:"状态1=已处理2=未处理" orm:"status"`
Reply string `json:"reply" dc:"管理员回复" orm:"reply"`
CreateTime *gtime.Time `json:"create_time" dc:"创建时间" orm:"create_time"`
UpdateTime *gtime.Time `json:"update_time" dc:"更新时间" orm:"update_time"`
DeleteTime *gtime.Time `json:"delete_time" dc:"删除时间" orm:"delete_time"`
StoreId int64 `json:"store_id" dc:"店铺ID" orm:"store_id"`
MerchantId int64 `json:"merchant_id" dc:"商户ID" orm:"merchant_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
}