company.go
585 字节
package transform
import (
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/domain"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/infrastructure/pg/models"
)
func TransformToCompanyDomainModelFromPgModels(companyModel *models.Company) (*domain.Company, error) {
return &domain.Company{
CompanyId: companyModel.CompanyId,
CompanyConfig: companyModel.CompanyConfig,
CompanyInfo: companyModel.CompanyInfo,
Status: companyModel.Status,
CreatedAt: companyModel.CreatedAt,
UpdatedAt: companyModel.UpdatedAt,
}, nil
}