dictionary.go
604 字节
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,
Desc: dictionaryModel.Desc,
IsShow: dictionaryModel.IsShow,
DictItems: dictionaryModel.DictItems,
}, nil
}