This commit is contained in:
孟帅
2024-03-07 20:08:56 +08:00
parent 6dd8cbadad
commit 0fbc1ad47c
246 changed files with 9441 additions and 2293 deletions

View File

@@ -8,7 +8,6 @@ package admin
import (
"context"
"hotgo/api/admin/order"
"hotgo/internal/consts"
"hotgo/internal/service"
)
@@ -30,16 +29,6 @@ func (c *cOrder) ApplyRefund(ctx context.Context, req *order.ApplyRefundReq) (re
return
}
// Option 获取订单状态选项
func (c *cOrder) Option(ctx context.Context, req *order.OptionReq) (res *order.OptionRes, err error) {
res = &order.OptionRes{
Status: consts.OrderStatusOptions,
AcceptRefundStatus: consts.OrderAcceptRefundOptions,
PayType: consts.PayTypeOptions,
}
return
}
// Create 创建充值订单
func (c *cOrder) Create(ctx context.Context, req *order.CreateReq) (res *order.CreateRes, err error) {
data, err := service.AdminOrder().Create(ctx, &req.OrderCreateInp)