system_setting.go 771 字节
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 TransformToSystemSettingDomainModelFromPgModels(systemSettingModel *models.SystemSetting) (*domain.SystemSetting, error) {
	return &domain.SystemSetting{
		CompanyId:       systemSettingModel.CompanyId,
		ControlLevel:    systemSettingModel.ControlLevel,
		Description:     systemSettingModel.Description,
		SettingCode:     systemSettingModel.SettingCode,
		SettingName:     systemSettingModel.SettingName,
		SystemSettingId: systemSettingModel.SystemSettingId,
		Value:           systemSettingModel.Value,
		ValueType:       systemSettingModel.ValueType,
	}, nil
}