Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkout ¶
type Checkout struct { ID uint CartID uint UserID uint Subtotal int Payment string IsActive bool StatusPayment bool StatusDelivery bool StatusOverall bool CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time }
func NewCheckout ¶
type CreateCheckoutData ¶
type CreateCheckoutData struct {
Payment string `validate:"required"`
}
type Repository ¶
type Service ¶
type Service interface { CreateCheckout(int, CreateCheckoutData) error UpdateCheckout(int, UpdateCheckout) error }
func NewService ¶
func NewService(repository Repository, cartRepo cartServ.Repository) Service
Click to show internal directories.
Click to hide internal directories.