// Code generated by protoc-gen-slc. DO NOT EDIT.
package server

import (
	"bsm/full/module/base/cloud/internal/logic/share"
	pb "bsm/full/module/base/cloud/pb"
	"context"
)

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)
}
