|
package repo
|
|
|
|
import (
|
|
"context"
|
|
"voucher/internal/biz/bo"
|
|
)
|
|
|
|
type OrderRepo interface {
|
|
// Create 创建 Order
|
|
Create(ctx context.Context, req *bo.OrderBo) (*bo.OrderBo, error)
|
|
// GetByID 根据 ID 获取 Order
|
|
GetByID(ctx context.Context, id int32) (*bo.OrderBo, error)
|
|
}
|