voucher/internal/biz/repo/order.go

16 lines
439 B
Go

package repo
import (
"context"
"voucher/internal/biz/bo"
)
type OrderRepo interface {
GetByOutBizNo(ctx context.Context, outBizNo string) (*bo.OrderBo, error)
Create(ctx context.Context, req *bo.OrderCreateReqBo) (*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
}