feat: edit menu
This commit is contained in:
@@ -21,3 +21,8 @@ type APIError struct {
|
||||
|
||||
Messages []string `json:"messages"`
|
||||
}
|
||||
|
||||
type CountResponse struct {
|
||||
*Response
|
||||
Count int64 `json:"count"`
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ type CreateAssetRequest struct {
|
||||
ModelName string `json:"model_name,omitempty"`
|
||||
Price float64 `json:"price,omitempty"`
|
||||
Comments string `json:"comments,omitempty"`
|
||||
ShelfLocationID int `json:"shelf_location_id,omitempty"`
|
||||
CategoryID int `json:"category_id,omitempty"`
|
||||
ShelfLocationID *uint64 `json:"shelf_location_id,omitempty"`
|
||||
CategoryID *uint64 `json:"category_id,omitempty"`
|
||||
}
|
||||
|
||||
type Asset struct {
|
||||
|
||||
@@ -20,3 +20,7 @@ type MultipleCategoryResponse struct {
|
||||
Categories []*Category `json:"categories"`
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
|
||||
type CreateCategoryRequest struct {
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
@@ -23,3 +23,10 @@ type ShelfLocation struct {
|
||||
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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user