catalog update

This commit is contained in:
Piotr Biernat 2022-12-23 09:33:13 +01:00
parent 5e3b9e5d23
commit 304ffcbc3e

View File

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