lots of functionality
This commit is contained in:
@@ -9,3 +9,9 @@ type Building struct {
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
DeletedAt *time.Time `json:"deleted_at,omitempty"`
|
||||
}
|
||||
|
||||
type MultipleBuildingResponse struct {
|
||||
*Response
|
||||
Buildings []*Building `json:"buildings"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
|
||||
@@ -19,14 +19,15 @@ type ShelfLocation struct {
|
||||
RoomNumber string `json:"room_number,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
BuildingID *uint64 `json:"building_id"`
|
||||
Building *Building `json:"-"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
DeletedAt *time.Time `json:"deleted_at,omitempty"`
|
||||
}
|
||||
|
||||
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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user