package store

import (
	"context"

	"github.com/pingcap-inc/data-ingestion-tools/model"
)

type CreatedRevrecStore interface {
	List(_ context.Context) (records []model.CreatedRevrec, err error)
	ListCurrentMonth(_ context.Context, billMonth string) (records []*model.CreatedRevrec, err error)
	DeleteAndSave(_ context.Context, records []model.CreatedRevrec) ([]model.CreatedRevrec, error)
	Update(_ context.Context, record *model.CreatedRevrec) error
	GetByOrderID(_ context.Context, orderID string) (record model.CreatedRevrec, err error)
	UpdateRevrecs(records []model.CreatedRevrec) error
}
