Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 77fd417f4e | |||
| 7de07b9ef0 | |||
| 304ffcbc3e |
@@ -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 {
|
||||||
@@ -22,7 +22,7 @@ type GetProductListRequest struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetProductListResponse struct {
|
type GetProductListResponse struct {
|
||||||
Products []GetProductResponse
|
Products []GetProductResponse `json:"products"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AddProductToBasketRequest struct {
|
type AddProductToBasketRequest struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user