diff --git a/http/catalog.go b/http/catalog.go index 52245a7..82acc6a 100644 --- a/http/catalog.go +++ b/http/catalog.go @@ -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 {