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

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

type BookmarkServer struct {
	pb.UnimplementedBookmarkServer
}

func NewBookmarkServer() *BookmarkServer {
	return &BookmarkServer{}
}

// 创建书签
func (s *BookmarkServer) CreateBookmark(ctx context.Context, in *pb.CreateBookmarkRequest) (*pb.StatusReply, error) {
	return bookmark.CreateBookmark(ctx, in)
}

// 获取书签详情
func (s *BookmarkServer) GetBookmark(ctx context.Context, in *pb.IDRequest) (*pb.CloudBookmarkItem, error) {
	return bookmark.GetBookmark(ctx, in)
}

// 更新书签
func (s *BookmarkServer) UpdateBookmark(ctx context.Context, in *pb.CloudBookmarkItem) (*pb.StatusReply, error) {
	return bookmark.UpdateBookmark(ctx, in)
}

// 删除书签
func (s *BookmarkServer) DeleteBookmark(ctx context.Context, in *pb.IDRequest) (*pb.StatusReply, error) {
	return bookmark.DeleteBookmark(ctx, in)
}

// 获取书签列表
func (s *BookmarkServer) ListBookmarks(ctx context.Context, in *pb.FetchRequest) (*pb.ListBookmarksResponse, error) {
	return bookmark.ListBookmarks(ctx, in)
}

// 导入书签
func (s *BookmarkServer) ImportBookmarks(ctx context.Context, in *pb.ImportBookmarksRequest) (*pb.StatusReply, error) {
	return bookmark.ImportBookmarks(ctx, in)
}
