用户反馈信息基本CRUD
This commit is contained in:
96
internal/model/feedback.go
Normal file
96
internal/model/feedback.go
Normal file
@ -0,0 +1,96 @@
|
||||
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
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user