// Code generated by protoc-gen-slc. DO NOT EDIT. package server import ( "context" "git.apinb.com/bsm-apps/cloud/internal/logic/note" pb "git.apinb.com/bsm-apps/cloud/pb" ) type NoteServer struct { pb.UnimplementedNoteServer } func NewNoteServer() *NoteServer { return &NoteServer{} } // 创建笔记 func (s *NoteServer) CreateNote(ctx context.Context, in *pb.CreateNoteRequest) (*pb.StatusReply, error) { return note.CreateNote(ctx, in) } // 获取笔记详情 func (s *NoteServer) GetNote(ctx context.Context, in *pb.IdentRequest) (*pb.CloudNoteItem, error) { return note.GetNote(ctx, in) } // 更新笔记 func (s *NoteServer) UpdateNote(ctx context.Context, in *pb.CloudNoteItem) (*pb.StatusReply, error) { return note.UpdateNote(ctx, in) } // 删除笔记 func (s *NoteServer) DeleteNote(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) { return note.DeleteNote(ctx, in) } // 获取笔记列表 func (s *NoteServer) ListNotes(ctx context.Context, in *pb.FetchRequest) (*pb.ListNotesResponse, error) { return note.ListNotes(ctx, in) } // 置顶/取消置顶笔记 func (s *NoteServer) TogglePin(ctx context.Context, in *pb.TogglePinRequest) (*pb.StatusReply, error) { return note.TogglePin(ctx, in) } // 增加浏览次数 func (s *NoteServer) IncrementViews(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) { return note.IncrementViews(ctx, in) } // 搜索笔记 func (s *NoteServer) SearchNotes(ctx context.Context, in *pb.FetchRequest) (*pb.ListNotesResponse, error) { return note.SearchNotes(ctx, in) } // 上传附件 func (s *NoteServer) InsertAttachment(ctx context.Context, in *pb.NoteAttachmentItem) (*pb.StatusReply, error) { return note.InsertAttachment(ctx, in) } // 删除附件 func (s *NoteServer) DeleteAttachment(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) { return note.DeleteAttachment(ctx, in) }