feat: import services and standardize Go 1.26.5
This commit is contained in:
41
apps/base/cloud/internal/server/share_server.go
Normal file
41
apps/base/cloud/internal/server/share_server.go
Normal file
@@ -0,0 +1,41 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.apinb.com/bsm-apps/cloud/internal/logic/share"
|
||||
pb "git.apinb.com/bsm-apps/cloud/pb"
|
||||
)
|
||||
|
||||
type ShareServer struct {
|
||||
pb.UnimplementedShareServer
|
||||
}
|
||||
|
||||
func NewShareServer() *ShareServer {
|
||||
return &ShareServer{}
|
||||
}
|
||||
|
||||
// 创建分享
|
||||
func (s *ShareServer) CreateShare(ctx context.Context, in *pb.CreateShareRequest) (*pb.StatusReply, error) {
|
||||
return share.CreateShare(ctx, in)
|
||||
}
|
||||
|
||||
// 获取分享详情
|
||||
func (s *ShareServer) GetShare(ctx context.Context, in *pb.IdentRequest) (*pb.CloudShareItem, error) {
|
||||
return share.GetShare(ctx, in)
|
||||
}
|
||||
|
||||
// 删除分享
|
||||
func (s *ShareServer) DeleteShare(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
return share.DeleteShare(ctx, in)
|
||||
}
|
||||
|
||||
// 获取分享列表
|
||||
func (s *ShareServer) ListShares(ctx context.Context, in *pb.FetchRequest) (*pb.ListSharesResponse, error) {
|
||||
return share.ListShares(ctx, in)
|
||||
}
|
||||
|
||||
// 验证分享密码
|
||||
func (s *ShareServer) ValidateSharePassword(ctx context.Context, in *pb.ValidateSharePasswordRequest) (*pb.StatusReply, error) {
|
||||
return share.ValidateSharePassword(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user