Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order interface { Create(ctx context.Context, data *dto.TransactionReq) error FindManyByUserId(ctx context.Context, data *dto.GetOrdersByCurrentUserReq) (*entity.DataWithPaging[[]*entity.OrderWithProducts], error) FindMany(ctx context.Context, data *dto.GetOrdersReq) (*entity.DataWithPaging[[]*entity.OrderWithProducts], error) Cancel(ctx context.Context, data *dto.CancelOrderReq) error UpdateStatus(ctx context.Context, data *dto.UpdateStatusReq) error AddShippingId(ctx context.Context, data *dto.AddShippingIdReq) error }
type Transaction ¶
type Transaction interface { Create(ctx context.Context, data *dto.TransactionReq) (*dto.TransactionRes, error) HandleNotif(ctx context.Context, data *entity.Transaction) error }
Click to show internal directories.
Click to hide internal directories.