package transform import ( "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/domain" "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/infrastructure/pg/models" ) func TransformToProductJobDomainModelFromPgModels(productJobModel *models.ProductJob) (*domain.ProductJob, error) { return &domain.ProductJob{ ProductJobId: productJobModel.ProductJobId, CompanyId: productJobModel.CompanyId, OrgId: productJobModel.OrgId, JobName: productJobModel.JobName, CreatedAt: productJobModel.CreatedAt, UpdatedAt: productJobModel.UpdatedAt, DeletedAt: productJobModel.DeletedAt, WorkStation: productJobModel.WorkStation, RelatedDevices: productJobModel.RelatedDevices, ProcessName: productJobModel.ProcessName, Ext: productJobModel.Ext, }, nil }