18 lines
440 B
Go
18 lines
440 B
Go
package service
|
|
|
|
import (
|
|
"google.golang.org/protobuf/proto"
|
|
"joylink.club/bj-rtsts-server/ats/verify/protos/graphicData"
|
|
)
|
|
|
|
// 查询地图数据
|
|
func QueryRtssGraphicStorage(mapId int32) *graphicData.RtssGraphicStorage {
|
|
publishdata, err := GetPublishedGiById(int(mapId))
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
graphicStorage := &graphicData.RtssGraphicStorage{}
|
|
proto.Unmarshal(publishdata.Proto, graphicStorage)
|
|
return graphicStorage
|
|
}
|