feat: edit menu

This commit is contained in:
2024-01-21 01:02:17 -06:00
parent 639788d37b
commit 1cfaa1f9bc
11 changed files with 961 additions and 16 deletions

View File

@@ -21,3 +21,8 @@ type APIError struct {
Messages []string `json:"messages"`
}
type CountResponse struct {
*Response
Count int64 `json:"count"`
}

View File

@@ -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 {

View File

@@ -20,3 +20,7 @@ type MultipleCategoryResponse struct {
Categories []*Category `json:"categories"`
Total int64 `json:"total"`
}
type CreateCategoryRequest struct {
Name string `json:"name"`
}

View File

@@ -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"`
}