小程序一些功能更新
This commit is contained in:
@@ -159,3 +159,30 @@ type FeedbackSubmitReq struct {
|
||||
Contact string `json:"contact"`
|
||||
}
|
||||
type FeedbackSubmitRes struct{}
|
||||
|
||||
// FeedbackMineItem 我的反馈条目(含官方回复)
|
||||
type FeedbackMineItem struct {
|
||||
Id int64 `json:"id"`
|
||||
Content string `json:"content"`
|
||||
Status int `json:"status"` // 0待处理 1已处理
|
||||
ReplyContent string `json:"reply_content"` // 官方回复(空=未回复)
|
||||
ReplyAt string `json:"reply_at"` // 最近回复时间
|
||||
ReplyRead int `json:"reply_read"` // 0=新回复未读(列表内显示「新回复」标签)
|
||||
CreatedAt string `json:"created_at"`
|
||||
}
|
||||
|
||||
// FeedbackMineReq 我的反馈(最近 N 条 + 未读回复数;**不会**自动置已读,已读走 /feedback/read)
|
||||
type FeedbackMineReq struct {
|
||||
g.Meta `path:"/feedback/mine" method:"get" tags:"user" summary:"我的反馈(含官方回复与未读数)"`
|
||||
Limit int `json:"limit"`
|
||||
}
|
||||
type FeedbackMineRes struct {
|
||||
List []FeedbackMineItem `json:"list"`
|
||||
Unread int `json:"unread"` // 有官方回复且未读的条数(红点)
|
||||
}
|
||||
|
||||
// FeedbackReadReq 标记我的全部反馈回复为已读(清红点)
|
||||
type FeedbackReadReq struct {
|
||||
g.Meta `path:"/feedback/read" method:"post" tags:"user" summary:"反馈回复标记已读"`
|
||||
}
|
||||
type FeedbackReadRes struct{}
|
||||
|
||||
Reference in New Issue
Block a user