小程序一些功能更新
This commit is contained in:
@@ -60,6 +60,10 @@ type MemberOrderCreateReq struct {
|
||||
g.Meta `path:"/member/order" method:"post" tags:"member" summary:"创建会员订单(待支付,不返回支付参数)"`
|
||||
PlanKey string `v:"required#请选择会员套餐" json:"plan_key"`
|
||||
Code string `json:"code"`
|
||||
// Platform 客户端平台(uni.getSystemInfoSync().platform:ios/android/devtools/h5)。
|
||||
// 缺省时服务端按 User-Agent 兜底推断;ios → pay_channel=apple(iOS 走 App Store IAP,
|
||||
// 开发者无法主动退款,后台据此禁用 API 退款)。
|
||||
Platform string `json:"platform"`
|
||||
}
|
||||
|
||||
// MemberOrderCreateRes 创建会员订单响应(只建单,**不返回支付参数**;N1-1/2)。
|
||||
|
||||
@@ -43,11 +43,12 @@ type NoteDetailRes struct {
|
||||
RemindStatus int `json:"remind_status"`
|
||||
}
|
||||
|
||||
// NoteSaveReq id=0 表示新建;新建计入额度、编辑不计入
|
||||
// NoteSaveReq id=0 表示新建;新建计入额度、编辑不计入。
|
||||
// Title 允许留空:留空时后端自动命名为「未命名笔记 YYYY-MM-DD hh:mm:ss」。
|
||||
type NoteSaveReq struct {
|
||||
g.Meta `path:"/note/save" method:"post" tags:"note" summary:"新建/编辑笔记"`
|
||||
Id int64 `json:"id"`
|
||||
Title string `v:"required|length:1,128#标题不能为空|标题最长 128 字" json:"title"`
|
||||
Title string `v:"length:0,128#标题最长 128 字" json:"title"`
|
||||
Content string `v:"length:0,20000#正文过长" json:"content"`
|
||||
Tags []string `json:"tags"`
|
||||
IsPinned bool `json:"is_pinned"`
|
||||
|
||||
@@ -96,6 +96,8 @@ type QuotaOrderCreateReq struct {
|
||||
PackKey string `v:"required#请选择次数包" json:"pack_key"`
|
||||
ToolKey string `v:"required#请选择要购买的次数包工具" json:"tool_key"`
|
||||
Code string `json:"code"`
|
||||
// Platform 客户端平台(同 MemberOrderCreateReq.Platform;ios → pay_channel=apple)
|
||||
Platform string `json:"platform"`
|
||||
}
|
||||
|
||||
// QuotaOrderCreateRes 创建次数包订单响应(只建单,不返回支付参数)。
|
||||
|
||||
@@ -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