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:
Giovanni Gabriel Septriadi
2026-04-27 06:39:02 +00:00
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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),
} }
} }