2026-08-09 10:43:45 +08:00
|
|
|
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
|
|
|
|
package server
|
|
|
|
|
|
|
|
|
|
import (
|
2026-08-09 12:41:08 +08:00
|
|
|
"bsm/full/module/base/cloud/internal/logic/bookmark"
|
|
|
|
|
pb "bsm/full/module/base/cloud/pb"
|
2026-08-09 15:10:19 +08:00
|
|
|
"context"
|
2026-08-09 10:43:45 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
}
|