diff --git a/ccore/nebula/internal/driver/v2_5/wrapper.go b/ccore/nebula/internal/driver/v2_5/wrapper.go index 52caf41..412ffb7 100644 --- a/ccore/nebula/internal/driver/v2_5/wrapper.go +++ b/ccore/nebula/internal/driver/v2_5/wrapper.go @@ -1148,6 +1148,10 @@ func (w spaceWrapper) GetName() string { return string(w.Space.GetName()) } +func (w spaceWrapper) GetId() string { + return w.Space.GetId().String() +} + type spacesWrap struct { metaBaserWrap Spaces []types.Space diff --git a/ccore/nebula/internal/driver/v2_6/wrapper.go b/ccore/nebula/internal/driver/v2_6/wrapper.go index 9e825cf..c55549a 100644 --- a/ccore/nebula/internal/driver/v2_6/wrapper.go +++ b/ccore/nebula/internal/driver/v2_6/wrapper.go @@ -1248,6 +1248,10 @@ func (w spaceWrapper) GetName() string { return string(w.Space.GetName()) } +func (w spaceWrapper) GetId() string { + return w.Space.GetId().String() +} + type spacesWrap struct { metaBaserWrap Spaces []types.Space diff --git a/ccore/nebula/internal/driver/v3_0/wrapper.go b/ccore/nebula/internal/driver/v3_0/wrapper.go index c37bd96..69b2c94 100644 --- a/ccore/nebula/internal/driver/v3_0/wrapper.go +++ b/ccore/nebula/internal/driver/v3_0/wrapper.go @@ -1213,6 +1213,10 @@ func (w spaceWrapper) GetName() string { return string(w.Space.GetName()) } +func (w spaceWrapper) GetId() string { + return w.Space.GetId().String() +} + type spacesWrap struct { metaBaserWrap Spaces []types.Space diff --git a/ccore/nebula/types/driver.go b/ccore/nebula/types/driver.go index 2ba0810..490d935 100644 --- a/ccore/nebula/types/driver.go +++ b/ccore/nebula/types/driver.go @@ -73,6 +73,7 @@ type ( Space interface { GetName() string + GetId() string } Spaces interface {