Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCollectionServiceServer(s grpc.ServiceRegistrar, srv CollectionServiceServer)
- func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer)
- func RegisterFavoriteServiceServer(s grpc.ServiceRegistrar, srv FavoriteServiceServer)
- func RegisterFollowServiceServer(s grpc.ServiceRegistrar, srv FollowServiceServer)
- func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- func RegisterVideoServiceHTTPServer(s *http.Server, srv VideoServiceHTTPServer)
- func RegisterVideoServiceServer(s grpc.ServiceRegistrar, srv VideoServiceServer)
- type AddFavoriteRequest
- func (*AddFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddFavoriteRequest) GetId() int64
- func (x *AddFavoriteRequest) GetTarget() FavoriteTarget
- func (x *AddFavoriteRequest) GetType() FavoriteType
- func (*AddFavoriteRequest) ProtoMessage()
- func (x *AddFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *AddFavoriteRequest) Reset()
- func (x *AddFavoriteRequest) String() string
- type AddFavoriteResponse
- func (*AddFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddFavoriteResponse) GetMeta() *Metadata
- func (*AddFavoriteResponse) ProtoMessage()
- func (x *AddFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *AddFavoriteResponse) Reset()
- func (x *AddFavoriteResponse) String() string
- type AddFollowRequest
- func (*AddFollowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddFollowRequest) GetTargetUserId() int64
- func (x *AddFollowRequest) GetUserId() int64
- func (*AddFollowRequest) ProtoMessage()
- func (x *AddFollowRequest) ProtoReflect() protoreflect.Message
- func (x *AddFollowRequest) Reset()
- func (x *AddFollowRequest) String() string
- type AddFollowResponse
- type AddVideo2CollectionRequest
- func (*AddVideo2CollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddVideo2CollectionRequest) GetCollectionId() int64
- func (x *AddVideo2CollectionRequest) GetVideoId() int64
- func (*AddVideo2CollectionRequest) ProtoMessage()
- func (x *AddVideo2CollectionRequest) ProtoReflect() protoreflect.Message
- func (x *AddVideo2CollectionRequest) Reset()
- func (x *AddVideo2CollectionRequest) String() string
- type AddVideo2CollectionResponse
- func (*AddVideo2CollectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddVideo2CollectionResponse) GetMeta() *Metadata
- func (*AddVideo2CollectionResponse) ProtoMessage()
- func (x *AddVideo2CollectionResponse) ProtoReflect() protoreflect.Message
- func (x *AddVideo2CollectionResponse) Reset()
- func (x *AddVideo2CollectionResponse) String() string
- type Author
- func (*Author) Descriptor() ([]byte, []int)deprecated
- func (x *Author) GetAvatar() string
- func (x *Author) GetId() int64
- func (x *Author) GetIsFollowing() int64
- func (x *Author) GetName() string
- func (*Author) ProtoMessage()
- func (x *Author) ProtoReflect() protoreflect.Message
- func (x *Author) Reset()
- func (x *Author) String() string
- type Collection
- func (*Collection) Descriptor() ([]byte, []int)deprecated
- func (x *Collection) GetDescription() string
- func (x *Collection) GetId() int64
- func (x *Collection) GetName() string
- func (x *Collection) GetUserId() int64
- func (*Collection) ProtoMessage()
- func (x *Collection) ProtoReflect() protoreflect.Message
- func (x *Collection) Reset()
- func (x *Collection) String() string
- type CollectionServiceClient
- type CollectionServiceServer
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetContent() string
- func (x *Comment) GetDate() string
- func (x *Comment) GetId() int64
- func (x *Comment) GetLikeCount() string
- func (x *Comment) GetParentId() int64
- func (x *Comment) GetReplyCount() string
- func (x *Comment) GetReplyUserId() int64
- func (x *Comment) GetUserId() int64
- func (x *Comment) GetVideoId() int64
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type CommentServiceClient
- type CommentServiceServer
- type CountComment4UserRequest
- func (*CountComment4UserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CountComment4UserRequest) GetUserId() int64
- func (*CountComment4UserRequest) ProtoMessage()
- func (x *CountComment4UserRequest) ProtoReflect() protoreflect.Message
- func (x *CountComment4UserRequest) Reset()
- func (x *CountComment4UserRequest) String() string
- type CountComment4UserResponse
- func (*CountComment4UserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CountComment4UserResponse) GetCount() int64
- func (x *CountComment4UserResponse) GetMeta() *Metadata
- func (*CountComment4UserResponse) ProtoMessage()
- func (x *CountComment4UserResponse) ProtoReflect() protoreflect.Message
- func (x *CountComment4UserResponse) Reset()
- func (x *CountComment4UserResponse) String() string
- type CountComment4VideoRequest
- func (*CountComment4VideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CountComment4VideoRequest) GetVideoId() int64
- func (*CountComment4VideoRequest) ProtoMessage()
- func (x *CountComment4VideoRequest) ProtoReflect() protoreflect.Message
- func (x *CountComment4VideoRequest) Reset()
- func (x *CountComment4VideoRequest) String() string
- type CountComment4VideoResponse
- func (*CountComment4VideoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CountComment4VideoResponse) GetCount() int64
- func (x *CountComment4VideoResponse) GetMeta() *Metadata
- func (*CountComment4VideoResponse) ProtoMessage()
- func (x *CountComment4VideoResponse) ProtoReflect() protoreflect.Message
- func (x *CountComment4VideoResponse) Reset()
- func (x *CountComment4VideoResponse) String() string
- type CountFavoriteRequest
- func (*CountFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CountFavoriteRequest) GetAggregateType() FavoriteAggregateType
- func (x *CountFavoriteRequest) GetId() int64
- func (*CountFavoriteRequest) ProtoMessage()
- func (x *CountFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *CountFavoriteRequest) Reset()
- func (x *CountFavoriteRequest) String() string
- type CountFavoriteResponse
- func (*CountFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CountFavoriteResponse) GetCount() int64
- func (x *CountFavoriteResponse) GetMeta() *Metadata
- func (*CountFavoriteResponse) ProtoMessage()
- func (x *CountFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *CountFavoriteResponse) Reset()
- func (x *CountFavoriteResponse) String() string
- type CreateCollectionRequest
- func (*CreateCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCollectionRequest) GetDescription() string
- func (x *CreateCollectionRequest) GetName() string
- func (x *CreateCollectionRequest) GetUserId() int64
- func (*CreateCollectionRequest) ProtoMessage()
- func (x *CreateCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCollectionRequest) Reset()
- func (x *CreateCollectionRequest) String() string
- type CreateCollectionResponse
- func (*CreateCollectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCollectionResponse) GetMeta() *Metadata
- func (*CreateCollectionResponse) ProtoMessage()
- func (x *CreateCollectionResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCollectionResponse) Reset()
- func (x *CreateCollectionResponse) String() string
- type CreateCommentRequest
- func (*CreateCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentRequest) GetContent() string
- func (x *CreateCommentRequest) GetUserId() int64
- func (x *CreateCommentRequest) GetVideoId() int64
- func (*CreateCommentRequest) ProtoMessage()
- func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCommentRequest) Reset()
- func (x *CreateCommentRequest) String() string
- type CreateCommentResponse
- func (*CreateCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCommentResponse) GetComment() *Comment
- func (x *CreateCommentResponse) GetMeta() *Metadata
- func (*CreateCommentResponse) ProtoMessage()
- func (x *CreateCommentResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCommentResponse) Reset()
- func (x *CreateCommentResponse) String() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetAccountId() int64
- func (x *CreateUserRequest) GetEmail() string
- func (x *CreateUserRequest) GetMobile() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (m *CreateUserRequest) Validate() error
- func (m *CreateUserRequest) ValidateAll() error
- type CreateUserRequestMultiError
- type CreateUserRequestValidationError
- func (e CreateUserRequestValidationError) Cause() error
- func (e CreateUserRequestValidationError) Error() string
- func (e CreateUserRequestValidationError) ErrorName() string
- func (e CreateUserRequestValidationError) Field() string
- func (e CreateUserRequestValidationError) Key() bool
- func (e CreateUserRequestValidationError) Reason() string
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserResponse) GetMeta() *Metadata
- func (x *CreateUserResponse) GetUserId() int64
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- func (m *CreateUserResponse) Validate() error
- func (m *CreateUserResponse) ValidateAll() error
- type CreateUserResponseMultiError
- type CreateUserResponseValidationError
- func (e CreateUserResponseValidationError) Cause() error
- func (e CreateUserResponseValidationError) Error() string
- func (e CreateUserResponseValidationError) ErrorName() string
- func (e CreateUserResponseValidationError) Field() string
- func (e CreateUserResponseValidationError) Key() bool
- func (e CreateUserResponseValidationError) Reason() string
- type FavoriteAggregateType
- func (FavoriteAggregateType) Descriptor() protoreflect.EnumDescriptor
- func (x FavoriteAggregateType) Enum() *FavoriteAggregateType
- func (FavoriteAggregateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FavoriteAggregateType) Number() protoreflect.EnumNumber
- func (x FavoriteAggregateType) String() string
- func (FavoriteAggregateType) Type() protoreflect.EnumType
- type FavoriteServiceClient
- type FavoriteServiceServer
- type FavoriteTarget
- func (FavoriteTarget) Descriptor() protoreflect.EnumDescriptor
- func (x FavoriteTarget) Enum() *FavoriteTarget
- func (FavoriteTarget) EnumDescriptor() ([]byte, []int)deprecated
- func (x FavoriteTarget) Number() protoreflect.EnumNumber
- func (x FavoriteTarget) String() string
- func (FavoriteTarget) Type() protoreflect.EnumType
- type FavoriteType
- func (FavoriteType) Descriptor() protoreflect.EnumDescriptor
- func (x FavoriteType) Enum() *FavoriteType
- func (FavoriteType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FavoriteType) Number() protoreflect.EnumNumber
- func (x FavoriteType) String() string
- func (FavoriteType) Type() protoreflect.EnumType
- type FeedShortVideoRequest
- func (*FeedShortVideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FeedShortVideoRequest) GetFeedNum() int64
- func (x *FeedShortVideoRequest) GetLatestTime() int64
- func (x *FeedShortVideoRequest) GetUserId() int64
- func (*FeedShortVideoRequest) ProtoMessage()
- func (x *FeedShortVideoRequest) ProtoReflect() protoreflect.Message
- func (x *FeedShortVideoRequest) Reset()
- func (x *FeedShortVideoRequest) String() string
- type FeedShortVideoResponse
- func (*FeedShortVideoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FeedShortVideoResponse) GetMeta() *Metadata
- func (x *FeedShortVideoResponse) GetVideos() []*Video
- func (*FeedShortVideoResponse) ProtoMessage()
- func (x *FeedShortVideoResponse) ProtoReflect() protoreflect.Message
- func (x *FeedShortVideoResponse) Reset()
- func (x *FeedShortVideoResponse) String() string
- type FollowServiceClient
- type FollowServiceServer
- type FollowType
- type GetCollectionByIdRequest
- func (*GetCollectionByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCollectionByIdRequest) GetId() int64
- func (*GetCollectionByIdRequest) ProtoMessage()
- func (x *GetCollectionByIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetCollectionByIdRequest) Reset()
- func (x *GetCollectionByIdRequest) String() string
- type GetCollectionByIdResponse
- func (*GetCollectionByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCollectionByIdResponse) GetCollection() *Collection
- func (x *GetCollectionByIdResponse) GetMeta() *Metadata
- func (*GetCollectionByIdResponse) ProtoMessage()
- func (x *GetCollectionByIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetCollectionByIdResponse) Reset()
- func (x *GetCollectionByIdResponse) String() string
- type GetCommentByIdRequest
- func (*GetCommentByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCommentByIdRequest) GetCommentId() int64
- func (*GetCommentByIdRequest) ProtoMessage()
- func (x *GetCommentByIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetCommentByIdRequest) Reset()
- func (x *GetCommentByIdRequest) String() string
- type GetCommentByIdResponse
- func (*GetCommentByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCommentByIdResponse) GetComment() *Comment
- func (x *GetCommentByIdResponse) GetMeta() *Metadata
- func (*GetCommentByIdResponse) ProtoMessage()
- func (x *GetCommentByIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetCommentByIdResponse) Reset()
- func (x *GetCommentByIdResponse) String() string
- type GetUserByIdListRequest
- func (*GetUserByIdListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByIdListRequest) GetUserIdList() []int64
- func (*GetUserByIdListRequest) ProtoMessage()
- func (x *GetUserByIdListRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserByIdListRequest) Reset()
- func (x *GetUserByIdListRequest) String() string
- type GetUserByIdListResponse
- func (*GetUserByIdListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserByIdListResponse) GetMeta() *Metadata
- func (x *GetUserByIdListResponse) GetUserList() []*User
- func (*GetUserByIdListResponse) ProtoMessage()
- func (x *GetUserByIdListResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserByIdListResponse) Reset()
- func (x *GetUserByIdListResponse) String() string
- type GetUserInfoRequest
- func (*GetUserInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoRequest) GetAccountId() int64
- func (x *GetUserInfoRequest) GetUserId() int64
- func (*GetUserInfoRequest) ProtoMessage()
- func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoRequest) Reset()
- func (x *GetUserInfoRequest) String() string
- func (m *GetUserInfoRequest) Validate() error
- func (m *GetUserInfoRequest) ValidateAll() error
- type GetUserInfoRequestMultiError
- type GetUserInfoRequestValidationError
- func (e GetUserInfoRequestValidationError) Cause() error
- func (e GetUserInfoRequestValidationError) Error() string
- func (e GetUserInfoRequestValidationError) ErrorName() string
- func (e GetUserInfoRequestValidationError) Field() string
- func (e GetUserInfoRequestValidationError) Key() bool
- func (e GetUserInfoRequestValidationError) Reason() string
- type GetUserInfoResponse
- func (*GetUserInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoResponse) GetMeta() *Metadata
- func (x *GetUserInfoResponse) GetUser() *User
- func (*GetUserInfoResponse) ProtoMessage()
- func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoResponse) Reset()
- func (x *GetUserInfoResponse) String() string
- func (m *GetUserInfoResponse) Validate() error
- func (m *GetUserInfoResponse) ValidateAll() error
- type GetUserInfoResponseMultiError
- type GetUserInfoResponseValidationError
- func (e GetUserInfoResponseValidationError) Cause() error
- func (e GetUserInfoResponseValidationError) Error() string
- func (e GetUserInfoResponseValidationError) ErrorName() string
- func (e GetUserInfoResponseValidationError) Field() string
- func (e GetUserInfoResponseValidationError) Key() bool
- func (e GetUserInfoResponseValidationError) Reason() string
- type GetVideoByIdListRequest
- func (*GetVideoByIdListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetVideoByIdListRequest) GetVideoIdList() []int64
- func (*GetVideoByIdListRequest) ProtoMessage()
- func (x *GetVideoByIdListRequest) ProtoReflect() protoreflect.Message
- func (x *GetVideoByIdListRequest) Reset()
- func (x *GetVideoByIdListRequest) String() string
- type GetVideoByIdListResponse
- func (*GetVideoByIdListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetVideoByIdListResponse) GetMeta() *Metadata
- func (x *GetVideoByIdListResponse) GetVideos() []*Video
- func (*GetVideoByIdListResponse) ProtoMessage()
- func (x *GetVideoByIdListResponse) ProtoReflect() protoreflect.Message
- func (x *GetVideoByIdListResponse) Reset()
- func (x *GetVideoByIdListResponse) String() string
- type GetVideoByIdRequest
- func (*GetVideoByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetVideoByIdRequest) GetVideoId() int64
- func (*GetVideoByIdRequest) ProtoMessage()
- func (x *GetVideoByIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetVideoByIdRequest) Reset()
- func (x *GetVideoByIdRequest) String() string
- type GetVideoByIdResponse
- func (*GetVideoByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetVideoByIdResponse) GetMeta() *Metadata
- func (x *GetVideoByIdResponse) GetVideo() *Video
- func (*GetVideoByIdResponse) ProtoMessage()
- func (x *GetVideoByIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetVideoByIdResponse) Reset()
- func (x *GetVideoByIdResponse) String() string
- type IsFavoriteRequest
- func (*IsFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsFavoriteRequest) GetBizId() int64
- func (x *IsFavoriteRequest) GetTarget() FavoriteTarget
- func (x *IsFavoriteRequest) GetType() FavoriteType
- func (x *IsFavoriteRequest) GetUserId() int64
- func (*IsFavoriteRequest) ProtoMessage()
- func (x *IsFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *IsFavoriteRequest) Reset()
- func (x *IsFavoriteRequest) String() string
- type IsFavoriteResponse
- func (*IsFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsFavoriteResponse) GetIsFavorite() bool
- func (x *IsFavoriteResponse) GetMeta() *Metadata
- func (*IsFavoriteResponse) ProtoMessage()
- func (x *IsFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *IsFavoriteResponse) Reset()
- func (x *IsFavoriteResponse) String() string
- type ListCollectionRequest
- func (*ListCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectionRequest) GetPagination() *PaginationRequest
- func (x *ListCollectionRequest) GetUserId() int64
- func (*ListCollectionRequest) ProtoMessage()
- func (x *ListCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *ListCollectionRequest) Reset()
- func (x *ListCollectionRequest) String() string
- type ListCollectionResponse
- func (*ListCollectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectionResponse) GetCollections() []*Collection
- func (x *ListCollectionResponse) GetMeta() *Metadata
- func (*ListCollectionResponse) ProtoMessage()
- func (x *ListCollectionResponse) ProtoReflect() protoreflect.Message
- func (x *ListCollectionResponse) Reset()
- func (x *ListCollectionResponse) String() string
- type ListCollectionVideoRequest
- func (*ListCollectionVideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectionVideoRequest) GetCollectionId() int64
- func (x *ListCollectionVideoRequest) GetPagination() *PaginationRequest
- func (*ListCollectionVideoRequest) ProtoMessage()
- func (x *ListCollectionVideoRequest) ProtoReflect() protoreflect.Message
- func (x *ListCollectionVideoRequest) Reset()
- func (x *ListCollectionVideoRequest) String() string
- type ListCollectionVideoResponse
- func (*ListCollectionVideoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectionVideoResponse) GetMeta() *Metadata
- func (x *ListCollectionVideoResponse) GetVideoIdList() []int64
- func (*ListCollectionVideoResponse) ProtoMessage()
- func (x *ListCollectionVideoResponse) ProtoReflect() protoreflect.Message
- func (x *ListCollectionVideoResponse) Reset()
- func (x *ListCollectionVideoResponse) String() string
- type ListComment4VideoRequest
- func (*ListComment4VideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListComment4VideoRequest) GetPagination() *PaginationRequest
- func (x *ListComment4VideoRequest) GetVideoId() int64
- func (*ListComment4VideoRequest) ProtoMessage()
- func (x *ListComment4VideoRequest) ProtoReflect() protoreflect.Message
- func (x *ListComment4VideoRequest) Reset()
- func (x *ListComment4VideoRequest) String() string
- type ListComment4VideoResponse
- func (*ListComment4VideoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListComment4VideoResponse) GetComments() []*Comment
- func (x *ListComment4VideoResponse) GetMeta() *Metadata
- func (x *ListComment4VideoResponse) GetPagination() *PaginationResponse
- func (*ListComment4VideoResponse) ProtoMessage()
- func (x *ListComment4VideoResponse) ProtoReflect() protoreflect.Message
- func (x *ListComment4VideoResponse) Reset()
- func (x *ListComment4VideoResponse) String() string
- type ListFavoriteRequest
- func (*ListFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFavoriteRequest) GetAggregateType() FavoriteAggregateType
- func (x *ListFavoriteRequest) GetId() int64
- func (x *ListFavoriteRequest) GetPagination() *PaginationRequest
- func (*ListFavoriteRequest) ProtoMessage()
- func (x *ListFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *ListFavoriteRequest) Reset()
- func (x *ListFavoriteRequest) String() string
- type ListFavoriteResponse
- func (*ListFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListFavoriteResponse) GetBizId() []int64
- func (x *ListFavoriteResponse) GetMeta() *Metadata
- func (x *ListFavoriteResponse) GetPagination() *PaginationResponse
- func (*ListFavoriteResponse) ProtoMessage()
- func (x *ListFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *ListFavoriteResponse) Reset()
- func (x *ListFavoriteResponse) String() string
- type ListFollowingRequest
- func (*ListFollowingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFollowingRequest) GetFollowType() FollowType
- func (x *ListFollowingRequest) GetPagination() *PaginationRequest
- func (x *ListFollowingRequest) GetUserId() int64
- func (*ListFollowingRequest) ProtoMessage()
- func (x *ListFollowingRequest) ProtoReflect() protoreflect.Message
- func (x *ListFollowingRequest) Reset()
- func (x *ListFollowingRequest) String() string
- type ListFollowingResponse
- func (*ListFollowingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListFollowingResponse) GetMeta() *Metadata
- func (x *ListFollowingResponse) GetUserIdList() []int64
- func (*ListFollowingResponse) ProtoMessage()
- func (x *ListFollowingResponse) ProtoReflect() protoreflect.Message
- func (x *ListFollowingResponse) Reset()
- func (x *ListFollowingResponse) String() string
- type ListPublishedVideoRequest
- func (*ListPublishedVideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPublishedVideoRequest) GetLatestTime() int64
- func (x *ListPublishedVideoRequest) GetPagination() *PaginationRequest
- func (x *ListPublishedVideoRequest) GetUserId() int64
- func (*ListPublishedVideoRequest) ProtoMessage()
- func (x *ListPublishedVideoRequest) ProtoReflect() protoreflect.Message
- func (x *ListPublishedVideoRequest) Reset()
- func (x *ListPublishedVideoRequest) String() string
- type ListPublishedVideoResponse
- func (*ListPublishedVideoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPublishedVideoResponse) GetMeta() *Metadata
- func (x *ListPublishedVideoResponse) GetPagination() *PaginationResponse
- func (x *ListPublishedVideoResponse) GetVideos() []*Video
- func (*ListPublishedVideoResponse) ProtoMessage()
- func (x *ListPublishedVideoResponse) ProtoReflect() protoreflect.Message
- func (x *ListPublishedVideoResponse) Reset()
- func (x *ListPublishedVideoResponse) String() string
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetBizCode() int32
- func (x *Metadata) GetDomain() string
- func (x *Metadata) GetMessage() string
- func (x *Metadata) GetReason() []string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- func (m *Metadata) Validate() error
- func (m *Metadata) ValidateAll() error
- type MetadataMultiError
- type MetadataValidationError
- type PaginationRequest
- func (*PaginationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PaginationRequest) GetPage() int32
- func (x *PaginationRequest) GetSize() int32
- func (x *PaginationRequest) GetSort() []*SortField
- func (*PaginationRequest) ProtoMessage()
- func (x *PaginationRequest) ProtoReflect() protoreflect.Message
- func (x *PaginationRequest) Reset()
- func (x *PaginationRequest) String() string
- func (m *PaginationRequest) Validate() error
- func (m *PaginationRequest) ValidateAll() error
- type PaginationRequestMultiError
- type PaginationRequestValidationError
- func (e PaginationRequestValidationError) Cause() error
- func (e PaginationRequestValidationError) Error() string
- func (e PaginationRequestValidationError) ErrorName() string
- func (e PaginationRequestValidationError) Field() string
- func (e PaginationRequestValidationError) Key() bool
- func (e PaginationRequestValidationError) Reason() string
- type PaginationResponse
- func (*PaginationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PaginationResponse) GetCount() int32
- func (x *PaginationResponse) GetPage() int32
- func (x *PaginationResponse) GetTotal() int32
- func (*PaginationResponse) ProtoMessage()
- func (x *PaginationResponse) ProtoReflect() protoreflect.Message
- func (x *PaginationResponse) Reset()
- func (x *PaginationResponse) String() string
- func (m *PaginationResponse) Validate() error
- func (m *PaginationResponse) ValidateAll() error
- type PaginationResponseMultiError
- type PaginationResponseValidationError
- func (e PaginationResponseValidationError) Cause() error
- func (e PaginationResponseValidationError) Error() string
- func (e PaginationResponseValidationError) ErrorName() string
- func (e PaginationResponseValidationError) Field() string
- func (e PaginationResponseValidationError) Key() bool
- func (e PaginationResponseValidationError) Reason() string
- type PublishVideoRequest
- func (*PublishVideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishVideoRequest) GetCoverUrl() string
- func (x *PublishVideoRequest) GetDescription() string
- func (x *PublishVideoRequest) GetPlayUrl() string
- func (x *PublishVideoRequest) GetTitle() string
- func (x *PublishVideoRequest) GetUserId() int64
- func (*PublishVideoRequest) ProtoMessage()
- func (x *PublishVideoRequest) ProtoReflect() protoreflect.Message
- func (x *PublishVideoRequest) Reset()
- func (x *PublishVideoRequest) String() string
- type PublishVideoResponse
- func (*PublishVideoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PublishVideoResponse) GetMeta() *Metadata
- func (x *PublishVideoResponse) GetVideoId() int64
- func (*PublishVideoResponse) ProtoMessage()
- func (x *PublishVideoResponse) ProtoReflect() protoreflect.Message
- func (x *PublishVideoResponse) Reset()
- func (x *PublishVideoResponse) String() string
- type RemoveCollectionRequest
- func (*RemoveCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveCollectionRequest) GetId() int64
- func (*RemoveCollectionRequest) ProtoMessage()
- func (x *RemoveCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveCollectionRequest) Reset()
- func (x *RemoveCollectionRequest) String() string
- type RemoveCollectionResponse
- func (*RemoveCollectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveCollectionResponse) GetMeta() *Metadata
- func (*RemoveCollectionResponse) ProtoMessage()
- func (x *RemoveCollectionResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveCollectionResponse) Reset()
- func (x *RemoveCollectionResponse) String() string
- type RemoveCommentRequest
- func (*RemoveCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveCommentRequest) GetCommentId() int64
- func (x *RemoveCommentRequest) GetUserId() int64
- func (*RemoveCommentRequest) ProtoMessage()
- func (x *RemoveCommentRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveCommentRequest) Reset()
- func (x *RemoveCommentRequest) String() string
- type RemoveCommentResponse
- func (*RemoveCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveCommentResponse) GetMeta() *Metadata
- func (*RemoveCommentResponse) ProtoMessage()
- func (x *RemoveCommentResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveCommentResponse) Reset()
- func (x *RemoveCommentResponse) String() string
- type RemoveFavoriteRequest
- func (*RemoveFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveFavoriteRequest) GetId() int64
- func (x *RemoveFavoriteRequest) GetTarget() FavoriteTarget
- func (x *RemoveFavoriteRequest) GetType() FavoriteType
- func (*RemoveFavoriteRequest) ProtoMessage()
- func (x *RemoveFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveFavoriteRequest) Reset()
- func (x *RemoveFavoriteRequest) String() string
- type RemoveFavoriteResponse
- func (*RemoveFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveFavoriteResponse) GetMeta() *Metadata
- func (*RemoveFavoriteResponse) ProtoMessage()
- func (x *RemoveFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveFavoriteResponse) Reset()
- func (x *RemoveFavoriteResponse) String() string
- type RemoveFollowRequest
- func (*RemoveFollowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveFollowRequest) GetTargetUserId() int64
- func (x *RemoveFollowRequest) GetUserId() int64
- func (*RemoveFollowRequest) ProtoMessage()
- func (x *RemoveFollowRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveFollowRequest) Reset()
- func (x *RemoveFollowRequest) String() string
- type RemoveFollowResponse
- func (*RemoveFollowResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveFollowResponse) GetMeta() *Metadata
- func (*RemoveFollowResponse) ProtoMessage()
- func (x *RemoveFollowResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveFollowResponse) Reset()
- func (x *RemoveFollowResponse) String() string
- type RemoveVideoFromCollectionRequest
- func (*RemoveVideoFromCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveVideoFromCollectionRequest) GetCollectionId() int64
- func (x *RemoveVideoFromCollectionRequest) GetVideoId() int64
- func (*RemoveVideoFromCollectionRequest) ProtoMessage()
- func (x *RemoveVideoFromCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveVideoFromCollectionRequest) Reset()
- func (x *RemoveVideoFromCollectionRequest) String() string
- type RemoveVideoFromCollectionResponse
- func (*RemoveVideoFromCollectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveVideoFromCollectionResponse) GetMeta() *Metadata
- func (*RemoveVideoFromCollectionResponse) ProtoMessage()
- func (x *RemoveVideoFromCollectionResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveVideoFromCollectionResponse) Reset()
- func (x *RemoveVideoFromCollectionResponse) String() string
- type SearchField
- func (*SearchField) Descriptor() ([]byte, []int)deprecated
- func (x *SearchField) GetField() string
- func (x *SearchField) GetOperator() SearchOperator
- func (x *SearchField) GetValue() string
- func (x *SearchField) GetValueList() []string
- func (*SearchField) ProtoMessage()
- func (x *SearchField) ProtoReflect() protoreflect.Message
- func (x *SearchField) Reset()
- func (x *SearchField) String() string
- func (m *SearchField) Validate() error
- func (m *SearchField) ValidateAll() error
- type SearchFieldMultiError
- type SearchFieldValidationError
- func (e SearchFieldValidationError) Cause() error
- func (e SearchFieldValidationError) Error() string
- func (e SearchFieldValidationError) ErrorName() string
- func (e SearchFieldValidationError) Field() string
- func (e SearchFieldValidationError) Key() bool
- func (e SearchFieldValidationError) Reason() string
- type SearchOperator
- func (SearchOperator) Descriptor() protoreflect.EnumDescriptor
- func (x SearchOperator) Enum() *SearchOperator
- func (SearchOperator) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchOperator) Number() protoreflect.EnumNumber
- func (x SearchOperator) String() string
- func (SearchOperator) Type() protoreflect.EnumType
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetSearch() []*SearchField
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- func (m *SearchRequest) Validate() error
- func (m *SearchRequest) ValidateAll() error
- type SearchRequestMultiError
- type SearchRequestValidationError
- func (e SearchRequestValidationError) Cause() error
- func (e SearchRequestValidationError) Error() string
- func (e SearchRequestValidationError) ErrorName() string
- func (e SearchRequestValidationError) Field() string
- func (e SearchRequestValidationError) Key() bool
- func (e SearchRequestValidationError) Reason() string
- type SortField
- func (*SortField) Descriptor() ([]byte, []int)deprecated
- func (x *SortField) GetField() string
- func (x *SortField) GetOrder() SortOrder
- func (*SortField) ProtoMessage()
- func (x *SortField) ProtoReflect() protoreflect.Message
- func (x *SortField) Reset()
- func (x *SortField) String() string
- func (m *SortField) Validate() error
- func (m *SortField) ValidateAll() error
- type SortFieldMultiError
- type SortFieldValidationError
- type SortOrder
- type UnimplementedCollectionServiceServer
- func (UnimplementedCollectionServiceServer) AddVideo2Collection(context.Context, *AddVideo2CollectionRequest) (*AddVideo2CollectionResponse, error)
- func (UnimplementedCollectionServiceServer) CreateCollection(context.Context, *CreateCollectionRequest) (*CreateCollectionResponse, error)
- func (UnimplementedCollectionServiceServer) GetCollectionById(context.Context, *GetCollectionByIdRequest) (*GetCollectionByIdResponse, error)
- func (UnimplementedCollectionServiceServer) ListCollection(context.Context, *ListCollectionRequest) (*ListCollectionResponse, error)
- func (UnimplementedCollectionServiceServer) ListCollectionVideo(context.Context, *ListCollectionVideoRequest) (*ListCollectionVideoResponse, error)
- func (UnimplementedCollectionServiceServer) RemoveCollection(context.Context, *RemoveCollectionRequest) (*RemoveCollectionResponse, error)
- func (UnimplementedCollectionServiceServer) RemoveVideoFromCollection(context.Context, *RemoveVideoFromCollectionRequest) (*RemoveVideoFromCollectionResponse, error)
- func (UnimplementedCollectionServiceServer) UpdateCollection(context.Context, *UpdateCollectionRequest) (*UpdateCollectionResponse, error)
- type UnimplementedCommentServiceServer
- func (UnimplementedCommentServiceServer) CountComment4User(context.Context, *CountComment4UserRequest) (*CountComment4UserResponse, error)
- func (UnimplementedCommentServiceServer) CountComment4Video(context.Context, *CountComment4VideoRequest) (*CountComment4VideoResponse, error)
- func (UnimplementedCommentServiceServer) CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentResponse, error)
- func (UnimplementedCommentServiceServer) GetCommentById(context.Context, *GetCommentByIdRequest) (*GetCommentByIdResponse, error)
- func (UnimplementedCommentServiceServer) ListComment4Video(context.Context, *ListComment4VideoRequest) (*ListComment4VideoResponse, error)
- func (UnimplementedCommentServiceServer) RemoveComment(context.Context, *RemoveCommentRequest) (*RemoveCommentResponse, error)
- type UnimplementedFavoriteServiceServer
- func (UnimplementedFavoriteServiceServer) AddFavorite(context.Context, *AddFavoriteRequest) (*AddFavoriteResponse, error)
- func (UnimplementedFavoriteServiceServer) CountFavorite(context.Context, *CountFavoriteRequest) (*CountFavoriteResponse, error)
- func (UnimplementedFavoriteServiceServer) IsFavorite(context.Context, *IsFavoriteRequest) (*IsFavoriteResponse, error)
- func (UnimplementedFavoriteServiceServer) ListFavorite(context.Context, *ListFavoriteRequest) (*ListFavoriteResponse, error)
- func (UnimplementedFavoriteServiceServer) RemoveFavorite(context.Context, *RemoveFavoriteRequest) (*RemoveFavoriteResponse, error)
- type UnimplementedFollowServiceServer
- func (UnimplementedFollowServiceServer) AddFollow(context.Context, *AddFollowRequest) (*AddFollowResponse, error)
- func (UnimplementedFollowServiceServer) ListFollowing(context.Context, *ListFollowingRequest) (*ListFollowingResponse, error)
- func (UnimplementedFollowServiceServer) RemoveFollow(context.Context, *RemoveFollowRequest) (*RemoveFollowResponse, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
- func (UnimplementedUserServiceServer) GetUserByIdList(context.Context, *GetUserByIdListRequest) (*GetUserByIdListResponse, error)
- func (UnimplementedUserServiceServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
- func (UnimplementedUserServiceServer) UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*UpdateUserInfoResponse, error)
- type UnimplementedVideoServiceServer
- func (UnimplementedVideoServiceServer) FeedShortVideo(context.Context, *FeedShortVideoRequest) (*FeedShortVideoResponse, error)
- func (UnimplementedVideoServiceServer) GetVideoById(context.Context, *GetVideoByIdRequest) (*GetVideoByIdResponse, error)
- func (UnimplementedVideoServiceServer) GetVideoByIdList(context.Context, *GetVideoByIdListRequest) (*GetVideoByIdListResponse, error)
- func (UnimplementedVideoServiceServer) ListPublishedVideo(context.Context, *ListPublishedVideoRequest) (*ListPublishedVideoResponse, error)
- func (UnimplementedVideoServiceServer) PublishVideo(context.Context, *PublishVideoRequest) (*PublishVideoResponse, error)
- type UnsafeCollectionServiceServer
- type UnsafeCommentServiceServer
- type UnsafeFavoriteServiceServer
- type UnsafeFollowServiceServer
- type UnsafeUserServiceServer
- type UnsafeVideoServiceServer
- type UpdateCollectionRequest
- func (*UpdateCollectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCollectionRequest) GetDescription() string
- func (x *UpdateCollectionRequest) GetId() int64
- func (x *UpdateCollectionRequest) GetName() string
- func (*UpdateCollectionRequest) ProtoMessage()
- func (x *UpdateCollectionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCollectionRequest) Reset()
- func (x *UpdateCollectionRequest) String() string
- type UpdateCollectionResponse
- func (*UpdateCollectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCollectionResponse) GetMeta() *Metadata
- func (*UpdateCollectionResponse) ProtoMessage()
- func (x *UpdateCollectionResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateCollectionResponse) Reset()
- func (x *UpdateCollectionResponse) String() string
- type UpdateUserImageType
- func (UpdateUserImageType) Descriptor() protoreflect.EnumDescriptor
- func (x UpdateUserImageType) Enum() *UpdateUserImageType
- func (UpdateUserImageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UpdateUserImageType) Number() protoreflect.EnumNumber
- func (x UpdateUserImageType) String() string
- func (UpdateUserImageType) Type() protoreflect.EnumType
- type UpdateUserInfoRequest
- func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserInfoRequest) GetAvatar() string
- func (x *UpdateUserInfoRequest) GetBackgroundImage() string
- func (x *UpdateUserInfoRequest) GetName() string
- func (x *UpdateUserInfoRequest) GetSignature() string
- func (x *UpdateUserInfoRequest) GetUserId() int64
- func (*UpdateUserInfoRequest) ProtoMessage()
- func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserInfoRequest) Reset()
- func (x *UpdateUserInfoRequest) String() string
- func (m *UpdateUserInfoRequest) Validate() error
- func (m *UpdateUserInfoRequest) ValidateAll() error
- type UpdateUserInfoRequestMultiError
- type UpdateUserInfoRequestValidationError
- func (e UpdateUserInfoRequestValidationError) Cause() error
- func (e UpdateUserInfoRequestValidationError) Error() string
- func (e UpdateUserInfoRequestValidationError) ErrorName() string
- func (e UpdateUserInfoRequestValidationError) Field() string
- func (e UpdateUserInfoRequestValidationError) Key() bool
- func (e UpdateUserInfoRequestValidationError) Reason() string
- type UpdateUserInfoResponse
- func (*UpdateUserInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserInfoResponse) GetMeta() *Metadata
- func (*UpdateUserInfoResponse) ProtoMessage()
- func (x *UpdateUserInfoResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateUserInfoResponse) Reset()
- func (x *UpdateUserInfoResponse) String() string
- func (m *UpdateUserInfoResponse) Validate() error
- func (m *UpdateUserInfoResponse) ValidateAll() error
- type UpdateUserInfoResponseMultiError
- type UpdateUserInfoResponseValidationError
- func (e UpdateUserInfoResponseValidationError) Cause() error
- func (e UpdateUserInfoResponseValidationError) Error() string
- func (e UpdateUserInfoResponseValidationError) ErrorName() string
- func (e UpdateUserInfoResponseValidationError) Field() string
- func (e UpdateUserInfoResponseValidationError) Key() bool
- func (e UpdateUserInfoResponseValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() string
- func (x *User) GetBackgroundImage() string
- func (x *User) GetEmail() string
- func (x *User) GetFavoriteCount() int64
- func (x *User) GetFollowCount() int64
- func (x *User) GetFollowerCount() int64
- func (x *User) GetId() int64
- func (x *User) GetMobile() string
- 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
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserMultiError
- type UserServiceClient
- type UserServiceHTTPClient
- type UserServiceHTTPClientImpl
- func (c *UserServiceHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*CreateUserResponse, error)
- func (c *UserServiceHTTPClientImpl) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...http.CallOption) (*GetUserInfoResponse, error)
- func (c *UserServiceHTTPClientImpl) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...http.CallOption) (*UpdateUserInfoResponse, error)
- type UserServiceHTTPServer
- type UserServiceServer
- type UserValidationError
- type Video
- func (*Video) Descriptor() ([]byte, []int)deprecated
- func (x *Video) GetAuthor() *Author
- func (x *Video) GetCommentCount() int64
- func (x *Video) GetCoverUrl() string
- func (x *Video) GetDescription() string
- func (x *Video) GetFavoriteCount() int64
- func (x *Video) GetId() int64
- func (x *Video) GetIsFavorite() int64
- func (x *Video) GetPlayUrl() string
- func (x *Video) GetTitle() string
- func (x *Video) GetUploadTime() string
- func (*Video) ProtoMessage()
- func (x *Video) ProtoReflect() protoreflect.Message
- func (x *Video) Reset()
- func (x *Video) String() string
- type VideoServiceClient
- type VideoServiceHTTPClient
- type VideoServiceHTTPClientImpl
- func (c *VideoServiceHTTPClientImpl) FeedShortVideo(ctx context.Context, in *FeedShortVideoRequest, opts ...http.CallOption) (*FeedShortVideoResponse, error)
- func (c *VideoServiceHTTPClientImpl) GetVideoById(ctx context.Context, in *GetVideoByIdRequest, opts ...http.CallOption) (*GetVideoByIdResponse, error)
- func (c *VideoServiceHTTPClientImpl) ListPublishedVideo(ctx context.Context, in *ListPublishedVideoRequest, opts ...http.CallOption) (*ListPublishedVideoResponse, error)
- func (c *VideoServiceHTTPClientImpl) PublishVideo(ctx context.Context, in *PublishVideoRequest, opts ...http.CallOption) (*PublishVideoResponse, error)
- type VideoServiceHTTPServer
- type VideoServiceServer
Constants ¶
const OperationUserServiceCreateUser = "/shortVideoCoreService.api.v1.UserService/CreateUser"
const OperationUserServiceGetUserInfo = "/shortVideoCoreService.api.v1.UserService/GetUserInfo"
const OperationUserServiceUpdateUserInfo = "/shortVideoCoreService.api.v1.UserService/UpdateUserInfo"
const OperationVideoServiceFeedShortVideo = "/shortVideoCoreService.api.v1.VideoService/FeedShortVideo"
const OperationVideoServiceGetVideoById = "/shortVideoCoreService.api.v1.VideoService/GetVideoById"
const OperationVideoServiceListPublishedVideo = "/shortVideoCoreService.api.v1.VideoService/ListPublishedVideo"
const OperationVideoServicePublishVideo = "/shortVideoCoreService.api.v1.VideoService/PublishVideo"
Variables ¶
var ( SortOrder_name = map[int32]string{ 0: "ASC", 1: "DESC", } SortOrder_value = map[string]int32{ "ASC": 0, "DESC": 1, } )
Enum value maps for SortOrder.
var ( SearchOperator_name = map[int32]string{ 0: "EQ", 1: "NE", 2: "GT", 3: "GE", 4: "LT", 5: "LE", 6: "LIKE", 7: "WILDCARD", 8: "IN", 9: "NOT_IN", 10: "BETWEEN", 11: "RE", } SearchOperator_value = map[string]int32{ "EQ": 0, "NE": 1, "GT": 2, "GE": 3, "LT": 4, "LE": 5, "LIKE": 6, "WILDCARD": 7, "IN": 8, "NOT_IN": 9, "BETWEEN": 10, "RE": 11, } )
Enum value maps for SearchOperator.
var ( FavoriteTarget_name = map[int32]string{ 0: "VIDEO", 1: "COMMENT", } FavoriteTarget_value = map[string]int32{ "VIDEO": 0, "COMMENT": 1, } )
Enum value maps for FavoriteTarget.
var ( FavoriteType_name = map[int32]string{ 0: "FAVORITE", 1: "UNLIKE", } FavoriteType_value = map[string]int32{ "FAVORITE": 0, "UNLIKE": 1, } )
Enum value maps for FavoriteType.
var ( FavoriteAggregateType_name = map[int32]string{ 0: "BY_VIDEO", 1: "BY_COMMENT", 2: "BY_USER", } FavoriteAggregateType_value = map[string]int32{ "BY_VIDEO": 0, "BY_COMMENT": 1, "BY_USER": 2, } )
Enum value maps for FavoriteAggregateType.
var ( FollowType_name = map[int32]string{ 0: "FOLLOWING", 1: "FOLLOWER", 2: "BOTH", } FollowType_value = map[string]int32{ "FOLLOWING": 0, "FOLLOWER": 1, "BOTH": 2, } )
Enum value maps for FollowType.
var ( UpdateUserImageType_name = map[int32]string{ 0: "AVATAR", 1: "BACKGROUND_IMAGE", } UpdateUserImageType_value = map[string]int32{ "AVATAR": 0, "BACKGROUND_IMAGE": 1, } )
Enum value maps for UpdateUserImageType.
var CollectionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shortVideoCoreService.api.v1.CollectionService", HandlerType: (*CollectionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCollection", Handler: _CollectionService_CreateCollection_Handler, }, { MethodName: "GetCollectionById", Handler: _CollectionService_GetCollectionById_Handler, }, { MethodName: "RemoveCollection", Handler: _CollectionService_RemoveCollection_Handler, }, { MethodName: "ListCollection", Handler: _CollectionService_ListCollection_Handler, }, { MethodName: "UpdateCollection", Handler: _CollectionService_UpdateCollection_Handler, }, { MethodName: "AddVideo2Collection", Handler: _CollectionService_AddVideo2Collection_Handler, }, { MethodName: "RemoveVideoFromCollection", Handler: _CollectionService_RemoveVideoFromCollection_Handler, }, { MethodName: "ListCollectionVideo", Handler: _CollectionService_ListCollectionVideo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/collection.proto", }
CollectionService_ServiceDesc is the grpc.ServiceDesc for CollectionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CommentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shortVideoCoreService.api.v1.CommentService", HandlerType: (*CommentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateComment", Handler: _CommentService_CreateComment_Handler, }, { MethodName: "RemoveComment", Handler: _CommentService_RemoveComment_Handler, }, { MethodName: "ListComment4Video", Handler: _CommentService_ListComment4Video_Handler, }, { MethodName: "GetCommentById", Handler: _CommentService_GetCommentById_Handler, }, { MethodName: "CountComment4Video", Handler: _CommentService_CountComment4Video_Handler, }, { MethodName: "CountComment4User", Handler: _CommentService_CountComment4User_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/comment.proto", }
CommentService_ServiceDesc is the grpc.ServiceDesc for CommentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var FavoriteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shortVideoCoreService.api.v1.FavoriteService", HandlerType: (*FavoriteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddFavorite", Handler: _FavoriteService_AddFavorite_Handler, }, { MethodName: "RemoveFavorite", Handler: _FavoriteService_RemoveFavorite_Handler, }, { MethodName: "ListFavorite", Handler: _FavoriteService_ListFavorite_Handler, }, { MethodName: "CountFavorite", Handler: _FavoriteService_CountFavorite_Handler, }, { MethodName: "IsFavorite", Handler: _FavoriteService_IsFavorite_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/favorite.proto", }
FavoriteService_ServiceDesc is the grpc.ServiceDesc for FavoriteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1_base_proto protoreflect.FileDescriptor
var File_v1_collection_proto protoreflect.FileDescriptor
var File_v1_comment_proto protoreflect.FileDescriptor
var File_v1_favorite_proto protoreflect.FileDescriptor
var File_v1_follow_proto protoreflect.FileDescriptor
var File_v1_user_proto protoreflect.FileDescriptor
var File_v1_video_proto protoreflect.FileDescriptor
var FollowService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shortVideoCoreService.api.v1.FollowService", HandlerType: (*FollowServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddFollow", Handler: _FollowService_AddFollow_Handler, }, { MethodName: "RemoveFollow", Handler: _FollowService_RemoveFollow_Handler, }, { MethodName: "ListFollowing", Handler: _FollowService_ListFollowing_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/follow.proto", }
FollowService_ServiceDesc is the grpc.ServiceDesc for FollowService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shortVideoCoreService.api.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "GetUserInfo", Handler: _UserService_GetUserInfo_Handler, }, { MethodName: "UpdateUserInfo", Handler: _UserService_UpdateUserInfo_Handler, }, { MethodName: "GetUserByIdList", Handler: _UserService_GetUserByIdList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/user.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: "shortVideoCoreService.api.v1.VideoService", HandlerType: (*VideoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FeedShortVideo", Handler: _VideoService_FeedShortVideo_Handler, }, { MethodName: "GetVideoById", Handler: _VideoService_GetVideoById_Handler, }, { MethodName: "PublishVideo", Handler: _VideoService_PublishVideo_Handler, }, { MethodName: "ListPublishedVideo", Handler: _VideoService_ListPublishedVideo_Handler, }, { MethodName: "GetVideoByIdList", Handler: _VideoService_GetVideoByIdList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/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 RegisterCollectionServiceServer ¶
func RegisterCollectionServiceServer(s grpc.ServiceRegistrar, srv CollectionServiceServer)
func RegisterCommentServiceServer ¶
func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer)
func RegisterFavoriteServiceServer ¶
func RegisterFavoriteServiceServer(s grpc.ServiceRegistrar, srv FavoriteServiceServer)
func RegisterFollowServiceServer ¶
func RegisterFollowServiceServer(s grpc.ServiceRegistrar, srv FollowServiceServer)
func RegisterUserServiceHTTPServer ¶
func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
func RegisterVideoServiceHTTPServer ¶
func RegisterVideoServiceHTTPServer(s *http.Server, srv VideoServiceHTTPServer)
func RegisterVideoServiceServer ¶
func RegisterVideoServiceServer(s grpc.ServiceRegistrar, srv VideoServiceServer)
Types ¶
type AddFavoriteRequest ¶
type AddFavoriteRequest struct { Target FavoriteTarget `protobuf:"varint,1,opt,name=target,proto3,enum=shortVideoCoreService.api.v1.FavoriteTarget" json:"target,omitempty"` Type FavoriteType `protobuf:"varint,2,opt,name=type,proto3,enum=shortVideoCoreService.api.v1.FavoriteType" json:"type,omitempty"` // @gotags: json:"id,omitempty,string" Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddFavoriteRequest) Descriptor
deprecated
func (*AddFavoriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddFavoriteRequest.ProtoReflect.Descriptor instead.
func (*AddFavoriteRequest) GetId ¶
func (x *AddFavoriteRequest) GetId() int64
func (*AddFavoriteRequest) GetTarget ¶
func (x *AddFavoriteRequest) GetTarget() FavoriteTarget
func (*AddFavoriteRequest) GetType ¶
func (x *AddFavoriteRequest) GetType() FavoriteType
func (*AddFavoriteRequest) ProtoMessage ¶
func (*AddFavoriteRequest) ProtoMessage()
func (*AddFavoriteRequest) ProtoReflect ¶
func (x *AddFavoriteRequest) ProtoReflect() protoreflect.Message
func (*AddFavoriteRequest) Reset ¶
func (x *AddFavoriteRequest) Reset()
func (*AddFavoriteRequest) String ¶
func (x *AddFavoriteRequest) String() string
type AddFavoriteResponse ¶
type AddFavoriteResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*AddFavoriteResponse) Descriptor
deprecated
func (*AddFavoriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddFavoriteResponse.ProtoReflect.Descriptor instead.
func (*AddFavoriteResponse) GetMeta ¶
func (x *AddFavoriteResponse) GetMeta() *Metadata
func (*AddFavoriteResponse) ProtoMessage ¶
func (*AddFavoriteResponse) ProtoMessage()
func (*AddFavoriteResponse) ProtoReflect ¶
func (x *AddFavoriteResponse) ProtoReflect() protoreflect.Message
func (*AddFavoriteResponse) Reset ¶
func (x *AddFavoriteResponse) Reset()
func (*AddFavoriteResponse) String ¶
func (x *AddFavoriteResponse) String() string
type AddFollowRequest ¶
type AddFollowRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` // contains filtered or unexported fields }
func (*AddFollowRequest) Descriptor
deprecated
func (*AddFollowRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddFollowRequest.ProtoReflect.Descriptor instead.
func (*AddFollowRequest) GetTargetUserId ¶
func (x *AddFollowRequest) GetTargetUserId() int64
func (*AddFollowRequest) GetUserId ¶
func (x *AddFollowRequest) GetUserId() int64
func (*AddFollowRequest) ProtoMessage ¶
func (*AddFollowRequest) ProtoMessage()
func (*AddFollowRequest) ProtoReflect ¶
func (x *AddFollowRequest) ProtoReflect() protoreflect.Message
func (*AddFollowRequest) Reset ¶
func (x *AddFollowRequest) Reset()
func (*AddFollowRequest) String ¶
func (x *AddFollowRequest) String() string
type AddFollowResponse ¶
type AddFollowResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*AddFollowResponse) Descriptor
deprecated
func (*AddFollowResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddFollowResponse.ProtoReflect.Descriptor instead.
func (*AddFollowResponse) GetMeta ¶
func (x *AddFollowResponse) GetMeta() *Metadata
func (*AddFollowResponse) ProtoMessage ¶
func (*AddFollowResponse) ProtoMessage()
func (*AddFollowResponse) ProtoReflect ¶
func (x *AddFollowResponse) ProtoReflect() protoreflect.Message
func (*AddFollowResponse) Reset ¶
func (x *AddFollowResponse) Reset()
func (*AddFollowResponse) String ¶
func (x *AddFollowResponse) String() string
type AddVideo2CollectionRequest ¶
type AddVideo2CollectionRequest struct { CollectionId int64 `protobuf:"varint,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // contains filtered or unexported fields }
func (*AddVideo2CollectionRequest) Descriptor
deprecated
func (*AddVideo2CollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddVideo2CollectionRequest.ProtoReflect.Descriptor instead.
func (*AddVideo2CollectionRequest) GetCollectionId ¶
func (x *AddVideo2CollectionRequest) GetCollectionId() int64
func (*AddVideo2CollectionRequest) GetVideoId ¶
func (x *AddVideo2CollectionRequest) GetVideoId() int64
func (*AddVideo2CollectionRequest) ProtoMessage ¶
func (*AddVideo2CollectionRequest) ProtoMessage()
func (*AddVideo2CollectionRequest) ProtoReflect ¶
func (x *AddVideo2CollectionRequest) ProtoReflect() protoreflect.Message
func (*AddVideo2CollectionRequest) Reset ¶
func (x *AddVideo2CollectionRequest) Reset()
func (*AddVideo2CollectionRequest) String ¶
func (x *AddVideo2CollectionRequest) String() string
type AddVideo2CollectionResponse ¶
type AddVideo2CollectionResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*AddVideo2CollectionResponse) Descriptor
deprecated
func (*AddVideo2CollectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddVideo2CollectionResponse.ProtoReflect.Descriptor instead.
func (*AddVideo2CollectionResponse) GetMeta ¶
func (x *AddVideo2CollectionResponse) GetMeta() *Metadata
func (*AddVideo2CollectionResponse) ProtoMessage ¶
func (*AddVideo2CollectionResponse) ProtoMessage()
func (*AddVideo2CollectionResponse) ProtoReflect ¶
func (x *AddVideo2CollectionResponse) ProtoReflect() protoreflect.Message
func (*AddVideo2CollectionResponse) Reset ¶
func (x *AddVideo2CollectionResponse) Reset()
func (*AddVideo2CollectionResponse) String ¶
func (x *AddVideo2CollectionResponse) String() string
type Author ¶
type Author struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 作者唯一标识 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 作者昵称 Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` // 作者头像地址 IsFollowing int64 `protobuf:"varint,4,opt,name=is_following,json=isFollowing,proto3" json:"is_following,omitempty"` // 0-未关注,1-已关注 // contains filtered or unexported fields }
func (*Author) Descriptor
deprecated
func (*Author) GetIsFollowing ¶
func (*Author) ProtoMessage ¶
func (*Author) ProtoMessage()
func (*Author) ProtoReflect ¶
func (x *Author) ProtoReflect() protoreflect.Message
type Collection ¶
type Collection struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Collection) Descriptor
deprecated
func (*Collection) Descriptor() ([]byte, []int)
Deprecated: Use Collection.ProtoReflect.Descriptor instead.
func (*Collection) GetDescription ¶
func (x *Collection) GetDescription() string
func (*Collection) GetId ¶
func (x *Collection) GetId() int64
func (*Collection) GetName ¶
func (x *Collection) GetName() string
func (*Collection) GetUserId ¶
func (x *Collection) GetUserId() int64
func (*Collection) ProtoMessage ¶
func (*Collection) ProtoMessage()
func (*Collection) ProtoReflect ¶
func (x *Collection) ProtoReflect() protoreflect.Message
func (*Collection) Reset ¶
func (x *Collection) Reset()
func (*Collection) String ¶
func (x *Collection) String() string
type CollectionServiceClient ¶
type CollectionServiceClient interface { CreateCollection(ctx context.Context, in *CreateCollectionRequest, opts ...grpc.CallOption) (*CreateCollectionResponse, error) GetCollectionById(ctx context.Context, in *GetCollectionByIdRequest, opts ...grpc.CallOption) (*GetCollectionByIdResponse, error) RemoveCollection(ctx context.Context, in *RemoveCollectionRequest, opts ...grpc.CallOption) (*RemoveCollectionResponse, error) ListCollection(ctx context.Context, in *ListCollectionRequest, opts ...grpc.CallOption) (*ListCollectionResponse, error) UpdateCollection(ctx context.Context, in *UpdateCollectionRequest, opts ...grpc.CallOption) (*UpdateCollectionResponse, error) AddVideo2Collection(ctx context.Context, in *AddVideo2CollectionRequest, opts ...grpc.CallOption) (*AddVideo2CollectionResponse, error) RemoveVideoFromCollection(ctx context.Context, in *RemoveVideoFromCollectionRequest, opts ...grpc.CallOption) (*RemoveVideoFromCollectionResponse, error) ListCollectionVideo(ctx context.Context, in *ListCollectionVideoRequest, opts ...grpc.CallOption) (*ListCollectionVideoResponse, error) }
CollectionServiceClient is the client API for CollectionService 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 NewCollectionServiceClient ¶
func NewCollectionServiceClient(cc grpc.ClientConnInterface) CollectionServiceClient
type CollectionServiceServer ¶
type CollectionServiceServer interface { CreateCollection(context.Context, *CreateCollectionRequest) (*CreateCollectionResponse, error) GetCollectionById(context.Context, *GetCollectionByIdRequest) (*GetCollectionByIdResponse, error) RemoveCollection(context.Context, *RemoveCollectionRequest) (*RemoveCollectionResponse, error) ListCollection(context.Context, *ListCollectionRequest) (*ListCollectionResponse, error) UpdateCollection(context.Context, *UpdateCollectionRequest) (*UpdateCollectionResponse, error) AddVideo2Collection(context.Context, *AddVideo2CollectionRequest) (*AddVideo2CollectionResponse, error) RemoveVideoFromCollection(context.Context, *RemoveVideoFromCollectionRequest) (*RemoveVideoFromCollectionResponse, error) ListCollectionVideo(context.Context, *ListCollectionVideoRequest) (*ListCollectionVideoResponse, error) // contains filtered or unexported methods }
CollectionServiceServer is the server API for CollectionService service. All implementations must embed UnimplementedCollectionServiceServer for forward compatibility
type Comment ¶
type Comment struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 评论id VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // 评论内容 Date string `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"` // 评论日期 LikeCount string `protobuf:"bytes,5,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"` // 点赞数 ReplyCount string `protobuf:"bytes,6,opt,name=reply_count,json=replyCount,proto3" json:"reply_count,omitempty"` // 回复数 UserId int64 `protobuf:"varint,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id ParentId int64 `protobuf:"varint,8,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 父评论id ReplyUserId int64 `protobuf:"varint,9,opt,name=reply_user_id,json=replyUserId,proto3" json:"reply_user_id,omitempty"` // 回复用户id // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetContent ¶
func (*Comment) GetLikeCount ¶
func (*Comment) GetParentId ¶
func (*Comment) GetReplyCount ¶
func (*Comment) GetReplyUserId ¶
func (*Comment) GetVideoId ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CommentServiceClient ¶
type CommentServiceClient interface { CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*CreateCommentResponse, error) RemoveComment(ctx context.Context, in *RemoveCommentRequest, opts ...grpc.CallOption) (*RemoveCommentResponse, error) ListComment4Video(ctx context.Context, in *ListComment4VideoRequest, opts ...grpc.CallOption) (*ListComment4VideoResponse, error) GetCommentById(ctx context.Context, in *GetCommentByIdRequest, opts ...grpc.CallOption) (*GetCommentByIdResponse, error) CountComment4Video(ctx context.Context, in *CountComment4VideoRequest, opts ...grpc.CallOption) (*CountComment4VideoResponse, error) CountComment4User(ctx context.Context, in *CountComment4UserRequest, opts ...grpc.CallOption) (*CountComment4UserResponse, error) }
CommentServiceClient is the client API for CommentService 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 NewCommentServiceClient ¶
func NewCommentServiceClient(cc grpc.ClientConnInterface) CommentServiceClient
type CommentServiceServer ¶
type CommentServiceServer interface { CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentResponse, error) RemoveComment(context.Context, *RemoveCommentRequest) (*RemoveCommentResponse, error) ListComment4Video(context.Context, *ListComment4VideoRequest) (*ListComment4VideoResponse, error) GetCommentById(context.Context, *GetCommentByIdRequest) (*GetCommentByIdResponse, error) CountComment4Video(context.Context, *CountComment4VideoRequest) (*CountComment4VideoResponse, error) CountComment4User(context.Context, *CountComment4UserRequest) (*CountComment4UserResponse, error) // contains filtered or unexported methods }
CommentServiceServer is the server API for CommentService service. All implementations must embed UnimplementedCommentServiceServer for forward compatibility
type CountComment4UserRequest ¶
type CountComment4UserRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id // contains filtered or unexported fields }
func (*CountComment4UserRequest) Descriptor
deprecated
func (*CountComment4UserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CountComment4UserRequest.ProtoReflect.Descriptor instead.
func (*CountComment4UserRequest) GetUserId ¶
func (x *CountComment4UserRequest) GetUserId() int64
func (*CountComment4UserRequest) ProtoMessage ¶
func (*CountComment4UserRequest) ProtoMessage()
func (*CountComment4UserRequest) ProtoReflect ¶
func (x *CountComment4UserRequest) ProtoReflect() protoreflect.Message
func (*CountComment4UserRequest) Reset ¶
func (x *CountComment4UserRequest) Reset()
func (*CountComment4UserRequest) String ¶
func (x *CountComment4UserRequest) String() string
type CountComment4UserResponse ¶
type CountComment4UserResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CountComment4UserResponse) Descriptor
deprecated
func (*CountComment4UserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CountComment4UserResponse.ProtoReflect.Descriptor instead.
func (*CountComment4UserResponse) GetCount ¶
func (x *CountComment4UserResponse) GetCount() int64
func (*CountComment4UserResponse) GetMeta ¶
func (x *CountComment4UserResponse) GetMeta() *Metadata
func (*CountComment4UserResponse) ProtoMessage ¶
func (*CountComment4UserResponse) ProtoMessage()
func (*CountComment4UserResponse) ProtoReflect ¶
func (x *CountComment4UserResponse) ProtoReflect() protoreflect.Message
func (*CountComment4UserResponse) Reset ¶
func (x *CountComment4UserResponse) Reset()
func (*CountComment4UserResponse) String ¶
func (x *CountComment4UserResponse) String() string
type CountComment4VideoRequest ¶
type CountComment4VideoRequest struct { VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id // contains filtered or unexported fields }
func (*CountComment4VideoRequest) Descriptor
deprecated
func (*CountComment4VideoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CountComment4VideoRequest.ProtoReflect.Descriptor instead.
func (*CountComment4VideoRequest) GetVideoId ¶
func (x *CountComment4VideoRequest) GetVideoId() int64
func (*CountComment4VideoRequest) ProtoMessage ¶
func (*CountComment4VideoRequest) ProtoMessage()
func (*CountComment4VideoRequest) ProtoReflect ¶
func (x *CountComment4VideoRequest) ProtoReflect() protoreflect.Message
func (*CountComment4VideoRequest) Reset ¶
func (x *CountComment4VideoRequest) Reset()
func (*CountComment4VideoRequest) String ¶
func (x *CountComment4VideoRequest) String() string
type CountComment4VideoResponse ¶
type CountComment4VideoResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CountComment4VideoResponse) Descriptor
deprecated
func (*CountComment4VideoResponse) Descriptor() ([]byte, []int)
Deprecated: Use CountComment4VideoResponse.ProtoReflect.Descriptor instead.
func (*CountComment4VideoResponse) GetCount ¶
func (x *CountComment4VideoResponse) GetCount() int64
func (*CountComment4VideoResponse) GetMeta ¶
func (x *CountComment4VideoResponse) GetMeta() *Metadata
func (*CountComment4VideoResponse) ProtoMessage ¶
func (*CountComment4VideoResponse) ProtoMessage()
func (*CountComment4VideoResponse) ProtoReflect ¶
func (x *CountComment4VideoResponse) ProtoReflect() protoreflect.Message
func (*CountComment4VideoResponse) Reset ¶
func (x *CountComment4VideoResponse) Reset()
func (*CountComment4VideoResponse) String ¶
func (x *CountComment4VideoResponse) String() string
type CountFavoriteRequest ¶
type CountFavoriteRequest struct { AggregateType FavoriteAggregateType `` /* 157-byte string literal not displayed */ Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CountFavoriteRequest) Descriptor
deprecated
func (*CountFavoriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CountFavoriteRequest.ProtoReflect.Descriptor instead.
func (*CountFavoriteRequest) GetAggregateType ¶
func (x *CountFavoriteRequest) GetAggregateType() FavoriteAggregateType
func (*CountFavoriteRequest) GetId ¶
func (x *CountFavoriteRequest) GetId() int64
func (*CountFavoriteRequest) ProtoMessage ¶
func (*CountFavoriteRequest) ProtoMessage()
func (*CountFavoriteRequest) ProtoReflect ¶
func (x *CountFavoriteRequest) ProtoReflect() protoreflect.Message
func (*CountFavoriteRequest) Reset ¶
func (x *CountFavoriteRequest) Reset()
func (*CountFavoriteRequest) String ¶
func (x *CountFavoriteRequest) String() string
type CountFavoriteResponse ¶
type CountFavoriteResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CountFavoriteResponse) Descriptor
deprecated
func (*CountFavoriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use CountFavoriteResponse.ProtoReflect.Descriptor instead.
func (*CountFavoriteResponse) GetCount ¶
func (x *CountFavoriteResponse) GetCount() int64
func (*CountFavoriteResponse) GetMeta ¶
func (x *CountFavoriteResponse) GetMeta() *Metadata
func (*CountFavoriteResponse) ProtoMessage ¶
func (*CountFavoriteResponse) ProtoMessage()
func (*CountFavoriteResponse) ProtoReflect ¶
func (x *CountFavoriteResponse) ProtoReflect() protoreflect.Message
func (*CountFavoriteResponse) Reset ¶
func (x *CountFavoriteResponse) Reset()
func (*CountFavoriteResponse) String ¶
func (x *CountFavoriteResponse) String() string
type CreateCollectionRequest ¶
type CreateCollectionRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*CreateCollectionRequest) Descriptor
deprecated
func (*CreateCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCollectionRequest.ProtoReflect.Descriptor instead.
func (*CreateCollectionRequest) GetDescription ¶
func (x *CreateCollectionRequest) GetDescription() string
func (*CreateCollectionRequest) GetName ¶
func (x *CreateCollectionRequest) GetName() string
func (*CreateCollectionRequest) GetUserId ¶
func (x *CreateCollectionRequest) GetUserId() int64
func (*CreateCollectionRequest) ProtoMessage ¶
func (*CreateCollectionRequest) ProtoMessage()
func (*CreateCollectionRequest) ProtoReflect ¶
func (x *CreateCollectionRequest) ProtoReflect() protoreflect.Message
func (*CreateCollectionRequest) Reset ¶
func (x *CreateCollectionRequest) Reset()
func (*CreateCollectionRequest) String ¶
func (x *CreateCollectionRequest) String() string
type CreateCollectionResponse ¶
type CreateCollectionResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*CreateCollectionResponse) Descriptor
deprecated
func (*CreateCollectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCollectionResponse.ProtoReflect.Descriptor instead.
func (*CreateCollectionResponse) GetMeta ¶
func (x *CreateCollectionResponse) GetMeta() *Metadata
func (*CreateCollectionResponse) ProtoMessage ¶
func (*CreateCollectionResponse) ProtoMessage()
func (*CreateCollectionResponse) ProtoReflect ¶
func (x *CreateCollectionResponse) ProtoReflect() protoreflect.Message
func (*CreateCollectionResponse) Reset ¶
func (x *CreateCollectionResponse) Reset()
func (*CreateCollectionResponse) String ¶
func (x *CreateCollectionResponse) String() string
type CreateCommentRequest ¶
type CreateCommentRequest struct { VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // 评论内容 // contains filtered or unexported fields }
func (*CreateCommentRequest) Descriptor
deprecated
func (*CreateCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead.
func (*CreateCommentRequest) GetContent ¶
func (x *CreateCommentRequest) GetContent() string
func (*CreateCommentRequest) GetUserId ¶
func (x *CreateCommentRequest) GetUserId() int64
func (*CreateCommentRequest) GetVideoId ¶
func (x *CreateCommentRequest) GetVideoId() int64
func (*CreateCommentRequest) ProtoMessage ¶
func (*CreateCommentRequest) ProtoMessage()
func (*CreateCommentRequest) ProtoReflect ¶
func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message
func (*CreateCommentRequest) Reset ¶
func (x *CreateCommentRequest) Reset()
func (*CreateCommentRequest) String ¶
func (x *CreateCommentRequest) String() string
type CreateCommentResponse ¶
type CreateCommentResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Comment *Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*CreateCommentResponse) Descriptor
deprecated
func (*CreateCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCommentResponse.ProtoReflect.Descriptor instead.
func (*CreateCommentResponse) GetComment ¶
func (x *CreateCommentResponse) GetComment() *Comment
func (*CreateCommentResponse) GetMeta ¶
func (x *CreateCommentResponse) GetMeta() *Metadata
func (*CreateCommentResponse) ProtoMessage ¶
func (*CreateCommentResponse) ProtoMessage()
func (*CreateCommentResponse) ProtoReflect ¶
func (x *CreateCommentResponse) ProtoReflect() protoreflect.Message
func (*CreateCommentResponse) Reset ¶
func (x *CreateCommentResponse) Reset()
func (*CreateCommentResponse) String ¶
func (x *CreateCommentResponse) String() string
type CreateUserRequest ¶
type CreateUserRequest struct { Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` AccountId int64 `protobuf:"varint,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetAccountId ¶
func (x *CreateUserRequest) GetAccountId() int64
func (*CreateUserRequest) GetEmail ¶
func (x *CreateUserRequest) GetEmail() string
func (*CreateUserRequest) GetMobile ¶
func (x *CreateUserRequest) GetMobile() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
func (*CreateUserRequest) Validate ¶
func (m *CreateUserRequest) Validate() error
Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateUserRequest) ValidateAll ¶
func (m *CreateUserRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserRequestMultiError, or nil if none found.
type CreateUserRequestMultiError ¶
type CreateUserRequestMultiError []error
CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserRequestMultiError) AllErrors ¶
func (m CreateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserRequestMultiError) Error ¶
func (m CreateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserRequestValidationError ¶
type CreateUserRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.
func (CreateUserRequestValidationError) Cause ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
Reason function returns reason value.
type CreateUserResponse ¶
type CreateUserResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetMeta ¶
func (x *CreateUserResponse) GetMeta() *Metadata
func (*CreateUserResponse) GetUserId ¶
func (x *CreateUserResponse) GetUserId() int64
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
func (*CreateUserResponse) Validate ¶
func (m *CreateUserResponse) Validate() error
Validate checks the field values on CreateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateUserResponse) ValidateAll ¶
func (m *CreateUserResponse) ValidateAll() error
ValidateAll checks the field values on CreateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserResponseMultiError, or nil if none found.
type CreateUserResponseMultiError ¶
type CreateUserResponseMultiError []error
CreateUserResponseMultiError is an error wrapping multiple validation errors returned by CreateUserResponse.ValidateAll() if the designated constraints aren't met.
func (CreateUserResponseMultiError) AllErrors ¶
func (m CreateUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserResponseMultiError) Error ¶
func (m CreateUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserResponseValidationError ¶
type CreateUserResponseValidationError struct {
// contains filtered or unexported fields
}
CreateUserResponseValidationError is the validation error returned by CreateUserResponse.Validate if the designated constraints aren't met.
func (CreateUserResponseValidationError) Cause ¶
func (e CreateUserResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateUserResponseValidationError) Error ¶
func (e CreateUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserResponseValidationError) ErrorName ¶
func (e CreateUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserResponseValidationError) Field ¶
func (e CreateUserResponseValidationError) Field() string
Field function returns field value.
func (CreateUserResponseValidationError) Key ¶
func (e CreateUserResponseValidationError) Key() bool
Key function returns key value.
func (CreateUserResponseValidationError) Reason ¶
func (e CreateUserResponseValidationError) Reason() string
Reason function returns reason value.
type FavoriteAggregateType ¶
type FavoriteAggregateType int32
const ( FavoriteAggregateType_BY_VIDEO FavoriteAggregateType = 0 FavoriteAggregateType_BY_COMMENT FavoriteAggregateType = 1 FavoriteAggregateType_BY_USER FavoriteAggregateType = 2 )
func (FavoriteAggregateType) Descriptor ¶
func (FavoriteAggregateType) Descriptor() protoreflect.EnumDescriptor
func (FavoriteAggregateType) Enum ¶
func (x FavoriteAggregateType) Enum() *FavoriteAggregateType
func (FavoriteAggregateType) EnumDescriptor
deprecated
func (FavoriteAggregateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FavoriteAggregateType.Descriptor instead.
func (FavoriteAggregateType) Number ¶
func (x FavoriteAggregateType) Number() protoreflect.EnumNumber
func (FavoriteAggregateType) String ¶
func (x FavoriteAggregateType) String() string
func (FavoriteAggregateType) Type ¶
func (FavoriteAggregateType) Type() protoreflect.EnumType
type FavoriteServiceClient ¶
type FavoriteServiceClient interface { AddFavorite(ctx context.Context, in *AddFavoriteRequest, opts ...grpc.CallOption) (*AddFavoriteResponse, error) RemoveFavorite(ctx context.Context, in *RemoveFavoriteRequest, opts ...grpc.CallOption) (*RemoveFavoriteResponse, error) ListFavorite(ctx context.Context, in *ListFavoriteRequest, opts ...grpc.CallOption) (*ListFavoriteResponse, error) CountFavorite(ctx context.Context, in *CountFavoriteRequest, opts ...grpc.CallOption) (*CountFavoriteResponse, error) IsFavorite(ctx context.Context, in *IsFavoriteRequest, opts ...grpc.CallOption) (*IsFavoriteResponse, error) }
FavoriteServiceClient is the client API for FavoriteService 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 NewFavoriteServiceClient ¶
func NewFavoriteServiceClient(cc grpc.ClientConnInterface) FavoriteServiceClient
type FavoriteServiceServer ¶
type FavoriteServiceServer interface { AddFavorite(context.Context, *AddFavoriteRequest) (*AddFavoriteResponse, error) RemoveFavorite(context.Context, *RemoveFavoriteRequest) (*RemoveFavoriteResponse, error) ListFavorite(context.Context, *ListFavoriteRequest) (*ListFavoriteResponse, error) CountFavorite(context.Context, *CountFavoriteRequest) (*CountFavoriteResponse, error) IsFavorite(context.Context, *IsFavoriteRequest) (*IsFavoriteResponse, error) // contains filtered or unexported methods }
FavoriteServiceServer is the server API for FavoriteService service. All implementations must embed UnimplementedFavoriteServiceServer for forward compatibility
type FavoriteTarget ¶
type FavoriteTarget int32
const ( FavoriteTarget_VIDEO FavoriteTarget = 0 FavoriteTarget_COMMENT FavoriteTarget = 1 )
func (FavoriteTarget) Descriptor ¶
func (FavoriteTarget) Descriptor() protoreflect.EnumDescriptor
func (FavoriteTarget) Enum ¶
func (x FavoriteTarget) Enum() *FavoriteTarget
func (FavoriteTarget) EnumDescriptor
deprecated
func (FavoriteTarget) EnumDescriptor() ([]byte, []int)
Deprecated: Use FavoriteTarget.Descriptor instead.
func (FavoriteTarget) Number ¶
func (x FavoriteTarget) Number() protoreflect.EnumNumber
func (FavoriteTarget) String ¶
func (x FavoriteTarget) String() string
func (FavoriteTarget) Type ¶
func (FavoriteTarget) Type() protoreflect.EnumType
type FavoriteType ¶
type FavoriteType int32
const ( FavoriteType_FAVORITE FavoriteType = 0 // 点赞 FavoriteType_UNLIKE FavoriteType = 1 // 点踩 )
func (FavoriteType) Descriptor ¶
func (FavoriteType) Descriptor() protoreflect.EnumDescriptor
func (FavoriteType) Enum ¶
func (x FavoriteType) Enum() *FavoriteType
func (FavoriteType) EnumDescriptor
deprecated
func (FavoriteType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FavoriteType.Descriptor instead.
func (FavoriteType) Number ¶
func (x FavoriteType) Number() protoreflect.EnumNumber
func (FavoriteType) String ¶
func (x FavoriteType) String() string
func (FavoriteType) Type ¶
func (FavoriteType) Type() protoreflect.EnumType
type FeedShortVideoRequest ¶
type FeedShortVideoRequest struct { LatestTime int64 `protobuf:"varint,1,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"` // 可选参数,限制返回视频的最新投稿时间戳,精确到秒,不填表示当前时间 UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` FeedNum int64 `protobuf:"varint,3,opt,name=feed_num,json=feedNum,proto3" json:"feed_num,omitempty"` // 返回视频的数量 // contains filtered or unexported fields }
func (*FeedShortVideoRequest) Descriptor
deprecated
func (*FeedShortVideoRequest) Descriptor() ([]byte, []int)
Deprecated: Use FeedShortVideoRequest.ProtoReflect.Descriptor instead.
func (*FeedShortVideoRequest) GetFeedNum ¶
func (x *FeedShortVideoRequest) GetFeedNum() int64
func (*FeedShortVideoRequest) GetLatestTime ¶
func (x *FeedShortVideoRequest) GetLatestTime() int64
func (*FeedShortVideoRequest) GetUserId ¶
func (x *FeedShortVideoRequest) GetUserId() int64
func (*FeedShortVideoRequest) ProtoMessage ¶
func (*FeedShortVideoRequest) ProtoMessage()
func (*FeedShortVideoRequest) ProtoReflect ¶
func (x *FeedShortVideoRequest) ProtoReflect() protoreflect.Message
func (*FeedShortVideoRequest) Reset ¶
func (x *FeedShortVideoRequest) Reset()
func (*FeedShortVideoRequest) String ¶
func (x *FeedShortVideoRequest) String() string
type FeedShortVideoResponse ¶
type FeedShortVideoResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Videos []*Video `protobuf:"bytes,2,rep,name=videos,proto3" json:"videos,omitempty"` // contains filtered or unexported fields }
func (*FeedShortVideoResponse) Descriptor
deprecated
func (*FeedShortVideoResponse) Descriptor() ([]byte, []int)
Deprecated: Use FeedShortVideoResponse.ProtoReflect.Descriptor instead.
func (*FeedShortVideoResponse) GetMeta ¶
func (x *FeedShortVideoResponse) GetMeta() *Metadata
func (*FeedShortVideoResponse) GetVideos ¶
func (x *FeedShortVideoResponse) GetVideos() []*Video
func (*FeedShortVideoResponse) ProtoMessage ¶
func (*FeedShortVideoResponse) ProtoMessage()
func (*FeedShortVideoResponse) ProtoReflect ¶
func (x *FeedShortVideoResponse) ProtoReflect() protoreflect.Message
func (*FeedShortVideoResponse) Reset ¶
func (x *FeedShortVideoResponse) Reset()
func (*FeedShortVideoResponse) String ¶
func (x *FeedShortVideoResponse) String() string
type FollowServiceClient ¶
type FollowServiceClient interface { AddFollow(ctx context.Context, in *AddFollowRequest, opts ...grpc.CallOption) (*AddFollowResponse, error) RemoveFollow(ctx context.Context, in *RemoveFollowRequest, opts ...grpc.CallOption) (*RemoveFollowResponse, error) ListFollowing(ctx context.Context, in *ListFollowingRequest, opts ...grpc.CallOption) (*ListFollowingResponse, error) }
FollowServiceClient is the client API for FollowService 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 NewFollowServiceClient ¶
func NewFollowServiceClient(cc grpc.ClientConnInterface) FollowServiceClient
type FollowServiceServer ¶
type FollowServiceServer interface { AddFollow(context.Context, *AddFollowRequest) (*AddFollowResponse, error) RemoveFollow(context.Context, *RemoveFollowRequest) (*RemoveFollowResponse, error) ListFollowing(context.Context, *ListFollowingRequest) (*ListFollowingResponse, error) // contains filtered or unexported methods }
FollowServiceServer is the server API for FollowService service. All implementations must embed UnimplementedFollowServiceServer for forward compatibility
type FollowType ¶
type FollowType int32
const ( FollowType_FOLLOWING FollowType = 0 FollowType_FOLLOWER FollowType = 1 FollowType_BOTH FollowType = 2 )
func (FollowType) Descriptor ¶
func (FollowType) Descriptor() protoreflect.EnumDescriptor
func (FollowType) Enum ¶
func (x FollowType) Enum() *FollowType
func (FollowType) EnumDescriptor
deprecated
func (FollowType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FollowType.Descriptor instead.
func (FollowType) Number ¶
func (x FollowType) Number() protoreflect.EnumNumber
func (FollowType) String ¶
func (x FollowType) String() string
func (FollowType) Type ¶
func (FollowType) Type() protoreflect.EnumType
type GetCollectionByIdRequest ¶
type GetCollectionByIdRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCollectionByIdRequest) Descriptor
deprecated
func (*GetCollectionByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCollectionByIdRequest.ProtoReflect.Descriptor instead.
func (*GetCollectionByIdRequest) GetId ¶
func (x *GetCollectionByIdRequest) GetId() int64
func (*GetCollectionByIdRequest) ProtoMessage ¶
func (*GetCollectionByIdRequest) ProtoMessage()
func (*GetCollectionByIdRequest) ProtoReflect ¶
func (x *GetCollectionByIdRequest) ProtoReflect() protoreflect.Message
func (*GetCollectionByIdRequest) Reset ¶
func (x *GetCollectionByIdRequest) Reset()
func (*GetCollectionByIdRequest) String ¶
func (x *GetCollectionByIdRequest) String() string
type GetCollectionByIdResponse ¶
type GetCollectionByIdResponse struct { Collection *Collection `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` Meta *Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*GetCollectionByIdResponse) Descriptor
deprecated
func (*GetCollectionByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCollectionByIdResponse.ProtoReflect.Descriptor instead.
func (*GetCollectionByIdResponse) GetCollection ¶
func (x *GetCollectionByIdResponse) GetCollection() *Collection
func (*GetCollectionByIdResponse) GetMeta ¶
func (x *GetCollectionByIdResponse) GetMeta() *Metadata
func (*GetCollectionByIdResponse) ProtoMessage ¶
func (*GetCollectionByIdResponse) ProtoMessage()
func (*GetCollectionByIdResponse) ProtoReflect ¶
func (x *GetCollectionByIdResponse) ProtoReflect() protoreflect.Message
func (*GetCollectionByIdResponse) Reset ¶
func (x *GetCollectionByIdResponse) Reset()
func (*GetCollectionByIdResponse) String ¶
func (x *GetCollectionByIdResponse) String() string
type GetCommentByIdRequest ¶
type GetCommentByIdRequest struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论id // contains filtered or unexported fields }
func (*GetCommentByIdRequest) Descriptor
deprecated
func (*GetCommentByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCommentByIdRequest.ProtoReflect.Descriptor instead.
func (*GetCommentByIdRequest) GetCommentId ¶
func (x *GetCommentByIdRequest) GetCommentId() int64
func (*GetCommentByIdRequest) ProtoMessage ¶
func (*GetCommentByIdRequest) ProtoMessage()
func (*GetCommentByIdRequest) ProtoReflect ¶
func (x *GetCommentByIdRequest) ProtoReflect() protoreflect.Message
func (*GetCommentByIdRequest) Reset ¶
func (x *GetCommentByIdRequest) Reset()
func (*GetCommentByIdRequest) String ¶
func (x *GetCommentByIdRequest) String() string
type GetCommentByIdResponse ¶
type GetCommentByIdResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Comment *Comment `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*GetCommentByIdResponse) Descriptor
deprecated
func (*GetCommentByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCommentByIdResponse.ProtoReflect.Descriptor instead.
func (*GetCommentByIdResponse) GetComment ¶
func (x *GetCommentByIdResponse) GetComment() *Comment
func (*GetCommentByIdResponse) GetMeta ¶
func (x *GetCommentByIdResponse) GetMeta() *Metadata
func (*GetCommentByIdResponse) ProtoMessage ¶
func (*GetCommentByIdResponse) ProtoMessage()
func (*GetCommentByIdResponse) ProtoReflect ¶
func (x *GetCommentByIdResponse) ProtoReflect() protoreflect.Message
func (*GetCommentByIdResponse) Reset ¶
func (x *GetCommentByIdResponse) Reset()
func (*GetCommentByIdResponse) String ¶
func (x *GetCommentByIdResponse) String() string
type GetUserByIdListRequest ¶
type GetUserByIdListRequest struct { UserIdList []int64 `protobuf:"varint,1,rep,packed,name=user_id_list,json=userIdList,proto3" json:"user_id_list,omitempty"` // contains filtered or unexported fields }
func (*GetUserByIdListRequest) Descriptor
deprecated
func (*GetUserByIdListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByIdListRequest.ProtoReflect.Descriptor instead.
func (*GetUserByIdListRequest) GetUserIdList ¶
func (x *GetUserByIdListRequest) GetUserIdList() []int64
func (*GetUserByIdListRequest) ProtoMessage ¶
func (*GetUserByIdListRequest) ProtoMessage()
func (*GetUserByIdListRequest) ProtoReflect ¶
func (x *GetUserByIdListRequest) ProtoReflect() protoreflect.Message
func (*GetUserByIdListRequest) Reset ¶
func (x *GetUserByIdListRequest) Reset()
func (*GetUserByIdListRequest) String ¶
func (x *GetUserByIdListRequest) String() string
type GetUserByIdListResponse ¶
type GetUserByIdListResponse struct { UserList []*User `protobuf:"bytes,1,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"` Meta *Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*GetUserByIdListResponse) Descriptor
deprecated
func (*GetUserByIdListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserByIdListResponse.ProtoReflect.Descriptor instead.
func (*GetUserByIdListResponse) GetMeta ¶
func (x *GetUserByIdListResponse) GetMeta() *Metadata
func (*GetUserByIdListResponse) GetUserList ¶
func (x *GetUserByIdListResponse) GetUserList() []*User
func (*GetUserByIdListResponse) ProtoMessage ¶
func (*GetUserByIdListResponse) ProtoMessage()
func (*GetUserByIdListResponse) ProtoReflect ¶
func (x *GetUserByIdListResponse) ProtoReflect() protoreflect.Message
func (*GetUserByIdListResponse) Reset ¶
func (x *GetUserByIdListResponse) Reset()
func (*GetUserByIdListResponse) String ¶
func (x *GetUserByIdListResponse) String() string
type GetUserInfoRequest ¶
type GetUserInfoRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` AccountId int64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserInfoRequest) Descriptor
deprecated
func (*GetUserInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.
func (*GetUserInfoRequest) GetAccountId ¶
func (x *GetUserInfoRequest) GetAccountId() int64
func (*GetUserInfoRequest) GetUserId ¶
func (x *GetUserInfoRequest) GetUserId() int64
func (*GetUserInfoRequest) ProtoMessage ¶
func (*GetUserInfoRequest) ProtoMessage()
func (*GetUserInfoRequest) ProtoReflect ¶
func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message
func (*GetUserInfoRequest) Reset ¶
func (x *GetUserInfoRequest) Reset()
func (*GetUserInfoRequest) String ¶
func (x *GetUserInfoRequest) String() string
func (*GetUserInfoRequest) Validate ¶
func (m *GetUserInfoRequest) Validate() error
Validate checks the field values on GetUserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUserInfoRequest) ValidateAll ¶
func (m *GetUserInfoRequest) ValidateAll() error
ValidateAll checks the field values on GetUserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserInfoRequestMultiError, or nil if none found.
type GetUserInfoRequestMultiError ¶
type GetUserInfoRequestMultiError []error
GetUserInfoRequestMultiError is an error wrapping multiple validation errors returned by GetUserInfoRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserInfoRequestMultiError) AllErrors ¶
func (m GetUserInfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserInfoRequestMultiError) Error ¶
func (m GetUserInfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserInfoRequestValidationError ¶
type GetUserInfoRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserInfoRequestValidationError is the validation error returned by GetUserInfoRequest.Validate if the designated constraints aren't met.
func (GetUserInfoRequestValidationError) Cause ¶
func (e GetUserInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserInfoRequestValidationError) Error ¶
func (e GetUserInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserInfoRequestValidationError) ErrorName ¶
func (e GetUserInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserInfoRequestValidationError) Field ¶
func (e GetUserInfoRequestValidationError) Field() string
Field function returns field value.
func (GetUserInfoRequestValidationError) Key ¶
func (e GetUserInfoRequestValidationError) Key() bool
Key function returns key value.
func (GetUserInfoRequestValidationError) Reason ¶
func (e GetUserInfoRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserInfoResponse ¶
type GetUserInfoResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserInfoResponse) Descriptor
deprecated
func (*GetUserInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.
func (*GetUserInfoResponse) GetMeta ¶
func (x *GetUserInfoResponse) GetMeta() *Metadata
func (*GetUserInfoResponse) GetUser ¶
func (x *GetUserInfoResponse) GetUser() *User
func (*GetUserInfoResponse) ProtoMessage ¶
func (*GetUserInfoResponse) ProtoMessage()
func (*GetUserInfoResponse) ProtoReflect ¶
func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message
func (*GetUserInfoResponse) Reset ¶
func (x *GetUserInfoResponse) Reset()
func (*GetUserInfoResponse) String ¶
func (x *GetUserInfoResponse) String() string
func (*GetUserInfoResponse) Validate ¶
func (m *GetUserInfoResponse) Validate() error
Validate checks the field values on GetUserInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUserInfoResponse) ValidateAll ¶
func (m *GetUserInfoResponse) ValidateAll() error
ValidateAll checks the field values on GetUserInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserInfoResponseMultiError, or nil if none found.
type GetUserInfoResponseMultiError ¶
type GetUserInfoResponseMultiError []error
GetUserInfoResponseMultiError is an error wrapping multiple validation errors returned by GetUserInfoResponse.ValidateAll() if the designated constraints aren't met.
func (GetUserInfoResponseMultiError) AllErrors ¶
func (m GetUserInfoResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserInfoResponseMultiError) Error ¶
func (m GetUserInfoResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserInfoResponseValidationError ¶
type GetUserInfoResponseValidationError struct {
// contains filtered or unexported fields
}
GetUserInfoResponseValidationError is the validation error returned by GetUserInfoResponse.Validate if the designated constraints aren't met.
func (GetUserInfoResponseValidationError) Cause ¶
func (e GetUserInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUserInfoResponseValidationError) Error ¶
func (e GetUserInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserInfoResponseValidationError) ErrorName ¶
func (e GetUserInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserInfoResponseValidationError) Field ¶
func (e GetUserInfoResponseValidationError) Field() string
Field function returns field value.
func (GetUserInfoResponseValidationError) Key ¶
func (e GetUserInfoResponseValidationError) Key() bool
Key function returns key value.
func (GetUserInfoResponseValidationError) Reason ¶
func (e GetUserInfoResponseValidationError) Reason() string
Reason function returns reason value.
type GetVideoByIdListRequest ¶
type GetVideoByIdListRequest struct { VideoIdList []int64 `protobuf:"varint,1,rep,packed,name=video_id_list,json=videoIdList,proto3" json:"video_id_list,omitempty"` // contains filtered or unexported fields }
func (*GetVideoByIdListRequest) Descriptor
deprecated
func (*GetVideoByIdListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVideoByIdListRequest.ProtoReflect.Descriptor instead.
func (*GetVideoByIdListRequest) GetVideoIdList ¶
func (x *GetVideoByIdListRequest) GetVideoIdList() []int64
func (*GetVideoByIdListRequest) ProtoMessage ¶
func (*GetVideoByIdListRequest) ProtoMessage()
func (*GetVideoByIdListRequest) ProtoReflect ¶
func (x *GetVideoByIdListRequest) ProtoReflect() protoreflect.Message
func (*GetVideoByIdListRequest) Reset ¶
func (x *GetVideoByIdListRequest) Reset()
func (*GetVideoByIdListRequest) String ¶
func (x *GetVideoByIdListRequest) String() string
type GetVideoByIdListResponse ¶
type GetVideoByIdListResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Videos []*Video `protobuf:"bytes,2,rep,name=videos,proto3" json:"videos,omitempty"` // contains filtered or unexported fields }
func (*GetVideoByIdListResponse) Descriptor
deprecated
func (*GetVideoByIdListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVideoByIdListResponse.ProtoReflect.Descriptor instead.
func (*GetVideoByIdListResponse) GetMeta ¶
func (x *GetVideoByIdListResponse) GetMeta() *Metadata
func (*GetVideoByIdListResponse) GetVideos ¶
func (x *GetVideoByIdListResponse) GetVideos() []*Video
func (*GetVideoByIdListResponse) ProtoMessage ¶
func (*GetVideoByIdListResponse) ProtoMessage()
func (*GetVideoByIdListResponse) ProtoReflect ¶
func (x *GetVideoByIdListResponse) ProtoReflect() protoreflect.Message
func (*GetVideoByIdListResponse) Reset ¶
func (x *GetVideoByIdListResponse) Reset()
func (*GetVideoByIdListResponse) String ¶
func (x *GetVideoByIdListResponse) String() string
type GetVideoByIdRequest ¶
type GetVideoByIdRequest struct { VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // contains filtered or unexported fields }
func (*GetVideoByIdRequest) Descriptor
deprecated
func (*GetVideoByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVideoByIdRequest.ProtoReflect.Descriptor instead.
func (*GetVideoByIdRequest) GetVideoId ¶
func (x *GetVideoByIdRequest) GetVideoId() int64
func (*GetVideoByIdRequest) ProtoMessage ¶
func (*GetVideoByIdRequest) ProtoMessage()
func (*GetVideoByIdRequest) ProtoReflect ¶
func (x *GetVideoByIdRequest) ProtoReflect() protoreflect.Message
func (*GetVideoByIdRequest) Reset ¶
func (x *GetVideoByIdRequest) Reset()
func (*GetVideoByIdRequest) String ¶
func (x *GetVideoByIdRequest) String() string
type GetVideoByIdResponse ¶
type GetVideoByIdResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Video *Video `protobuf:"bytes,2,opt,name=video,proto3" json:"video,omitempty"` // contains filtered or unexported fields }
func (*GetVideoByIdResponse) Descriptor
deprecated
func (*GetVideoByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVideoByIdResponse.ProtoReflect.Descriptor instead.
func (*GetVideoByIdResponse) GetMeta ¶
func (x *GetVideoByIdResponse) GetMeta() *Metadata
func (*GetVideoByIdResponse) GetVideo ¶
func (x *GetVideoByIdResponse) GetVideo() *Video
func (*GetVideoByIdResponse) ProtoMessage ¶
func (*GetVideoByIdResponse) ProtoMessage()
func (*GetVideoByIdResponse) ProtoReflect ¶
func (x *GetVideoByIdResponse) ProtoReflect() protoreflect.Message
func (*GetVideoByIdResponse) Reset ¶
func (x *GetVideoByIdResponse) Reset()
func (*GetVideoByIdResponse) String ¶
func (x *GetVideoByIdResponse) String() string
type IsFavoriteRequest ¶
type IsFavoriteRequest struct { Target FavoriteTarget `protobuf:"varint,1,opt,name=target,proto3,enum=shortVideoCoreService.api.v1.FavoriteTarget" json:"target,omitempty"` Type FavoriteType `protobuf:"varint,2,opt,name=type,proto3,enum=shortVideoCoreService.api.v1.FavoriteType" json:"type,omitempty"` BizId int64 `protobuf:"varint,3,opt,name=biz_id,json=bizId,proto3" json:"biz_id,omitempty"` UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*IsFavoriteRequest) Descriptor
deprecated
func (*IsFavoriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsFavoriteRequest.ProtoReflect.Descriptor instead.
func (*IsFavoriteRequest) GetBizId ¶
func (x *IsFavoriteRequest) GetBizId() int64
func (*IsFavoriteRequest) GetTarget ¶
func (x *IsFavoriteRequest) GetTarget() FavoriteTarget
func (*IsFavoriteRequest) GetType ¶
func (x *IsFavoriteRequest) GetType() FavoriteType
func (*IsFavoriteRequest) GetUserId ¶
func (x *IsFavoriteRequest) GetUserId() int64
func (*IsFavoriteRequest) ProtoMessage ¶
func (*IsFavoriteRequest) ProtoMessage()
func (*IsFavoriteRequest) ProtoReflect ¶
func (x *IsFavoriteRequest) ProtoReflect() protoreflect.Message
func (*IsFavoriteRequest) Reset ¶
func (x *IsFavoriteRequest) Reset()
func (*IsFavoriteRequest) String ¶
func (x *IsFavoriteRequest) String() string
type IsFavoriteResponse ¶
type IsFavoriteResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` IsFavorite bool `protobuf:"varint,2,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,omitempty"` // contains filtered or unexported fields }
func (*IsFavoriteResponse) Descriptor
deprecated
func (*IsFavoriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsFavoriteResponse.ProtoReflect.Descriptor instead.
func (*IsFavoriteResponse) GetIsFavorite ¶
func (x *IsFavoriteResponse) GetIsFavorite() bool
func (*IsFavoriteResponse) GetMeta ¶
func (x *IsFavoriteResponse) GetMeta() *Metadata
func (*IsFavoriteResponse) ProtoMessage ¶
func (*IsFavoriteResponse) ProtoMessage()
func (*IsFavoriteResponse) ProtoReflect ¶
func (x *IsFavoriteResponse) ProtoReflect() protoreflect.Message
func (*IsFavoriteResponse) Reset ¶
func (x *IsFavoriteResponse) Reset()
func (*IsFavoriteResponse) String ¶
func (x *IsFavoriteResponse) String() string
type ListCollectionRequest ¶
type ListCollectionRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListCollectionRequest) Descriptor
deprecated
func (*ListCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionRequest.ProtoReflect.Descriptor instead.
func (*ListCollectionRequest) GetPagination ¶
func (x *ListCollectionRequest) GetPagination() *PaginationRequest
func (*ListCollectionRequest) GetUserId ¶
func (x *ListCollectionRequest) GetUserId() int64
func (*ListCollectionRequest) ProtoMessage ¶
func (*ListCollectionRequest) ProtoMessage()
func (*ListCollectionRequest) ProtoReflect ¶
func (x *ListCollectionRequest) ProtoReflect() protoreflect.Message
func (*ListCollectionRequest) Reset ¶
func (x *ListCollectionRequest) Reset()
func (*ListCollectionRequest) String ¶
func (x *ListCollectionRequest) String() string
type ListCollectionResponse ¶
type ListCollectionResponse struct { Collections []*Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"` Meta *Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*ListCollectionResponse) Descriptor
deprecated
func (*ListCollectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionResponse.ProtoReflect.Descriptor instead.
func (*ListCollectionResponse) GetCollections ¶
func (x *ListCollectionResponse) GetCollections() []*Collection
func (*ListCollectionResponse) GetMeta ¶
func (x *ListCollectionResponse) GetMeta() *Metadata
func (*ListCollectionResponse) ProtoMessage ¶
func (*ListCollectionResponse) ProtoMessage()
func (*ListCollectionResponse) ProtoReflect ¶
func (x *ListCollectionResponse) ProtoReflect() protoreflect.Message
func (*ListCollectionResponse) Reset ¶
func (x *ListCollectionResponse) Reset()
func (*ListCollectionResponse) String ¶
func (x *ListCollectionResponse) String() string
type ListCollectionVideoRequest ¶
type ListCollectionVideoRequest struct { CollectionId int64 `protobuf:"varint,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListCollectionVideoRequest) Descriptor
deprecated
func (*ListCollectionVideoRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionVideoRequest.ProtoReflect.Descriptor instead.
func (*ListCollectionVideoRequest) GetCollectionId ¶
func (x *ListCollectionVideoRequest) GetCollectionId() int64
func (*ListCollectionVideoRequest) GetPagination ¶
func (x *ListCollectionVideoRequest) GetPagination() *PaginationRequest
func (*ListCollectionVideoRequest) ProtoMessage ¶
func (*ListCollectionVideoRequest) ProtoMessage()
func (*ListCollectionVideoRequest) ProtoReflect ¶
func (x *ListCollectionVideoRequest) ProtoReflect() protoreflect.Message
func (*ListCollectionVideoRequest) Reset ¶
func (x *ListCollectionVideoRequest) Reset()
func (*ListCollectionVideoRequest) String ¶
func (x *ListCollectionVideoRequest) String() string
type ListCollectionVideoResponse ¶
type ListCollectionVideoResponse struct { VideoIdList []int64 `protobuf:"varint,1,rep,packed,name=video_id_list,json=videoIdList,proto3" json:"video_id_list,omitempty"` Meta *Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*ListCollectionVideoResponse) Descriptor
deprecated
func (*ListCollectionVideoResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionVideoResponse.ProtoReflect.Descriptor instead.
func (*ListCollectionVideoResponse) GetMeta ¶
func (x *ListCollectionVideoResponse) GetMeta() *Metadata
func (*ListCollectionVideoResponse) GetVideoIdList ¶
func (x *ListCollectionVideoResponse) GetVideoIdList() []int64
func (*ListCollectionVideoResponse) ProtoMessage ¶
func (*ListCollectionVideoResponse) ProtoMessage()
func (*ListCollectionVideoResponse) ProtoReflect ¶
func (x *ListCollectionVideoResponse) ProtoReflect() protoreflect.Message
func (*ListCollectionVideoResponse) Reset ¶
func (x *ListCollectionVideoResponse) Reset()
func (*ListCollectionVideoResponse) String ¶
func (x *ListCollectionVideoResponse) String() string
type ListComment4VideoRequest ¶
type ListComment4VideoRequest struct { VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id Pagination *PaginationRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListComment4VideoRequest) Descriptor
deprecated
func (*ListComment4VideoRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListComment4VideoRequest.ProtoReflect.Descriptor instead.
func (*ListComment4VideoRequest) GetPagination ¶
func (x *ListComment4VideoRequest) GetPagination() *PaginationRequest
func (*ListComment4VideoRequest) GetVideoId ¶
func (x *ListComment4VideoRequest) GetVideoId() int64
func (*ListComment4VideoRequest) ProtoMessage ¶
func (*ListComment4VideoRequest) ProtoMessage()
func (*ListComment4VideoRequest) ProtoReflect ¶
func (x *ListComment4VideoRequest) ProtoReflect() protoreflect.Message
func (*ListComment4VideoRequest) Reset ¶
func (x *ListComment4VideoRequest) Reset()
func (*ListComment4VideoRequest) String ¶
func (x *ListComment4VideoRequest) String() string
type ListComment4VideoResponse ¶
type ListComment4VideoResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Comments []*Comment `protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"` Pagination *PaginationResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListComment4VideoResponse) Descriptor
deprecated
func (*ListComment4VideoResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListComment4VideoResponse.ProtoReflect.Descriptor instead.
func (*ListComment4VideoResponse) GetComments ¶
func (x *ListComment4VideoResponse) GetComments() []*Comment
func (*ListComment4VideoResponse) GetMeta ¶
func (x *ListComment4VideoResponse) GetMeta() *Metadata
func (*ListComment4VideoResponse) GetPagination ¶
func (x *ListComment4VideoResponse) GetPagination() *PaginationResponse
func (*ListComment4VideoResponse) ProtoMessage ¶
func (*ListComment4VideoResponse) ProtoMessage()
func (*ListComment4VideoResponse) ProtoReflect ¶
func (x *ListComment4VideoResponse) ProtoReflect() protoreflect.Message
func (*ListComment4VideoResponse) Reset ¶
func (x *ListComment4VideoResponse) Reset()
func (*ListComment4VideoResponse) String ¶
func (x *ListComment4VideoResponse) String() string
type ListFavoriteRequest ¶
type ListFavoriteRequest struct { AggregateType FavoriteAggregateType `` /* 157-byte string literal not displayed */ Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Pagination *PaginationRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListFavoriteRequest) Descriptor
deprecated
func (*ListFavoriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFavoriteRequest.ProtoReflect.Descriptor instead.
func (*ListFavoriteRequest) GetAggregateType ¶
func (x *ListFavoriteRequest) GetAggregateType() FavoriteAggregateType
func (*ListFavoriteRequest) GetId ¶
func (x *ListFavoriteRequest) GetId() int64
func (*ListFavoriteRequest) GetPagination ¶
func (x *ListFavoriteRequest) GetPagination() *PaginationRequest
func (*ListFavoriteRequest) ProtoMessage ¶
func (*ListFavoriteRequest) ProtoMessage()
func (*ListFavoriteRequest) ProtoReflect ¶
func (x *ListFavoriteRequest) ProtoReflect() protoreflect.Message
func (*ListFavoriteRequest) Reset ¶
func (x *ListFavoriteRequest) Reset()
func (*ListFavoriteRequest) String ¶
func (x *ListFavoriteRequest) String() string
type ListFavoriteResponse ¶
type ListFavoriteResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` BizId []int64 `protobuf:"varint,2,rep,packed,name=biz_id,json=bizId,proto3" json:"biz_id,omitempty"` Pagination *PaginationResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListFavoriteResponse) Descriptor
deprecated
func (*ListFavoriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFavoriteResponse.ProtoReflect.Descriptor instead.
func (*ListFavoriteResponse) GetBizId ¶
func (x *ListFavoriteResponse) GetBizId() []int64
func (*ListFavoriteResponse) GetMeta ¶
func (x *ListFavoriteResponse) GetMeta() *Metadata
func (*ListFavoriteResponse) GetPagination ¶
func (x *ListFavoriteResponse) GetPagination() *PaginationResponse
func (*ListFavoriteResponse) ProtoMessage ¶
func (*ListFavoriteResponse) ProtoMessage()
func (*ListFavoriteResponse) ProtoReflect ¶
func (x *ListFavoriteResponse) ProtoReflect() protoreflect.Message
func (*ListFavoriteResponse) Reset ¶
func (x *ListFavoriteResponse) Reset()
func (*ListFavoriteResponse) String ¶
func (x *ListFavoriteResponse) String() string
type ListFollowingRequest ¶
type ListFollowingRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` FollowType FollowType `` /* 137-byte string literal not displayed */ Pagination *PaginationRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListFollowingRequest) Descriptor
deprecated
func (*ListFollowingRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFollowingRequest.ProtoReflect.Descriptor instead.
func (*ListFollowingRequest) GetFollowType ¶
func (x *ListFollowingRequest) GetFollowType() FollowType
func (*ListFollowingRequest) GetPagination ¶
func (x *ListFollowingRequest) GetPagination() *PaginationRequest
func (*ListFollowingRequest) GetUserId ¶
func (x *ListFollowingRequest) GetUserId() int64
func (*ListFollowingRequest) ProtoMessage ¶
func (*ListFollowingRequest) ProtoMessage()
func (*ListFollowingRequest) ProtoReflect ¶
func (x *ListFollowingRequest) ProtoReflect() protoreflect.Message
func (*ListFollowingRequest) Reset ¶
func (x *ListFollowingRequest) Reset()
func (*ListFollowingRequest) String ¶
func (x *ListFollowingRequest) String() string
type ListFollowingResponse ¶
type ListFollowingResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` UserIdList []int64 `protobuf:"varint,2,rep,packed,name=user_id_list,json=userIdList,proto3" json:"user_id_list,omitempty"` // contains filtered or unexported fields }
func (*ListFollowingResponse) Descriptor
deprecated
func (*ListFollowingResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFollowingResponse.ProtoReflect.Descriptor instead.
func (*ListFollowingResponse) GetMeta ¶
func (x *ListFollowingResponse) GetMeta() *Metadata
func (*ListFollowingResponse) GetUserIdList ¶
func (x *ListFollowingResponse) GetUserIdList() []int64
func (*ListFollowingResponse) ProtoMessage ¶
func (*ListFollowingResponse) ProtoMessage()
func (*ListFollowingResponse) ProtoReflect ¶
func (x *ListFollowingResponse) ProtoReflect() protoreflect.Message
func (*ListFollowingResponse) Reset ¶
func (x *ListFollowingResponse) Reset()
func (*ListFollowingResponse) String ¶
func (x *ListFollowingResponse) String() string
type ListPublishedVideoRequest ¶
type ListPublishedVideoRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` LatestTime int64 `protobuf:"varint,2,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"` // 可选参数,限制返回视频的最新投稿时间戳,精确到秒,不填表示当前时间 Pagination *PaginationRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListPublishedVideoRequest) Descriptor
deprecated
func (*ListPublishedVideoRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPublishedVideoRequest.ProtoReflect.Descriptor instead.
func (*ListPublishedVideoRequest) GetLatestTime ¶
func (x *ListPublishedVideoRequest) GetLatestTime() int64
func (*ListPublishedVideoRequest) GetPagination ¶
func (x *ListPublishedVideoRequest) GetPagination() *PaginationRequest
func (*ListPublishedVideoRequest) GetUserId ¶
func (x *ListPublishedVideoRequest) GetUserId() int64
func (*ListPublishedVideoRequest) ProtoMessage ¶
func (*ListPublishedVideoRequest) ProtoMessage()
func (*ListPublishedVideoRequest) ProtoReflect ¶
func (x *ListPublishedVideoRequest) ProtoReflect() protoreflect.Message
func (*ListPublishedVideoRequest) Reset ¶
func (x *ListPublishedVideoRequest) Reset()
func (*ListPublishedVideoRequest) String ¶
func (x *ListPublishedVideoRequest) String() string
type ListPublishedVideoResponse ¶
type ListPublishedVideoResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Videos []*Video `protobuf:"bytes,2,rep,name=videos,proto3" json:"videos,omitempty"` Pagination *PaginationResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*ListPublishedVideoResponse) Descriptor
deprecated
func (*ListPublishedVideoResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPublishedVideoResponse.ProtoReflect.Descriptor instead.
func (*ListPublishedVideoResponse) GetMeta ¶
func (x *ListPublishedVideoResponse) GetMeta() *Metadata
func (*ListPublishedVideoResponse) GetPagination ¶
func (x *ListPublishedVideoResponse) GetPagination() *PaginationResponse
func (*ListPublishedVideoResponse) GetVideos ¶
func (x *ListPublishedVideoResponse) GetVideos() []*Video
func (*ListPublishedVideoResponse) ProtoMessage ¶
func (*ListPublishedVideoResponse) ProtoMessage()
func (*ListPublishedVideoResponse) ProtoReflect ¶
func (x *ListPublishedVideoResponse) ProtoReflect() protoreflect.Message
func (*ListPublishedVideoResponse) Reset ¶
func (x *ListPublishedVideoResponse) Reset()
func (*ListPublishedVideoResponse) String ¶
func (x *ListPublishedVideoResponse) String() string
type Metadata ¶
type Metadata struct { BizCode int32 `protobuf:"varint,1,opt,name=biz_code,json=bizCode,proto3" json:"biz_code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` Reason []string `protobuf:"bytes,4,rep,name=reason,proto3" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetBizCode ¶
func (*Metadata) GetMessage ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) Validate ¶
Validate checks the field values on Metadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Metadata) ValidateAll ¶
ValidateAll checks the field values on Metadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MetadataMultiError, or nil if none found.
type MetadataMultiError ¶
type MetadataMultiError []error
MetadataMultiError is an error wrapping multiple validation errors returned by Metadata.ValidateAll() if the designated constraints aren't met.
func (MetadataMultiError) AllErrors ¶
func (m MetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MetadataMultiError) Error ¶
func (m MetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MetadataValidationError ¶
type MetadataValidationError struct {
// contains filtered or unexported fields
}
MetadataValidationError is the validation error returned by Metadata.Validate if the designated constraints aren't met.
func (MetadataValidationError) Cause ¶
func (e MetadataValidationError) Cause() error
Cause function returns cause value.
func (MetadataValidationError) Error ¶
func (e MetadataValidationError) Error() string
Error satisfies the builtin error interface
func (MetadataValidationError) ErrorName ¶
func (e MetadataValidationError) ErrorName() string
ErrorName returns error name.
func (MetadataValidationError) Field ¶
func (e MetadataValidationError) Field() string
Field function returns field value.
func (MetadataValidationError) Key ¶
func (e MetadataValidationError) Key() bool
Key function returns key value.
func (MetadataValidationError) Reason ¶
func (e MetadataValidationError) Reason() string
Reason function returns reason value.
type PaginationRequest ¶
type PaginationRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页码 [1, +∞) Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 页面大小 Sort []*SortField `protobuf:"bytes,3,rep,name=sort,proto3" json:"sort,omitempty"` // 根据字段进行排序 // contains filtered or unexported fields }
func (*PaginationRequest) Descriptor
deprecated
func (*PaginationRequest) Descriptor() ([]byte, []int)
Deprecated: Use PaginationRequest.ProtoReflect.Descriptor instead.
func (*PaginationRequest) GetPage ¶
func (x *PaginationRequest) GetPage() int32
func (*PaginationRequest) GetSize ¶
func (x *PaginationRequest) GetSize() int32
func (*PaginationRequest) GetSort ¶
func (x *PaginationRequest) GetSort() []*SortField
func (*PaginationRequest) ProtoMessage ¶
func (*PaginationRequest) ProtoMessage()
func (*PaginationRequest) ProtoReflect ¶
func (x *PaginationRequest) ProtoReflect() protoreflect.Message
func (*PaginationRequest) Reset ¶
func (x *PaginationRequest) Reset()
func (*PaginationRequest) String ¶
func (x *PaginationRequest) String() string
func (*PaginationRequest) Validate ¶
func (m *PaginationRequest) Validate() error
Validate checks the field values on PaginationRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PaginationRequest) ValidateAll ¶
func (m *PaginationRequest) ValidateAll() error
ValidateAll checks the field values on PaginationRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PaginationRequestMultiError, or nil if none found.
type PaginationRequestMultiError ¶
type PaginationRequestMultiError []error
PaginationRequestMultiError is an error wrapping multiple validation errors returned by PaginationRequest.ValidateAll() if the designated constraints aren't met.
func (PaginationRequestMultiError) AllErrors ¶
func (m PaginationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PaginationRequestMultiError) Error ¶
func (m PaginationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PaginationRequestValidationError ¶
type PaginationRequestValidationError struct {
// contains filtered or unexported fields
}
PaginationRequestValidationError is the validation error returned by PaginationRequest.Validate if the designated constraints aren't met.
func (PaginationRequestValidationError) Cause ¶
func (e PaginationRequestValidationError) Cause() error
Cause function returns cause value.
func (PaginationRequestValidationError) Error ¶
func (e PaginationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PaginationRequestValidationError) ErrorName ¶
func (e PaginationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PaginationRequestValidationError) Field ¶
func (e PaginationRequestValidationError) Field() string
Field function returns field value.
func (PaginationRequestValidationError) Key ¶
func (e PaginationRequestValidationError) Key() bool
Key function returns key value.
func (PaginationRequestValidationError) Reason ¶
func (e PaginationRequestValidationError) Reason() string
Reason function returns reason value.
type PaginationResponse ¶
type PaginationResponse struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 当前数据的所属页码 Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // 总页数 Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // 总条目数 // contains filtered or unexported fields }
func (*PaginationResponse) Descriptor
deprecated
func (*PaginationResponse) Descriptor() ([]byte, []int)
Deprecated: Use PaginationResponse.ProtoReflect.Descriptor instead.
func (*PaginationResponse) GetCount ¶
func (x *PaginationResponse) GetCount() int32
func (*PaginationResponse) GetPage ¶
func (x *PaginationResponse) GetPage() int32
func (*PaginationResponse) GetTotal ¶
func (x *PaginationResponse) GetTotal() int32
func (*PaginationResponse) ProtoMessage ¶
func (*PaginationResponse) ProtoMessage()
func (*PaginationResponse) ProtoReflect ¶
func (x *PaginationResponse) ProtoReflect() protoreflect.Message
func (*PaginationResponse) Reset ¶
func (x *PaginationResponse) Reset()
func (*PaginationResponse) String ¶
func (x *PaginationResponse) String() string
func (*PaginationResponse) Validate ¶
func (m *PaginationResponse) Validate() error
Validate checks the field values on PaginationResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PaginationResponse) ValidateAll ¶
func (m *PaginationResponse) ValidateAll() error
ValidateAll checks the field values on PaginationResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PaginationResponseMultiError, or nil if none found.
type PaginationResponseMultiError ¶
type PaginationResponseMultiError []error
PaginationResponseMultiError is an error wrapping multiple validation errors returned by PaginationResponse.ValidateAll() if the designated constraints aren't met.
func (PaginationResponseMultiError) AllErrors ¶
func (m PaginationResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PaginationResponseMultiError) Error ¶
func (m PaginationResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PaginationResponseValidationError ¶
type PaginationResponseValidationError struct {
// contains filtered or unexported fields
}
PaginationResponseValidationError is the validation error returned by PaginationResponse.Validate if the designated constraints aren't met.
func (PaginationResponseValidationError) Cause ¶
func (e PaginationResponseValidationError) Cause() error
Cause function returns cause value.
func (PaginationResponseValidationError) Error ¶
func (e PaginationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PaginationResponseValidationError) ErrorName ¶
func (e PaginationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PaginationResponseValidationError) Field ¶
func (e PaginationResponseValidationError) Field() string
Field function returns field value.
func (PaginationResponseValidationError) Key ¶
func (e PaginationResponseValidationError) Key() bool
Key function returns key value.
func (PaginationResponseValidationError) Reason ¶
func (e PaginationResponseValidationError) Reason() string
Reason function returns reason value.
type PublishVideoRequest ¶
type PublishVideoRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // 视频标题 CoverUrl string `protobuf:"bytes,2,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 视频封面地址 PlayUrl string `protobuf:"bytes,3,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"` // 视频播放地址 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // 视频描述 UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 视频作者id // contains filtered or unexported fields }
func (*PublishVideoRequest) Descriptor
deprecated
func (*PublishVideoRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishVideoRequest.ProtoReflect.Descriptor instead.
func (*PublishVideoRequest) GetCoverUrl ¶
func (x *PublishVideoRequest) GetCoverUrl() string
func (*PublishVideoRequest) GetDescription ¶
func (x *PublishVideoRequest) GetDescription() string
func (*PublishVideoRequest) GetPlayUrl ¶
func (x *PublishVideoRequest) GetPlayUrl() string
func (*PublishVideoRequest) GetTitle ¶
func (x *PublishVideoRequest) GetTitle() string
func (*PublishVideoRequest) GetUserId ¶
func (x *PublishVideoRequest) GetUserId() 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 { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // contains filtered or unexported fields }
func (*PublishVideoResponse) Descriptor
deprecated
func (*PublishVideoResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishVideoResponse.ProtoReflect.Descriptor instead.
func (*PublishVideoResponse) GetMeta ¶
func (x *PublishVideoResponse) GetMeta() *Metadata
func (*PublishVideoResponse) GetVideoId ¶
func (x *PublishVideoResponse) GetVideoId() int64
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 RemoveCollectionRequest ¶
type RemoveCollectionRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RemoveCollectionRequest) Descriptor
deprecated
func (*RemoveCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveCollectionRequest.ProtoReflect.Descriptor instead.
func (*RemoveCollectionRequest) GetId ¶
func (x *RemoveCollectionRequest) GetId() int64
func (*RemoveCollectionRequest) ProtoMessage ¶
func (*RemoveCollectionRequest) ProtoMessage()
func (*RemoveCollectionRequest) ProtoReflect ¶
func (x *RemoveCollectionRequest) ProtoReflect() protoreflect.Message
func (*RemoveCollectionRequest) Reset ¶
func (x *RemoveCollectionRequest) Reset()
func (*RemoveCollectionRequest) String ¶
func (x *RemoveCollectionRequest) String() string
type RemoveCollectionResponse ¶
type RemoveCollectionResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*RemoveCollectionResponse) Descriptor
deprecated
func (*RemoveCollectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveCollectionResponse.ProtoReflect.Descriptor instead.
func (*RemoveCollectionResponse) GetMeta ¶
func (x *RemoveCollectionResponse) GetMeta() *Metadata
func (*RemoveCollectionResponse) ProtoMessage ¶
func (*RemoveCollectionResponse) ProtoMessage()
func (*RemoveCollectionResponse) ProtoReflect ¶
func (x *RemoveCollectionResponse) ProtoReflect() protoreflect.Message
func (*RemoveCollectionResponse) Reset ¶
func (x *RemoveCollectionResponse) Reset()
func (*RemoveCollectionResponse) String ¶
func (x *RemoveCollectionResponse) String() string
type RemoveCommentRequest ¶
type RemoveCommentRequest struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论id UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id // contains filtered or unexported fields }
func (*RemoveCommentRequest) Descriptor
deprecated
func (*RemoveCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveCommentRequest.ProtoReflect.Descriptor instead.
func (*RemoveCommentRequest) GetCommentId ¶
func (x *RemoveCommentRequest) GetCommentId() int64
func (*RemoveCommentRequest) GetUserId ¶
func (x *RemoveCommentRequest) GetUserId() int64
func (*RemoveCommentRequest) ProtoMessage ¶
func (*RemoveCommentRequest) ProtoMessage()
func (*RemoveCommentRequest) ProtoReflect ¶
func (x *RemoveCommentRequest) ProtoReflect() protoreflect.Message
func (*RemoveCommentRequest) Reset ¶
func (x *RemoveCommentRequest) Reset()
func (*RemoveCommentRequest) String ¶
func (x *RemoveCommentRequest) String() string
type RemoveCommentResponse ¶
type RemoveCommentResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*RemoveCommentResponse) Descriptor
deprecated
func (*RemoveCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveCommentResponse.ProtoReflect.Descriptor instead.
func (*RemoveCommentResponse) GetMeta ¶
func (x *RemoveCommentResponse) GetMeta() *Metadata
func (*RemoveCommentResponse) ProtoMessage ¶
func (*RemoveCommentResponse) ProtoMessage()
func (*RemoveCommentResponse) ProtoReflect ¶
func (x *RemoveCommentResponse) ProtoReflect() protoreflect.Message
func (*RemoveCommentResponse) Reset ¶
func (x *RemoveCommentResponse) Reset()
func (*RemoveCommentResponse) String ¶
func (x *RemoveCommentResponse) String() string
type RemoveFavoriteRequest ¶
type RemoveFavoriteRequest struct { Target FavoriteTarget `protobuf:"varint,1,opt,name=target,proto3,enum=shortVideoCoreService.api.v1.FavoriteTarget" json:"target,omitempty"` Type FavoriteType `protobuf:"varint,2,opt,name=type,proto3,enum=shortVideoCoreService.api.v1.FavoriteType" json:"type,omitempty"` // @gotags: json:"id,omitempty,string" Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RemoveFavoriteRequest) Descriptor
deprecated
func (*RemoveFavoriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFavoriteRequest.ProtoReflect.Descriptor instead.
func (*RemoveFavoriteRequest) GetId ¶
func (x *RemoveFavoriteRequest) GetId() int64
func (*RemoveFavoriteRequest) GetTarget ¶
func (x *RemoveFavoriteRequest) GetTarget() FavoriteTarget
func (*RemoveFavoriteRequest) GetType ¶
func (x *RemoveFavoriteRequest) GetType() FavoriteType
func (*RemoveFavoriteRequest) ProtoMessage ¶
func (*RemoveFavoriteRequest) ProtoMessage()
func (*RemoveFavoriteRequest) ProtoReflect ¶
func (x *RemoveFavoriteRequest) ProtoReflect() protoreflect.Message
func (*RemoveFavoriteRequest) Reset ¶
func (x *RemoveFavoriteRequest) Reset()
func (*RemoveFavoriteRequest) String ¶
func (x *RemoveFavoriteRequest) String() string
type RemoveFavoriteResponse ¶
type RemoveFavoriteResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*RemoveFavoriteResponse) Descriptor
deprecated
func (*RemoveFavoriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFavoriteResponse.ProtoReflect.Descriptor instead.
func (*RemoveFavoriteResponse) GetMeta ¶
func (x *RemoveFavoriteResponse) GetMeta() *Metadata
func (*RemoveFavoriteResponse) ProtoMessage ¶
func (*RemoveFavoriteResponse) ProtoMessage()
func (*RemoveFavoriteResponse) ProtoReflect ¶
func (x *RemoveFavoriteResponse) ProtoReflect() protoreflect.Message
func (*RemoveFavoriteResponse) Reset ¶
func (x *RemoveFavoriteResponse) Reset()
func (*RemoveFavoriteResponse) String ¶
func (x *RemoveFavoriteResponse) String() string
type RemoveFollowRequest ¶
type RemoveFollowRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveFollowRequest) Descriptor
deprecated
func (*RemoveFollowRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFollowRequest.ProtoReflect.Descriptor instead.
func (*RemoveFollowRequest) GetTargetUserId ¶
func (x *RemoveFollowRequest) GetTargetUserId() int64
func (*RemoveFollowRequest) GetUserId ¶
func (x *RemoveFollowRequest) GetUserId() int64
func (*RemoveFollowRequest) ProtoMessage ¶
func (*RemoveFollowRequest) ProtoMessage()
func (*RemoveFollowRequest) ProtoReflect ¶
func (x *RemoveFollowRequest) ProtoReflect() protoreflect.Message
func (*RemoveFollowRequest) Reset ¶
func (x *RemoveFollowRequest) Reset()
func (*RemoveFollowRequest) String ¶
func (x *RemoveFollowRequest) String() string
type RemoveFollowResponse ¶
type RemoveFollowResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*RemoveFollowResponse) Descriptor
deprecated
func (*RemoveFollowResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFollowResponse.ProtoReflect.Descriptor instead.
func (*RemoveFollowResponse) GetMeta ¶
func (x *RemoveFollowResponse) GetMeta() *Metadata
func (*RemoveFollowResponse) ProtoMessage ¶
func (*RemoveFollowResponse) ProtoMessage()
func (*RemoveFollowResponse) ProtoReflect ¶
func (x *RemoveFollowResponse) ProtoReflect() protoreflect.Message
func (*RemoveFollowResponse) Reset ¶
func (x *RemoveFollowResponse) Reset()
func (*RemoveFollowResponse) String ¶
func (x *RemoveFollowResponse) String() string
type RemoveVideoFromCollectionRequest ¶
type RemoveVideoFromCollectionRequest struct { CollectionId int64 `protobuf:"varint,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveVideoFromCollectionRequest) Descriptor
deprecated
func (*RemoveVideoFromCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveVideoFromCollectionRequest.ProtoReflect.Descriptor instead.
func (*RemoveVideoFromCollectionRequest) GetCollectionId ¶
func (x *RemoveVideoFromCollectionRequest) GetCollectionId() int64
func (*RemoveVideoFromCollectionRequest) GetVideoId ¶
func (x *RemoveVideoFromCollectionRequest) GetVideoId() int64
func (*RemoveVideoFromCollectionRequest) ProtoMessage ¶
func (*RemoveVideoFromCollectionRequest) ProtoMessage()
func (*RemoveVideoFromCollectionRequest) ProtoReflect ¶
func (x *RemoveVideoFromCollectionRequest) ProtoReflect() protoreflect.Message
func (*RemoveVideoFromCollectionRequest) Reset ¶
func (x *RemoveVideoFromCollectionRequest) Reset()
func (*RemoveVideoFromCollectionRequest) String ¶
func (x *RemoveVideoFromCollectionRequest) String() string
type RemoveVideoFromCollectionResponse ¶
type RemoveVideoFromCollectionResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*RemoveVideoFromCollectionResponse) Descriptor
deprecated
func (*RemoveVideoFromCollectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveVideoFromCollectionResponse.ProtoReflect.Descriptor instead.
func (*RemoveVideoFromCollectionResponse) GetMeta ¶
func (x *RemoveVideoFromCollectionResponse) GetMeta() *Metadata
func (*RemoveVideoFromCollectionResponse) ProtoMessage ¶
func (*RemoveVideoFromCollectionResponse) ProtoMessage()
func (*RemoveVideoFromCollectionResponse) ProtoReflect ¶
func (x *RemoveVideoFromCollectionResponse) ProtoReflect() protoreflect.Message
func (*RemoveVideoFromCollectionResponse) Reset ¶
func (x *RemoveVideoFromCollectionResponse) Reset()
func (*RemoveVideoFromCollectionResponse) String ¶
func (x *RemoveVideoFromCollectionResponse) String() string
type SearchField ¶
type SearchField struct { Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // 用于搜索的字段名称 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // 搜索的值 ValueList []string `protobuf:"bytes,3,rep,name=value_list,json=valueList,proto3" json:"value_list,omitempty"` // 搜索的值列表 Operator SearchOperator `protobuf:"varint,4,opt,name=operator,proto3,enum=shortVideoCoreService.api.v1.SearchOperator" json:"operator,omitempty"` // 操作符 // contains filtered or unexported fields }
func (*SearchField) Descriptor
deprecated
func (*SearchField) Descriptor() ([]byte, []int)
Deprecated: Use SearchField.ProtoReflect.Descriptor instead.
func (*SearchField) GetField ¶
func (x *SearchField) GetField() string
func (*SearchField) GetOperator ¶
func (x *SearchField) GetOperator() SearchOperator
func (*SearchField) GetValue ¶
func (x *SearchField) GetValue() string
func (*SearchField) GetValueList ¶
func (x *SearchField) GetValueList() []string
func (*SearchField) ProtoMessage ¶
func (*SearchField) ProtoMessage()
func (*SearchField) ProtoReflect ¶
func (x *SearchField) ProtoReflect() protoreflect.Message
func (*SearchField) Reset ¶
func (x *SearchField) Reset()
func (*SearchField) String ¶
func (x *SearchField) String() string
func (*SearchField) Validate ¶
func (m *SearchField) Validate() error
Validate checks the field values on SearchField with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SearchField) ValidateAll ¶
func (m *SearchField) ValidateAll() error
ValidateAll checks the field values on SearchField with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchFieldMultiError, or nil if none found.
type SearchFieldMultiError ¶
type SearchFieldMultiError []error
SearchFieldMultiError is an error wrapping multiple validation errors returned by SearchField.ValidateAll() if the designated constraints aren't met.
func (SearchFieldMultiError) AllErrors ¶
func (m SearchFieldMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SearchFieldMultiError) Error ¶
func (m SearchFieldMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SearchFieldValidationError ¶
type SearchFieldValidationError struct {
// contains filtered or unexported fields
}
SearchFieldValidationError is the validation error returned by SearchField.Validate if the designated constraints aren't met.
func (SearchFieldValidationError) Cause ¶
func (e SearchFieldValidationError) Cause() error
Cause function returns cause value.
func (SearchFieldValidationError) Error ¶
func (e SearchFieldValidationError) Error() string
Error satisfies the builtin error interface
func (SearchFieldValidationError) ErrorName ¶
func (e SearchFieldValidationError) ErrorName() string
ErrorName returns error name.
func (SearchFieldValidationError) Field ¶
func (e SearchFieldValidationError) Field() string
Field function returns field value.
func (SearchFieldValidationError) Key ¶
func (e SearchFieldValidationError) Key() bool
Key function returns key value.
func (SearchFieldValidationError) Reason ¶
func (e SearchFieldValidationError) Reason() string
Reason function returns reason value.
type SearchOperator ¶
type SearchOperator int32
const ( SearchOperator_EQ SearchOperator = 0 // 等于 SearchOperator_NE SearchOperator = 1 // 不等于 SearchOperator_GT SearchOperator = 2 // 大于 SearchOperator_GE SearchOperator = 3 // 大于等于 SearchOperator_LT SearchOperator = 4 // 小于 SearchOperator_LE SearchOperator = 5 // 小于等于 SearchOperator_LIKE SearchOperator = 6 // 使用like的模糊匹配 SearchOperator_WILDCARD SearchOperator = 7 // 使用通配符的模糊匹配 SearchOperator_IN SearchOperator = 8 // 在指定的集合中 SearchOperator_NOT_IN SearchOperator = 9 // 不在指定的集合中 SearchOperator_BETWEEN SearchOperator = 10 // 在指定的范围内 SearchOperator_RE SearchOperator = 11 // 正则匹配 )
func (SearchOperator) Descriptor ¶
func (SearchOperator) Descriptor() protoreflect.EnumDescriptor
func (SearchOperator) Enum ¶
func (x SearchOperator) Enum() *SearchOperator
func (SearchOperator) EnumDescriptor
deprecated
func (SearchOperator) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchOperator.Descriptor instead.
func (SearchOperator) Number ¶
func (x SearchOperator) Number() protoreflect.EnumNumber
func (SearchOperator) String ¶
func (x SearchOperator) String() string
func (SearchOperator) Type ¶
func (SearchOperator) Type() protoreflect.EnumType
type SearchRequest ¶
type SearchRequest struct { Search []*SearchField `protobuf:"bytes,1,rep,name=search,proto3" json:"search,omitempty"` // 搜索条件 // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetSearch ¶
func (x *SearchRequest) GetSearch() []*SearchField
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
func (*SearchRequest) Validate ¶
func (m *SearchRequest) Validate() error
Validate checks the field values on SearchRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SearchRequest) ValidateAll ¶
func (m *SearchRequest) ValidateAll() error
ValidateAll checks the field values on SearchRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SearchRequestMultiError, or nil if none found.
type SearchRequestMultiError ¶
type SearchRequestMultiError []error
SearchRequestMultiError is an error wrapping multiple validation errors returned by SearchRequest.ValidateAll() if the designated constraints aren't met.
func (SearchRequestMultiError) AllErrors ¶
func (m SearchRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SearchRequestMultiError) Error ¶
func (m SearchRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SearchRequestValidationError ¶
type SearchRequestValidationError struct {
// contains filtered or unexported fields
}
SearchRequestValidationError is the validation error returned by SearchRequest.Validate if the designated constraints aren't met.
func (SearchRequestValidationError) Cause ¶
func (e SearchRequestValidationError) Cause() error
Cause function returns cause value.
func (SearchRequestValidationError) Error ¶
func (e SearchRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SearchRequestValidationError) ErrorName ¶
func (e SearchRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SearchRequestValidationError) Field ¶
func (e SearchRequestValidationError) Field() string
Field function returns field value.
func (SearchRequestValidationError) Key ¶
func (e SearchRequestValidationError) Key() bool
Key function returns key value.
func (SearchRequestValidationError) Reason ¶
func (e SearchRequestValidationError) Reason() string
Reason function returns reason value.
type SortField ¶
type SortField struct { Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // 用于排序的字段名称 Order SortOrder `protobuf:"varint,2,opt,name=order,proto3,enum=shortVideoCoreService.api.v1.SortOrder" json:"order,omitempty"` // 排序方式 // contains filtered or unexported fields }
func (*SortField) Descriptor
deprecated
func (*SortField) ProtoMessage ¶
func (*SortField) ProtoMessage()
func (*SortField) ProtoReflect ¶
func (x *SortField) ProtoReflect() protoreflect.Message
func (*SortField) Validate ¶
Validate checks the field values on SortField with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SortField) ValidateAll ¶
ValidateAll checks the field values on SortField with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SortFieldMultiError, or nil if none found.
type SortFieldMultiError ¶
type SortFieldMultiError []error
SortFieldMultiError is an error wrapping multiple validation errors returned by SortField.ValidateAll() if the designated constraints aren't met.
func (SortFieldMultiError) AllErrors ¶
func (m SortFieldMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SortFieldMultiError) Error ¶
func (m SortFieldMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SortFieldValidationError ¶
type SortFieldValidationError struct {
// contains filtered or unexported fields
}
SortFieldValidationError is the validation error returned by SortField.Validate if the designated constraints aren't met.
func (SortFieldValidationError) Cause ¶
func (e SortFieldValidationError) Cause() error
Cause function returns cause value.
func (SortFieldValidationError) Error ¶
func (e SortFieldValidationError) Error() string
Error satisfies the builtin error interface
func (SortFieldValidationError) ErrorName ¶
func (e SortFieldValidationError) ErrorName() string
ErrorName returns error name.
func (SortFieldValidationError) Field ¶
func (e SortFieldValidationError) Field() string
Field function returns field value.
func (SortFieldValidationError) Key ¶
func (e SortFieldValidationError) Key() bool
Key function returns key value.
func (SortFieldValidationError) Reason ¶
func (e SortFieldValidationError) Reason() string
Reason function returns reason value.
type SortOrder ¶
type SortOrder int32
func (SortOrder) Descriptor ¶
func (SortOrder) Descriptor() protoreflect.EnumDescriptor
func (SortOrder) EnumDescriptor
deprecated
func (SortOrder) Number ¶
func (x SortOrder) Number() protoreflect.EnumNumber
func (SortOrder) Type ¶
func (SortOrder) Type() protoreflect.EnumType
type UnimplementedCollectionServiceServer ¶
type UnimplementedCollectionServiceServer struct { }
UnimplementedCollectionServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCollectionServiceServer) AddVideo2Collection ¶
func (UnimplementedCollectionServiceServer) AddVideo2Collection(context.Context, *AddVideo2CollectionRequest) (*AddVideo2CollectionResponse, error)
func (UnimplementedCollectionServiceServer) CreateCollection ¶
func (UnimplementedCollectionServiceServer) CreateCollection(context.Context, *CreateCollectionRequest) (*CreateCollectionResponse, error)
func (UnimplementedCollectionServiceServer) GetCollectionById ¶
func (UnimplementedCollectionServiceServer) GetCollectionById(context.Context, *GetCollectionByIdRequest) (*GetCollectionByIdResponse, error)
func (UnimplementedCollectionServiceServer) ListCollection ¶
func (UnimplementedCollectionServiceServer) ListCollection(context.Context, *ListCollectionRequest) (*ListCollectionResponse, error)
func (UnimplementedCollectionServiceServer) ListCollectionVideo ¶
func (UnimplementedCollectionServiceServer) ListCollectionVideo(context.Context, *ListCollectionVideoRequest) (*ListCollectionVideoResponse, error)
func (UnimplementedCollectionServiceServer) RemoveCollection ¶
func (UnimplementedCollectionServiceServer) RemoveCollection(context.Context, *RemoveCollectionRequest) (*RemoveCollectionResponse, error)
func (UnimplementedCollectionServiceServer) RemoveVideoFromCollection ¶
func (UnimplementedCollectionServiceServer) RemoveVideoFromCollection(context.Context, *RemoveVideoFromCollectionRequest) (*RemoveVideoFromCollectionResponse, error)
func (UnimplementedCollectionServiceServer) UpdateCollection ¶
func (UnimplementedCollectionServiceServer) UpdateCollection(context.Context, *UpdateCollectionRequest) (*UpdateCollectionResponse, error)
type UnimplementedCommentServiceServer ¶
type UnimplementedCommentServiceServer struct { }
UnimplementedCommentServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCommentServiceServer) CountComment4User ¶
func (UnimplementedCommentServiceServer) CountComment4User(context.Context, *CountComment4UserRequest) (*CountComment4UserResponse, error)
func (UnimplementedCommentServiceServer) CountComment4Video ¶
func (UnimplementedCommentServiceServer) CountComment4Video(context.Context, *CountComment4VideoRequest) (*CountComment4VideoResponse, error)
func (UnimplementedCommentServiceServer) CreateComment ¶
func (UnimplementedCommentServiceServer) CreateComment(context.Context, *CreateCommentRequest) (*CreateCommentResponse, error)
func (UnimplementedCommentServiceServer) GetCommentById ¶
func (UnimplementedCommentServiceServer) GetCommentById(context.Context, *GetCommentByIdRequest) (*GetCommentByIdResponse, error)
func (UnimplementedCommentServiceServer) ListComment4Video ¶
func (UnimplementedCommentServiceServer) ListComment4Video(context.Context, *ListComment4VideoRequest) (*ListComment4VideoResponse, error)
func (UnimplementedCommentServiceServer) RemoveComment ¶
func (UnimplementedCommentServiceServer) RemoveComment(context.Context, *RemoveCommentRequest) (*RemoveCommentResponse, error)
type UnimplementedFavoriteServiceServer ¶
type UnimplementedFavoriteServiceServer struct { }
UnimplementedFavoriteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFavoriteServiceServer) AddFavorite ¶
func (UnimplementedFavoriteServiceServer) AddFavorite(context.Context, *AddFavoriteRequest) (*AddFavoriteResponse, error)
func (UnimplementedFavoriteServiceServer) CountFavorite ¶
func (UnimplementedFavoriteServiceServer) CountFavorite(context.Context, *CountFavoriteRequest) (*CountFavoriteResponse, error)
func (UnimplementedFavoriteServiceServer) IsFavorite ¶
func (UnimplementedFavoriteServiceServer) IsFavorite(context.Context, *IsFavoriteRequest) (*IsFavoriteResponse, error)
func (UnimplementedFavoriteServiceServer) ListFavorite ¶
func (UnimplementedFavoriteServiceServer) ListFavorite(context.Context, *ListFavoriteRequest) (*ListFavoriteResponse, error)
func (UnimplementedFavoriteServiceServer) RemoveFavorite ¶
func (UnimplementedFavoriteServiceServer) RemoveFavorite(context.Context, *RemoveFavoriteRequest) (*RemoveFavoriteResponse, error)
type UnimplementedFollowServiceServer ¶
type UnimplementedFollowServiceServer struct { }
UnimplementedFollowServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFollowServiceServer) AddFollow ¶
func (UnimplementedFollowServiceServer) AddFollow(context.Context, *AddFollowRequest) (*AddFollowResponse, error)
func (UnimplementedFollowServiceServer) ListFollowing ¶
func (UnimplementedFollowServiceServer) ListFollowing(context.Context, *ListFollowingRequest) (*ListFollowingResponse, error)
func (UnimplementedFollowServiceServer) RemoveFollow ¶
func (UnimplementedFollowServiceServer) RemoveFollow(context.Context, *RemoveFollowRequest) (*RemoveFollowResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
func (UnimplementedUserServiceServer) GetUserByIdList ¶
func (UnimplementedUserServiceServer) GetUserByIdList(context.Context, *GetUserByIdListRequest) (*GetUserByIdListResponse, error)
func (UnimplementedUserServiceServer) GetUserInfo ¶
func (UnimplementedUserServiceServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
func (UnimplementedUserServiceServer) UpdateUserInfo ¶
func (UnimplementedUserServiceServer) UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*UpdateUserInfoResponse, error)
type UnimplementedVideoServiceServer ¶
type UnimplementedVideoServiceServer struct { }
UnimplementedVideoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedVideoServiceServer) FeedShortVideo ¶
func (UnimplementedVideoServiceServer) FeedShortVideo(context.Context, *FeedShortVideoRequest) (*FeedShortVideoResponse, error)
func (UnimplementedVideoServiceServer) GetVideoById ¶
func (UnimplementedVideoServiceServer) GetVideoById(context.Context, *GetVideoByIdRequest) (*GetVideoByIdResponse, error)
func (UnimplementedVideoServiceServer) GetVideoByIdList ¶
func (UnimplementedVideoServiceServer) GetVideoByIdList(context.Context, *GetVideoByIdListRequest) (*GetVideoByIdListResponse, error)
func (UnimplementedVideoServiceServer) ListPublishedVideo ¶
func (UnimplementedVideoServiceServer) ListPublishedVideo(context.Context, *ListPublishedVideoRequest) (*ListPublishedVideoResponse, error)
func (UnimplementedVideoServiceServer) PublishVideo ¶
func (UnimplementedVideoServiceServer) PublishVideo(context.Context, *PublishVideoRequest) (*PublishVideoResponse, error)
type UnsafeCollectionServiceServer ¶
type UnsafeCollectionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCollectionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CollectionServiceServer will result in compilation errors.
type UnsafeCommentServiceServer ¶
type UnsafeCommentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCommentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommentServiceServer will result in compilation errors.
type UnsafeFavoriteServiceServer ¶
type UnsafeFavoriteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFavoriteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FavoriteServiceServer will result in compilation errors.
type UnsafeFollowServiceServer ¶
type UnsafeFollowServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFollowServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FollowServiceServer will result in compilation errors.
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 UpdateCollectionRequest ¶
type UpdateCollectionRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*UpdateCollectionRequest) Descriptor
deprecated
func (*UpdateCollectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCollectionRequest.ProtoReflect.Descriptor instead.
func (*UpdateCollectionRequest) GetDescription ¶
func (x *UpdateCollectionRequest) GetDescription() string
func (*UpdateCollectionRequest) GetId ¶
func (x *UpdateCollectionRequest) GetId() int64
func (*UpdateCollectionRequest) GetName ¶
func (x *UpdateCollectionRequest) GetName() string
func (*UpdateCollectionRequest) ProtoMessage ¶
func (*UpdateCollectionRequest) ProtoMessage()
func (*UpdateCollectionRequest) ProtoReflect ¶
func (x *UpdateCollectionRequest) ProtoReflect() protoreflect.Message
func (*UpdateCollectionRequest) Reset ¶
func (x *UpdateCollectionRequest) Reset()
func (*UpdateCollectionRequest) String ¶
func (x *UpdateCollectionRequest) String() string
type UpdateCollectionResponse ¶
type UpdateCollectionResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*UpdateCollectionResponse) Descriptor
deprecated
func (*UpdateCollectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCollectionResponse.ProtoReflect.Descriptor instead.
func (*UpdateCollectionResponse) GetMeta ¶
func (x *UpdateCollectionResponse) GetMeta() *Metadata
func (*UpdateCollectionResponse) ProtoMessage ¶
func (*UpdateCollectionResponse) ProtoMessage()
func (*UpdateCollectionResponse) ProtoReflect ¶
func (x *UpdateCollectionResponse) ProtoReflect() protoreflect.Message
func (*UpdateCollectionResponse) Reset ¶
func (x *UpdateCollectionResponse) Reset()
func (*UpdateCollectionResponse) String ¶
func (x *UpdateCollectionResponse) String() string
type UpdateUserImageType ¶
type UpdateUserImageType int32
const ( UpdateUserImageType_AVATAR UpdateUserImageType = 0 UpdateUserImageType_BACKGROUND_IMAGE UpdateUserImageType = 1 )
func (UpdateUserImageType) Descriptor ¶
func (UpdateUserImageType) Descriptor() protoreflect.EnumDescriptor
func (UpdateUserImageType) Enum ¶
func (x UpdateUserImageType) Enum() *UpdateUserImageType
func (UpdateUserImageType) EnumDescriptor
deprecated
func (UpdateUserImageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UpdateUserImageType.Descriptor instead.
func (UpdateUserImageType) Number ¶
func (x UpdateUserImageType) Number() protoreflect.EnumNumber
func (UpdateUserImageType) String ¶
func (x UpdateUserImageType) String() string
func (UpdateUserImageType) Type ¶
func (UpdateUserImageType) Type() protoreflect.EnumType
type UpdateUserInfoRequest ¶
type UpdateUserInfoRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` BackgroundImage string `protobuf:"bytes,4,opt,name=background_image,json=backgroundImage,proto3" json:"background_image,omitempty"` Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserInfoRequest) Descriptor
deprecated
func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserInfoRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserInfoRequest) GetAvatar ¶
func (x *UpdateUserInfoRequest) GetAvatar() string
func (*UpdateUserInfoRequest) GetBackgroundImage ¶
func (x *UpdateUserInfoRequest) GetBackgroundImage() string
func (*UpdateUserInfoRequest) GetName ¶
func (x *UpdateUserInfoRequest) GetName() string
func (*UpdateUserInfoRequest) GetSignature ¶
func (x *UpdateUserInfoRequest) GetSignature() string
func (*UpdateUserInfoRequest) GetUserId ¶
func (x *UpdateUserInfoRequest) GetUserId() int64
func (*UpdateUserInfoRequest) ProtoMessage ¶
func (*UpdateUserInfoRequest) ProtoMessage()
func (*UpdateUserInfoRequest) ProtoReflect ¶
func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserInfoRequest) Reset ¶
func (x *UpdateUserInfoRequest) Reset()
func (*UpdateUserInfoRequest) String ¶
func (x *UpdateUserInfoRequest) String() string
func (*UpdateUserInfoRequest) Validate ¶
func (m *UpdateUserInfoRequest) Validate() error
Validate checks the field values on UpdateUserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateUserInfoRequest) ValidateAll ¶
func (m *UpdateUserInfoRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserInfoRequestMultiError, or nil if none found.
type UpdateUserInfoRequestMultiError ¶
type UpdateUserInfoRequestMultiError []error
UpdateUserInfoRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserInfoRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserInfoRequestMultiError) AllErrors ¶
func (m UpdateUserInfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserInfoRequestMultiError) Error ¶
func (m UpdateUserInfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserInfoRequestValidationError ¶
type UpdateUserInfoRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserInfoRequestValidationError is the validation error returned by UpdateUserInfoRequest.Validate if the designated constraints aren't met.
func (UpdateUserInfoRequestValidationError) Cause ¶
func (e UpdateUserInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserInfoRequestValidationError) Error ¶
func (e UpdateUserInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserInfoRequestValidationError) ErrorName ¶
func (e UpdateUserInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserInfoRequestValidationError) Field ¶
func (e UpdateUserInfoRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserInfoRequestValidationError) Key ¶
func (e UpdateUserInfoRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserInfoRequestValidationError) Reason ¶
func (e UpdateUserInfoRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserInfoResponse ¶
type UpdateUserInfoResponse struct { Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserInfoResponse) Descriptor
deprecated
func (*UpdateUserInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserInfoResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserInfoResponse) GetMeta ¶
func (x *UpdateUserInfoResponse) GetMeta() *Metadata
func (*UpdateUserInfoResponse) ProtoMessage ¶
func (*UpdateUserInfoResponse) ProtoMessage()
func (*UpdateUserInfoResponse) ProtoReflect ¶
func (x *UpdateUserInfoResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserInfoResponse) Reset ¶
func (x *UpdateUserInfoResponse) Reset()
func (*UpdateUserInfoResponse) String ¶
func (x *UpdateUserInfoResponse) String() string
func (*UpdateUserInfoResponse) Validate ¶
func (m *UpdateUserInfoResponse) Validate() error
Validate checks the field values on UpdateUserInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateUserInfoResponse) ValidateAll ¶
func (m *UpdateUserInfoResponse) ValidateAll() error
ValidateAll checks the field values on UpdateUserInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserInfoResponseMultiError, or nil if none found.
type UpdateUserInfoResponseMultiError ¶
type UpdateUserInfoResponseMultiError []error
UpdateUserInfoResponseMultiError is an error wrapping multiple validation errors returned by UpdateUserInfoResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateUserInfoResponseMultiError) AllErrors ¶
func (m UpdateUserInfoResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserInfoResponseMultiError) Error ¶
func (m UpdateUserInfoResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserInfoResponseValidationError ¶
type UpdateUserInfoResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateUserInfoResponseValidationError is the validation error returned by UpdateUserInfoResponse.Validate if the designated constraints aren't met.
func (UpdateUserInfoResponseValidationError) Cause ¶
func (e UpdateUserInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserInfoResponseValidationError) Error ¶
func (e UpdateUserInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserInfoResponseValidationError) ErrorName ¶
func (e UpdateUserInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserInfoResponseValidationError) Field ¶
func (e UpdateUserInfoResponseValidationError) Field() string
Field function returns field value.
func (UpdateUserInfoResponseValidationError) Key ¶
func (e UpdateUserInfoResponseValidationError) Key() bool
Key function returns key value.
func (UpdateUserInfoResponseValidationError) Reason ¶
func (e UpdateUserInfoResponseValidationError) Reason() string
Reason function returns reason value.
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"` // 用户名称 Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` // 用户头像Url BackgroundImage string `protobuf:"bytes,4,opt,name=background_image,json=backgroundImage,proto3" json:"background_image,omitempty"` // 用户个人页顶部大图 Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` // 个人简介 Mobile string `protobuf:"bytes,6,opt,name=mobile,proto3" json:"mobile,omitempty"` // 手机号 Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` // 邮箱 FollowCount int64 `protobuf:"varint,8,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"` // 关注总数 FollowerCount int64 `protobuf:"varint,9,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"` // 粉丝总数 TotalFavorited int64 `protobuf:"varint,10,opt,name=total_favorited,json=totalFavorited,proto3" json:"total_favorited,omitempty"` // 获赞数量 WorkCount int64 `protobuf:"varint,11,opt,name=work_count,json=workCount,proto3" json:"work_count,omitempty"` // 作品数量 FavoriteCount int64 `protobuf:"varint,12,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 点赞数量 // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetBackgroundImage ¶
func (*User) GetFavoriteCount ¶
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetSignature ¶
func (*User) GetTotalFavorited ¶
func (*User) GetWorkCount ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶
Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*User) ValidateAll ¶
ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.
type UserMultiError ¶
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserServiceClient ¶
type UserServiceClient interface { CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...grpc.CallOption) (*UpdateUserInfoResponse, error) GetUserByIdList(ctx context.Context, in *GetUserByIdListRequest, opts ...grpc.CallOption) (*GetUserByIdListResponse, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceHTTPClient ¶
type UserServiceHTTPClient interface { CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *CreateUserResponse, err error) GetUserInfo(ctx context.Context, req *GetUserInfoRequest, opts ...http.CallOption) (rsp *GetUserInfoResponse, err error) UpdateUserInfo(ctx context.Context, req *UpdateUserInfoRequest, opts ...http.CallOption) (rsp *UpdateUserInfoResponse, err error) }
func NewUserServiceHTTPClient ¶
func NewUserServiceHTTPClient(client *http.Client) UserServiceHTTPClient
type UserServiceHTTPClientImpl ¶
type UserServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserServiceHTTPClientImpl) CreateUser ¶
func (c *UserServiceHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*CreateUserResponse, error)
func (*UserServiceHTTPClientImpl) GetUserInfo ¶
func (c *UserServiceHTTPClientImpl) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...http.CallOption) (*GetUserInfoResponse, error)
func (*UserServiceHTTPClientImpl) UpdateUserInfo ¶
func (c *UserServiceHTTPClientImpl) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...http.CallOption) (*UpdateUserInfoResponse, error)
type UserServiceHTTPServer ¶
type UserServiceHTTPServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*UpdateUserInfoResponse, error) }
type UserServiceServer ¶
type UserServiceServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) UpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*UpdateUserInfoResponse, error) GetUserByIdList(context.Context, *GetUserByIdListRequest) (*GetUserByIdListResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.
type Video ¶
type Video struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 视频唯一标识 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // 视频标题 Author *Author `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"` // 视频作者信息 PlayUrl string `protobuf:"bytes,4,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"` // 视频播放地址 CoverUrl string `protobuf:"bytes,5,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 视频封面地址 FavoriteCount int64 `protobuf:"varint,6,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 视频的点赞总数 CommentCount int64 `protobuf:"varint,7,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"` // 视频的评论总数 IsFavorite int64 `protobuf:"varint,8,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,omitempty"` // 0-未点赞,1-已点赞 UploadTime string `protobuf:"bytes,9,opt,name=upload_time,json=uploadTime,proto3" json:"upload_time,omitempty"` // 视频上传时间 Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"` // 视频描述 // contains filtered or unexported fields }
func (*Video) Descriptor
deprecated
func (*Video) GetCommentCount ¶
func (*Video) GetCoverUrl ¶
func (*Video) GetDescription ¶
func (*Video) GetFavoriteCount ¶
func (*Video) GetIsFavorite ¶
func (*Video) GetPlayUrl ¶
func (*Video) GetUploadTime ¶
func (*Video) ProtoMessage ¶
func (*Video) ProtoMessage()
func (*Video) ProtoReflect ¶
func (x *Video) ProtoReflect() protoreflect.Message
type VideoServiceClient ¶
type VideoServiceClient interface { FeedShortVideo(ctx context.Context, in *FeedShortVideoRequest, opts ...grpc.CallOption) (*FeedShortVideoResponse, error) GetVideoById(ctx context.Context, in *GetVideoByIdRequest, opts ...grpc.CallOption) (*GetVideoByIdResponse, error) PublishVideo(ctx context.Context, in *PublishVideoRequest, opts ...grpc.CallOption) (*PublishVideoResponse, error) ListPublishedVideo(ctx context.Context, in *ListPublishedVideoRequest, opts ...grpc.CallOption) (*ListPublishedVideoResponse, error) GetVideoByIdList(ctx context.Context, in *GetVideoByIdListRequest, opts ...grpc.CallOption) (*GetVideoByIdListResponse, error) }
VideoServiceClient is the client API for VideoService 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 NewVideoServiceClient ¶
func NewVideoServiceClient(cc grpc.ClientConnInterface) VideoServiceClient
type VideoServiceHTTPClient ¶
type VideoServiceHTTPClient interface { FeedShortVideo(ctx context.Context, req *FeedShortVideoRequest, opts ...http.CallOption) (rsp *FeedShortVideoResponse, err error) GetVideoById(ctx context.Context, req *GetVideoByIdRequest, opts ...http.CallOption) (rsp *GetVideoByIdResponse, err error) ListPublishedVideo(ctx context.Context, req *ListPublishedVideoRequest, opts ...http.CallOption) (rsp *ListPublishedVideoResponse, err error) PublishVideo(ctx context.Context, req *PublishVideoRequest, opts ...http.CallOption) (rsp *PublishVideoResponse, err error) }
func NewVideoServiceHTTPClient ¶
func NewVideoServiceHTTPClient(client *http.Client) VideoServiceHTTPClient
type VideoServiceHTTPClientImpl ¶
type VideoServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*VideoServiceHTTPClientImpl) FeedShortVideo ¶
func (c *VideoServiceHTTPClientImpl) FeedShortVideo(ctx context.Context, in *FeedShortVideoRequest, opts ...http.CallOption) (*FeedShortVideoResponse, error)
func (*VideoServiceHTTPClientImpl) GetVideoById ¶
func (c *VideoServiceHTTPClientImpl) GetVideoById(ctx context.Context, in *GetVideoByIdRequest, opts ...http.CallOption) (*GetVideoByIdResponse, error)
func (*VideoServiceHTTPClientImpl) ListPublishedVideo ¶
func (c *VideoServiceHTTPClientImpl) ListPublishedVideo(ctx context.Context, in *ListPublishedVideoRequest, opts ...http.CallOption) (*ListPublishedVideoResponse, error)
func (*VideoServiceHTTPClientImpl) PublishVideo ¶
func (c *VideoServiceHTTPClientImpl) PublishVideo(ctx context.Context, in *PublishVideoRequest, opts ...http.CallOption) (*PublishVideoResponse, error)
type VideoServiceHTTPServer ¶
type VideoServiceHTTPServer interface { FeedShortVideo(context.Context, *FeedShortVideoRequest) (*FeedShortVideoResponse, error) GetVideoById(context.Context, *GetVideoByIdRequest) (*GetVideoByIdResponse, error) ListPublishedVideo(context.Context, *ListPublishedVideoRequest) (*ListPublishedVideoResponse, error) PublishVideo(context.Context, *PublishVideoRequest) (*PublishVideoResponse, error) }
type VideoServiceServer ¶
type VideoServiceServer interface { FeedShortVideo(context.Context, *FeedShortVideoRequest) (*FeedShortVideoResponse, error) GetVideoById(context.Context, *GetVideoByIdRequest) (*GetVideoByIdResponse, error) PublishVideo(context.Context, *PublishVideoRequest) (*PublishVideoResponse, error) ListPublishedVideo(context.Context, *ListPublishedVideoRequest) (*ListPublishedVideoResponse, error) GetVideoByIdList(context.Context, *GetVideoByIdListRequest) (*GetVideoByIdListResponse, error) // contains filtered or unexported methods }
VideoServiceServer is the server API for VideoService service. All implementations must embed UnimplementedVideoServiceServer for forward compatibility