Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterNoteCreatorServiceServer(s grpc.ServiceRegistrar, srv NoteCreatorServiceServer)
- func RegisterNoteFeedServiceServer(s grpc.ServiceRegistrar, srv NoteFeedServiceServer)
- func RegisterNoteInteractServiceServer(s grpc.ServiceRegistrar, srv NoteInteractServiceServer)
- type BatchCheckUserLikeStatusRequest
- func (*BatchCheckUserLikeStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchCheckUserLikeStatusRequest) GetMappings() map[uint64]*NoteIdList
- func (*BatchCheckUserLikeStatusRequest) ProtoMessage()
- func (x *BatchCheckUserLikeStatusRequest) ProtoReflect() protoreflect.Message
- func (x *BatchCheckUserLikeStatusRequest) Reset()
- func (x *BatchCheckUserLikeStatusRequest) String() string
- type BatchCheckUserLikeStatusResponse
- func (*BatchCheckUserLikeStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchCheckUserLikeStatusResponse) GetResults() map[uint64]*LikeStatusList
- func (*BatchCheckUserLikeStatusResponse) ProtoMessage()
- func (x *BatchCheckUserLikeStatusResponse) ProtoReflect() protoreflect.Message
- func (x *BatchCheckUserLikeStatusResponse) Reset()
- func (x *BatchCheckUserLikeStatusResponse) String() string
- type CheckUserLikeStatusRequest
- func (*CheckUserLikeStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUserLikeStatusRequest) GetNoteId() uint64
- func (x *CheckUserLikeStatusRequest) GetUid() uint64
- func (*CheckUserLikeStatusRequest) ProtoMessage()
- func (x *CheckUserLikeStatusRequest) ProtoReflect() protoreflect.Message
- func (x *CheckUserLikeStatusRequest) Reset()
- func (x *CheckUserLikeStatusRequest) String() string
- type CheckUserLikeStatusResponse
- func (*CheckUserLikeStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUserLikeStatusResponse) GetLiked() bool
- func (*CheckUserLikeStatusResponse) ProtoMessage()
- func (x *CheckUserLikeStatusResponse) ProtoReflect() protoreflect.Message
- func (x *CheckUserLikeStatusResponse) Reset()
- func (x *CheckUserLikeStatusResponse) String() string
- type CreateNoteRequest
- func (*CreateNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNoteRequest) GetBasic() *CreateReqBasic
- func (x *CreateNoteRequest) GetImages() []*CreateReqImage
- func (*CreateNoteRequest) ProtoMessage()
- func (x *CreateNoteRequest) ProtoReflect() protoreflect.Message
- func (x *CreateNoteRequest) Reset()
- func (x *CreateNoteRequest) String() string
- type CreateNoteResponse
- func (*CreateNoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNoteResponse) GetNoteId() uint64
- func (*CreateNoteResponse) ProtoMessage()
- func (x *CreateNoteResponse) ProtoReflect() protoreflect.Message
- func (x *CreateNoteResponse) Reset()
- func (x *CreateNoteResponse) String() string
- type CreateReqBasic
- func (*CreateReqBasic) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReqBasic) GetDesc() string
- func (x *CreateReqBasic) GetPrivacy() int32
- func (x *CreateReqBasic) GetTitle() string
- func (*CreateReqBasic) ProtoMessage()
- func (x *CreateReqBasic) ProtoReflect() protoreflect.Message
- func (x *CreateReqBasic) Reset()
- func (x *CreateReqBasic) String() string
- type CreateReqImage
- type DeleteNoteRequest
- type DeleteNoteResponse
- type FeedNoteItem
- func (*FeedNoteItem) Descriptor() ([]byte, []int)deprecated
- func (x *FeedNoteItem) GetAuthor() uint64
- func (x *FeedNoteItem) GetCreatedAt() int64
- func (x *FeedNoteItem) GetDesc() string
- func (x *FeedNoteItem) GetImages() []*NoteImage
- func (x *FeedNoteItem) GetLikes() uint64
- func (x *FeedNoteItem) GetNoteId() uint64
- func (x *FeedNoteItem) GetReplies() uint64
- func (x *FeedNoteItem) GetTitle() string
- func (*FeedNoteItem) ProtoMessage()
- func (x *FeedNoteItem) ProtoReflect() protoreflect.Message
- func (x *FeedNoteItem) Reset()
- func (x *FeedNoteItem) String() string
- type GetFeedNoteRequest
- func (*GetFeedNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFeedNoteRequest) GetNoteId() uint64
- func (*GetFeedNoteRequest) ProtoMessage()
- func (x *GetFeedNoteRequest) ProtoReflect() protoreflect.Message
- func (x *GetFeedNoteRequest) Reset()
- func (x *GetFeedNoteRequest) String() string
- type GetFeedNoteResponse
- func (*GetFeedNoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFeedNoteResponse) GetItem() *FeedNoteItem
- func (*GetFeedNoteResponse) ProtoMessage()
- func (x *GetFeedNoteResponse) ProtoReflect() protoreflect.Message
- func (x *GetFeedNoteResponse) Reset()
- func (x *GetFeedNoteResponse) String() string
- type GetNoteInteractionRequest
- func (*GetNoteInteractionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNoteInteractionRequest) GetNoteId() uint64
- func (x *GetNoteInteractionRequest) GetUid() uint64
- func (*GetNoteInteractionRequest) ProtoMessage()
- func (x *GetNoteInteractionRequest) ProtoReflect() protoreflect.Message
- func (x *GetNoteInteractionRequest) Reset()
- func (x *GetNoteInteractionRequest) String() string
- type GetNoteInteractionResponse
- func (*GetNoteInteractionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNoteInteractionResponse) GetInteraction() *NoteInteraction
- func (*GetNoteInteractionResponse) ProtoMessage()
- func (x *GetNoteInteractionResponse) ProtoReflect() protoreflect.Message
- func (x *GetNoteInteractionResponse) Reset()
- func (x *GetNoteInteractionResponse) String() string
- type GetNoteLikesRequest
- func (*GetNoteLikesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNoteLikesRequest) GetNoteId() uint64
- func (*GetNoteLikesRequest) ProtoMessage()
- func (x *GetNoteLikesRequest) ProtoReflect() protoreflect.Message
- func (x *GetNoteLikesRequest) Reset()
- func (x *GetNoteLikesRequest) String() string
- type GetNoteLikesResponse
- func (*GetNoteLikesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNoteLikesResponse) GetLikes() uint64
- func (x *GetNoteLikesResponse) GetNoteId() uint64
- func (*GetNoteLikesResponse) ProtoMessage()
- func (x *GetNoteLikesResponse) ProtoReflect() protoreflect.Message
- func (x *GetNoteLikesResponse) Reset()
- func (x *GetNoteLikesResponse) String() string
- type GetNoteRequest
- type GetNoteResponse
- type GetUploadAuthRequest
- func (*GetUploadAuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUploadAuthRequest) GetMimeType() string
- func (x *GetUploadAuthRequest) GetResource() string
- func (x *GetUploadAuthRequest) GetSource() string
- func (*GetUploadAuthRequest) ProtoMessage()
- func (x *GetUploadAuthRequest) ProtoReflect() protoreflect.Message
- func (x *GetUploadAuthRequest) Reset()
- func (x *GetUploadAuthRequest) String() string
- type GetUploadAuthResponse
- func (*GetUploadAuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUploadAuthResponse) GetCurrentTime() int64
- func (x *GetUploadAuthResponse) GetExpireTime() int64
- func (x *GetUploadAuthResponse) GetFileId() string
- func (x *GetUploadAuthResponse) GetHeaders() *UploadAuthResponseHeaders
- func (x *GetUploadAuthResponse) GetUploadAddr() string
- func (*GetUploadAuthResponse) ProtoMessage()
- func (x *GetUploadAuthResponse) ProtoReflect() protoreflect.Message
- func (x *GetUploadAuthResponse) Reset()
- func (x *GetUploadAuthResponse) String() string
- type IsNoteExistRequest
- func (*IsNoteExistRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsNoteExistRequest) GetNoteId() uint64
- func (*IsNoteExistRequest) ProtoMessage()
- func (x *IsNoteExistRequest) ProtoReflect() protoreflect.Message
- func (x *IsNoteExistRequest) Reset()
- func (x *IsNoteExistRequest) String() string
- type IsNoteExistResponse
- func (*IsNoteExistResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsNoteExistResponse) GetExist() bool
- func (*IsNoteExistResponse) ProtoMessage()
- func (x *IsNoteExistResponse) ProtoReflect() protoreflect.Message
- func (x *IsNoteExistResponse) Reset()
- func (x *IsNoteExistResponse) String() string
- type IsUserOwnNoteRequest
- func (*IsUserOwnNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsUserOwnNoteRequest) GetNoteId() uint64
- func (x *IsUserOwnNoteRequest) GetUid() uint64
- func (*IsUserOwnNoteRequest) ProtoMessage()
- func (x *IsUserOwnNoteRequest) ProtoReflect() protoreflect.Message
- func (x *IsUserOwnNoteRequest) Reset()
- func (x *IsUserOwnNoteRequest) String() string
- type IsUserOwnNoteResponse
- func (*IsUserOwnNoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsUserOwnNoteResponse) GetResult() bool
- func (x *IsUserOwnNoteResponse) GetUid() uint64
- func (*IsUserOwnNoteResponse) ProtoMessage()
- func (x *IsUserOwnNoteResponse) ProtoReflect() protoreflect.Message
- func (x *IsUserOwnNoteResponse) Reset()
- func (x *IsUserOwnNoteResponse) String() string
- type LikeNoteRequest
- func (*LikeNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LikeNoteRequest) GetNoteId() uint64
- func (x *LikeNoteRequest) GetOperation() LikeNoteRequest_Operation
- func (x *LikeNoteRequest) GetUid() uint64
- func (*LikeNoteRequest) ProtoMessage()
- func (x *LikeNoteRequest) ProtoReflect() protoreflect.Message
- func (x *LikeNoteRequest) Reset()
- func (x *LikeNoteRequest) String() string
- type LikeNoteRequest_Operation
- func (LikeNoteRequest_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x LikeNoteRequest_Operation) Enum() *LikeNoteRequest_Operation
- func (LikeNoteRequest_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x LikeNoteRequest_Operation) Number() protoreflect.EnumNumber
- func (x LikeNoteRequest_Operation) String() string
- func (LikeNoteRequest_Operation) Type() protoreflect.EnumType
- type LikeNoteResponse
- type LikeStatus
- type LikeStatusList
- type ListNoteRequest
- type ListNoteResponse
- type NoteCreatorServiceClient
- type NoteCreatorServiceServer
- type NoteFeedServiceClient
- type NoteFeedServiceServer
- type NoteIdList
- type NoteImage
- type NoteInteractServiceClient
- type NoteInteractServiceServer
- type NoteInteraction
- func (*NoteInteraction) Descriptor() ([]byte, []int)deprecated
- func (x *NoteInteraction) GetCommented() bool
- func (x *NoteInteraction) GetLiked() bool
- func (*NoteInteraction) ProtoMessage()
- func (x *NoteInteraction) ProtoReflect() protoreflect.Message
- func (x *NoteInteraction) Reset()
- func (x *NoteInteraction) String() string
- type NoteItem
- func (*NoteItem) Descriptor() ([]byte, []int)deprecated
- func (x *NoteItem) GetCreateAt() int64
- func (x *NoteItem) GetDesc() string
- func (x *NoteItem) GetImages() []*NoteImage
- func (x *NoteItem) GetLikes() uint64
- func (x *NoteItem) GetNoteId() uint64
- func (x *NoteItem) GetPrivacy() int32
- func (x *NoteItem) GetReplies() uint64
- func (x *NoteItem) GetTitle() string
- func (x *NoteItem) GetUpdateAt() int64
- func (*NoteItem) ProtoMessage()
- func (x *NoteItem) ProtoReflect() protoreflect.Message
- func (x *NoteItem) Reset()
- func (x *NoteItem) String() string
- type RandomGetRequest
- type RandomGetResponse
- func (*RandomGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RandomGetResponse) GetCount() int32
- func (x *RandomGetResponse) GetItems() []*FeedNoteItem
- func (*RandomGetResponse) ProtoMessage()
- func (x *RandomGetResponse) ProtoReflect() protoreflect.Message
- func (x *RandomGetResponse) Reset()
- func (x *RandomGetResponse) String() string
- type RecommendGetRequest
- func (*RecommendGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RecommendGetRequest) GetNeedNum() int32
- func (x *RecommendGetRequest) GetUid() uint64
- func (*RecommendGetRequest) ProtoMessage()
- func (x *RecommendGetRequest) ProtoReflect() protoreflect.Message
- func (x *RecommendGetRequest) Reset()
- func (x *RecommendGetRequest) String() string
- type RecommendGetResponse
- type UnimplementedNoteCreatorServiceServer
- func (UnimplementedNoteCreatorServiceServer) CreateNote(context.Context, *CreateNoteRequest) (*CreateNoteResponse, error)
- func (UnimplementedNoteCreatorServiceServer) DeleteNote(context.Context, *DeleteNoteRequest) (*DeleteNoteResponse, error)
- func (UnimplementedNoteCreatorServiceServer) GetNote(context.Context, *GetNoteRequest) (*GetNoteResponse, error)
- func (UnimplementedNoteCreatorServiceServer) GetUploadAuth(context.Context, *GetUploadAuthRequest) (*GetUploadAuthResponse, error)
- func (UnimplementedNoteCreatorServiceServer) IsNoteExist(context.Context, *IsNoteExistRequest) (*IsNoteExistResponse, error)
- func (UnimplementedNoteCreatorServiceServer) IsUserOwnNote(context.Context, *IsUserOwnNoteRequest) (*IsUserOwnNoteResponse, error)
- func (UnimplementedNoteCreatorServiceServer) ListNote(context.Context, *ListNoteRequest) (*ListNoteResponse, error)
- func (UnimplementedNoteCreatorServiceServer) UpdateNote(context.Context, *UpdateNoteRequest) (*UpdateNoteResponse, error)
- type UnimplementedNoteFeedServiceServer
- func (UnimplementedNoteFeedServiceServer) GetFeedNote(context.Context, *GetFeedNoteRequest) (*GetFeedNoteResponse, error)
- func (UnimplementedNoteFeedServiceServer) RandomGet(context.Context, *RandomGetRequest) (*RandomGetResponse, error)
- func (UnimplementedNoteFeedServiceServer) RecommendGet(context.Context, *RecommendGetRequest) (*RecommendGetResponse, error)
- type UnimplementedNoteInteractServiceServer
- func (UnimplementedNoteInteractServiceServer) BatchCheckUserLikeStatus(context.Context, *BatchCheckUserLikeStatusRequest) (*BatchCheckUserLikeStatusResponse, error)
- func (UnimplementedNoteInteractServiceServer) CheckUserLikeStatus(context.Context, *CheckUserLikeStatusRequest) (*CheckUserLikeStatusResponse, error)
- func (UnimplementedNoteInteractServiceServer) GetNoteInteraction(context.Context, *GetNoteInteractionRequest) (*GetNoteInteractionResponse, error)
- func (UnimplementedNoteInteractServiceServer) GetNoteLikes(context.Context, *GetNoteLikesRequest) (*GetNoteLikesResponse, error)
- func (UnimplementedNoteInteractServiceServer) LikeNote(context.Context, *LikeNoteRequest) (*LikeNoteResponse, error)
- type UnsafeNoteCreatorServiceServer
- type UnsafeNoteFeedServiceServer
- type UnsafeNoteInteractServiceServer
- type UpdateNoteRequest
- func (*UpdateNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNoteRequest) GetNote() *CreateNoteRequest
- func (x *UpdateNoteRequest) GetNoteId() uint64
- func (*UpdateNoteRequest) ProtoMessage()
- func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNoteRequest) Reset()
- func (x *UpdateNoteRequest) String() string
- type UpdateNoteResponse
- func (*UpdateNoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNoteResponse) GetNoteId() uint64
- func (*UpdateNoteResponse) ProtoMessage()
- func (x *UpdateNoteResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateNoteResponse) Reset()
- func (x *UpdateNoteResponse) String() string
- type UploadAuthResponseHeaders
- func (*UploadAuthResponseHeaders) Descriptor() ([]byte, []int)deprecated
- func (x *UploadAuthResponseHeaders) GetAuth() string
- func (x *UploadAuthResponseHeaders) GetDate() string
- func (x *UploadAuthResponseHeaders) GetSha256() string
- func (x *UploadAuthResponseHeaders) GetToken() string
- func (*UploadAuthResponseHeaders) ProtoMessage()
- func (x *UploadAuthResponseHeaders) ProtoReflect() protoreflect.Message
- func (x *UploadAuthResponseHeaders) Reset()
- func (x *UploadAuthResponseHeaders) String() string
Constants ¶
const ( NoteCreatorService_IsUserOwnNote_FullMethodName = "/note.sdk.v1.NoteCreatorService/IsUserOwnNote" NoteCreatorService_IsNoteExist_FullMethodName = "/note.sdk.v1.NoteCreatorService/IsNoteExist" NoteCreatorService_CreateNote_FullMethodName = "/note.sdk.v1.NoteCreatorService/CreateNote" NoteCreatorService_UpdateNote_FullMethodName = "/note.sdk.v1.NoteCreatorService/UpdateNote" NoteCreatorService_DeleteNote_FullMethodName = "/note.sdk.v1.NoteCreatorService/DeleteNote" NoteCreatorService_GetNote_FullMethodName = "/note.sdk.v1.NoteCreatorService/GetNote" NoteCreatorService_ListNote_FullMethodName = "/note.sdk.v1.NoteCreatorService/ListNote" NoteCreatorService_GetUploadAuth_FullMethodName = "/note.sdk.v1.NoteCreatorService/GetUploadAuth" )
const ( NoteFeedService_RandomGet_FullMethodName = "/note.sdk.v1.NoteFeedService/RandomGet" NoteFeedService_GetFeedNote_FullMethodName = "/note.sdk.v1.NoteFeedService/GetFeedNote" NoteFeedService_RecommendGet_FullMethodName = "/note.sdk.v1.NoteFeedService/RecommendGet" )
const ( NoteInteractService_LikeNote_FullMethodName = "/note.sdk.v1.NoteInteractService/LikeNote" NoteInteractService_GetNoteLikes_FullMethodName = "/note.sdk.v1.NoteInteractService/GetNoteLikes" NoteInteractService_CheckUserLikeStatus_FullMethodName = "/note.sdk.v1.NoteInteractService/CheckUserLikeStatus" NoteInteractService_BatchCheckUserLikeStatus_FullMethodName = "/note.sdk.v1.NoteInteractService/BatchCheckUserLikeStatus" NoteInteractService_GetNoteInteraction_FullMethodName = "/note.sdk.v1.NoteInteractService/GetNoteInteraction" )
Variables ¶
var ( LikeNoteRequest_Operation_name = map[int32]string{ 0: "OPERATION_UNDO_LIKE", 1: "OPERATION_DO_LIKE", } LikeNoteRequest_Operation_value = map[string]int32{ "OPERATION_UNDO_LIKE": 0, "OPERATION_DO_LIKE": 1, } )
Enum value maps for LikeNoteRequest_Operation.
var File_v1_note_proto protoreflect.FileDescriptor
var File_v1_notecreator_proto protoreflect.FileDescriptor
var File_v1_notefeed_proto protoreflect.FileDescriptor
var File_v1_noteinteract_proto protoreflect.FileDescriptor
var NoteCreatorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "note.sdk.v1.NoteCreatorService", HandlerType: (*NoteCreatorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsUserOwnNote", Handler: _NoteCreatorService_IsUserOwnNote_Handler, }, { MethodName: "IsNoteExist", Handler: _NoteCreatorService_IsNoteExist_Handler, }, { MethodName: "CreateNote", Handler: _NoteCreatorService_CreateNote_Handler, }, { MethodName: "UpdateNote", Handler: _NoteCreatorService_UpdateNote_Handler, }, { MethodName: "DeleteNote", Handler: _NoteCreatorService_DeleteNote_Handler, }, { MethodName: "GetNote", Handler: _NoteCreatorService_GetNote_Handler, }, { MethodName: "ListNote", Handler: _NoteCreatorService_ListNote_Handler, }, { MethodName: "GetUploadAuth", Handler: _NoteCreatorService_GetUploadAuth_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/notecreator.proto", }
NoteCreatorService_ServiceDesc is the grpc.ServiceDesc for NoteCreatorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var NoteFeedService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "note.sdk.v1.NoteFeedService", HandlerType: (*NoteFeedServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RandomGet", Handler: _NoteFeedService_RandomGet_Handler, }, { MethodName: "GetFeedNote", Handler: _NoteFeedService_GetFeedNote_Handler, }, { MethodName: "RecommendGet", Handler: _NoteFeedService_RecommendGet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/notefeed.proto", }
NoteFeedService_ServiceDesc is the grpc.ServiceDesc for NoteFeedService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var NoteInteractService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "note.sdk.v1.NoteInteractService", HandlerType: (*NoteInteractServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LikeNote", Handler: _NoteInteractService_LikeNote_Handler, }, { MethodName: "GetNoteLikes", Handler: _NoteInteractService_GetNoteLikes_Handler, }, { MethodName: "CheckUserLikeStatus", Handler: _NoteInteractService_CheckUserLikeStatus_Handler, }, { MethodName: "BatchCheckUserLikeStatus", Handler: _NoteInteractService_BatchCheckUserLikeStatus_Handler, }, { MethodName: "GetNoteInteraction", Handler: _NoteInteractService_GetNoteInteraction_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/noteinteract.proto", }
NoteInteractService_ServiceDesc is the grpc.ServiceDesc for NoteInteractService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNoteCreatorServiceServer ¶
func RegisterNoteCreatorServiceServer(s grpc.ServiceRegistrar, srv NoteCreatorServiceServer)
func RegisterNoteFeedServiceServer ¶
func RegisterNoteFeedServiceServer(s grpc.ServiceRegistrar, srv NoteFeedServiceServer)
func RegisterNoteInteractServiceServer ¶
func RegisterNoteInteractServiceServer(s grpc.ServiceRegistrar, srv NoteInteractServiceServer)
Types ¶
type BatchCheckUserLikeStatusRequest ¶
type BatchCheckUserLikeStatusRequest struct { // uid -> [noteId, noteId2, ...] Mappings map[uint64]*NoteIdList `` /* 158-byte string literal not displayed */ // contains filtered or unexported fields }
func (*BatchCheckUserLikeStatusRequest) Descriptor
deprecated
func (*BatchCheckUserLikeStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchCheckUserLikeStatusRequest.ProtoReflect.Descriptor instead.
func (*BatchCheckUserLikeStatusRequest) GetMappings ¶
func (x *BatchCheckUserLikeStatusRequest) GetMappings() map[uint64]*NoteIdList
func (*BatchCheckUserLikeStatusRequest) ProtoMessage ¶
func (*BatchCheckUserLikeStatusRequest) ProtoMessage()
func (*BatchCheckUserLikeStatusRequest) ProtoReflect ¶
func (x *BatchCheckUserLikeStatusRequest) ProtoReflect() protoreflect.Message
func (*BatchCheckUserLikeStatusRequest) Reset ¶
func (x *BatchCheckUserLikeStatusRequest) Reset()
func (*BatchCheckUserLikeStatusRequest) String ¶
func (x *BatchCheckUserLikeStatusRequest) String() string
type BatchCheckUserLikeStatusResponse ¶
type BatchCheckUserLikeStatusResponse struct { // uid -> {{}, {}, ...} Results map[uint64]*LikeStatusList `` /* 156-byte string literal not displayed */ // contains filtered or unexported fields }
func (*BatchCheckUserLikeStatusResponse) Descriptor
deprecated
func (*BatchCheckUserLikeStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchCheckUserLikeStatusResponse.ProtoReflect.Descriptor instead.
func (*BatchCheckUserLikeStatusResponse) GetResults ¶
func (x *BatchCheckUserLikeStatusResponse) GetResults() map[uint64]*LikeStatusList
func (*BatchCheckUserLikeStatusResponse) ProtoMessage ¶
func (*BatchCheckUserLikeStatusResponse) ProtoMessage()
func (*BatchCheckUserLikeStatusResponse) ProtoReflect ¶
func (x *BatchCheckUserLikeStatusResponse) ProtoReflect() protoreflect.Message
func (*BatchCheckUserLikeStatusResponse) Reset ¶
func (x *BatchCheckUserLikeStatusResponse) Reset()
func (*BatchCheckUserLikeStatusResponse) String ¶
func (x *BatchCheckUserLikeStatusResponse) String() string
type CheckUserLikeStatusRequest ¶
type CheckUserLikeStatusRequest struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` //笔记id Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // 用户id // contains filtered or unexported fields }
检查用户是否点赞过某篇笔记
func (*CheckUserLikeStatusRequest) Descriptor
deprecated
func (*CheckUserLikeStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckUserLikeStatusRequest.ProtoReflect.Descriptor instead.
func (*CheckUserLikeStatusRequest) GetNoteId ¶
func (x *CheckUserLikeStatusRequest) GetNoteId() uint64
func (*CheckUserLikeStatusRequest) GetUid ¶
func (x *CheckUserLikeStatusRequest) GetUid() uint64
func (*CheckUserLikeStatusRequest) ProtoMessage ¶
func (*CheckUserLikeStatusRequest) ProtoMessage()
func (*CheckUserLikeStatusRequest) ProtoReflect ¶
func (x *CheckUserLikeStatusRequest) ProtoReflect() protoreflect.Message
func (*CheckUserLikeStatusRequest) Reset ¶
func (x *CheckUserLikeStatusRequest) Reset()
func (*CheckUserLikeStatusRequest) String ¶
func (x *CheckUserLikeStatusRequest) String() string
type CheckUserLikeStatusResponse ¶
type CheckUserLikeStatusResponse struct { Liked bool `protobuf:"varint,1,opt,name=liked,proto3" json:"liked,omitempty"` // 是否点赞 // contains filtered or unexported fields }
func (*CheckUserLikeStatusResponse) Descriptor
deprecated
func (*CheckUserLikeStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckUserLikeStatusResponse.ProtoReflect.Descriptor instead.
func (*CheckUserLikeStatusResponse) GetLiked ¶
func (x *CheckUserLikeStatusResponse) GetLiked() bool
func (*CheckUserLikeStatusResponse) ProtoMessage ¶
func (*CheckUserLikeStatusResponse) ProtoMessage()
func (*CheckUserLikeStatusResponse) ProtoReflect ¶
func (x *CheckUserLikeStatusResponse) ProtoReflect() protoreflect.Message
func (*CheckUserLikeStatusResponse) Reset ¶
func (x *CheckUserLikeStatusResponse) Reset()
func (*CheckUserLikeStatusResponse) String ¶
func (x *CheckUserLikeStatusResponse) String() string
type CreateNoteRequest ¶
type CreateNoteRequest struct { Basic *CreateReqBasic `protobuf:"bytes,1,opt,name=basic,proto3" json:"basic,omitempty"` Images []*CreateReqImage `protobuf:"bytes,2,rep,name=images,proto3" json:"images,omitempty"` // contains filtered or unexported fields }
func (*CreateNoteRequest) Descriptor
deprecated
func (*CreateNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNoteRequest.ProtoReflect.Descriptor instead.
func (*CreateNoteRequest) GetBasic ¶
func (x *CreateNoteRequest) GetBasic() *CreateReqBasic
func (*CreateNoteRequest) GetImages ¶
func (x *CreateNoteRequest) GetImages() []*CreateReqImage
func (*CreateNoteRequest) ProtoMessage ¶
func (*CreateNoteRequest) ProtoMessage()
func (*CreateNoteRequest) ProtoReflect ¶
func (x *CreateNoteRequest) ProtoReflect() protoreflect.Message
func (*CreateNoteRequest) Reset ¶
func (x *CreateNoteRequest) Reset()
func (*CreateNoteRequest) String ¶
func (x *CreateNoteRequest) String() string
type CreateNoteResponse ¶
type CreateNoteResponse struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // contains filtered or unexported fields }
func (*CreateNoteResponse) Descriptor
deprecated
func (*CreateNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateNoteResponse.ProtoReflect.Descriptor instead.
func (*CreateNoteResponse) GetNoteId ¶
func (x *CreateNoteResponse) GetNoteId() uint64
func (*CreateNoteResponse) ProtoMessage ¶
func (*CreateNoteResponse) ProtoMessage()
func (*CreateNoteResponse) ProtoReflect ¶
func (x *CreateNoteResponse) ProtoReflect() protoreflect.Message
func (*CreateNoteResponse) Reset ¶
func (x *CreateNoteResponse) Reset()
func (*CreateNoteResponse) String ¶
func (x *CreateNoteResponse) String() string
type CreateReqBasic ¶
type CreateReqBasic struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` Privacy int32 `protobuf:"varint,3,opt,name=privacy,proto3" json:"privacy,omitempty"` // contains filtered or unexported fields }
func (*CreateReqBasic) Descriptor
deprecated
func (*CreateReqBasic) Descriptor() ([]byte, []int)
Deprecated: Use CreateReqBasic.ProtoReflect.Descriptor instead.
func (*CreateReqBasic) GetDesc ¶
func (x *CreateReqBasic) GetDesc() string
func (*CreateReqBasic) GetPrivacy ¶
func (x *CreateReqBasic) GetPrivacy() int32
func (*CreateReqBasic) GetTitle ¶
func (x *CreateReqBasic) GetTitle() string
func (*CreateReqBasic) ProtoMessage ¶
func (*CreateReqBasic) ProtoMessage()
func (*CreateReqBasic) ProtoReflect ¶
func (x *CreateReqBasic) ProtoReflect() protoreflect.Message
func (*CreateReqBasic) Reset ¶
func (x *CreateReqBasic) Reset()
func (*CreateReqBasic) String ¶
func (x *CreateReqBasic) String() string
type CreateReqImage ¶
type CreateReqImage struct { FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` // contains filtered or unexported fields }
func (*CreateReqImage) Descriptor
deprecated
func (*CreateReqImage) Descriptor() ([]byte, []int)
Deprecated: Use CreateReqImage.ProtoReflect.Descriptor instead.
func (*CreateReqImage) GetFileId ¶
func (x *CreateReqImage) GetFileId() string
func (*CreateReqImage) ProtoMessage ¶
func (*CreateReqImage) ProtoMessage()
func (*CreateReqImage) ProtoReflect ¶
func (x *CreateReqImage) ProtoReflect() protoreflect.Message
func (*CreateReqImage) Reset ¶
func (x *CreateReqImage) Reset()
func (*CreateReqImage) String ¶
func (x *CreateReqImage) String() string
type DeleteNoteRequest ¶
type DeleteNoteRequest struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteNoteRequest) Descriptor
deprecated
func (*DeleteNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNoteRequest.ProtoReflect.Descriptor instead.
func (*DeleteNoteRequest) GetNoteId ¶
func (x *DeleteNoteRequest) GetNoteId() uint64
func (*DeleteNoteRequest) ProtoMessage ¶
func (*DeleteNoteRequest) ProtoMessage()
func (*DeleteNoteRequest) ProtoReflect ¶
func (x *DeleteNoteRequest) ProtoReflect() protoreflect.Message
func (*DeleteNoteRequest) Reset ¶
func (x *DeleteNoteRequest) Reset()
func (*DeleteNoteRequest) String ¶
func (x *DeleteNoteRequest) String() string
type DeleteNoteResponse ¶
type DeleteNoteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteNoteResponse) Descriptor
deprecated
func (*DeleteNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNoteResponse.ProtoReflect.Descriptor instead.
func (*DeleteNoteResponse) ProtoMessage ¶
func (*DeleteNoteResponse) ProtoMessage()
func (*DeleteNoteResponse) ProtoReflect ¶
func (x *DeleteNoteResponse) ProtoReflect() protoreflect.Message
func (*DeleteNoteResponse) Reset ¶
func (x *DeleteNoteResponse) Reset()
func (*DeleteNoteResponse) String ¶
func (x *DeleteNoteResponse) String() string
type FeedNoteItem ¶
type FeedNoteItem struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Images []*NoteImage `protobuf:"bytes,5,rep,name=images,proto3" json:"images,omitempty"` Likes uint64 `protobuf:"varint,6,opt,name=likes,proto3" json:"likes,omitempty"` // 点赞数量 Author uint64 `protobuf:"varint,7,opt,name=author,proto3" json:"author,omitempty"` // 笔记作者 Replies uint64 `protobuf:"varint,8,opt,name=replies,proto3" json:"replies,omitempty"` // 点赞数 // contains filtered or unexported fields }
func (*FeedNoteItem) Descriptor
deprecated
func (*FeedNoteItem) Descriptor() ([]byte, []int)
Deprecated: Use FeedNoteItem.ProtoReflect.Descriptor instead.
func (*FeedNoteItem) GetAuthor ¶
func (x *FeedNoteItem) GetAuthor() uint64
func (*FeedNoteItem) GetCreatedAt ¶
func (x *FeedNoteItem) GetCreatedAt() int64
func (*FeedNoteItem) GetDesc ¶
func (x *FeedNoteItem) GetDesc() string
func (*FeedNoteItem) GetImages ¶
func (x *FeedNoteItem) GetImages() []*NoteImage
func (*FeedNoteItem) GetLikes ¶
func (x *FeedNoteItem) GetLikes() uint64
func (*FeedNoteItem) GetNoteId ¶
func (x *FeedNoteItem) GetNoteId() uint64
func (*FeedNoteItem) GetReplies ¶
func (x *FeedNoteItem) GetReplies() uint64
func (*FeedNoteItem) GetTitle ¶
func (x *FeedNoteItem) GetTitle() string
func (*FeedNoteItem) ProtoMessage ¶
func (*FeedNoteItem) ProtoMessage()
func (*FeedNoteItem) ProtoReflect ¶
func (x *FeedNoteItem) ProtoReflect() protoreflect.Message
func (*FeedNoteItem) Reset ¶
func (x *FeedNoteItem) Reset()
func (*FeedNoteItem) String ¶
func (x *FeedNoteItem) String() string
type GetFeedNoteRequest ¶
type GetFeedNoteRequest struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` //笔记id // contains filtered or unexported fields }
func (*GetFeedNoteRequest) Descriptor
deprecated
func (*GetFeedNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFeedNoteRequest.ProtoReflect.Descriptor instead.
func (*GetFeedNoteRequest) GetNoteId ¶
func (x *GetFeedNoteRequest) GetNoteId() uint64
func (*GetFeedNoteRequest) ProtoMessage ¶
func (*GetFeedNoteRequest) ProtoMessage()
func (*GetFeedNoteRequest) ProtoReflect ¶
func (x *GetFeedNoteRequest) ProtoReflect() protoreflect.Message
func (*GetFeedNoteRequest) Reset ¶
func (x *GetFeedNoteRequest) Reset()
func (*GetFeedNoteRequest) String ¶
func (x *GetFeedNoteRequest) String() string
type GetFeedNoteResponse ¶
type GetFeedNoteResponse struct { Item *FeedNoteItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*GetFeedNoteResponse) Descriptor
deprecated
func (*GetFeedNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFeedNoteResponse.ProtoReflect.Descriptor instead.
func (*GetFeedNoteResponse) GetItem ¶
func (x *GetFeedNoteResponse) GetItem() *FeedNoteItem
func (*GetFeedNoteResponse) ProtoMessage ¶
func (*GetFeedNoteResponse) ProtoMessage()
func (*GetFeedNoteResponse) ProtoReflect ¶
func (x *GetFeedNoteResponse) ProtoReflect() protoreflect.Message
func (*GetFeedNoteResponse) Reset ¶
func (x *GetFeedNoteResponse) Reset()
func (*GetFeedNoteResponse) String ¶
func (x *GetFeedNoteResponse) String() string
type GetNoteInteractionRequest ¶
type GetNoteInteractionRequest struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` //笔记id Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // 用户id // contains filtered or unexported fields }
func (*GetNoteInteractionRequest) Descriptor
deprecated
func (*GetNoteInteractionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteInteractionRequest.ProtoReflect.Descriptor instead.
func (*GetNoteInteractionRequest) GetNoteId ¶
func (x *GetNoteInteractionRequest) GetNoteId() uint64
func (*GetNoteInteractionRequest) GetUid ¶
func (x *GetNoteInteractionRequest) GetUid() uint64
func (*GetNoteInteractionRequest) ProtoMessage ¶
func (*GetNoteInteractionRequest) ProtoMessage()
func (*GetNoteInteractionRequest) ProtoReflect ¶
func (x *GetNoteInteractionRequest) ProtoReflect() protoreflect.Message
func (*GetNoteInteractionRequest) Reset ¶
func (x *GetNoteInteractionRequest) Reset()
func (*GetNoteInteractionRequest) String ¶
func (x *GetNoteInteractionRequest) String() string
type GetNoteInteractionResponse ¶
type GetNoteInteractionResponse struct { Interaction *NoteInteraction `protobuf:"bytes,1,opt,name=interaction,proto3" json:"interaction,omitempty"` // contains filtered or unexported fields }
func (*GetNoteInteractionResponse) Descriptor
deprecated
func (*GetNoteInteractionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteInteractionResponse.ProtoReflect.Descriptor instead.
func (*GetNoteInteractionResponse) GetInteraction ¶
func (x *GetNoteInteractionResponse) GetInteraction() *NoteInteraction
func (*GetNoteInteractionResponse) ProtoMessage ¶
func (*GetNoteInteractionResponse) ProtoMessage()
func (*GetNoteInteractionResponse) ProtoReflect ¶
func (x *GetNoteInteractionResponse) ProtoReflect() protoreflect.Message
func (*GetNoteInteractionResponse) Reset ¶
func (x *GetNoteInteractionResponse) Reset()
func (*GetNoteInteractionResponse) String ¶
func (x *GetNoteInteractionResponse) String() string
type GetNoteLikesRequest ¶
type GetNoteLikesRequest struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` //笔记id // contains filtered or unexported fields }
func (*GetNoteLikesRequest) Descriptor
deprecated
func (*GetNoteLikesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteLikesRequest.ProtoReflect.Descriptor instead.
func (*GetNoteLikesRequest) GetNoteId ¶
func (x *GetNoteLikesRequest) GetNoteId() uint64
func (*GetNoteLikesRequest) ProtoMessage ¶
func (*GetNoteLikesRequest) ProtoMessage()
func (*GetNoteLikesRequest) ProtoReflect ¶
func (x *GetNoteLikesRequest) ProtoReflect() protoreflect.Message
func (*GetNoteLikesRequest) Reset ¶
func (x *GetNoteLikesRequest) Reset()
func (*GetNoteLikesRequest) String ¶
func (x *GetNoteLikesRequest) String() string
type GetNoteLikesResponse ¶
type GetNoteLikesResponse struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` Likes uint64 `protobuf:"varint,2,opt,name=likes,proto3" json:"likes,omitempty"` // 点赞数量 // contains filtered or unexported fields }
func (*GetNoteLikesResponse) Descriptor
deprecated
func (*GetNoteLikesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteLikesResponse.ProtoReflect.Descriptor instead.
func (*GetNoteLikesResponse) GetLikes ¶
func (x *GetNoteLikesResponse) GetLikes() uint64
func (*GetNoteLikesResponse) GetNoteId ¶
func (x *GetNoteLikesResponse) GetNoteId() uint64
func (*GetNoteLikesResponse) ProtoMessage ¶
func (*GetNoteLikesResponse) ProtoMessage()
func (*GetNoteLikesResponse) ProtoReflect ¶
func (x *GetNoteLikesResponse) ProtoReflect() protoreflect.Message
func (*GetNoteLikesResponse) Reset ¶
func (x *GetNoteLikesResponse) Reset()
func (*GetNoteLikesResponse) String ¶
func (x *GetNoteLikesResponse) String() string
type GetNoteRequest ¶
type GetNoteRequest struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // contains filtered or unexported fields }
func (*GetNoteRequest) Descriptor
deprecated
func (*GetNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteRequest.ProtoReflect.Descriptor instead.
func (*GetNoteRequest) GetNoteId ¶
func (x *GetNoteRequest) GetNoteId() uint64
func (*GetNoteRequest) ProtoMessage ¶
func (*GetNoteRequest) ProtoMessage()
func (*GetNoteRequest) ProtoReflect ¶
func (x *GetNoteRequest) ProtoReflect() protoreflect.Message
func (*GetNoteRequest) Reset ¶
func (x *GetNoteRequest) Reset()
func (*GetNoteRequest) String ¶
func (x *GetNoteRequest) String() string
type GetNoteResponse ¶
type GetNoteResponse struct { Note *NoteItem `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*GetNoteResponse) Descriptor
deprecated
func (*GetNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteResponse.ProtoReflect.Descriptor instead.
func (*GetNoteResponse) GetNote ¶
func (x *GetNoteResponse) GetNote() *NoteItem
func (*GetNoteResponse) ProtoMessage ¶
func (*GetNoteResponse) ProtoMessage()
func (*GetNoteResponse) ProtoReflect ¶
func (x *GetNoteResponse) ProtoReflect() protoreflect.Message
func (*GetNoteResponse) Reset ¶
func (x *GetNoteResponse) Reset()
func (*GetNoteResponse) String ¶
func (x *GetNoteResponse) String() string
type GetUploadAuthRequest ¶
type GetUploadAuthRequest struct { Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` // contains filtered or unexported fields }
func (*GetUploadAuthRequest) Descriptor
deprecated
func (*GetUploadAuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUploadAuthRequest.ProtoReflect.Descriptor instead.
func (*GetUploadAuthRequest) GetMimeType ¶
func (x *GetUploadAuthRequest) GetMimeType() string
func (*GetUploadAuthRequest) GetResource ¶
func (x *GetUploadAuthRequest) GetResource() string
func (*GetUploadAuthRequest) GetSource ¶
func (x *GetUploadAuthRequest) GetSource() string
func (*GetUploadAuthRequest) ProtoMessage ¶
func (*GetUploadAuthRequest) ProtoMessage()
func (*GetUploadAuthRequest) ProtoReflect ¶
func (x *GetUploadAuthRequest) ProtoReflect() protoreflect.Message
func (*GetUploadAuthRequest) Reset ¶
func (x *GetUploadAuthRequest) Reset()
func (*GetUploadAuthRequest) String ¶
func (x *GetUploadAuthRequest) String() string
type GetUploadAuthResponse ¶
type GetUploadAuthResponse struct { FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` CurrentTime int64 `protobuf:"varint,2,opt,name=current_time,json=currentTime,proto3" json:"current_time,omitempty"` ExpireTime int64 `protobuf:"varint,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` UploadAddr string `protobuf:"bytes,4,opt,name=upload_addr,json=uploadAddr,proto3" json:"upload_addr,omitempty"` Headers *UploadAuthResponseHeaders `protobuf:"bytes,5,opt,name=headers,proto3" json:"headers,omitempty"` // contains filtered or unexported fields }
func (*GetUploadAuthResponse) Descriptor
deprecated
func (*GetUploadAuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUploadAuthResponse.ProtoReflect.Descriptor instead.
func (*GetUploadAuthResponse) GetCurrentTime ¶
func (x *GetUploadAuthResponse) GetCurrentTime() int64
func (*GetUploadAuthResponse) GetExpireTime ¶
func (x *GetUploadAuthResponse) GetExpireTime() int64
func (*GetUploadAuthResponse) GetFileId ¶
func (x *GetUploadAuthResponse) GetFileId() string
func (*GetUploadAuthResponse) GetHeaders ¶
func (x *GetUploadAuthResponse) GetHeaders() *UploadAuthResponseHeaders
func (*GetUploadAuthResponse) GetUploadAddr ¶
func (x *GetUploadAuthResponse) GetUploadAddr() string
func (*GetUploadAuthResponse) ProtoMessage ¶
func (*GetUploadAuthResponse) ProtoMessage()
func (*GetUploadAuthResponse) ProtoReflect ¶
func (x *GetUploadAuthResponse) ProtoReflect() protoreflect.Message
func (*GetUploadAuthResponse) Reset ¶
func (x *GetUploadAuthResponse) Reset()
func (*GetUploadAuthResponse) String ¶
func (x *GetUploadAuthResponse) String() string
type IsNoteExistRequest ¶
type IsNoteExistRequest struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // contains filtered or unexported fields }
func (*IsNoteExistRequest) Descriptor
deprecated
func (*IsNoteExistRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsNoteExistRequest.ProtoReflect.Descriptor instead.
func (*IsNoteExistRequest) GetNoteId ¶
func (x *IsNoteExistRequest) GetNoteId() uint64
func (*IsNoteExistRequest) ProtoMessage ¶
func (*IsNoteExistRequest) ProtoMessage()
func (*IsNoteExistRequest) ProtoReflect ¶
func (x *IsNoteExistRequest) ProtoReflect() protoreflect.Message
func (*IsNoteExistRequest) Reset ¶
func (x *IsNoteExistRequest) Reset()
func (*IsNoteExistRequest) String ¶
func (x *IsNoteExistRequest) String() string
type IsNoteExistResponse ¶
type IsNoteExistResponse struct { Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"` // contains filtered or unexported fields }
func (*IsNoteExistResponse) Descriptor
deprecated
func (*IsNoteExistResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsNoteExistResponse.ProtoReflect.Descriptor instead.
func (*IsNoteExistResponse) GetExist ¶
func (x *IsNoteExistResponse) GetExist() bool
func (*IsNoteExistResponse) ProtoMessage ¶
func (*IsNoteExistResponse) ProtoMessage()
func (*IsNoteExistResponse) ProtoReflect ¶
func (x *IsNoteExistResponse) ProtoReflect() protoreflect.Message
func (*IsNoteExistResponse) Reset ¶
func (x *IsNoteExistResponse) Reset()
func (*IsNoteExistResponse) String ¶
func (x *IsNoteExistResponse) String() string
type IsUserOwnNoteRequest ¶
type IsUserOwnNoteRequest struct { Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // 用户id NoteId uint64 `protobuf:"varint,2,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // 笔记id // contains filtered or unexported fields }
func (*IsUserOwnNoteRequest) Descriptor
deprecated
func (*IsUserOwnNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsUserOwnNoteRequest.ProtoReflect.Descriptor instead.
func (*IsUserOwnNoteRequest) GetNoteId ¶
func (x *IsUserOwnNoteRequest) GetNoteId() uint64
func (*IsUserOwnNoteRequest) GetUid ¶
func (x *IsUserOwnNoteRequest) GetUid() uint64
func (*IsUserOwnNoteRequest) ProtoMessage ¶
func (*IsUserOwnNoteRequest) ProtoMessage()
func (*IsUserOwnNoteRequest) ProtoReflect ¶
func (x *IsUserOwnNoteRequest) ProtoReflect() protoreflect.Message
func (*IsUserOwnNoteRequest) Reset ¶
func (x *IsUserOwnNoteRequest) Reset()
func (*IsUserOwnNoteRequest) String ¶
func (x *IsUserOwnNoteRequest) String() string
type IsUserOwnNoteResponse ¶
type IsUserOwnNoteResponse struct { Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Result bool `protobuf:"varint,2,opt,name=result,proto3" json:"result,omitempty"` // 结果 // contains filtered or unexported fields }
func (*IsUserOwnNoteResponse) Descriptor
deprecated
func (*IsUserOwnNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsUserOwnNoteResponse.ProtoReflect.Descriptor instead.
func (*IsUserOwnNoteResponse) GetResult ¶
func (x *IsUserOwnNoteResponse) GetResult() bool
func (*IsUserOwnNoteResponse) GetUid ¶
func (x *IsUserOwnNoteResponse) GetUid() uint64
func (*IsUserOwnNoteResponse) ProtoMessage ¶
func (*IsUserOwnNoteResponse) ProtoMessage()
func (*IsUserOwnNoteResponse) ProtoReflect ¶
func (x *IsUserOwnNoteResponse) ProtoReflect() protoreflect.Message
func (*IsUserOwnNoteResponse) Reset ¶
func (x *IsUserOwnNoteResponse) Reset()
func (*IsUserOwnNoteResponse) String ¶
func (x *IsUserOwnNoteResponse) String() string
type LikeNoteRequest ¶
type LikeNoteRequest struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // 笔记id Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // 执行点赞的用户id Operation LikeNoteRequest_Operation `protobuf:"varint,3,opt,name=operation,proto3,enum=note.sdk.v1.LikeNoteRequest_Operation" json:"operation,omitempty"` // contains filtered or unexported fields }
func (*LikeNoteRequest) Descriptor
deprecated
func (*LikeNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use LikeNoteRequest.ProtoReflect.Descriptor instead.
func (*LikeNoteRequest) GetNoteId ¶
func (x *LikeNoteRequest) GetNoteId() uint64
func (*LikeNoteRequest) GetOperation ¶
func (x *LikeNoteRequest) GetOperation() LikeNoteRequest_Operation
func (*LikeNoteRequest) GetUid ¶
func (x *LikeNoteRequest) GetUid() uint64
func (*LikeNoteRequest) ProtoMessage ¶
func (*LikeNoteRequest) ProtoMessage()
func (*LikeNoteRequest) ProtoReflect ¶
func (x *LikeNoteRequest) ProtoReflect() protoreflect.Message
func (*LikeNoteRequest) Reset ¶
func (x *LikeNoteRequest) Reset()
func (*LikeNoteRequest) String ¶
func (x *LikeNoteRequest) String() string
type LikeNoteRequest_Operation ¶
type LikeNoteRequest_Operation int32
const ( LikeNoteRequest_OPERATION_UNDO_LIKE LikeNoteRequest_Operation = 0 // 取消点赞 LikeNoteRequest_OPERATION_DO_LIKE LikeNoteRequest_Operation = 1 // 点赞 )
func (LikeNoteRequest_Operation) Descriptor ¶
func (LikeNoteRequest_Operation) Descriptor() protoreflect.EnumDescriptor
func (LikeNoteRequest_Operation) Enum ¶
func (x LikeNoteRequest_Operation) Enum() *LikeNoteRequest_Operation
func (LikeNoteRequest_Operation) EnumDescriptor
deprecated
func (LikeNoteRequest_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use LikeNoteRequest_Operation.Descriptor instead.
func (LikeNoteRequest_Operation) Number ¶
func (x LikeNoteRequest_Operation) Number() protoreflect.EnumNumber
func (LikeNoteRequest_Operation) String ¶
func (x LikeNoteRequest_Operation) String() string
func (LikeNoteRequest_Operation) Type ¶
func (LikeNoteRequest_Operation) Type() protoreflect.EnumType
type LikeNoteResponse ¶
type LikeNoteResponse struct {
// contains filtered or unexported fields
}
func (*LikeNoteResponse) Descriptor
deprecated
func (*LikeNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use LikeNoteResponse.ProtoReflect.Descriptor instead.
func (*LikeNoteResponse) ProtoMessage ¶
func (*LikeNoteResponse) ProtoMessage()
func (*LikeNoteResponse) ProtoReflect ¶
func (x *LikeNoteResponse) ProtoReflect() protoreflect.Message
func (*LikeNoteResponse) Reset ¶
func (x *LikeNoteResponse) Reset()
func (*LikeNoteResponse) String ¶
func (x *LikeNoteResponse) String() string
type LikeStatus ¶
type LikeStatus struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` Liked bool `protobuf:"varint,2,opt,name=liked,proto3" json:"liked,omitempty"` // contains filtered or unexported fields }
func (*LikeStatus) Descriptor
deprecated
func (*LikeStatus) Descriptor() ([]byte, []int)
Deprecated: Use LikeStatus.ProtoReflect.Descriptor instead.
func (*LikeStatus) GetLiked ¶
func (x *LikeStatus) GetLiked() bool
func (*LikeStatus) GetNoteId ¶
func (x *LikeStatus) GetNoteId() uint64
func (*LikeStatus) ProtoMessage ¶
func (*LikeStatus) ProtoMessage()
func (*LikeStatus) ProtoReflect ¶
func (x *LikeStatus) ProtoReflect() protoreflect.Message
func (*LikeStatus) Reset ¶
func (x *LikeStatus) Reset()
func (*LikeStatus) String ¶
func (x *LikeStatus) String() string
type LikeStatusList ¶
type LikeStatusList struct { List []*LikeStatus `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*LikeStatusList) Descriptor
deprecated
func (*LikeStatusList) Descriptor() ([]byte, []int)
Deprecated: Use LikeStatusList.ProtoReflect.Descriptor instead.
func (*LikeStatusList) GetList ¶
func (x *LikeStatusList) GetList() []*LikeStatus
func (*LikeStatusList) ProtoMessage ¶
func (*LikeStatusList) ProtoMessage()
func (*LikeStatusList) ProtoReflect ¶
func (x *LikeStatusList) ProtoReflect() protoreflect.Message
func (*LikeStatusList) Reset ¶
func (x *LikeStatusList) Reset()
func (*LikeStatusList) String ¶
func (x *LikeStatusList) String() string
type ListNoteRequest ¶
type ListNoteRequest struct {
// contains filtered or unexported fields
}
func (*ListNoteRequest) Descriptor
deprecated
func (*ListNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNoteRequest.ProtoReflect.Descriptor instead.
func (*ListNoteRequest) ProtoMessage ¶
func (*ListNoteRequest) ProtoMessage()
func (*ListNoteRequest) ProtoReflect ¶
func (x *ListNoteRequest) ProtoReflect() protoreflect.Message
func (*ListNoteRequest) Reset ¶
func (x *ListNoteRequest) Reset()
func (*ListNoteRequest) String ¶
func (x *ListNoteRequest) String() string
type ListNoteResponse ¶
type ListNoteResponse struct { Items []*NoteItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListNoteResponse) Descriptor
deprecated
func (*ListNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNoteResponse.ProtoReflect.Descriptor instead.
func (*ListNoteResponse) GetItems ¶
func (x *ListNoteResponse) GetItems() []*NoteItem
func (*ListNoteResponse) ProtoMessage ¶
func (*ListNoteResponse) ProtoMessage()
func (*ListNoteResponse) ProtoReflect ¶
func (x *ListNoteResponse) ProtoReflect() protoreflect.Message
func (*ListNoteResponse) Reset ¶
func (x *ListNoteResponse) Reset()
func (*ListNoteResponse) String ¶
func (x *ListNoteResponse) String() string
type NoteCreatorServiceClient ¶
type NoteCreatorServiceClient interface { // 检查用户是否拥有指定的笔记 IsUserOwnNote(ctx context.Context, in *IsUserOwnNoteRequest, opts ...grpc.CallOption) (*IsUserOwnNoteResponse, error) // 判断笔记是否存在 IsNoteExist(ctx context.Context, in *IsNoteExistRequest, opts ...grpc.CallOption) (*IsNoteExistResponse, error) // 创建笔记 CreateNote(ctx context.Context, in *CreateNoteRequest, opts ...grpc.CallOption) (*CreateNoteResponse, error) // 更新笔记 UpdateNote(ctx context.Context, in *UpdateNoteRequest, opts ...grpc.CallOption) (*UpdateNoteResponse, error) // 删除笔记 DeleteNote(ctx context.Context, in *DeleteNoteRequest, opts ...grpc.CallOption) (*DeleteNoteResponse, error) // 获取笔记的信息 GetNote(ctx context.Context, in *GetNoteRequest, opts ...grpc.CallOption) (*GetNoteResponse, error) // 列出笔记 ListNote(ctx context.Context, in *ListNoteRequest, opts ...grpc.CallOption) (*ListNoteResponse, error) // 获取上传凭证 GetUploadAuth(ctx context.Context, in *GetUploadAuthRequest, opts ...grpc.CallOption) (*GetUploadAuthResponse, error) }
NoteCreatorServiceClient is the client API for NoteCreatorService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
和笔记管理相关的服务 比如发布笔记,修改笔记,删除笔记等管理笔记的功能
func NewNoteCreatorServiceClient ¶
func NewNoteCreatorServiceClient(cc grpc.ClientConnInterface) NoteCreatorServiceClient
type NoteCreatorServiceServer ¶
type NoteCreatorServiceServer interface { // 检查用户是否拥有指定的笔记 IsUserOwnNote(context.Context, *IsUserOwnNoteRequest) (*IsUserOwnNoteResponse, error) // 判断笔记是否存在 IsNoteExist(context.Context, *IsNoteExistRequest) (*IsNoteExistResponse, error) // 创建笔记 CreateNote(context.Context, *CreateNoteRequest) (*CreateNoteResponse, error) // 更新笔记 UpdateNote(context.Context, *UpdateNoteRequest) (*UpdateNoteResponse, error) // 删除笔记 DeleteNote(context.Context, *DeleteNoteRequest) (*DeleteNoteResponse, error) // 获取笔记的信息 GetNote(context.Context, *GetNoteRequest) (*GetNoteResponse, error) // 列出笔记 ListNote(context.Context, *ListNoteRequest) (*ListNoteResponse, error) // 获取上传凭证 GetUploadAuth(context.Context, *GetUploadAuthRequest) (*GetUploadAuthResponse, error) // contains filtered or unexported methods }
NoteCreatorServiceServer is the server API for NoteCreatorService service. All implementations must embed UnimplementedNoteCreatorServiceServer for forward compatibility.
和笔记管理相关的服务 比如发布笔记,修改笔记,删除笔记等管理笔记的功能
type NoteFeedServiceClient ¶
type NoteFeedServiceClient interface { // 随机获取笔记内容 RandomGet(ctx context.Context, in *RandomGetRequest, opts ...grpc.CallOption) (*RandomGetResponse, error) // 获取笔记 GetFeedNote(ctx context.Context, in *GetFeedNoteRequest, opts ...grpc.CallOption) (*GetFeedNoteResponse, error) // 按照推荐获取 RecommendGet(ctx context.Context, in *RecommendGetRequest, opts ...grpc.CallOption) (*RecommendGetResponse, error) }
NoteFeedServiceClient is the client API for NoteFeedService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
note相关非管理功能服务
func NewNoteFeedServiceClient ¶
func NewNoteFeedServiceClient(cc grpc.ClientConnInterface) NoteFeedServiceClient
type NoteFeedServiceServer ¶
type NoteFeedServiceServer interface { // 随机获取笔记内容 RandomGet(context.Context, *RandomGetRequest) (*RandomGetResponse, error) // 获取笔记 GetFeedNote(context.Context, *GetFeedNoteRequest) (*GetFeedNoteResponse, error) // 按照推荐获取 RecommendGet(context.Context, *RecommendGetRequest) (*RecommendGetResponse, error) // contains filtered or unexported methods }
NoteFeedServiceServer is the server API for NoteFeedService service. All implementations must embed UnimplementedNoteFeedServiceServer for forward compatibility.
note相关非管理功能服务
type NoteIdList ¶
type NoteIdList struct { NoteIds []uint64 `protobuf:"varint,1,rep,packed,name=note_ids,json=noteIds,proto3" json:"note_ids,omitempty"` // contains filtered or unexported fields }
func (*NoteIdList) Descriptor
deprecated
func (*NoteIdList) Descriptor() ([]byte, []int)
Deprecated: Use NoteIdList.ProtoReflect.Descriptor instead.
func (*NoteIdList) GetNoteIds ¶
func (x *NoteIdList) GetNoteIds() []uint64
func (*NoteIdList) ProtoMessage ¶
func (*NoteIdList) ProtoMessage()
func (*NoteIdList) ProtoReflect ¶
func (x *NoteIdList) ProtoReflect() protoreflect.Message
func (*NoteIdList) Reset ¶
func (x *NoteIdList) Reset()
func (*NoteIdList) String ¶
func (x *NoteIdList) String() string
type NoteImage ¶
type NoteImage struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*NoteImage) Descriptor
deprecated
func (*NoteImage) ProtoMessage ¶
func (*NoteImage) ProtoMessage()
func (*NoteImage) ProtoReflect ¶
func (x *NoteImage) ProtoReflect() protoreflect.Message
type NoteInteractServiceClient ¶
type NoteInteractServiceClient interface { // 点赞笔记/取消点赞 LikeNote(ctx context.Context, in *LikeNoteRequest, opts ...grpc.CallOption) (*LikeNoteResponse, error) // 获取笔记点赞数量 GetNoteLikes(ctx context.Context, in *GetNoteLikesRequest, opts ...grpc.CallOption) (*GetNoteLikesResponse, error) // 检查某个用户是否点赞过某篇笔记 CheckUserLikeStatus(ctx context.Context, in *CheckUserLikeStatusRequest, opts ...grpc.CallOption) (*CheckUserLikeStatusResponse, error) // 批量检查用户是否点赞过多篇笔记 BatchCheckUserLikeStatus(ctx context.Context, in *BatchCheckUserLikeStatusRequest, opts ...grpc.CallOption) (*BatchCheckUserLikeStatusResponse, error) // 获取笔记的交互信息 GetNoteInteraction(ctx context.Context, in *GetNoteInteractionRequest, opts ...grpc.CallOption) (*GetNoteInteractionResponse, error) }
NoteInteractServiceClient is the client API for NoteInteractService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
与笔记交互逻辑相关服务,比如点赞、收藏等
func NewNoteInteractServiceClient ¶
func NewNoteInteractServiceClient(cc grpc.ClientConnInterface) NoteInteractServiceClient
type NoteInteractServiceServer ¶
type NoteInteractServiceServer interface { // 点赞笔记/取消点赞 LikeNote(context.Context, *LikeNoteRequest) (*LikeNoteResponse, error) // 获取笔记点赞数量 GetNoteLikes(context.Context, *GetNoteLikesRequest) (*GetNoteLikesResponse, error) // 检查某个用户是否点赞过某篇笔记 CheckUserLikeStatus(context.Context, *CheckUserLikeStatusRequest) (*CheckUserLikeStatusResponse, error) // 批量检查用户是否点赞过多篇笔记 BatchCheckUserLikeStatus(context.Context, *BatchCheckUserLikeStatusRequest) (*BatchCheckUserLikeStatusResponse, error) // 获取笔记的交互信息 GetNoteInteraction(context.Context, *GetNoteInteractionRequest) (*GetNoteInteractionResponse, error) // contains filtered or unexported methods }
NoteInteractServiceServer is the server API for NoteInteractService service. All implementations must embed UnimplementedNoteInteractServiceServer for forward compatibility.
与笔记交互逻辑相关服务,比如点赞、收藏等
type NoteInteraction ¶
type NoteInteraction struct { Liked bool `protobuf:"varint,1,opt,name=liked,proto3" json:"liked,omitempty"` // 用户是否点赞 Commented bool `protobuf:"varint,2,opt,name=commented,proto3" json:"commented,omitempty"` // 用户是否评论 // contains filtered or unexported fields }
用户和笔记的交互信息
func (*NoteInteraction) Descriptor
deprecated
func (*NoteInteraction) Descriptor() ([]byte, []int)
Deprecated: Use NoteInteraction.ProtoReflect.Descriptor instead.
func (*NoteInteraction) GetCommented ¶
func (x *NoteInteraction) GetCommented() bool
func (*NoteInteraction) GetLiked ¶
func (x *NoteInteraction) GetLiked() bool
func (*NoteInteraction) ProtoMessage ¶
func (*NoteInteraction) ProtoMessage()
func (*NoteInteraction) ProtoReflect ¶
func (x *NoteInteraction) ProtoReflect() protoreflect.Message
func (*NoteInteraction) Reset ¶
func (x *NoteInteraction) Reset()
func (*NoteInteraction) String ¶
func (x *NoteInteraction) String() string
type NoteItem ¶
type NoteItem struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` Privacy int32 `protobuf:"varint,4,opt,name=privacy,proto3" json:"privacy,omitempty"` CreateAt int64 `protobuf:"varint,5,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` UpdateAt int64 `protobuf:"varint,6,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"` Images []*NoteImage `protobuf:"bytes,7,rep,name=images,proto3" json:"images,omitempty"` Likes uint64 `protobuf:"varint,8,opt,name=likes,proto3" json:"likes,omitempty"` // 点赞数量 Replies uint64 `protobuf:"varint,9,opt,name=replies,proto3" json:"replies,omitempty"` //评论数量 // contains filtered or unexported fields }
func (*NoteItem) Descriptor
deprecated
func (*NoteItem) GetCreateAt ¶
func (*NoteItem) GetPrivacy ¶
func (*NoteItem) GetReplies ¶
func (*NoteItem) GetUpdateAt ¶
func (*NoteItem) ProtoMessage ¶
func (*NoteItem) ProtoMessage()
func (*NoteItem) ProtoReflect ¶
func (x *NoteItem) ProtoReflect() protoreflect.Message
type RandomGetRequest ¶
type RandomGetRequest struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*RandomGetRequest) Descriptor
deprecated
func (*RandomGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use RandomGetRequest.ProtoReflect.Descriptor instead.
func (*RandomGetRequest) GetCount ¶
func (x *RandomGetRequest) GetCount() int32
func (*RandomGetRequest) ProtoMessage ¶
func (*RandomGetRequest) ProtoMessage()
func (*RandomGetRequest) ProtoReflect ¶
func (x *RandomGetRequest) ProtoReflect() protoreflect.Message
func (*RandomGetRequest) Reset ¶
func (x *RandomGetRequest) Reset()
func (*RandomGetRequest) String ¶
func (x *RandomGetRequest) String() string
type RandomGetResponse ¶
type RandomGetResponse struct { Items []*FeedNoteItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*RandomGetResponse) Descriptor
deprecated
func (*RandomGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use RandomGetResponse.ProtoReflect.Descriptor instead.
func (*RandomGetResponse) GetCount ¶
func (x *RandomGetResponse) GetCount() int32
func (*RandomGetResponse) GetItems ¶
func (x *RandomGetResponse) GetItems() []*FeedNoteItem
func (*RandomGetResponse) ProtoMessage ¶
func (*RandomGetResponse) ProtoMessage()
func (*RandomGetResponse) ProtoReflect ¶
func (x *RandomGetResponse) ProtoReflect() protoreflect.Message
func (*RandomGetResponse) Reset ¶
func (x *RandomGetResponse) Reset()
func (*RandomGetResponse) String ¶
func (x *RandomGetResponse) String() string
type RecommendGetRequest ¶
type RecommendGetRequest struct { Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // 用户id NeedNum int32 `protobuf:"varint,2,opt,name=need_num,json=needNum,proto3" json:"need_num,omitempty"` // 推荐条数 // contains filtered or unexported fields }
func (*RecommendGetRequest) Descriptor
deprecated
func (*RecommendGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use RecommendGetRequest.ProtoReflect.Descriptor instead.
func (*RecommendGetRequest) GetNeedNum ¶
func (x *RecommendGetRequest) GetNeedNum() int32
func (*RecommendGetRequest) GetUid ¶
func (x *RecommendGetRequest) GetUid() uint64
func (*RecommendGetRequest) ProtoMessage ¶
func (*RecommendGetRequest) ProtoMessage()
func (*RecommendGetRequest) ProtoReflect ¶
func (x *RecommendGetRequest) ProtoReflect() protoreflect.Message
func (*RecommendGetRequest) Reset ¶
func (x *RecommendGetRequest) Reset()
func (*RecommendGetRequest) String ¶
func (x *RecommendGetRequest) String() string
type RecommendGetResponse ¶
type RecommendGetResponse struct {
// contains filtered or unexported fields
}
func (*RecommendGetResponse) Descriptor
deprecated
func (*RecommendGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use RecommendGetResponse.ProtoReflect.Descriptor instead.
func (*RecommendGetResponse) ProtoMessage ¶
func (*RecommendGetResponse) ProtoMessage()
func (*RecommendGetResponse) ProtoReflect ¶
func (x *RecommendGetResponse) ProtoReflect() protoreflect.Message
func (*RecommendGetResponse) Reset ¶
func (x *RecommendGetResponse) Reset()
func (*RecommendGetResponse) String ¶
func (x *RecommendGetResponse) String() string
type UnimplementedNoteCreatorServiceServer ¶
type UnimplementedNoteCreatorServiceServer struct{}
UnimplementedNoteCreatorServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedNoteCreatorServiceServer) CreateNote ¶
func (UnimplementedNoteCreatorServiceServer) CreateNote(context.Context, *CreateNoteRequest) (*CreateNoteResponse, error)
func (UnimplementedNoteCreatorServiceServer) DeleteNote ¶
func (UnimplementedNoteCreatorServiceServer) DeleteNote(context.Context, *DeleteNoteRequest) (*DeleteNoteResponse, error)
func (UnimplementedNoteCreatorServiceServer) GetNote ¶
func (UnimplementedNoteCreatorServiceServer) GetNote(context.Context, *GetNoteRequest) (*GetNoteResponse, error)
func (UnimplementedNoteCreatorServiceServer) GetUploadAuth ¶
func (UnimplementedNoteCreatorServiceServer) GetUploadAuth(context.Context, *GetUploadAuthRequest) (*GetUploadAuthResponse, error)
func (UnimplementedNoteCreatorServiceServer) IsNoteExist ¶
func (UnimplementedNoteCreatorServiceServer) IsNoteExist(context.Context, *IsNoteExistRequest) (*IsNoteExistResponse, error)
func (UnimplementedNoteCreatorServiceServer) IsUserOwnNote ¶
func (UnimplementedNoteCreatorServiceServer) IsUserOwnNote(context.Context, *IsUserOwnNoteRequest) (*IsUserOwnNoteResponse, error)
func (UnimplementedNoteCreatorServiceServer) ListNote ¶
func (UnimplementedNoteCreatorServiceServer) ListNote(context.Context, *ListNoteRequest) (*ListNoteResponse, error)
func (UnimplementedNoteCreatorServiceServer) UpdateNote ¶
func (UnimplementedNoteCreatorServiceServer) UpdateNote(context.Context, *UpdateNoteRequest) (*UpdateNoteResponse, error)
type UnimplementedNoteFeedServiceServer ¶
type UnimplementedNoteFeedServiceServer struct{}
UnimplementedNoteFeedServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedNoteFeedServiceServer) GetFeedNote ¶
func (UnimplementedNoteFeedServiceServer) GetFeedNote(context.Context, *GetFeedNoteRequest) (*GetFeedNoteResponse, error)
func (UnimplementedNoteFeedServiceServer) RandomGet ¶
func (UnimplementedNoteFeedServiceServer) RandomGet(context.Context, *RandomGetRequest) (*RandomGetResponse, error)
func (UnimplementedNoteFeedServiceServer) RecommendGet ¶
func (UnimplementedNoteFeedServiceServer) RecommendGet(context.Context, *RecommendGetRequest) (*RecommendGetResponse, error)
type UnimplementedNoteInteractServiceServer ¶
type UnimplementedNoteInteractServiceServer struct{}
UnimplementedNoteInteractServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedNoteInteractServiceServer) BatchCheckUserLikeStatus ¶
func (UnimplementedNoteInteractServiceServer) BatchCheckUserLikeStatus(context.Context, *BatchCheckUserLikeStatusRequest) (*BatchCheckUserLikeStatusResponse, error)
func (UnimplementedNoteInteractServiceServer) CheckUserLikeStatus ¶
func (UnimplementedNoteInteractServiceServer) CheckUserLikeStatus(context.Context, *CheckUserLikeStatusRequest) (*CheckUserLikeStatusResponse, error)
func (UnimplementedNoteInteractServiceServer) GetNoteInteraction ¶
func (UnimplementedNoteInteractServiceServer) GetNoteInteraction(context.Context, *GetNoteInteractionRequest) (*GetNoteInteractionResponse, error)
func (UnimplementedNoteInteractServiceServer) GetNoteLikes ¶
func (UnimplementedNoteInteractServiceServer) GetNoteLikes(context.Context, *GetNoteLikesRequest) (*GetNoteLikesResponse, error)
func (UnimplementedNoteInteractServiceServer) LikeNote ¶
func (UnimplementedNoteInteractServiceServer) LikeNote(context.Context, *LikeNoteRequest) (*LikeNoteResponse, error)
type UnsafeNoteCreatorServiceServer ¶
type UnsafeNoteCreatorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNoteCreatorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NoteCreatorServiceServer will result in compilation errors.
type UnsafeNoteFeedServiceServer ¶
type UnsafeNoteFeedServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNoteFeedServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NoteFeedServiceServer will result in compilation errors.
type UnsafeNoteInteractServiceServer ¶
type UnsafeNoteInteractServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNoteInteractServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NoteInteractServiceServer will result in compilation errors.
type UpdateNoteRequest ¶
type UpdateNoteRequest struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` Note *CreateNoteRequest `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*UpdateNoteRequest) Descriptor
deprecated
func (*UpdateNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNoteRequest.ProtoReflect.Descriptor instead.
func (*UpdateNoteRequest) GetNote ¶
func (x *UpdateNoteRequest) GetNote() *CreateNoteRequest
func (*UpdateNoteRequest) GetNoteId ¶
func (x *UpdateNoteRequest) GetNoteId() uint64
func (*UpdateNoteRequest) ProtoMessage ¶
func (*UpdateNoteRequest) ProtoMessage()
func (*UpdateNoteRequest) ProtoReflect ¶
func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message
func (*UpdateNoteRequest) Reset ¶
func (x *UpdateNoteRequest) Reset()
func (*UpdateNoteRequest) String ¶
func (x *UpdateNoteRequest) String() string
type UpdateNoteResponse ¶
type UpdateNoteResponse struct { NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateNoteResponse) Descriptor
deprecated
func (*UpdateNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNoteResponse.ProtoReflect.Descriptor instead.
func (*UpdateNoteResponse) GetNoteId ¶
func (x *UpdateNoteResponse) GetNoteId() uint64
func (*UpdateNoteResponse) ProtoMessage ¶
func (*UpdateNoteResponse) ProtoMessage()
func (*UpdateNoteResponse) ProtoReflect ¶
func (x *UpdateNoteResponse) ProtoReflect() protoreflect.Message
func (*UpdateNoteResponse) Reset ¶
func (x *UpdateNoteResponse) Reset()
func (*UpdateNoteResponse) String ¶
func (x *UpdateNoteResponse) String() string
type UploadAuthResponseHeaders ¶
type UploadAuthResponseHeaders struct { Auth string `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` Sha256 string `protobuf:"bytes,2,opt,name=sha256,proto3" json:"sha256,omitempty"` Date string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*UploadAuthResponseHeaders) Descriptor
deprecated
func (*UploadAuthResponseHeaders) Descriptor() ([]byte, []int)
Deprecated: Use UploadAuthResponseHeaders.ProtoReflect.Descriptor instead.
func (*UploadAuthResponseHeaders) GetAuth ¶
func (x *UploadAuthResponseHeaders) GetAuth() string
func (*UploadAuthResponseHeaders) GetDate ¶
func (x *UploadAuthResponseHeaders) GetDate() string
func (*UploadAuthResponseHeaders) GetSha256 ¶
func (x *UploadAuthResponseHeaders) GetSha256() string
func (*UploadAuthResponseHeaders) GetToken ¶
func (x *UploadAuthResponseHeaders) GetToken() string
func (*UploadAuthResponseHeaders) ProtoMessage ¶
func (*UploadAuthResponseHeaders) ProtoMessage()
func (*UploadAuthResponseHeaders) ProtoReflect ¶
func (x *UploadAuthResponseHeaders) ProtoReflect() protoreflect.Message
func (*UploadAuthResponseHeaders) Reset ¶
func (x *UploadAuthResponseHeaders) Reset()
func (*UploadAuthResponseHeaders) String ¶
func (x *UploadAuthResponseHeaders) String() string