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

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

type PrivateServer struct {
	pb.UnimplementedPrivateServer
}

func NewPrivateServer() *PrivateServer {
	return &PrivateServer{}
}

// 创建隐私数据
func (s *PrivateServer) CreatePrivateData(ctx context.Context, in *pb.CreatePrivateDataRequest) (*pb.StatusReply, error) {
	return private.CreatePrivateData(ctx, in)
}

// 获取隐私数据详情
func (s *PrivateServer) GetPrivateData(ctx context.Context, in *pb.IdentRequest) (*pb.CloudPrivateItem, error) {
	return private.GetPrivateData(ctx, in)
}

// 更新隐私数据
func (s *PrivateServer) UpdatePrivateData(ctx context.Context, in *pb.CloudPrivateItem) (*pb.StatusReply, error) {
	return private.UpdatePrivateData(ctx, in)
}

// 删除隐私数据
func (s *PrivateServer) DeletePrivateData(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
	return private.DeletePrivateData(ctx, in)
}

// 获取隐私数据列表
func (s *PrivateServer) ListPrivateData(ctx context.Context, in *pb.FetchRequest) (*pb.ListPrivateDataResponse, error) {
	return private.ListPrivateData(ctx, in)
}

// 按类型获取隐私数据
func (s *PrivateServer) GetPrivateDataByType(ctx context.Context, in *pb.FetchRequest) (*pb.ListPrivateDataResponse, error) {
	return private.GetPrivateDataByType(ctx, in)
}

// 搜索隐私数据
func (s *PrivateServer) SearchPrivateData(ctx context.Context, in *pb.FetchRequest) (*pb.ListPrivateDataResponse, error) {
	return private.SearchPrivateData(ctx, in)
}

// 加密数据
func (s *PrivateServer) EncryptData(ctx context.Context, in *pb.DataRequest) (*pb.StatusReply, error) {
	return private.EncryptData(ctx, in)
}

// 解密数据
func (s *PrivateServer) DecryptData(ctx context.Context, in *pb.DataRequest) (*pb.StatusReply, error) {
	return private.DecryptData(ctx, in)
}
