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

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

type DiskServer struct {
	pb.UnimplementedDiskServer
}

func NewDiskServer() *DiskServer {
	return &DiskServer{}
}

// 创建目录
func (s *DiskServer) CreateDir(ctx context.Context, in *pb.CreateDirRequest) (*pb.StatusReply, error) {
	return disk.CreateDir(ctx, in)
}

// 获取目录详情
func (s *DiskServer) GetDir(ctx context.Context, in *pb.IdentRequest) (*pb.CloudDiskDirItem, error) {
	return disk.GetDir(ctx, in)
}

// 更新目录
func (s *DiskServer) UpdateDir(ctx context.Context, in *pb.CloudDiskDirItem) (*pb.StatusReply, error) {
	return disk.UpdateDir(ctx, in)
}

// 删除目录
func (s *DiskServer) DeleteDir(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
	return disk.DeleteDir(ctx, in)
}

// 获取目录列表
func (s *DiskServer) ListDirs(ctx context.Context, in *pb.FetchRequest) (*pb.ListDirsResponse, error) {
	return disk.ListDirs(ctx, in)
}

// 获取目录树
func (s *DiskServer) GetDirTree(ctx context.Context, in *pb.IdentRequest) (*pb.CloudDiskDirItem, error) {
	return disk.GetDirTree(ctx, in)
}

// 移动目录
func (s *DiskServer) MoveDir(ctx context.Context, in *pb.MoveDirRequest) (*pb.StatusReply, error) {
	return disk.MoveDir(ctx, in)
}

// 上传文件
func (s *DiskServer) UploadFile(ctx context.Context, in *pb.CloudDiskFileRequest) (*pb.StatusReply, error) {
	return disk.UploadFile(ctx, in)
}

// 获取文件详情
func (s *DiskServer) GetFile(ctx context.Context, in *pb.IdentRequest) (*pb.CloudDiskFileItem, error) {
	return disk.GetFile(ctx, in)
}

// 更新文件
func (s *DiskServer) UpdateFile(ctx context.Context, in *pb.CloudDiskFileItem) (*pb.StatusReply, error) {
	return disk.UpdateFile(ctx, in)
}

// 删除文件
func (s *DiskServer) DeleteFile(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
	return disk.DeleteFile(ctx, in)
}

// 获取文件列表
func (s *DiskServer) ListFiles(ctx context.Context, in *pb.FetchRequest) (*pb.ListFilesResponse, error) {
	return disk.ListFiles(ctx, in)
}

// 移动文件
func (s *DiskServer) MoveFile(ctx context.Context, in *pb.MoveFileRequest) (*pb.StatusReply, error) {
	return disk.MoveFile(ctx, in)
}

// 复制文件
func (s *DiskServer) CopyFile(ctx context.Context, in *pb.CopyFileRequest) (*pb.StatusReply, error) {
	return disk.CopyFile(ctx, in)
}

// 搜索文件
func (s *DiskServer) SearchFiles(ctx context.Context, in *pb.FetchRequest) (*pb.ListFilesResponse, error) {
	return disk.SearchFiles(ctx, in)
}
