Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- func RegisterVideoServiceServer(s grpc.ServiceRegistrar, srv VideoServiceServer)
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetContent() string
- func (x *Comment) GetCreateDate() string
- func (x *Comment) GetId() int64
- func (x *Comment) GetUser() *User
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type CommentVideoRequest
- func (*CommentVideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommentVideoRequest) GetContent() string
- func (x *CommentVideoRequest) GetId() int64
- func (x *CommentVideoRequest) GetTokenUserId() int64
- func (*CommentVideoRequest) ProtoMessage()
- func (x *CommentVideoRequest) ProtoReflect() protoreflect.Message
- func (x *CommentVideoRequest) Reset()
- func (x *CommentVideoRequest) String() string
- type CommentVideoResponse
- func (*CommentVideoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommentVideoResponse) GetComment() *Comment
- func (*CommentVideoResponse) ProtoMessage()
- func (x *CommentVideoResponse) ProtoReflect() protoreflect.Message
- func (x *CommentVideoResponse) Reset()
- func (x *CommentVideoResponse) String() string
- type FollowOrCancelRequest
- func (*FollowOrCancelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FollowOrCancelRequest) GetActionType() string
- func (x *FollowOrCancelRequest) GetId() int64
- func (x *FollowOrCancelRequest) GetTokenUserId() int64
- func (*FollowOrCancelRequest) ProtoMessage()
- func (x *FollowOrCancelRequest) ProtoReflect() protoreflect.Message
- func (x *FollowOrCancelRequest) Reset()
- func (x *FollowOrCancelRequest) String() string
- type FollowOrCancelResponse
- type GetChatMessagesRequest
- func (*GetChatMessagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetChatMessagesRequest) GetPreMsgTime() string
- func (x *GetChatMessagesRequest) GetToUserId() int64
- func (x *GetChatMessagesRequest) GetTokenUserId() int64
- func (*GetChatMessagesRequest) ProtoMessage()
- func (x *GetChatMessagesRequest) ProtoReflect() protoreflect.Message
- func (x *GetChatMessagesRequest) Reset()
- func (x *GetChatMessagesRequest) String() string
- type GetChatMessagesResponse
- func (*GetChatMessagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetChatMessagesResponse) GetChatMessageList() []*Message
- func (*GetChatMessagesResponse) ProtoMessage()
- func (x *GetChatMessagesResponse) ProtoReflect() protoreflect.Message
- func (x *GetChatMessagesResponse) Reset()
- func (x *GetChatMessagesResponse) String() string
- type GetFollowersRequest
- func (*GetFollowersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFollowersRequest) GetId() int64
- func (*GetFollowersRequest) ProtoMessage()
- func (x *GetFollowersRequest) ProtoReflect() protoreflect.Message
- func (x *GetFollowersRequest) Reset()
- func (x *GetFollowersRequest) String() string
- type GetFollowersResponse
- func (*GetFollowersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFollowersResponse) GetUserList() []*User
- func (*GetFollowersResponse) ProtoMessage()
- func (x *GetFollowersResponse) ProtoReflect() protoreflect.Message
- func (x *GetFollowersResponse) Reset()
- func (x *GetFollowersResponse) String() string
- type GetFollowingsRequest
- func (*GetFollowingsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFollowingsRequest) GetId() int64
- func (*GetFollowingsRequest) ProtoMessage()
- func (x *GetFollowingsRequest) ProtoReflect() protoreflect.Message
- func (x *GetFollowingsRequest) Reset()
- func (x *GetFollowingsRequest) String() string
- type GetFollowingsResponse
- func (*GetFollowingsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFollowingsResponse) GetUserList() []*User
- func (*GetFollowingsResponse) ProtoMessage()
- func (x *GetFollowingsResponse) ProtoReflect() protoreflect.Message
- func (x *GetFollowingsResponse) Reset()
- func (x *GetFollowingsResponse) String() string
- type GetFriendsRequest
- type GetFriendsResponse
- func (*GetFriendsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendsResponse) GetUserList() []*User
- func (*GetFriendsResponse) ProtoMessage()
- func (x *GetFriendsResponse) ProtoReflect() protoreflect.Message
- func (x *GetFriendsResponse) Reset()
- func (x *GetFriendsResponse) String() string
- type LikeVideoRequest
- func (*LikeVideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LikeVideoRequest) GetActionType() string
- func (x *LikeVideoRequest) GetId() int64
- func (x *LikeVideoRequest) GetTokenUserId() int64
- func (*LikeVideoRequest) ProtoMessage()
- func (x *LikeVideoRequest) ProtoReflect() protoreflect.Message
- func (x *LikeVideoRequest) Reset()
- func (x *LikeVideoRequest) String() string
- type LikeVideoResponse
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetContent() string
- func (x *Message) GetCreateTime() string
- func (x *Message) GetFromUserId() int64
- func (x *Message) GetId() int64
- func (x *Message) GetToUserId() int64
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type PublishVideoRequest
- func (*PublishVideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishVideoRequest) GetContent() []byte
- func (x *PublishVideoRequest) GetTitle() string
- func (x *PublishVideoRequest) GetTokenUserId() int64
- func (*PublishVideoRequest) ProtoMessage()
- func (x *PublishVideoRequest) ProtoReflect() protoreflect.Message
- func (x *PublishVideoRequest) Reset()
- func (x *PublishVideoRequest) String() string
- type PublishVideoResponse
- type SendMessageRequest
- func (*SendMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageRequest) GetContent() string
- func (x *SendMessageRequest) GetToUserId() int64
- func (x *SendMessageRequest) GetTokenUserId() int64
- func (*SendMessageRequest) ProtoMessage()
- func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
- func (x *SendMessageRequest) Reset()
- func (x *SendMessageRequest) String() string
- type SendMessageResponse
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) FollowOrCancel(context.Context, *FollowOrCancelRequest) (*FollowOrCancelResponse, error)
- func (UnimplementedUserServiceServer) GetChatMessages(context.Context, *GetChatMessagesRequest) (*GetChatMessagesResponse, error)
- func (UnimplementedUserServiceServer) GetFollowers(context.Context, *GetFollowersRequest) (*GetFollowersResponse, error)
- func (UnimplementedUserServiceServer) GetFollowings(context.Context, *GetFollowingsRequest) (*GetFollowingsResponse, error)
- func (UnimplementedUserServiceServer) GetFriends(context.Context, *GetFriendsRequest) (*GetFriendsResponse, error)
- func (UnimplementedUserServiceServer) GetUserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error)
- func (UnimplementedUserServiceServer) Login(context.Context, *UserRequest) (*UserResponse, error)
- func (UnimplementedUserServiceServer) Register(context.Context, *UserRequest) (*UserResponse, error)
- func (UnimplementedUserServiceServer) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
- type UnimplementedVideoServiceServer
- func (UnimplementedVideoServiceServer) CommentVideo(context.Context, *CommentVideoRequest) (*CommentVideoResponse, error)
- func (UnimplementedVideoServiceServer) DeleteComment(context.Context, *CommentVideoRequest) (*CommentVideoResponse, error)
- func (UnimplementedVideoServiceServer) GetUserLike(context.Context, *UserLikeRequest) (*UserLikeResponse, error)
- func (UnimplementedVideoServiceServer) GetUserVideoList(context.Context, *UserVideoListRequest) (*UserVideoListResponse, error)
- func (UnimplementedVideoServiceServer) GetVideoComment(context.Context, *VideoCommentRequest) (*VideoCommentResponse, error)
- func (UnimplementedVideoServiceServer) GetVideoFlow(context.Context, *VideoFlowRequest) (*VideoFlowResponse, error)
- func (UnimplementedVideoServiceServer) LikeVideo(context.Context, *LikeVideoRequest) (*LikeVideoResponse, error)
- func (UnimplementedVideoServiceServer) PublishVideo(context.Context, *PublishVideoRequest) (*PublishVideoResponse, error)
- type UnsafeUserServiceServer
- type UnsafeVideoServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() string
- func (x *User) GetBackgroundImage() string
- func (x *User) GetFavoriteCount() int64
- func (x *User) GetFollowCount() int64
- func (x *User) GetFollowerCount() int64
- func (x *User) GetId() int64
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- func (x *User) GetSignature() string
- func (x *User) GetTotalFavorited() int64
- func (x *User) GetWorkCount() int64
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserInfoRequest
- func (*UserInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoRequest) GetId() int64
- func (x *UserInfoRequest) GetTokenUserId() int64
- func (*UserInfoRequest) ProtoMessage()
- func (x *UserInfoRequest) ProtoReflect() protoreflect.Message
- func (x *UserInfoRequest) Reset()
- func (x *UserInfoRequest) String() string
- type UserInfoResponse
- type UserLikeRequest
- type UserLikeResponse
- type UserRequest
- func (*UserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserRequest) GetPassword() string
- func (x *UserRequest) GetUsername() string
- func (*UserRequest) ProtoMessage()
- func (x *UserRequest) ProtoReflect() protoreflect.Message
- func (x *UserRequest) Reset()
- func (x *UserRequest) String() string
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserResponse) GetId() int64
- func (x *UserResponse) GetToken() string
- func (*UserResponse) ProtoMessage()
- func (x *UserResponse) ProtoReflect() protoreflect.Message
- func (x *UserResponse) Reset()
- func (x *UserResponse) String() string
- type UserServiceClient
- type UserServiceServer
- type UserVideoListRequest
- func (*UserVideoListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserVideoListRequest) GetId() int64
- func (*UserVideoListRequest) ProtoMessage()
- func (x *UserVideoListRequest) ProtoReflect() protoreflect.Message
- func (x *UserVideoListRequest) Reset()
- func (x *UserVideoListRequest) String() string
- type UserVideoListResponse
- func (*UserVideoListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserVideoListResponse) GetVideoList() []*Video
- func (*UserVideoListResponse) ProtoMessage()
- func (x *UserVideoListResponse) ProtoReflect() protoreflect.Message
- func (x *UserVideoListResponse) Reset()
- func (x *UserVideoListResponse) String() string
- type Video
- func (*Video) Descriptor() ([]byte, []int)deprecated
- func (x *Video) GetAuthor() *User
- func (x *Video) GetCommentCount() int64
- func (x *Video) GetCoverUrl() string
- func (x *Video) GetFavoriteCount() int64
- func (x *Video) GetId() int64
- func (x *Video) GetIsFavorite() bool
- func (x *Video) GetPlayUrl() string
- func (x *Video) GetTitle() string
- func (*Video) ProtoMessage()
- func (x *Video) ProtoReflect() protoreflect.Message
- func (x *Video) Reset()
- func (x *Video) String() string
- type VideoCommentRequest
- func (*VideoCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VideoCommentRequest) GetId() int64
- func (*VideoCommentRequest) ProtoMessage()
- func (x *VideoCommentRequest) ProtoReflect() protoreflect.Message
- func (x *VideoCommentRequest) Reset()
- func (x *VideoCommentRequest) String() string
- type VideoCommentResponse
- func (*VideoCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VideoCommentResponse) GetCommentList() []*Comment
- func (*VideoCommentResponse) ProtoMessage()
- func (x *VideoCommentResponse) ProtoReflect() protoreflect.Message
- func (x *VideoCommentResponse) Reset()
- func (x *VideoCommentResponse) String() string
- type VideoFlowRequest
- func (*VideoFlowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VideoFlowRequest) GetLatestTime() int64
- func (x *VideoFlowRequest) GetToken() string
- func (*VideoFlowRequest) ProtoMessage()
- func (x *VideoFlowRequest) ProtoReflect() protoreflect.Message
- func (x *VideoFlowRequest) Reset()
- func (x *VideoFlowRequest) String() string
- type VideoFlowResponse
- func (*VideoFlowResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VideoFlowResponse) GetNextTime() int64
- func (x *VideoFlowResponse) GetVideoList() []*Video
- func (*VideoFlowResponse) ProtoMessage()
- func (x *VideoFlowResponse) ProtoReflect() protoreflect.Message
- func (x *VideoFlowResponse) Reset()
- func (x *VideoFlowResponse) String() string
- type VideoServiceClient
- type VideoServiceServer
Constants ¶
const ( UserService_Register_FullMethodName = "/shortvideo.UserService/Register" UserService_Login_FullMethodName = "/shortvideo.UserService/Login" UserService_GetUserInfo_FullMethodName = "/shortvideo.UserService/GetUserInfo" UserService_FollowOrCancel_FullMethodName = "/shortvideo.UserService/FollowOrCancel" UserService_GetFollowings_FullMethodName = "/shortvideo.UserService/GetFollowings" UserService_GetFollowers_FullMethodName = "/shortvideo.UserService/GetFollowers" UserService_GetFriends_FullMethodName = "/shortvideo.UserService/GetFriends" UserService_GetChatMessages_FullMethodName = "/shortvideo.UserService/GetChatMessages" UserService_SendMessage_FullMethodName = "/shortvideo.UserService/SendMessage" )
const ( VideoService_GetUserVideoList_FullMethodName = "/shortvideo.VideoService/GetUserVideoList" VideoService_GetVideoFlow_FullMethodName = "/shortvideo.VideoService/GetVideoFlow" VideoService_PublishVideo_FullMethodName = "/shortvideo.VideoService/PublishVideo" VideoService_LikeVideo_FullMethodName = "/shortvideo.VideoService/LikeVideo" VideoService_GetUserLike_FullMethodName = "/shortvideo.VideoService/GetUserLike" VideoService_CommentVideo_FullMethodName = "/shortvideo.VideoService/CommentVideo" VideoService_DeleteComment_FullMethodName = "/shortvideo.VideoService/DeleteComment" VideoService_GetVideoComment_FullMethodName = "/shortvideo.VideoService/GetVideoComment" )
Variables ¶
var File_short_video_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shortvideo.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _UserService_Register_Handler, }, { MethodName: "Login", Handler: _UserService_Login_Handler, }, { MethodName: "GetUserInfo", Handler: _UserService_GetUserInfo_Handler, }, { MethodName: "FollowOrCancel", Handler: _UserService_FollowOrCancel_Handler, }, { MethodName: "GetFollowings", Handler: _UserService_GetFollowings_Handler, }, { MethodName: "GetFollowers", Handler: _UserService_GetFollowers_Handler, }, { MethodName: "GetFriends", Handler: _UserService_GetFriends_Handler, }, { MethodName: "GetChatMessages", Handler: _UserService_GetChatMessages_Handler, }, { MethodName: "SendMessage", Handler: _UserService_SendMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "short_video.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var VideoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shortvideo.VideoService", HandlerType: (*VideoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserVideoList", Handler: _VideoService_GetUserVideoList_Handler, }, { MethodName: "GetVideoFlow", Handler: _VideoService_GetVideoFlow_Handler, }, { MethodName: "PublishVideo", Handler: _VideoService_PublishVideo_Handler, }, { MethodName: "LikeVideo", Handler: _VideoService_LikeVideo_Handler, }, { MethodName: "GetUserLike", Handler: _VideoService_GetUserLike_Handler, }, { MethodName: "CommentVideo", Handler: _VideoService_CommentVideo_Handler, }, { MethodName: "DeleteComment", Handler: _VideoService_DeleteComment_Handler, }, { MethodName: "GetVideoComment", Handler: _VideoService_GetVideoComment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "short_video.proto", }
VideoService_ServiceDesc is the grpc.ServiceDesc for VideoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
func RegisterVideoServiceServer ¶
func RegisterVideoServiceServer(s grpc.ServiceRegistrar, srv VideoServiceServer)
Types ¶
type Comment ¶
type Comment struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 视频评论id User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // 评论用户信息 Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // 评论内容 CreateDate string `protobuf:"bytes,4,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"` // 评论发布日期,格式 mm-dd // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetContent ¶
func (*Comment) GetCreateDate ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CommentVideoRequest ¶
type CommentVideoRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` TokenUserId int64 `protobuf:"varint,3,opt,name=token_user_id,json=tokenUserId,proto3" json:"token_user_id,omitempty"` // contains filtered or unexported fields }
func (*CommentVideoRequest) Descriptor
deprecated
func (*CommentVideoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommentVideoRequest.ProtoReflect.Descriptor instead.
func (*CommentVideoRequest) GetContent ¶
func (x *CommentVideoRequest) GetContent() string
func (*CommentVideoRequest) GetId ¶
func (x *CommentVideoRequest) GetId() int64
func (*CommentVideoRequest) GetTokenUserId ¶
func (x *CommentVideoRequest) GetTokenUserId() int64
func (*CommentVideoRequest) ProtoMessage ¶
func (*CommentVideoRequest) ProtoMessage()
func (*CommentVideoRequest) ProtoReflect ¶
func (x *CommentVideoRequest) ProtoReflect() protoreflect.Message
func (*CommentVideoRequest) Reset ¶
func (x *CommentVideoRequest) Reset()
func (*CommentVideoRequest) String ¶
func (x *CommentVideoRequest) String() string
type CommentVideoResponse ¶
type CommentVideoResponse struct { Comment *Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*CommentVideoResponse) Descriptor
deprecated
func (*CommentVideoResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommentVideoResponse.ProtoReflect.Descriptor instead.
func (*CommentVideoResponse) GetComment ¶
func (x *CommentVideoResponse) GetComment() *Comment
func (*CommentVideoResponse) ProtoMessage ¶
func (*CommentVideoResponse) ProtoMessage()
func (*CommentVideoResponse) ProtoReflect ¶
func (x *CommentVideoResponse) ProtoReflect() protoreflect.Message
func (*CommentVideoResponse) Reset ¶
func (x *CommentVideoResponse) Reset()
func (*CommentVideoResponse) String ¶
func (x *CommentVideoResponse) String() string
type FollowOrCancelRequest ¶
type FollowOrCancelRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` TokenUserId int64 `protobuf:"varint,2,opt,name=token_user_id,json=tokenUserId,proto3" json:"token_user_id,omitempty"` ActionType string `protobuf:"bytes,3,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` // contains filtered or unexported fields }
func (*FollowOrCancelRequest) Descriptor
deprecated
func (*FollowOrCancelRequest) Descriptor() ([]byte, []int)
Deprecated: Use FollowOrCancelRequest.ProtoReflect.Descriptor instead.
func (*FollowOrCancelRequest) GetActionType ¶
func (x *FollowOrCancelRequest) GetActionType() string
func (*FollowOrCancelRequest) GetId ¶
func (x *FollowOrCancelRequest) GetId() int64
func (*FollowOrCancelRequest) GetTokenUserId ¶
func (x *FollowOrCancelRequest) GetTokenUserId() int64
func (*FollowOrCancelRequest) ProtoMessage ¶
func (*FollowOrCancelRequest) ProtoMessage()
func (*FollowOrCancelRequest) ProtoReflect ¶
func (x *FollowOrCancelRequest) ProtoReflect() protoreflect.Message
func (*FollowOrCancelRequest) Reset ¶
func (x *FollowOrCancelRequest) Reset()
func (*FollowOrCancelRequest) String ¶
func (x *FollowOrCancelRequest) String() string
type FollowOrCancelResponse ¶
type FollowOrCancelResponse struct {
// contains filtered or unexported fields
}
func (*FollowOrCancelResponse) Descriptor
deprecated
func (*FollowOrCancelResponse) Descriptor() ([]byte, []int)
Deprecated: Use FollowOrCancelResponse.ProtoReflect.Descriptor instead.
func (*FollowOrCancelResponse) ProtoMessage ¶
func (*FollowOrCancelResponse) ProtoMessage()
func (*FollowOrCancelResponse) ProtoReflect ¶
func (x *FollowOrCancelResponse) ProtoReflect() protoreflect.Message
func (*FollowOrCancelResponse) Reset ¶
func (x *FollowOrCancelResponse) Reset()
func (*FollowOrCancelResponse) String ¶
func (x *FollowOrCancelResponse) String() string
type GetChatMessagesRequest ¶
type GetChatMessagesRequest struct { TokenUserId int64 `protobuf:"varint,1,opt,name=token_user_id,json=tokenUserId,proto3" json:"token_user_id,omitempty"` ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` PreMsgTime string `protobuf:"bytes,3,opt,name=pre_msg_time,json=preMsgTime,proto3" json:"pre_msg_time,omitempty"` // contains filtered or unexported fields }
func (*GetChatMessagesRequest) Descriptor
deprecated
func (*GetChatMessagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetChatMessagesRequest.ProtoReflect.Descriptor instead.
func (*GetChatMessagesRequest) GetPreMsgTime ¶
func (x *GetChatMessagesRequest) GetPreMsgTime() string
func (*GetChatMessagesRequest) GetToUserId ¶
func (x *GetChatMessagesRequest) GetToUserId() int64
func (*GetChatMessagesRequest) GetTokenUserId ¶
func (x *GetChatMessagesRequest) GetTokenUserId() int64
func (*GetChatMessagesRequest) ProtoMessage ¶
func (*GetChatMessagesRequest) ProtoMessage()
func (*GetChatMessagesRequest) ProtoReflect ¶
func (x *GetChatMessagesRequest) ProtoReflect() protoreflect.Message
func (*GetChatMessagesRequest) Reset ¶
func (x *GetChatMessagesRequest) Reset()
func (*GetChatMessagesRequest) String ¶
func (x *GetChatMessagesRequest) String() string
type GetChatMessagesResponse ¶
type GetChatMessagesResponse struct { ChatMessageList []*Message `protobuf:"bytes,1,rep,name=chat_message_list,json=chatMessageList,proto3" json:"chat_message_list,omitempty"` // contains filtered or unexported fields }
func (*GetChatMessagesResponse) Descriptor
deprecated
func (*GetChatMessagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetChatMessagesResponse.ProtoReflect.Descriptor instead.
func (*GetChatMessagesResponse) GetChatMessageList ¶
func (x *GetChatMessagesResponse) GetChatMessageList() []*Message
func (*GetChatMessagesResponse) ProtoMessage ¶
func (*GetChatMessagesResponse) ProtoMessage()
func (*GetChatMessagesResponse) ProtoReflect ¶
func (x *GetChatMessagesResponse) ProtoReflect() protoreflect.Message
func (*GetChatMessagesResponse) Reset ¶
func (x *GetChatMessagesResponse) Reset()
func (*GetChatMessagesResponse) String ¶
func (x *GetChatMessagesResponse) String() string
type GetFollowersRequest ¶
type GetFollowersRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetFollowersRequest) Descriptor
deprecated
func (*GetFollowersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFollowersRequest.ProtoReflect.Descriptor instead.
func (*GetFollowersRequest) GetId ¶
func (x *GetFollowersRequest) GetId() int64
func (*GetFollowersRequest) ProtoMessage ¶
func (*GetFollowersRequest) ProtoMessage()
func (*GetFollowersRequest) ProtoReflect ¶
func (x *GetFollowersRequest) ProtoReflect() protoreflect.Message
func (*GetFollowersRequest) Reset ¶
func (x *GetFollowersRequest) Reset()
func (*GetFollowersRequest) String ¶
func (x *GetFollowersRequest) String() string
type GetFollowersResponse ¶
type GetFollowersResponse struct { UserList []*User `protobuf:"bytes,1,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"` // contains filtered or unexported fields }
func (*GetFollowersResponse) Descriptor
deprecated
func (*GetFollowersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFollowersResponse.ProtoReflect.Descriptor instead.
func (*GetFollowersResponse) GetUserList ¶
func (x *GetFollowersResponse) GetUserList() []*User
func (*GetFollowersResponse) ProtoMessage ¶
func (*GetFollowersResponse) ProtoMessage()
func (*GetFollowersResponse) ProtoReflect ¶
func (x *GetFollowersResponse) ProtoReflect() protoreflect.Message
func (*GetFollowersResponse) Reset ¶
func (x *GetFollowersResponse) Reset()
func (*GetFollowersResponse) String ¶
func (x *GetFollowersResponse) String() string
type GetFollowingsRequest ¶
type GetFollowingsRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetFollowingsRequest) Descriptor
deprecated
func (*GetFollowingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFollowingsRequest.ProtoReflect.Descriptor instead.
func (*GetFollowingsRequest) GetId ¶
func (x *GetFollowingsRequest) GetId() int64
func (*GetFollowingsRequest) ProtoMessage ¶
func (*GetFollowingsRequest) ProtoMessage()
func (*GetFollowingsRequest) ProtoReflect ¶
func (x *GetFollowingsRequest) ProtoReflect() protoreflect.Message
func (*GetFollowingsRequest) Reset ¶
func (x *GetFollowingsRequest) Reset()
func (*GetFollowingsRequest) String ¶
func (x *GetFollowingsRequest) String() string
type GetFollowingsResponse ¶
type GetFollowingsResponse struct { UserList []*User `protobuf:"bytes,1,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"` // contains filtered or unexported fields }
func (*GetFollowingsResponse) Descriptor
deprecated
func (*GetFollowingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFollowingsResponse.ProtoReflect.Descriptor instead.
func (*GetFollowingsResponse) GetUserList ¶
func (x *GetFollowingsResponse) GetUserList() []*User
func (*GetFollowingsResponse) ProtoMessage ¶
func (*GetFollowingsResponse) ProtoMessage()
func (*GetFollowingsResponse) ProtoReflect ¶
func (x *GetFollowingsResponse) ProtoReflect() protoreflect.Message
func (*GetFollowingsResponse) Reset ¶
func (x *GetFollowingsResponse) Reset()
func (*GetFollowingsResponse) String ¶
func (x *GetFollowingsResponse) String() string
type GetFriendsRequest ¶
type GetFriendsRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetFriendsRequest) Descriptor
deprecated
func (*GetFriendsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendsRequest.ProtoReflect.Descriptor instead.
func (*GetFriendsRequest) GetId ¶
func (x *GetFriendsRequest) GetId() int64
func (*GetFriendsRequest) ProtoMessage ¶
func (*GetFriendsRequest) ProtoMessage()
func (*GetFriendsRequest) ProtoReflect ¶
func (x *GetFriendsRequest) ProtoReflect() protoreflect.Message
func (*GetFriendsRequest) Reset ¶
func (x *GetFriendsRequest) Reset()
func (*GetFriendsRequest) String ¶
func (x *GetFriendsRequest) String() string
type GetFriendsResponse ¶
type GetFriendsResponse struct { UserList []*User `protobuf:"bytes,1,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"` // contains filtered or unexported fields }
func (*GetFriendsResponse) Descriptor
deprecated
func (*GetFriendsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendsResponse.ProtoReflect.Descriptor instead.
func (*GetFriendsResponse) GetUserList ¶
func (x *GetFriendsResponse) GetUserList() []*User
func (*GetFriendsResponse) ProtoMessage ¶
func (*GetFriendsResponse) ProtoMessage()
func (*GetFriendsResponse) ProtoReflect ¶
func (x *GetFriendsResponse) ProtoReflect() protoreflect.Message
func (*GetFriendsResponse) Reset ¶
func (x *GetFriendsResponse) Reset()
func (*GetFriendsResponse) String ¶
func (x *GetFriendsResponse) String() string
type LikeVideoRequest ¶
type LikeVideoRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ActionType string `protobuf:"bytes,2,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` TokenUserId int64 `protobuf:"varint,3,opt,name=token_user_id,json=tokenUserId,proto3" json:"token_user_id,omitempty"` // contains filtered or unexported fields }
func (*LikeVideoRequest) Descriptor
deprecated
func (*LikeVideoRequest) Descriptor() ([]byte, []int)
Deprecated: Use LikeVideoRequest.ProtoReflect.Descriptor instead.
func (*LikeVideoRequest) GetActionType ¶
func (x *LikeVideoRequest) GetActionType() string
func (*LikeVideoRequest) GetId ¶
func (x *LikeVideoRequest) GetId() int64
func (*LikeVideoRequest) GetTokenUserId ¶
func (x *LikeVideoRequest) GetTokenUserId() int64
func (*LikeVideoRequest) ProtoMessage ¶
func (*LikeVideoRequest) ProtoMessage()
func (*LikeVideoRequest) ProtoReflect ¶
func (x *LikeVideoRequest) ProtoReflect() protoreflect.Message
func (*LikeVideoRequest) Reset ¶
func (x *LikeVideoRequest) Reset()
func (*LikeVideoRequest) String ¶
func (x *LikeVideoRequest) String() string
type LikeVideoResponse ¶
type LikeVideoResponse struct {
// contains filtered or unexported fields
}
func (*LikeVideoResponse) Descriptor
deprecated
func (*LikeVideoResponse) Descriptor() ([]byte, []int)
Deprecated: Use LikeVideoResponse.ProtoReflect.Descriptor instead.
func (*LikeVideoResponse) ProtoMessage ¶
func (*LikeVideoResponse) ProtoMessage()
func (*LikeVideoResponse) ProtoReflect ¶
func (x *LikeVideoResponse) ProtoReflect() protoreflect.Message
func (*LikeVideoResponse) Reset ¶
func (x *LikeVideoResponse) Reset()
func (*LikeVideoResponse) String ¶
func (x *LikeVideoResponse) String() string
type Message ¶
type Message struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // 该消息接收者的id FromUserId int64 `protobuf:"varint,3,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"` // 该消息发送者的id Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 消息内容 CreateTime string `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 消息创建时间 // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetContent ¶
func (*Message) GetCreateTime ¶
func (*Message) GetFromUserId ¶
func (*Message) GetToUserId ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type PublishVideoRequest ¶
type PublishVideoRequest struct { Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` TokenUserId int64 `protobuf:"varint,3,opt,name=token_user_id,json=tokenUserId,proto3" json:"token_user_id,omitempty"` // contains filtered or unexported fields }
func (*PublishVideoRequest) Descriptor
deprecated
func (*PublishVideoRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishVideoRequest.ProtoReflect.Descriptor instead.
func (*PublishVideoRequest) GetContent ¶
func (x *PublishVideoRequest) GetContent() []byte
func (*PublishVideoRequest) GetTitle ¶
func (x *PublishVideoRequest) GetTitle() string
func (*PublishVideoRequest) GetTokenUserId ¶
func (x *PublishVideoRequest) GetTokenUserId() int64
func (*PublishVideoRequest) ProtoMessage ¶
func (*PublishVideoRequest) ProtoMessage()
func (*PublishVideoRequest) ProtoReflect ¶
func (x *PublishVideoRequest) ProtoReflect() protoreflect.Message
func (*PublishVideoRequest) Reset ¶
func (x *PublishVideoRequest) Reset()
func (*PublishVideoRequest) String ¶
func (x *PublishVideoRequest) String() string
type PublishVideoResponse ¶
type PublishVideoResponse struct {
// contains filtered or unexported fields
}
func (*PublishVideoResponse) Descriptor
deprecated
func (*PublishVideoResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishVideoResponse.ProtoReflect.Descriptor instead.
func (*PublishVideoResponse) ProtoMessage ¶
func (*PublishVideoResponse) ProtoMessage()
func (*PublishVideoResponse) ProtoReflect ¶
func (x *PublishVideoResponse) ProtoReflect() protoreflect.Message
func (*PublishVideoResponse) Reset ¶
func (x *PublishVideoResponse) Reset()
func (*PublishVideoResponse) String ¶
func (x *PublishVideoResponse) String() string
type SendMessageRequest ¶
type SendMessageRequest struct { TokenUserId int64 `protobuf:"varint,1,opt,name=token_user_id,json=tokenUserId,proto3" json:"token_user_id,omitempty"` ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*SendMessageRequest) Descriptor
deprecated
func (*SendMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.
func (*SendMessageRequest) GetContent ¶
func (x *SendMessageRequest) GetContent() string
func (*SendMessageRequest) GetToUserId ¶
func (x *SendMessageRequest) GetToUserId() int64
func (*SendMessageRequest) GetTokenUserId ¶
func (x *SendMessageRequest) GetTokenUserId() int64
func (*SendMessageRequest) ProtoMessage ¶
func (*SendMessageRequest) ProtoMessage()
func (*SendMessageRequest) ProtoReflect ¶
func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
func (*SendMessageRequest) Reset ¶
func (x *SendMessageRequest) Reset()
func (*SendMessageRequest) String ¶
func (x *SendMessageRequest) String() string
type SendMessageResponse ¶
type SendMessageResponse struct {
// contains filtered or unexported fields
}
func (*SendMessageResponse) Descriptor
deprecated
func (*SendMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageResponse.ProtoReflect.Descriptor instead.
func (*SendMessageResponse) ProtoMessage ¶
func (*SendMessageResponse) ProtoMessage()
func (*SendMessageResponse) ProtoReflect ¶
func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
func (*SendMessageResponse) Reset ¶
func (x *SendMessageResponse) Reset()
func (*SendMessageResponse) String ¶
func (x *SendMessageResponse) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) FollowOrCancel ¶
func (UnimplementedUserServiceServer) FollowOrCancel(context.Context, *FollowOrCancelRequest) (*FollowOrCancelResponse, error)
func (UnimplementedUserServiceServer) GetChatMessages ¶
func (UnimplementedUserServiceServer) GetChatMessages(context.Context, *GetChatMessagesRequest) (*GetChatMessagesResponse, error)
func (UnimplementedUserServiceServer) GetFollowers ¶
func (UnimplementedUserServiceServer) GetFollowers(context.Context, *GetFollowersRequest) (*GetFollowersResponse, error)
func (UnimplementedUserServiceServer) GetFollowings ¶
func (UnimplementedUserServiceServer) GetFollowings(context.Context, *GetFollowingsRequest) (*GetFollowingsResponse, error)
func (UnimplementedUserServiceServer) GetFriends ¶
func (UnimplementedUserServiceServer) GetFriends(context.Context, *GetFriendsRequest) (*GetFriendsResponse, error)
func (UnimplementedUserServiceServer) GetUserInfo ¶
func (UnimplementedUserServiceServer) GetUserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error)
func (UnimplementedUserServiceServer) Login ¶
func (UnimplementedUserServiceServer) Login(context.Context, *UserRequest) (*UserResponse, error)
func (UnimplementedUserServiceServer) Register ¶
func (UnimplementedUserServiceServer) Register(context.Context, *UserRequest) (*UserResponse, error)
func (UnimplementedUserServiceServer) SendMessage ¶
func (UnimplementedUserServiceServer) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error)
type UnimplementedVideoServiceServer ¶
type UnimplementedVideoServiceServer struct { }
UnimplementedVideoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedVideoServiceServer) CommentVideo ¶
func (UnimplementedVideoServiceServer) CommentVideo(context.Context, *CommentVideoRequest) (*CommentVideoResponse, error)
func (UnimplementedVideoServiceServer) DeleteComment ¶
func (UnimplementedVideoServiceServer) DeleteComment(context.Context, *CommentVideoRequest) (*CommentVideoResponse, error)
func (UnimplementedVideoServiceServer) GetUserLike ¶
func (UnimplementedVideoServiceServer) GetUserLike(context.Context, *UserLikeRequest) (*UserLikeResponse, error)
func (UnimplementedVideoServiceServer) GetUserVideoList ¶
func (UnimplementedVideoServiceServer) GetUserVideoList(context.Context, *UserVideoListRequest) (*UserVideoListResponse, error)
func (UnimplementedVideoServiceServer) GetVideoComment ¶
func (UnimplementedVideoServiceServer) GetVideoComment(context.Context, *VideoCommentRequest) (*VideoCommentResponse, error)
func (UnimplementedVideoServiceServer) GetVideoFlow ¶
func (UnimplementedVideoServiceServer) GetVideoFlow(context.Context, *VideoFlowRequest) (*VideoFlowResponse, error)
func (UnimplementedVideoServiceServer) LikeVideo ¶
func (UnimplementedVideoServiceServer) LikeVideo(context.Context, *LikeVideoRequest) (*LikeVideoResponse, error)
func (UnimplementedVideoServiceServer) PublishVideo ¶
func (UnimplementedVideoServiceServer) PublishVideo(context.Context, *PublishVideoRequest) (*PublishVideoResponse, error)
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UnsafeVideoServiceServer ¶
type UnsafeVideoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVideoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VideoServiceServer will result in compilation errors.
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户id Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 用户名称 FollowCount int64 `protobuf:"varint,3,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"` // 关注总数 FollowerCount int64 `protobuf:"varint,4,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"` // 粉丝总数 IsFollow bool `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty"` // true-已关注,false-未关注 Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` //用户头像 BackgroundImage string `protobuf:"bytes,7,opt,name=background_image,json=backgroundImage,proto3" json:"background_image,omitempty"` //用户个人页顶部大图 Signature string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` //个人简介 TotalFavorited int64 `protobuf:"varint,9,opt,name=total_favorited,json=totalFavorited,proto3" json:"total_favorited,omitempty"` //获赞数量 WorkCount int64 `protobuf:"varint,10,opt,name=work_count,json=workCount,proto3" json:"work_count,omitempty"` //作品数量 FavoriteCount int64 `protobuf:"varint,11,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` //点赞数量 // contains filtered or unexported fields }
User
func (*User) Descriptor
deprecated
func (*User) GetBackgroundImage ¶
func (*User) GetFavoriteCount ¶
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) GetSignature ¶
func (*User) GetTotalFavorited ¶
func (*User) GetWorkCount ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserInfoRequest ¶
type UserInfoRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` TokenUserId int64 `protobuf:"varint,2,opt,name=token_user_id,json=tokenUserId,proto3" json:"token_user_id,omitempty"` // contains filtered or unexported fields }
func (*UserInfoRequest) Descriptor
deprecated
func (*UserInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoRequest.ProtoReflect.Descriptor instead.
func (*UserInfoRequest) GetId ¶
func (x *UserInfoRequest) GetId() int64
func (*UserInfoRequest) GetTokenUserId ¶
func (x *UserInfoRequest) GetTokenUserId() int64
func (*UserInfoRequest) ProtoMessage ¶
func (*UserInfoRequest) ProtoMessage()
func (*UserInfoRequest) ProtoReflect ¶
func (x *UserInfoRequest) ProtoReflect() protoreflect.Message
func (*UserInfoRequest) Reset ¶
func (x *UserInfoRequest) Reset()
func (*UserInfoRequest) String ¶
func (x *UserInfoRequest) String() string
type UserInfoResponse ¶
type UserInfoResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UserInfoResponse) Descriptor
deprecated
func (*UserInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoResponse.ProtoReflect.Descriptor instead.
func (*UserInfoResponse) GetUser ¶
func (x *UserInfoResponse) GetUser() *User
func (*UserInfoResponse) ProtoMessage ¶
func (*UserInfoResponse) ProtoMessage()
func (*UserInfoResponse) ProtoReflect ¶
func (x *UserInfoResponse) ProtoReflect() protoreflect.Message
func (*UserInfoResponse) Reset ¶
func (x *UserInfoResponse) Reset()
func (*UserInfoResponse) String ¶
func (x *UserInfoResponse) String() string
type UserLikeRequest ¶
type UserLikeRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserLikeRequest) Descriptor
deprecated
func (*UserLikeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserLikeRequest.ProtoReflect.Descriptor instead.
func (*UserLikeRequest) GetId ¶
func (x *UserLikeRequest) GetId() int64
func (*UserLikeRequest) ProtoMessage ¶
func (*UserLikeRequest) ProtoMessage()
func (*UserLikeRequest) ProtoReflect ¶
func (x *UserLikeRequest) ProtoReflect() protoreflect.Message
func (*UserLikeRequest) Reset ¶
func (x *UserLikeRequest) Reset()
func (*UserLikeRequest) String ¶
func (x *UserLikeRequest) String() string
type UserLikeResponse ¶
type UserLikeResponse struct { VideoList []*Video `protobuf:"bytes,1,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"` // contains filtered or unexported fields }
func (*UserLikeResponse) Descriptor
deprecated
func (*UserLikeResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserLikeResponse.ProtoReflect.Descriptor instead.
func (*UserLikeResponse) GetVideoList ¶
func (x *UserLikeResponse) GetVideoList() []*Video
func (*UserLikeResponse) ProtoMessage ¶
func (*UserLikeResponse) ProtoMessage()
func (*UserLikeResponse) ProtoReflect ¶
func (x *UserLikeResponse) ProtoReflect() protoreflect.Message
func (*UserLikeResponse) Reset ¶
func (x *UserLikeResponse) Reset()
func (*UserLikeResponse) String ¶
func (x *UserLikeResponse) String() string
type UserRequest ¶
type UserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*UserRequest) Descriptor
deprecated
func (*UserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserRequest.ProtoReflect.Descriptor instead.
func (*UserRequest) GetPassword ¶
func (x *UserRequest) GetPassword() string
func (*UserRequest) GetUsername ¶
func (x *UserRequest) GetUsername() string
func (*UserRequest) ProtoMessage ¶
func (*UserRequest) ProtoMessage()
func (*UserRequest) ProtoReflect ¶
func (x *UserRequest) ProtoReflect() protoreflect.Message
func (*UserRequest) Reset ¶
func (x *UserRequest) Reset()
func (*UserRequest) String ¶
func (x *UserRequest) String() string
type UserResponse ¶
type UserResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*UserResponse) Descriptor
deprecated
func (*UserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
func (*UserResponse) GetId ¶
func (x *UserResponse) GetId() int64
func (*UserResponse) GetToken ¶
func (x *UserResponse) GetToken() string
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) ProtoReflect ¶
func (x *UserResponse) ProtoReflect() protoreflect.Message
func (*UserResponse) Reset ¶
func (x *UserResponse) Reset()
func (*UserResponse) String ¶
func (x *UserResponse) String() string
type UserServiceClient ¶
type UserServiceClient interface { Register(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error) Login(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error) GetUserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) FollowOrCancel(ctx context.Context, in *FollowOrCancelRequest, opts ...grpc.CallOption) (*FollowOrCancelResponse, error) GetFollowings(ctx context.Context, in *GetFollowingsRequest, opts ...grpc.CallOption) (*GetFollowingsResponse, error) GetFollowers(ctx context.Context, in *GetFollowersRequest, opts ...grpc.CallOption) (*GetFollowersResponse, error) GetFriends(ctx context.Context, in *GetFriendsRequest, opts ...grpc.CallOption) (*GetFriendsResponse, error) GetChatMessages(ctx context.Context, in *GetChatMessagesRequest, opts ...grpc.CallOption) (*GetChatMessagesResponse, error) SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*SendMessageResponse, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { Register(context.Context, *UserRequest) (*UserResponse, error) Login(context.Context, *UserRequest) (*UserResponse, error) GetUserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error) FollowOrCancel(context.Context, *FollowOrCancelRequest) (*FollowOrCancelResponse, error) GetFollowings(context.Context, *GetFollowingsRequest) (*GetFollowingsResponse, error) GetFollowers(context.Context, *GetFollowersRequest) (*GetFollowersResponse, error) GetFriends(context.Context, *GetFriendsRequest) (*GetFriendsResponse, error) GetChatMessages(context.Context, *GetChatMessagesRequest) (*GetChatMessagesResponse, error) SendMessage(context.Context, *SendMessageRequest) (*SendMessageResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type UserVideoListRequest ¶
type UserVideoListRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserVideoListRequest) Descriptor
deprecated
func (*UserVideoListRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserVideoListRequest.ProtoReflect.Descriptor instead.
func (*UserVideoListRequest) GetId ¶
func (x *UserVideoListRequest) GetId() int64
func (*UserVideoListRequest) ProtoMessage ¶
func (*UserVideoListRequest) ProtoMessage()
func (*UserVideoListRequest) ProtoReflect ¶
func (x *UserVideoListRequest) ProtoReflect() protoreflect.Message
func (*UserVideoListRequest) Reset ¶
func (x *UserVideoListRequest) Reset()
func (*UserVideoListRequest) String ¶
func (x *UserVideoListRequest) String() string
type UserVideoListResponse ¶
type UserVideoListResponse struct { VideoList []*Video `protobuf:"bytes,1,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"` // contains filtered or unexported fields }
func (*UserVideoListResponse) Descriptor
deprecated
func (*UserVideoListResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserVideoListResponse.ProtoReflect.Descriptor instead.
func (*UserVideoListResponse) GetVideoList ¶
func (x *UserVideoListResponse) GetVideoList() []*Video
func (*UserVideoListResponse) ProtoMessage ¶
func (*UserVideoListResponse) ProtoMessage()
func (*UserVideoListResponse) ProtoReflect ¶
func (x *UserVideoListResponse) ProtoReflect() protoreflect.Message
func (*UserVideoListResponse) Reset ¶
func (x *UserVideoListResponse) Reset()
func (*UserVideoListResponse) String ¶
func (x *UserVideoListResponse) String() string
type Video ¶
type Video struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 视频唯一标识 Author *User `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` // 视频作者信息 PlayUrl string `protobuf:"bytes,3,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"` // 视频播放地址 CoverUrl string `protobuf:"bytes,4,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 视频封面地址 FavoriteCount int64 `protobuf:"varint,5,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 视频的点赞总数 CommentCount int64 `protobuf:"varint,6,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"` // 视频的评论总数 IsFavorite bool `protobuf:"varint,7,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,omitempty"` // true-已点赞,false-未点赞 Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // 视频标题 // contains filtered or unexported fields }
Video
func (*Video) Descriptor
deprecated
func (*Video) GetCommentCount ¶
func (*Video) GetCoverUrl ¶
func (*Video) GetFavoriteCount ¶
func (*Video) GetIsFavorite ¶
func (*Video) GetPlayUrl ¶
func (*Video) ProtoMessage ¶
func (*Video) ProtoMessage()
func (*Video) ProtoReflect ¶
func (x *Video) ProtoReflect() protoreflect.Message
type VideoCommentRequest ¶
type VideoCommentRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*VideoCommentRequest) Descriptor
deprecated
func (*VideoCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use VideoCommentRequest.ProtoReflect.Descriptor instead.
func (*VideoCommentRequest) GetId ¶
func (x *VideoCommentRequest) GetId() int64
func (*VideoCommentRequest) ProtoMessage ¶
func (*VideoCommentRequest) ProtoMessage()
func (*VideoCommentRequest) ProtoReflect ¶
func (x *VideoCommentRequest) ProtoReflect() protoreflect.Message
func (*VideoCommentRequest) Reset ¶
func (x *VideoCommentRequest) Reset()
func (*VideoCommentRequest) String ¶
func (x *VideoCommentRequest) String() string
type VideoCommentResponse ¶
type VideoCommentResponse struct { CommentList []*Comment `protobuf:"bytes,1,rep,name=comment_list,json=commentList,proto3" json:"comment_list,omitempty"` // contains filtered or unexported fields }
func (*VideoCommentResponse) Descriptor
deprecated
func (*VideoCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use VideoCommentResponse.ProtoReflect.Descriptor instead.
func (*VideoCommentResponse) GetCommentList ¶
func (x *VideoCommentResponse) GetCommentList() []*Comment
func (*VideoCommentResponse) ProtoMessage ¶
func (*VideoCommentResponse) ProtoMessage()
func (*VideoCommentResponse) ProtoReflect ¶
func (x *VideoCommentResponse) ProtoReflect() protoreflect.Message
func (*VideoCommentResponse) Reset ¶
func (x *VideoCommentResponse) Reset()
func (*VideoCommentResponse) String ¶
func (x *VideoCommentResponse) String() string
type VideoFlowRequest ¶
type VideoFlowRequest struct { LatestTime int64 `protobuf:"varint,1,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*VideoFlowRequest) Descriptor
deprecated
func (*VideoFlowRequest) Descriptor() ([]byte, []int)
Deprecated: Use VideoFlowRequest.ProtoReflect.Descriptor instead.
func (*VideoFlowRequest) GetLatestTime ¶
func (x *VideoFlowRequest) GetLatestTime() int64
func (*VideoFlowRequest) GetToken ¶
func (x *VideoFlowRequest) GetToken() string
func (*VideoFlowRequest) ProtoMessage ¶
func (*VideoFlowRequest) ProtoMessage()
func (*VideoFlowRequest) ProtoReflect ¶
func (x *VideoFlowRequest) ProtoReflect() protoreflect.Message
func (*VideoFlowRequest) Reset ¶
func (x *VideoFlowRequest) Reset()
func (*VideoFlowRequest) String ¶
func (x *VideoFlowRequest) String() string
type VideoFlowResponse ¶
type VideoFlowResponse struct { VideoList []*Video `protobuf:"bytes,1,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"` NextTime int64 `protobuf:"varint,2,opt,name=NextTime,proto3" json:"NextTime,omitempty"` // contains filtered or unexported fields }
func (*VideoFlowResponse) Descriptor
deprecated
func (*VideoFlowResponse) Descriptor() ([]byte, []int)
Deprecated: Use VideoFlowResponse.ProtoReflect.Descriptor instead.
func (*VideoFlowResponse) GetNextTime ¶
func (x *VideoFlowResponse) GetNextTime() int64
func (*VideoFlowResponse) GetVideoList ¶
func (x *VideoFlowResponse) GetVideoList() []*Video
func (*VideoFlowResponse) ProtoMessage ¶
func (*VideoFlowResponse) ProtoMessage()
func (*VideoFlowResponse) ProtoReflect ¶
func (x *VideoFlowResponse) ProtoReflect() protoreflect.Message
func (*VideoFlowResponse) Reset ¶
func (x *VideoFlowResponse) Reset()
func (*VideoFlowResponse) String ¶
func (x *VideoFlowResponse) String() string
type VideoServiceClient ¶
type VideoServiceClient interface { GetUserVideoList(ctx context.Context, in *UserVideoListRequest, opts ...grpc.CallOption) (*UserVideoListResponse, error) GetVideoFlow(ctx context.Context, in *VideoFlowRequest, opts ...grpc.CallOption) (*VideoFlowResponse, error) PublishVideo(ctx context.Context, in *PublishVideoRequest, opts ...grpc.CallOption) (*PublishVideoResponse, error) LikeVideo(ctx context.Context, in *LikeVideoRequest, opts ...grpc.CallOption) (*LikeVideoResponse, error) GetUserLike(ctx context.Context, in *UserLikeRequest, opts ...grpc.CallOption) (*UserLikeResponse, error) CommentVideo(ctx context.Context, in *CommentVideoRequest, opts ...grpc.CallOption) (*CommentVideoResponse, error) DeleteComment(ctx context.Context, in *CommentVideoRequest, opts ...grpc.CallOption) (*CommentVideoResponse, error) GetVideoComment(ctx context.Context, in *VideoCommentRequest, opts ...grpc.CallOption) (*VideoCommentResponse, error) }
VideoServiceClient is the client API for VideoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVideoServiceClient ¶
func NewVideoServiceClient(cc grpc.ClientConnInterface) VideoServiceClient
type VideoServiceServer ¶
type VideoServiceServer interface { GetUserVideoList(context.Context, *UserVideoListRequest) (*UserVideoListResponse, error) GetVideoFlow(context.Context, *VideoFlowRequest) (*VideoFlowResponse, error) PublishVideo(context.Context, *PublishVideoRequest) (*PublishVideoResponse, error) LikeVideo(context.Context, *LikeVideoRequest) (*LikeVideoResponse, error) GetUserLike(context.Context, *UserLikeRequest) (*UserLikeResponse, error) CommentVideo(context.Context, *CommentVideoRequest) (*CommentVideoResponse, error) DeleteComment(context.Context, *CommentVideoRequest) (*CommentVideoResponse, error) GetVideoComment(context.Context, *VideoCommentRequest) (*VideoCommentResponse, error) // contains filtered or unexported methods }
VideoServiceServer is the server API for VideoService service. All implementations must embed UnimplementedVideoServiceServer for forward compatibility