Compare commits

...

3 Commits
v0.0.23 ... dev

Author SHA1 Message Date
77fd417f4e catalog update 2022-12-23 09:44:43 +01:00
7de07b9ef0 catalog update 2022-12-23 09:36:40 +01:00
304ffcbc3e catalog update 2022-12-23 09:33:13 +01:00

View File

@@ -9,12 +9,12 @@ type GetProductRequest struct {
}
type GetProductResponse struct {
ID int `db:"id"`
PID string `db:"pid"`
Name string `db:"name"`
Price float64 `db:"price"`
CreatedAt time.Duration `db:"created_at"`
UpdatedAt time.Duration `db:"updated_at,omitempty"`
ID int `json:"id"`
PID string `json:"pid"`
Name string `json:"name"`
Price float64 `json:"price"`
CreatedAt time.Duration `json:"created_at"`
UpdatedAt time.Duration `json:"updated_at,omitempty"`
}
type GetProductListRequest struct {
@@ -22,7 +22,7 @@ type GetProductListRequest struct {
}
type GetProductListResponse struct {
Products []GetProductResponse
Products []GetProductResponse `json:"products"`
}
type AddProductToBasketRequest struct {