mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
fix(BE): adjust dto and project flock, master data, and marketing
This commit is contained in:
@@ -17,7 +17,7 @@ type ProductRelationDTO struct {
|
||||
ProductPrice float64 `gorm:"type:numeric(15,3);not null"`
|
||||
SellingPrice *float64 `gorm:"type:numeric(15,3)"`
|
||||
Uom *uomDTO.UomRelationDTO `json:"uom,omitempty"`
|
||||
Flags []string `json:"flags"`
|
||||
Flags *[]string `json:"flags,omitempty"`
|
||||
}
|
||||
|
||||
type ProductListDTO struct {
|
||||
@@ -56,10 +56,12 @@ func ToProductRelationDTO(e entity.Product) ProductRelationDTO {
|
||||
}
|
||||
|
||||
return ProductRelationDTO{
|
||||
Id: e.Id,
|
||||
Name: e.Name,
|
||||
Flags: flags,
|
||||
Uom: uomRef,
|
||||
Id: e.Id,
|
||||
Name: e.Name,
|
||||
ProductPrice: e.ProductPrice,
|
||||
SellingPrice: e.SellingPrice,
|
||||
Flags: &flags,
|
||||
Uom: uomRef,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user