小程序一些功能更新
This commit is contained in:
@@ -89,7 +89,7 @@ func (c *cAdminAuth) FeedbackList(ctx context.Context, req *v1.FeedbackListReq)
|
||||
}
|
||||
|
||||
func (c *cAdminAuth) FeedbackHandle(ctx context.Context, req *v1.FeedbackHandleReq) (res *v1.FeedbackHandleRes, err error) {
|
||||
return logic.AdminFeedbackHandle(ctx, req.Id)
|
||||
return logic.AdminFeedbackHandle(ctx, req.Id, req.Reply)
|
||||
}
|
||||
|
||||
// ===== 额度配置(次数包 / 额度设置 / 会员套餐 / 用户周期)=====
|
||||
|
||||
@@ -18,7 +18,11 @@ func (c *cAdminOrder) OrderList(ctx context.Context, req *v1.OrderListReq) (res
|
||||
return logic.AdminOrderList(ctx, req)
|
||||
}
|
||||
|
||||
// OrderRefund 订单退款(可选回收所购服务)
|
||||
// OrderRefund 订单退款(真退款状态机:API 退款 / 手工退款登记,可选回收所购服务)
|
||||
func (c *cAdminOrder) OrderRefund(ctx context.Context, req *v1.OrderRefundReq) (res *v1.OrderRefundRes, err error) {
|
||||
return logic.AdminOrderRefund(ctx, req.OutTradeNo, req.RevokeService)
|
||||
return logic.AdminOrderRefund(ctx, req.OutTradeNo, logic.OrderRefundOptions{
|
||||
RevokeService: req.RevokeService,
|
||||
Reason: req.Reason,
|
||||
Manual: req.Manual,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ func (c *cMember) MemberCenter(ctx context.Context, req *v1.MemberCenterReq) (re
|
||||
}
|
||||
|
||||
func (c *cMember) MemberOrderCreate(ctx context.Context, req *v1.MemberOrderCreateReq) (res *v1.MemberOrderCreateRes, err error) {
|
||||
return logic.MemberOrderCreate(ctx, req.PlanKey)
|
||||
return logic.MemberOrderCreate(ctx, req.PlanKey, req.Platform)
|
||||
}
|
||||
|
||||
// MemberOrderPay 对已建待支付订单构建支付参数(N1 两步式的第二步)
|
||||
|
||||
@@ -30,7 +30,7 @@ func (c *cQuota) QuotaPacks(ctx context.Context, req *v1.QuotaPacksReq) (res *v1
|
||||
}
|
||||
|
||||
func (c *cQuota) QuotaOrderCreate(ctx context.Context, req *v1.QuotaOrderCreateReq) (res *v1.QuotaOrderCreateRes, err error) {
|
||||
return logic.QuotaOrderCreate(ctx, req.PackKey, req.ToolKey)
|
||||
return logic.QuotaOrderCreate(ctx, req.PackKey, req.ToolKey, req.Platform)
|
||||
}
|
||||
|
||||
// QuotaOrderPay 对已建次数包待支付订单构建支付参数(与会员同构)
|
||||
|
||||
@@ -74,3 +74,13 @@ func (c *cUserAuth) WorkbenchSave(ctx context.Context, req *v1.WorkbenchSaveReq)
|
||||
func (c *cUserAuth) FeedbackSubmit(ctx context.Context, req *v1.FeedbackSubmitReq) (res *v1.FeedbackSubmitRes, err error) {
|
||||
return logic.FeedbackSubmit(ctx, req.Content, req.Contact)
|
||||
}
|
||||
|
||||
// FeedbackMine 我的反馈列表(含官方回复与未读数,红点数据源)
|
||||
func (c *cUserAuth) FeedbackMine(ctx context.Context, req *v1.FeedbackMineReq) (res *v1.FeedbackMineRes, err error) {
|
||||
return logic.FeedbackMine(ctx, req.Limit)
|
||||
}
|
||||
|
||||
// FeedbackRead 反馈回复标记已读(清红点)
|
||||
func (c *cUserAuth) FeedbackRead(ctx context.Context, req *v1.FeedbackReadReq) (res *v1.FeedbackReadRes, err error) {
|
||||
return logic.FeedbackMarkRead(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user