Private
Public Access
25 lines
931 B
Go
25 lines
931 B
Go
package dto
|
|
|
|
import (
|
|
"time"
|
|
|
|
dto_marcas "repuestera_back/dto/Marcas"
|
|
)
|
|
|
|
// RepuestoResumen es la representación de un repuesto sin sus stocks
|
|
// asociados. Se usa dentro de respuestas de stock y de facturas.
|
|
type RepuestoResumen struct {
|
|
ID uint `json:"ID"`
|
|
CreatedAt time.Time `json:"CreatedAt"`
|
|
UpdatedAt time.Time `json:"UpdatedAt"`
|
|
DeletedAt *time.Time `json:"DeletedAt"`
|
|
EmpresaID uint `json:"empresaId"`
|
|
Nombre string `json:"nombre"`
|
|
Descripcion string `json:"descripcion"`
|
|
Precio float64 `json:"precio"`
|
|
StockMinimo int64 `json:"stockMinimo"`
|
|
MarcaID uint `json:"marcaId"`
|
|
Marca *dto_marcas.MarcaResumen `json:"marca,omitempty"`
|
|
Aliases []string `json:"aliases,omitempty"`
|
|
}
|