mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
Merge branch 'feat/limit' into 'development'
[FEAT][BE]: get field type to response detail recording See merge request mbugroup/lti-api!484
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
|||||||
type Warehouse struct {
|
type Warehouse struct {
|
||||||
Id uint `gorm:"primaryKey"`
|
Id uint `gorm:"primaryKey"`
|
||||||
Name string `gorm:"type:varchar(50);not null"`
|
Name string `gorm:"type:varchar(50);not null"`
|
||||||
Type string `gorm:"not null"`
|
Type string `gorm:"column:type;not null"`
|
||||||
AreaId uint `gorm:"not null"`
|
AreaId uint `gorm:"not null"`
|
||||||
LocationId *uint
|
LocationId *uint
|
||||||
KandangId *uint
|
KandangId *uint
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ type ProjectFlockRelationDTO struct {
|
|||||||
type WarehouseRelationDTO struct {
|
type WarehouseRelationDTO struct {
|
||||||
Id uint `json:"id"`
|
Id uint `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
Type string `json:"type"`
|
||||||
Location *LocationRelationDTO `json:"location,omitempty"`
|
Location *LocationRelationDTO `json:"location,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,6 +114,7 @@ func ToWarehouseRelationDTO(e *entity.Warehouse) *WarehouseRelationDTO {
|
|||||||
return &WarehouseRelationDTO{
|
return &WarehouseRelationDTO{
|
||||||
Id: e.Id,
|
Id: e.Id,
|
||||||
Name: e.Name,
|
Name: e.Name,
|
||||||
|
Type: e.Type,
|
||||||
Location: ToLocationRelationDTO(e.Location),
|
Location: ToLocationRelationDTO(e.Location),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user