Compare commits

...

2 Commits

Author SHA1 Message Date
3e340d68d0 Added AddProductToBasket HTTP DTO 2025-11-08 00:42:31 +01:00
f6c6bb07fd go.mod update 2025-11-07 23:20:29 +01:00
2 changed files with 11 additions and 1 deletions

View File

@@ -26,6 +26,16 @@ type GetBasketItemsResponseDTO struct {
UpdatedAt time.Duration `json:"updated_at,omitempty"` UpdatedAt time.Duration `json:"updated_at,omitempty"`
} }
type AddProductToBasketRequestDTO struct {
BasketID string `json:"basket_id"`
ProductID string `json:"product_id"`
Quantity int `json:"quantity"`
}
type AddProductToBasketResponseDTO struct {
BasketID string `json:"basket_id"`
}
type BasketCheckoutRequestDTO struct { type BasketCheckoutRequestDTO struct {
BasketID string `json:"basket_id"` BasketID string `json:"basket_id"`
} }

2
go.mod
View File

@@ -1,6 +1,6 @@
module git.ego.freeddns.org/egommerce/api-entities module git.ego.freeddns.org/egommerce/api-entities
go 1.19 go 1.24
require github.com/jackc/pgtype v1.14.3 require github.com/jackc/pgtype v1.14.3