feat: import services and standardize Go 1.26.5
This commit is contained in:
26
apps/base/cloud/internal/server/space_server.go
Normal file
26
apps/base/cloud/internal/server/space_server.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.apinb.com/bsm-apps/cloud/internal/logic/space"
|
||||
pb "git.apinb.com/bsm-apps/cloud/pb"
|
||||
)
|
||||
|
||||
type SpaceServer struct {
|
||||
pb.UnimplementedSpaceServer
|
||||
}
|
||||
|
||||
func NewSpaceServer() *SpaceServer {
|
||||
return &SpaceServer{}
|
||||
}
|
||||
|
||||
// 获取空间数据
|
||||
func (s *SpaceServer) Get(ctx context.Context, in *pb.Empty) (*pb.CloudSpace, error) {
|
||||
return space.Get(ctx, in)
|
||||
}
|
||||
|
||||
// 获取空间数据
|
||||
func (s *SpaceServer) GetByKeyIdentifier(ctx context.Context, in *pb.IdentRequest) (*pb.CloudSpace, error) {
|
||||
return space.GetByKeyIdentifier(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user