partner_category.go
535 字节
package transform
import (
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01/pkg/domain"
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01/pkg/infrastructure/pg/models"
)
func TransformToPartnerCategoryDomainModelFromPgModels(partnerCategoryModel *models.PartnerCategory) (*domain.PartnerCategory, error) {
return &domain.PartnerCategory{
PartnerCategoryId: partnerCategoryModel.PartnerCategoryId,
PartnerCategoryCode: partnerCategoryModel.PartnerCategoryCode,
PartnerCategoryName: partnerCategoryModel.PartnerCategoryName,
}, nil
}