59 lines
1.5 KiB
Go
59 lines
1.5 KiB
Go
package structs
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
)
|
|
|
|
/*
|
|
type Equipment struct {
|
|
Id string // stock item id of invex system
|
|
Name string
|
|
Thumbnail string // url provided by invex system
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
} */
|
|
|
|
// swagger:model EquipmentDocumentation
|
|
type EquipmentDocumentation struct {
|
|
Id string
|
|
StockItemId string // stock item id of invex system
|
|
Type uint8
|
|
Title string
|
|
Notes string
|
|
CreatedByUserId string
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type ApiEquipmentRequest struct {
|
|
StockItemId string `json:"stockItemId"`
|
|
}
|
|
|
|
type ApiGetDocumentationEquipmentRequest struct {
|
|
StockItemId string `json:"stockItemId"`
|
|
DocumentationId string `json:"documentationId"`
|
|
}
|
|
|
|
// swagger:model ApiCreateEquipmentDocumentationRequest
|
|
type ApiCreateEquipmentDocumentationRequest struct {
|
|
StockItemId string `json:"stockItemId"`
|
|
Type uint8 `json:"type"`
|
|
Title string `json:"title"`
|
|
Notes json.RawMessage `json:"notes"`
|
|
}
|
|
|
|
// swagger:model ApiEquipmentDocumentationResponse
|
|
type ApiEquipmentDocumentationResponse struct {
|
|
Status int
|
|
Documentations []EquipmentDocumentation
|
|
}
|
|
|
|
// swagger:model ApiEditEquipmentDocumentationRequest
|
|
type ApiEditEquipmentDocumentationRequest struct {
|
|
DocumentationId string `json:"documentationId"`
|
|
Type uint8 `json:"type"`
|
|
Title string `json:"title"`
|
|
Notes json.RawMessage `json:"notes"`
|
|
}
|