Files
online-backend/internal/cards/visamaster/storage.go

13 lines
600 B
Go

package visamaster
import "context"
type Repository interface {
List(ctx context.Context, filter ListFilter) (ListVisaMasterPaymentOrderDTO, error)
ListBranchesByProvince(ctx context.Context, provinceID int64, activeOnly bool) (ListBranchesByProvinceDTO, error)
GetByID(ctx context.Context, id int64) (VisaMasterPaymentOrderDTO, error)
Create(ctx context.Context, dto CreateVisaMasterPaymentOrderDTO) (VisaMasterPaymentOrderDTO, error)
Update(ctx context.Context, id int64, dto UpdateVisaMasterPaymentOrderDTO) (VisaMasterPaymentOrderDTO, error)
Delete(ctx context.Context, id int64) error
}