Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewElasticRepository ¶
Types ¶
type ElasticOrderRepository ¶
type ElasticOrderRepository interface { IndexOrder(ctx context.Context, order *models.OrderProjection) error GetByID(ctx context.Context, orderID string) (*models.OrderProjection, error) UpdateOrder(ctx context.Context, order *models.OrderProjection) error Search(ctx context.Context, text string, pq *utils.Pagination) (*dto.OrderSearchResponseDto, error) }
type OrderMongoRepository ¶
type OrderMongoRepository interface { Insert(ctx context.Context, order *models.OrderProjection) (string, error) GetByID(ctx context.Context, orderID string) (*models.OrderProjection, error) UpdateOrder(ctx context.Context, order *models.OrderProjection) error UpdateCancel(ctx context.Context, order *models.OrderProjection) error UpdatePayment(ctx context.Context, order *models.OrderProjection) error Complete(ctx context.Context, order *models.OrderProjection) error UpdateDeliveryAddress(ctx context.Context, order *models.OrderProjection) error UpdateSubmit(ctx context.Context, order *models.OrderProjection) error }
Click to show internal directories.
Click to hide internal directories.