-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
28 lines (26 loc) · 1.05 KB
/
Copy pathmain.go
File metadata and controls
28 lines (26 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package main
import (
"context"
"github.com/qsk5yrs/testing/logic/domainservice"
"time"
)
func main() {
// call func
ctx, _ := context.WithTimeout(context.Background(), 5*time.Minute)
//iServer := library.NewIServer(ctx)
//// 获取scenes.json的名称
//scenesName := iServer.GetScenesConfigNames("http://localhost:8090/iserver/services/3D-Ltdzname/rest/realspace/scenes.json")
//for _, name := range scenesName {
// logger.New(ctx).Info("scenesName", "name", name)
//}
//
//// 获取图层名称
//layerNames := iServer.GetScenesLayerNames("http://localhost:8090/iserver/services/3D-Ltdzname/rest/realspace/scenes/Ltdzname.json")
//for i, name := range layerNames {
// //fmt.Printf("第%d个图层名称为:%s\n ", i, name)
// logger.New(ctx).Info("layerName", "index", i, "name", name)
//}
iServer := domainservice.NewIServerDomainSvc(ctx)
iServer.GenerateScenesJson("http://localhost:8090/iserver/services/3D-Ltdzname/rest/realspace", "C:")
iServer.GenerateScenesNameJson("http://localhost:8090/iserver/services/3D-Ltdzname/rest/realspace", "C:")
}