dictionary.go
568 字节
package transform
import (
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-basic/pkg/domain"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-basic/pkg/infrastructure/pg/models"
)
func TransformToDictionaryDomainModelFromPgModels(dictionaryModel *models.Dictionary) (*domain.Dictionary, error) {
return &domain.Dictionary{
DictionaryId: dictionaryModel.DictionaryId,
DictCode: dictionaryModel.DictCode,
DictName: dictionaryModel.DictName,
Describe: dictionaryModel.Describe,
DictItems: dictionaryModel.DictItems,
}, nil
}