修改用户反馈信息,新增系统奖励

This commit is contained in:
chy
2025-06-09 09:52:03 +08:00
parent e83a173ed0
commit e07b3dd0e1
23 changed files with 303 additions and 127 deletions

View File

@ -7,18 +7,18 @@ import (
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"`
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=BUG2=建议3=投诉4=其他"` // 反馈类型1=BUG2=建议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 {