15 lines
453 B
Go
15 lines
453 B
Go
package repo
|
|
|
|
import (
|
|
"context"
|
|
"voucher/internal/biz/bo"
|
|
"voucher/internal/biz/do"
|
|
)
|
|
|
|
type ProductRepo interface {
|
|
FindWarningBudget(ctx context.Context, fun func(ctx context.Context, rows []*bo.ProductBo) error) error
|
|
GetByBatchNo(ctx context.Context, batchNo string) (*bo.ProductBo, error)
|
|
GetByProductNo(ctx context.Context, productNo string) (*bo.ProductBo, error)
|
|
UpdateWarningBudget(ctx context.Context, id int32, req *do.WxResp) error
|
|
}
|