add response in subspecialis
This commit is contained in:
@@ -2,6 +2,7 @@ package subspecialist
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||||
|
es "simrs-vx/internal/domain/main-entities/specialist"
|
||||||
espb "simrs-vx/internal/domain/main-entities/subspecialist-position/base"
|
espb "simrs-vx/internal/domain/main-entities/subspecialist-position/base"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -48,10 +49,11 @@ type MetaDto struct {
|
|||||||
|
|
||||||
type ResponseDto struct {
|
type ResponseDto struct {
|
||||||
ecore.SmallMain
|
ecore.SmallMain
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Specialist_Id *uint16 `json:"specialist_id"`
|
Specialist_Id *uint16 `json:"specialist_id"`
|
||||||
Subspecialist []espb.Basic `json:"subspecialistPositions,omitempty"`
|
Specialist *es.Specialist `json:"specialist,omitempty"`
|
||||||
|
Subspecialist []espb.Basic `json:"subspecialistPositions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d Subspecialist) ToResponse() ResponseDto {
|
func (d Subspecialist) ToResponse() ResponseDto {
|
||||||
@@ -59,6 +61,7 @@ func (d Subspecialist) ToResponse() ResponseDto {
|
|||||||
Code: d.Code,
|
Code: d.Code,
|
||||||
Name: d.Name,
|
Name: d.Name,
|
||||||
Specialist_Id: d.Specialist_Id,
|
Specialist_Id: d.Specialist_Id,
|
||||||
|
Specialist: d.Specialist,
|
||||||
Subspecialist: d.SubspecialistPositions,
|
Subspecialist: d.SubspecialistPositions,
|
||||||
}
|
}
|
||||||
resp.SmallMain = d.SmallMain
|
resp.SmallMain = d.SmallMain
|
||||||
|
|||||||
Reference in New Issue
Block a user