// Package model define model struct of model runtime service package model import ( "modelRT/constant" "modelRT/orm" ) // SelectModelByType define select the data structure for parsing based on the input model type func SelectModelByType(modelType int) BasicModelInterface { if modelType == constant.BusbarType { return &orm.BusbarSection{} } return nil } // SelectModelNameByType define select the data structure name for parsing based on the input model type func SelectModelNameByType(modelType int) string { if modelType == constant.BusbarType { return "BusBarSection" } return "" }