package types import ( "time" ) type AssetResponse struct { *Response Asset *Asset `json:"asset"` } type MultipleAssetsResponse struct { *Response Assets []*Asset `json:"assets"` Total int `json:"total"` } type CreateAssetRequest struct { Name string `json:"name"` Quantity int `json:"quantity"` Length string `json:"length,omitempty"` Manufacturer string `json:"manufacturer,omitempty"` ModelName string `json:"model_name,omitempty"` Price float64 `json:"price,omitempty"` Comments string `json:"comments,omitempty"` ShelfLocationID *uint64 `json:"shelf_location_id,omitempty"` CategoryID *uint64 `json:"category_id,omitempty"` } type Asset struct { ID uint64 `json:"id"` Name string `json:"name"` Quantity int `json:"quantity"` Length string `json:"length,omitempty"` Manufacturer string `json:"manufacturer,omitempty"` ModelName string `json:"model_name,omitempty"` Price float64 `json:"price,omitempty"` Comments string `json:"comments,omitempty"` ShelfLocation *ShelfLocation `json:"shelf_location,omitempty"` Category *Category `json:"category,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at,omitempty"` }