18 lines
427 B
Go
18 lines
427 B
Go
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
|
|
}
|