20 lines
636 B
Go
20 lines
636 B
Go
package repo
|
|
|
|
import (
|
|
"context"
|
|
"voucher/internal/biz/bo"
|
|
"voucher/internal/biz/vo"
|
|
)
|
|
|
|
type OrderRepo interface {
|
|
GetByOutBizNo(ctx context.Context, t vo.OrderType, outBizNo string) (*bo.OrderBo, error)
|
|
GetByOrderNo(ctx context.Context, orderNo string) (*bo.OrderBo, error)
|
|
Create(ctx context.Context, req *bo.OrderBo) (*bo.OrderBo, error)
|
|
GetByID(ctx context.Context, id uint64) (*bo.OrderBo, error)
|
|
Ing(ctx context.Context, id uint64) error
|
|
Success(ctx context.Context, id uint64) error
|
|
Fail(ctx context.Context, id uint64) error
|
|
Used(ctx context.Context, id uint64) error
|
|
Expired(ctx context.Context, id uint64) error
|
|
}
|