customize_menu.go 663 字节
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 TransformToCustomizeMenuDomainModelFromPgModels(customizeMenuModel *models.CustomizeMenu) (*domain.CustomizeMenu, error) {
	return &domain.CustomizeMenu{
		CustomizeMenusId: customizeMenuModel.CustomizeMenuId,
		CompanyId:        customizeMenuModel.CompanyId,
		MenuId:           customizeMenuModel.MenuId,
		MenuName:         customizeMenuModel.MenuName,
		MenuAlias:        customizeMenuModel.MenuAlias,
		Sort:             customizeMenuModel.Sort,
	}, nil
}