Files
qitongxue-api/internal/controller/admin_order.go
2026-09-29 10:57:01 +08:00

25 lines
731 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package controller
import (
"context"
v1 "tool-api/api/admin/v1"
"tool-api/internal/logic"
)
// AdminOrder 管理端订单管理 + 退款接口
type cAdminOrder struct{}
// AdminOrder 订单域控制器(注册于管理端 Group:AdminAuth + AdminPerm 之后)
var AdminOrder = &cAdminOrder{}
// OrderList 订单列表
func (c *cAdminOrder) OrderList(ctx context.Context, req *v1.OrderListReq) (res *v1.OrderListRes, err error) {
return logic.AdminOrderList(ctx, req)
}
// OrderRefund 订单退款(可选回收所购服务)
func (c *cAdminOrder) OrderRefund(ctx context.Context, req *v1.OrderRefundReq) (res *v1.OrderRefundRes, err error) {
return logic.AdminOrderRefund(ctx, req.OutTradeNo, req.RevokeService)
}