company.go
496 字节
package transform
import (
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01/pkg/domain"
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01/pkg/infrastructure/pg/models"
)
func TransformToCompanyDomainModelFromPgModels(companyModel *models.Company) (*domain.Company, error) {
return &domain.Company{
CompanyId: companyModel.CompanyId,
CompanyInfo: companyModel.CompanyInfo,
CreateAt: companyModel.CreateAt,
UpdateAt: companyModel.UpdateAt,
DeleteAt: companyModel.DeleteAt,
}, nil
}