|
|
|
@ -29,10 +29,10 @@ type ShelfLocation struct { |
|
|
|
*/ |
|
|
|
|
|
|
|
type CreateShelfRequest struct { |
|
|
|
Name string `json:"name"` |
|
|
|
RoomNumber string `json:"room_number,omitempty"` |
|
|
|
Description string `json:"description,omitempty"` |
|
|
|
BuildingID uint64 `json:"building_id"` |
|
|
|
Name string `json:"name"` |
|
|
|
RoomNumber string `json:"room_number,omitempty"` |
|
|
|
Description string `json:"description,omitempty"` |
|
|
|
BuildingID *uint64 `json:"building_id"` |
|
|
|
} |
|
|
|
|
|
|
|
func (c CreateShelfRequest) Bind(r *http.Request) error { return nil } |
|
|
|
|