feat: add components management functionality
This commit is contained in:
14
internal/models/responses/component_response.go
Normal file
14
internal/models/responses/component_response.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package responses
|
||||
|
||||
type CreateComponentResponse struct {
|
||||
ID int64 `json:"id"`
|
||||
}
|
||||
|
||||
type UpdateComponentResponse struct {
|
||||
ID int64 `json:"id"`
|
||||
ComponentTypeID int64 `json:"componentTypeId"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Unit string `json:"unit"`
|
||||
MinQuantity int32 `json:"minQuantity"`
|
||||
}
|
||||
Reference in New Issue
Block a user