product_group.go
897 字节
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 TransformToProductGroupDomainModelFromPgModels(productGroupModel *models.ProductGroup) (*domain.ProductGroup, error) {
return &domain.ProductGroup{
ProductGroupId: productGroupModel.ProductGroupId,
CompanyId: productGroupModel.CompanyId,
OrgId: productGroupModel.OrgId,
GroupName: productGroupModel.GroupName,
GroupLeader: productGroupModel.GroupLeader,
GroupMembers: productGroupModel.GroupMembers,
WorkOn: productGroupModel.WorkOn,
WorkStation: productGroupModel.WorkStation,
CreatedAt: productGroupModel.CreatedAt,
UpdatedAt: productGroupModel.UpdatedAt,
DeletedAt: productGroupModel.DeletedAt,
}, nil
}