package repository import ( "fmt" "joylink.club/rtsssimulation/repository/model/proto" ) //测试 func BuildRepositoryForSignalTest(source *proto.Repository) *Repository { repository := newRepository(source.Id, source.Version) buildModels(source, repository) if err := buildSignalRelationShip(source, repository); err != nil { fmt.Println("===>>buildSignalRelationShip error : ", err.Error()) } return repository }