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

@@ -10,7 +10,6 @@ package admin
import (
"context"
"hotgo/api/admin/creditslog"
"hotgo/internal/consts"
"hotgo/internal/service"
)
@@ -38,12 +37,3 @@ func (c *cCreditsLog) Export(ctx context.Context, req *creditslog.ExportReq) (re
err = service.AdminCreditsLog().Export(ctx, &req.CreditsLogListInp)
return
}
// Option 获取变动状态选项
func (c *cCreditsLog) Option(_ context.Context, _ *creditslog.OptionReq) (res *creditslog.OptionRes, err error) {
res = &creditslog.OptionRes{
CreditType: consts.CreditTypeOptions,
CreditGroup: consts.CreditGroupOptions,
}
return
}

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)