Documentation ¶
Index ¶
- Variables
- type BaseResp
- func (*BaseResp) Descriptor() ([]byte, []int)deprecated
- func (x *BaseResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *BaseResp) FastWrite(buf []byte) (offset int)
- func (x *BaseResp) GetServiceTime() int64
- func (x *BaseResp) GetStatusCode() int32
- func (x *BaseResp) GetStatusMessage() string
- func (*BaseResp) ProtoMessage()
- func (x *BaseResp) ProtoReflect() protoreflect.Message
- func (x *BaseResp) Reset()
- func (x *BaseResp) Size() (n int)
- func (x *BaseResp) String() string
- type CreateVideoReq
- func (*CreateVideoReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVideoReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CreateVideoReq) FastWrite(buf []byte) (offset int)
- func (x *CreateVideoReq) GetCoverUrl() string
- func (x *CreateVideoReq) GetPlayUrl() string
- func (x *CreateVideoReq) GetTitle() string
- func (x *CreateVideoReq) GetUserId() int64
- func (*CreateVideoReq) ProtoMessage()
- func (x *CreateVideoReq) ProtoReflect() protoreflect.Message
- func (x *CreateVideoReq) Reset()
- func (x *CreateVideoReq) Size() (n int)
- func (x *CreateVideoReq) String() string
- type CreateVideoResp
- func (*CreateVideoResp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVideoResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CreateVideoResp) FastWrite(buf []byte) (offset int)
- func (x *CreateVideoResp) GetBaseResp() *BaseResp
- func (*CreateVideoResp) ProtoMessage()
- func (x *CreateVideoResp) ProtoReflect() protoreflect.Message
- func (x *CreateVideoResp) Reset()
- func (x *CreateVideoResp) Size() (n int)
- func (x *CreateVideoResp) String() string
- type DecreaseCommentCountReq
- func (*DecreaseCommentCountReq) Descriptor() ([]byte, []int)deprecated
- func (x *DecreaseCommentCountReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DecreaseCommentCountReq) FastWrite(buf []byte) (offset int)
- func (x *DecreaseCommentCountReq) GetVideoID() int64
- func (*DecreaseCommentCountReq) ProtoMessage()
- func (x *DecreaseCommentCountReq) ProtoReflect() protoreflect.Message
- func (x *DecreaseCommentCountReq) Reset()
- func (x *DecreaseCommentCountReq) Size() (n int)
- func (x *DecreaseCommentCountReq) String() string
- type DecreaseCommentCountResp
- func (*DecreaseCommentCountResp) Descriptor() ([]byte, []int)deprecated
- func (x *DecreaseCommentCountResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DecreaseCommentCountResp) FastWrite(buf []byte) (offset int)
- func (x *DecreaseCommentCountResp) GetBaseResp() *BaseResp
- func (*DecreaseCommentCountResp) ProtoMessage()
- func (x *DecreaseCommentCountResp) ProtoReflect() protoreflect.Message
- func (x *DecreaseCommentCountResp) Reset()
- func (x *DecreaseCommentCountResp) Size() (n int)
- func (x *DecreaseCommentCountResp) String() string
- type DecreaseFavoriteCountReq
- func (*DecreaseFavoriteCountReq) Descriptor() ([]byte, []int)deprecated
- func (x *DecreaseFavoriteCountReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DecreaseFavoriteCountReq) FastWrite(buf []byte) (offset int)
- func (x *DecreaseFavoriteCountReq) GetVideoID() int64
- func (*DecreaseFavoriteCountReq) ProtoMessage()
- func (x *DecreaseFavoriteCountReq) ProtoReflect() protoreflect.Message
- func (x *DecreaseFavoriteCountReq) Reset()
- func (x *DecreaseFavoriteCountReq) Size() (n int)
- func (x *DecreaseFavoriteCountReq) String() string
- type DecreaseFavoriteCountResp
- func (*DecreaseFavoriteCountResp) Descriptor() ([]byte, []int)deprecated
- func (x *DecreaseFavoriteCountResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DecreaseFavoriteCountResp) FastWrite(buf []byte) (offset int)
- func (x *DecreaseFavoriteCountResp) GetBaseResp() *BaseResp
- func (*DecreaseFavoriteCountResp) ProtoMessage()
- func (x *DecreaseFavoriteCountResp) ProtoReflect() protoreflect.Message
- func (x *DecreaseFavoriteCountResp) Reset()
- func (x *DecreaseFavoriteCountResp) Size() (n int)
- func (x *DecreaseFavoriteCountResp) String() string
- type GetAuthorReq
- func (*GetAuthorReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthorReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetAuthorReq) FastWrite(buf []byte) (offset int)
- func (x *GetAuthorReq) GetMyUserID() int64
- func (x *GetAuthorReq) GetVideoID() int64
- func (*GetAuthorReq) ProtoMessage()
- func (x *GetAuthorReq) ProtoReflect() protoreflect.Message
- func (x *GetAuthorReq) Reset()
- func (x *GetAuthorReq) Size() (n int)
- func (x *GetAuthorReq) String() string
- type GetAuthorResp
- func (*GetAuthorResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthorResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetAuthorResp) FastWrite(buf []byte) (offset int)
- func (x *GetAuthorResp) GetAuthor() *User
- func (x *GetAuthorResp) GetBaseResp() *BaseResp
- func (*GetAuthorResp) ProtoMessage()
- func (x *GetAuthorResp) ProtoReflect() protoreflect.Message
- func (x *GetAuthorResp) Reset()
- func (x *GetAuthorResp) Size() (n int)
- func (x *GetAuthorResp) String() string
- type IncreaseCommentCountReq
- func (*IncreaseCommentCountReq) Descriptor() ([]byte, []int)deprecated
- func (x *IncreaseCommentCountReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *IncreaseCommentCountReq) FastWrite(buf []byte) (offset int)
- func (x *IncreaseCommentCountReq) GetVideoID() int64
- func (*IncreaseCommentCountReq) ProtoMessage()
- func (x *IncreaseCommentCountReq) ProtoReflect() protoreflect.Message
- func (x *IncreaseCommentCountReq) Reset()
- func (x *IncreaseCommentCountReq) Size() (n int)
- func (x *IncreaseCommentCountReq) String() string
- type IncreaseCommentCountResp
- func (*IncreaseCommentCountResp) Descriptor() ([]byte, []int)deprecated
- func (x *IncreaseCommentCountResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *IncreaseCommentCountResp) FastWrite(buf []byte) (offset int)
- func (x *IncreaseCommentCountResp) GetBaseResp() *BaseResp
- func (*IncreaseCommentCountResp) ProtoMessage()
- func (x *IncreaseCommentCountResp) ProtoReflect() protoreflect.Message
- func (x *IncreaseCommentCountResp) Reset()
- func (x *IncreaseCommentCountResp) Size() (n int)
- func (x *IncreaseCommentCountResp) String() string
- type IncreaseFavoriteCountReq
- func (*IncreaseFavoriteCountReq) Descriptor() ([]byte, []int)deprecated
- func (x *IncreaseFavoriteCountReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *IncreaseFavoriteCountReq) FastWrite(buf []byte) (offset int)
- func (x *IncreaseFavoriteCountReq) GetVideoID() int64
- func (*IncreaseFavoriteCountReq) ProtoMessage()
- func (x *IncreaseFavoriteCountReq) ProtoReflect() protoreflect.Message
- func (x *IncreaseFavoriteCountReq) Reset()
- func (x *IncreaseFavoriteCountReq) Size() (n int)
- func (x *IncreaseFavoriteCountReq) String() string
- type IncreaseFavoriteCountResp
- func (*IncreaseFavoriteCountResp) Descriptor() ([]byte, []int)deprecated
- func (x *IncreaseFavoriteCountResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *IncreaseFavoriteCountResp) FastWrite(buf []byte) (offset int)
- func (x *IncreaseFavoriteCountResp) GetBaseResp() *BaseResp
- func (*IncreaseFavoriteCountResp) ProtoMessage()
- func (x *IncreaseFavoriteCountResp) ProtoReflect() protoreflect.Message
- func (x *IncreaseFavoriteCountResp) Reset()
- func (x *IncreaseFavoriteCountResp) Size() (n int)
- func (x *IncreaseFavoriteCountResp) String() string
- type QueryVideoByUserReq
- func (*QueryVideoByUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVideoByUserReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *QueryVideoByUserReq) FastWrite(buf []byte) (offset int)
- func (x *QueryVideoByUserReq) GetMyUserId() int64
- func (x *QueryVideoByUserReq) GetUserId() int64
- func (*QueryVideoByUserReq) ProtoMessage()
- func (x *QueryVideoByUserReq) ProtoReflect() protoreflect.Message
- func (x *QueryVideoByUserReq) Reset()
- func (x *QueryVideoByUserReq) Size() (n int)
- func (x *QueryVideoByUserReq) String() string
- type QueryVideoByUserResp
- func (*QueryVideoByUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVideoByUserResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *QueryVideoByUserResp) FastWrite(buf []byte) (offset int)
- func (x *QueryVideoByUserResp) GetBaseResp() *BaseResp
- func (x *QueryVideoByUserResp) GetVideoList() []*Video
- func (*QueryVideoByUserResp) ProtoMessage()
- func (x *QueryVideoByUserResp) ProtoReflect() protoreflect.Message
- func (x *QueryVideoByUserResp) Reset()
- func (x *QueryVideoByUserResp) Size() (n int)
- func (x *QueryVideoByUserResp) String() string
- type QueryVideoByVideoIdBatchReq
- func (*QueryVideoByVideoIdBatchReq) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVideoByVideoIdBatchReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *QueryVideoByVideoIdBatchReq) FastWrite(buf []byte) (offset int)
- func (x *QueryVideoByVideoIdBatchReq) GetVideoID() []int64
- func (*QueryVideoByVideoIdBatchReq) ProtoMessage()
- func (x *QueryVideoByVideoIdBatchReq) ProtoReflect() protoreflect.Message
- func (x *QueryVideoByVideoIdBatchReq) Reset()
- func (x *QueryVideoByVideoIdBatchReq) Size() (n int)
- func (x *QueryVideoByVideoIdBatchReq) String() string
- type QueryVideoByVideoIdBatchResp
- func (*QueryVideoByVideoIdBatchResp) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVideoByVideoIdBatchResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *QueryVideoByVideoIdBatchResp) FastWrite(buf []byte) (offset int)
- func (x *QueryVideoByVideoIdBatchResp) GetBaseResp() *BaseResp
- func (x *QueryVideoByVideoIdBatchResp) GetVideoList() []*Video
- func (*QueryVideoByVideoIdBatchResp) ProtoMessage()
- func (x *QueryVideoByVideoIdBatchResp) ProtoReflect() protoreflect.Message
- func (x *QueryVideoByVideoIdBatchResp) Reset()
- func (x *QueryVideoByVideoIdBatchResp) Size() (n int)
- func (x *QueryVideoByVideoIdBatchResp) String() string
- type QueryVideoReq
- func (*QueryVideoReq) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVideoReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *QueryVideoReq) FastWrite(buf []byte) (offset int)
- func (x *QueryVideoReq) GetLatestTime() int64
- func (x *QueryVideoReq) GetUserId() int64
- func (*QueryVideoReq) ProtoMessage()
- func (x *QueryVideoReq) ProtoReflect() protoreflect.Message
- func (x *QueryVideoReq) Reset()
- func (x *QueryVideoReq) Size() (n int)
- func (x *QueryVideoReq) String() string
- type QueryVideoResp
- func (*QueryVideoResp) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVideoResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *QueryVideoResp) FastWrite(buf []byte) (offset int)
- func (x *QueryVideoResp) GetBaseResp() *BaseResp
- func (x *QueryVideoResp) GetNextTime() int64
- func (x *QueryVideoResp) GetVideoList() []*Video
- func (*QueryVideoResp) ProtoMessage()
- func (x *QueryVideoResp) ProtoReflect() protoreflect.Message
- func (x *QueryVideoResp) Reset()
- func (x *QueryVideoResp) Size() (n int)
- func (x *QueryVideoResp) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *User) FastWrite(buf []byte) (offset int)
- func (x *User) GetFollowCount() int64
- func (x *User) GetFollowerCount() int64
- func (x *User) GetId() int64
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) Size() (n int)
- func (x *User) String() string
- type Video
- func (*Video) Descriptor() ([]byte, []int)deprecated
- func (x *Video) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Video) FastWrite(buf []byte) (offset int)
- func (x *Video) GetAuthor() *User
- func (x *Video) GetCommentCount() int64
- func (x *Video) GetCoverUrl() string
- func (x *Video) GetFavoriteCount() int64
- func (x *Video) GetId() int64
- func (x *Video) GetIsFavorite() bool
- func (x *Video) GetPlayUrl() string
- func (x *Video) GetTitle() string
- func (*Video) ProtoMessage()
- func (x *Video) ProtoReflect() protoreflect.Message
- func (x *Video) Reset()
- func (x *Video) Size() (n int)
- func (x *Video) String() string
- type VideoService
Constants ¶
This section is empty.
Variables ¶
var File_video_rpc_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BaseResp ¶
type BaseResp struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` ServiceTime int64 `protobuf:"varint,3,opt,name=service_time,json=serviceTime,proto3" json:"service_time,omitempty"` // contains filtered or unexported fields }
func (*BaseResp) Descriptor
deprecated
func (*BaseResp) GetServiceTime ¶
func (*BaseResp) GetStatusCode ¶
func (*BaseResp) GetStatusMessage ¶
func (*BaseResp) ProtoMessage ¶
func (*BaseResp) ProtoMessage()
func (*BaseResp) ProtoReflect ¶
func (x *BaseResp) ProtoReflect() protoreflect.Message
type CreateVideoReq ¶
type CreateVideoReq struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` PlayUrl string `protobuf:"bytes,2,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"` CoverUrl string `protobuf:"bytes,3,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*CreateVideoReq) Descriptor
deprecated
func (*CreateVideoReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateVideoReq.ProtoReflect.Descriptor instead.
func (*CreateVideoReq) FastWrite ¶
func (x *CreateVideoReq) FastWrite(buf []byte) (offset int)
func (*CreateVideoReq) GetCoverUrl ¶
func (x *CreateVideoReq) GetCoverUrl() string
func (*CreateVideoReq) GetPlayUrl ¶
func (x *CreateVideoReq) GetPlayUrl() string
func (*CreateVideoReq) GetTitle ¶
func (x *CreateVideoReq) GetTitle() string
func (*CreateVideoReq) GetUserId ¶
func (x *CreateVideoReq) GetUserId() int64
func (*CreateVideoReq) ProtoMessage ¶
func (*CreateVideoReq) ProtoMessage()
func (*CreateVideoReq) ProtoReflect ¶
func (x *CreateVideoReq) ProtoReflect() protoreflect.Message
func (*CreateVideoReq) Reset ¶
func (x *CreateVideoReq) Reset()
func (*CreateVideoReq) Size ¶
func (x *CreateVideoReq) Size() (n int)
func (*CreateVideoReq) String ¶
func (x *CreateVideoReq) String() string
type CreateVideoResp ¶
type CreateVideoResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*CreateVideoResp) Descriptor
deprecated
func (*CreateVideoResp) Descriptor() ([]byte, []int)
Deprecated: Use CreateVideoResp.ProtoReflect.Descriptor instead.
func (*CreateVideoResp) FastWrite ¶
func (x *CreateVideoResp) FastWrite(buf []byte) (offset int)
func (*CreateVideoResp) GetBaseResp ¶
func (x *CreateVideoResp) GetBaseResp() *BaseResp
func (*CreateVideoResp) ProtoMessage ¶
func (*CreateVideoResp) ProtoMessage()
func (*CreateVideoResp) ProtoReflect ¶
func (x *CreateVideoResp) ProtoReflect() protoreflect.Message
func (*CreateVideoResp) Reset ¶
func (x *CreateVideoResp) Reset()
func (*CreateVideoResp) Size ¶
func (x *CreateVideoResp) Size() (n int)
func (*CreateVideoResp) String ¶
func (x *CreateVideoResp) String() string
type DecreaseCommentCountReq ¶
type DecreaseCommentCountReq struct { VideoID int64 `protobuf:"varint,1,opt,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*DecreaseCommentCountReq) Descriptor
deprecated
func (*DecreaseCommentCountReq) Descriptor() ([]byte, []int)
Deprecated: Use DecreaseCommentCountReq.ProtoReflect.Descriptor instead.
func (*DecreaseCommentCountReq) FastWrite ¶
func (x *DecreaseCommentCountReq) FastWrite(buf []byte) (offset int)
func (*DecreaseCommentCountReq) GetVideoID ¶
func (x *DecreaseCommentCountReq) GetVideoID() int64
func (*DecreaseCommentCountReq) ProtoMessage ¶
func (*DecreaseCommentCountReq) ProtoMessage()
func (*DecreaseCommentCountReq) ProtoReflect ¶
func (x *DecreaseCommentCountReq) ProtoReflect() protoreflect.Message
func (*DecreaseCommentCountReq) Reset ¶
func (x *DecreaseCommentCountReq) Reset()
func (*DecreaseCommentCountReq) Size ¶
func (x *DecreaseCommentCountReq) Size() (n int)
func (*DecreaseCommentCountReq) String ¶
func (x *DecreaseCommentCountReq) String() string
type DecreaseCommentCountResp ¶
type DecreaseCommentCountResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*DecreaseCommentCountResp) Descriptor
deprecated
func (*DecreaseCommentCountResp) Descriptor() ([]byte, []int)
Deprecated: Use DecreaseCommentCountResp.ProtoReflect.Descriptor instead.
func (*DecreaseCommentCountResp) FastWrite ¶
func (x *DecreaseCommentCountResp) FastWrite(buf []byte) (offset int)
func (*DecreaseCommentCountResp) GetBaseResp ¶
func (x *DecreaseCommentCountResp) GetBaseResp() *BaseResp
func (*DecreaseCommentCountResp) ProtoMessage ¶
func (*DecreaseCommentCountResp) ProtoMessage()
func (*DecreaseCommentCountResp) ProtoReflect ¶
func (x *DecreaseCommentCountResp) ProtoReflect() protoreflect.Message
func (*DecreaseCommentCountResp) Reset ¶
func (x *DecreaseCommentCountResp) Reset()
func (*DecreaseCommentCountResp) Size ¶
func (x *DecreaseCommentCountResp) Size() (n int)
func (*DecreaseCommentCountResp) String ¶
func (x *DecreaseCommentCountResp) String() string
type DecreaseFavoriteCountReq ¶
type DecreaseFavoriteCountReq struct { VideoID int64 `protobuf:"varint,1,opt,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*DecreaseFavoriteCountReq) Descriptor
deprecated
func (*DecreaseFavoriteCountReq) Descriptor() ([]byte, []int)
Deprecated: Use DecreaseFavoriteCountReq.ProtoReflect.Descriptor instead.
func (*DecreaseFavoriteCountReq) FastWrite ¶
func (x *DecreaseFavoriteCountReq) FastWrite(buf []byte) (offset int)
func (*DecreaseFavoriteCountReq) GetVideoID ¶
func (x *DecreaseFavoriteCountReq) GetVideoID() int64
func (*DecreaseFavoriteCountReq) ProtoMessage ¶
func (*DecreaseFavoriteCountReq) ProtoMessage()
func (*DecreaseFavoriteCountReq) ProtoReflect ¶
func (x *DecreaseFavoriteCountReq) ProtoReflect() protoreflect.Message
func (*DecreaseFavoriteCountReq) Reset ¶
func (x *DecreaseFavoriteCountReq) Reset()
func (*DecreaseFavoriteCountReq) Size ¶
func (x *DecreaseFavoriteCountReq) Size() (n int)
func (*DecreaseFavoriteCountReq) String ¶
func (x *DecreaseFavoriteCountReq) String() string
type DecreaseFavoriteCountResp ¶
type DecreaseFavoriteCountResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*DecreaseFavoriteCountResp) Descriptor
deprecated
func (*DecreaseFavoriteCountResp) Descriptor() ([]byte, []int)
Deprecated: Use DecreaseFavoriteCountResp.ProtoReflect.Descriptor instead.
func (*DecreaseFavoriteCountResp) FastWrite ¶
func (x *DecreaseFavoriteCountResp) FastWrite(buf []byte) (offset int)
func (*DecreaseFavoriteCountResp) GetBaseResp ¶
func (x *DecreaseFavoriteCountResp) GetBaseResp() *BaseResp
func (*DecreaseFavoriteCountResp) ProtoMessage ¶
func (*DecreaseFavoriteCountResp) ProtoMessage()
func (*DecreaseFavoriteCountResp) ProtoReflect ¶
func (x *DecreaseFavoriteCountResp) ProtoReflect() protoreflect.Message
func (*DecreaseFavoriteCountResp) Reset ¶
func (x *DecreaseFavoriteCountResp) Reset()
func (*DecreaseFavoriteCountResp) Size ¶
func (x *DecreaseFavoriteCountResp) Size() (n int)
func (*DecreaseFavoriteCountResp) String ¶
func (x *DecreaseFavoriteCountResp) String() string
type GetAuthorReq ¶
type GetAuthorReq struct { VideoID int64 `protobuf:"varint,1,opt,name=videoID,proto3" json:"videoID,omitempty"` MyUserID int64 `protobuf:"varint,2,opt,name=myUserID,proto3" json:"myUserID,omitempty"` // contains filtered or unexported fields }
func (*GetAuthorReq) Descriptor
deprecated
func (*GetAuthorReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthorReq.ProtoReflect.Descriptor instead.
func (*GetAuthorReq) FastWrite ¶
func (x *GetAuthorReq) FastWrite(buf []byte) (offset int)
func (*GetAuthorReq) GetMyUserID ¶
func (x *GetAuthorReq) GetMyUserID() int64
func (*GetAuthorReq) GetVideoID ¶
func (x *GetAuthorReq) GetVideoID() int64
func (*GetAuthorReq) ProtoMessage ¶
func (*GetAuthorReq) ProtoMessage()
func (*GetAuthorReq) ProtoReflect ¶
func (x *GetAuthorReq) ProtoReflect() protoreflect.Message
func (*GetAuthorReq) Reset ¶
func (x *GetAuthorReq) Reset()
func (*GetAuthorReq) Size ¶
func (x *GetAuthorReq) Size() (n int)
func (*GetAuthorReq) String ¶
func (x *GetAuthorReq) String() string
type GetAuthorResp ¶
type GetAuthorResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` Author *User `protobuf:"bytes,2,opt,name=Author,proto3" json:"Author,omitempty"` // contains filtered or unexported fields }
func (*GetAuthorResp) Descriptor
deprecated
func (*GetAuthorResp) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthorResp.ProtoReflect.Descriptor instead.
func (*GetAuthorResp) FastWrite ¶
func (x *GetAuthorResp) FastWrite(buf []byte) (offset int)
func (*GetAuthorResp) GetAuthor ¶
func (x *GetAuthorResp) GetAuthor() *User
func (*GetAuthorResp) GetBaseResp ¶
func (x *GetAuthorResp) GetBaseResp() *BaseResp
func (*GetAuthorResp) ProtoMessage ¶
func (*GetAuthorResp) ProtoMessage()
func (*GetAuthorResp) ProtoReflect ¶
func (x *GetAuthorResp) ProtoReflect() protoreflect.Message
func (*GetAuthorResp) Reset ¶
func (x *GetAuthorResp) Reset()
func (*GetAuthorResp) Size ¶
func (x *GetAuthorResp) Size() (n int)
func (*GetAuthorResp) String ¶
func (x *GetAuthorResp) String() string
type IncreaseCommentCountReq ¶
type IncreaseCommentCountReq struct { VideoID int64 `protobuf:"varint,1,opt,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*IncreaseCommentCountReq) Descriptor
deprecated
func (*IncreaseCommentCountReq) Descriptor() ([]byte, []int)
Deprecated: Use IncreaseCommentCountReq.ProtoReflect.Descriptor instead.
func (*IncreaseCommentCountReq) FastWrite ¶
func (x *IncreaseCommentCountReq) FastWrite(buf []byte) (offset int)
func (*IncreaseCommentCountReq) GetVideoID ¶
func (x *IncreaseCommentCountReq) GetVideoID() int64
func (*IncreaseCommentCountReq) ProtoMessage ¶
func (*IncreaseCommentCountReq) ProtoMessage()
func (*IncreaseCommentCountReq) ProtoReflect ¶
func (x *IncreaseCommentCountReq) ProtoReflect() protoreflect.Message
func (*IncreaseCommentCountReq) Reset ¶
func (x *IncreaseCommentCountReq) Reset()
func (*IncreaseCommentCountReq) Size ¶
func (x *IncreaseCommentCountReq) Size() (n int)
func (*IncreaseCommentCountReq) String ¶
func (x *IncreaseCommentCountReq) String() string
type IncreaseCommentCountResp ¶
type IncreaseCommentCountResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*IncreaseCommentCountResp) Descriptor
deprecated
func (*IncreaseCommentCountResp) Descriptor() ([]byte, []int)
Deprecated: Use IncreaseCommentCountResp.ProtoReflect.Descriptor instead.
func (*IncreaseCommentCountResp) FastWrite ¶
func (x *IncreaseCommentCountResp) FastWrite(buf []byte) (offset int)
func (*IncreaseCommentCountResp) GetBaseResp ¶
func (x *IncreaseCommentCountResp) GetBaseResp() *BaseResp
func (*IncreaseCommentCountResp) ProtoMessage ¶
func (*IncreaseCommentCountResp) ProtoMessage()
func (*IncreaseCommentCountResp) ProtoReflect ¶
func (x *IncreaseCommentCountResp) ProtoReflect() protoreflect.Message
func (*IncreaseCommentCountResp) Reset ¶
func (x *IncreaseCommentCountResp) Reset()
func (*IncreaseCommentCountResp) Size ¶
func (x *IncreaseCommentCountResp) Size() (n int)
func (*IncreaseCommentCountResp) String ¶
func (x *IncreaseCommentCountResp) String() string
type IncreaseFavoriteCountReq ¶
type IncreaseFavoriteCountReq struct { VideoID int64 `protobuf:"varint,1,opt,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*IncreaseFavoriteCountReq) Descriptor
deprecated
func (*IncreaseFavoriteCountReq) Descriptor() ([]byte, []int)
Deprecated: Use IncreaseFavoriteCountReq.ProtoReflect.Descriptor instead.
func (*IncreaseFavoriteCountReq) FastWrite ¶
func (x *IncreaseFavoriteCountReq) FastWrite(buf []byte) (offset int)
func (*IncreaseFavoriteCountReq) GetVideoID ¶
func (x *IncreaseFavoriteCountReq) GetVideoID() int64
func (*IncreaseFavoriteCountReq) ProtoMessage ¶
func (*IncreaseFavoriteCountReq) ProtoMessage()
func (*IncreaseFavoriteCountReq) ProtoReflect ¶
func (x *IncreaseFavoriteCountReq) ProtoReflect() protoreflect.Message
func (*IncreaseFavoriteCountReq) Reset ¶
func (x *IncreaseFavoriteCountReq) Reset()
func (*IncreaseFavoriteCountReq) Size ¶
func (x *IncreaseFavoriteCountReq) Size() (n int)
func (*IncreaseFavoriteCountReq) String ¶
func (x *IncreaseFavoriteCountReq) String() string
type IncreaseFavoriteCountResp ¶
type IncreaseFavoriteCountResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*IncreaseFavoriteCountResp) Descriptor
deprecated
func (*IncreaseFavoriteCountResp) Descriptor() ([]byte, []int)
Deprecated: Use IncreaseFavoriteCountResp.ProtoReflect.Descriptor instead.
func (*IncreaseFavoriteCountResp) FastWrite ¶
func (x *IncreaseFavoriteCountResp) FastWrite(buf []byte) (offset int)
func (*IncreaseFavoriteCountResp) GetBaseResp ¶
func (x *IncreaseFavoriteCountResp) GetBaseResp() *BaseResp
func (*IncreaseFavoriteCountResp) ProtoMessage ¶
func (*IncreaseFavoriteCountResp) ProtoMessage()
func (*IncreaseFavoriteCountResp) ProtoReflect ¶
func (x *IncreaseFavoriteCountResp) ProtoReflect() protoreflect.Message
func (*IncreaseFavoriteCountResp) Reset ¶
func (x *IncreaseFavoriteCountResp) Reset()
func (*IncreaseFavoriteCountResp) Size ¶
func (x *IncreaseFavoriteCountResp) Size() (n int)
func (*IncreaseFavoriteCountResp) String ¶
func (x *IncreaseFavoriteCountResp) String() string
type QueryVideoByUserReq ¶
type QueryVideoByUserReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` MyUserId int64 `protobuf:"varint,2,opt,name=my_user_id,json=myUserId,proto3" json:"my_user_id,omitempty"` // contains filtered or unexported fields }
func (*QueryVideoByUserReq) Descriptor
deprecated
func (*QueryVideoByUserReq) Descriptor() ([]byte, []int)
Deprecated: Use QueryVideoByUserReq.ProtoReflect.Descriptor instead.
func (*QueryVideoByUserReq) FastWrite ¶
func (x *QueryVideoByUserReq) FastWrite(buf []byte) (offset int)
func (*QueryVideoByUserReq) GetMyUserId ¶
func (x *QueryVideoByUserReq) GetMyUserId() int64
func (*QueryVideoByUserReq) GetUserId ¶
func (x *QueryVideoByUserReq) GetUserId() int64
func (*QueryVideoByUserReq) ProtoMessage ¶
func (*QueryVideoByUserReq) ProtoMessage()
func (*QueryVideoByUserReq) ProtoReflect ¶
func (x *QueryVideoByUserReq) ProtoReflect() protoreflect.Message
func (*QueryVideoByUserReq) Reset ¶
func (x *QueryVideoByUserReq) Reset()
func (*QueryVideoByUserReq) Size ¶
func (x *QueryVideoByUserReq) Size() (n int)
func (*QueryVideoByUserReq) String ¶
func (x *QueryVideoByUserReq) String() string
type QueryVideoByUserResp ¶
type QueryVideoByUserResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` VideoList []*Video `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"` // contains filtered or unexported fields }
func (*QueryVideoByUserResp) Descriptor
deprecated
func (*QueryVideoByUserResp) Descriptor() ([]byte, []int)
Deprecated: Use QueryVideoByUserResp.ProtoReflect.Descriptor instead.
func (*QueryVideoByUserResp) FastWrite ¶
func (x *QueryVideoByUserResp) FastWrite(buf []byte) (offset int)
func (*QueryVideoByUserResp) GetBaseResp ¶
func (x *QueryVideoByUserResp) GetBaseResp() *BaseResp
func (*QueryVideoByUserResp) GetVideoList ¶
func (x *QueryVideoByUserResp) GetVideoList() []*Video
func (*QueryVideoByUserResp) ProtoMessage ¶
func (*QueryVideoByUserResp) ProtoMessage()
func (*QueryVideoByUserResp) ProtoReflect ¶
func (x *QueryVideoByUserResp) ProtoReflect() protoreflect.Message
func (*QueryVideoByUserResp) Reset ¶
func (x *QueryVideoByUserResp) Reset()
func (*QueryVideoByUserResp) Size ¶
func (x *QueryVideoByUserResp) Size() (n int)
func (*QueryVideoByUserResp) String ¶
func (x *QueryVideoByUserResp) String() string
type QueryVideoByVideoIdBatchReq ¶
type QueryVideoByVideoIdBatchReq struct { VideoID []int64 `protobuf:"varint,1,rep,packed,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*QueryVideoByVideoIdBatchReq) Descriptor
deprecated
func (*QueryVideoByVideoIdBatchReq) Descriptor() ([]byte, []int)
Deprecated: Use QueryVideoByVideoIdBatchReq.ProtoReflect.Descriptor instead.
func (*QueryVideoByVideoIdBatchReq) FastWrite ¶
func (x *QueryVideoByVideoIdBatchReq) FastWrite(buf []byte) (offset int)
func (*QueryVideoByVideoIdBatchReq) GetVideoID ¶
func (x *QueryVideoByVideoIdBatchReq) GetVideoID() []int64
func (*QueryVideoByVideoIdBatchReq) ProtoMessage ¶
func (*QueryVideoByVideoIdBatchReq) ProtoMessage()
func (*QueryVideoByVideoIdBatchReq) ProtoReflect ¶
func (x *QueryVideoByVideoIdBatchReq) ProtoReflect() protoreflect.Message
func (*QueryVideoByVideoIdBatchReq) Reset ¶
func (x *QueryVideoByVideoIdBatchReq) Reset()
func (*QueryVideoByVideoIdBatchReq) Size ¶
func (x *QueryVideoByVideoIdBatchReq) Size() (n int)
func (*QueryVideoByVideoIdBatchReq) String ¶
func (x *QueryVideoByVideoIdBatchReq) String() string
type QueryVideoByVideoIdBatchResp ¶
type QueryVideoByVideoIdBatchResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` VideoList []*Video `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"` // contains filtered or unexported fields }
func (*QueryVideoByVideoIdBatchResp) Descriptor
deprecated
func (*QueryVideoByVideoIdBatchResp) Descriptor() ([]byte, []int)
Deprecated: Use QueryVideoByVideoIdBatchResp.ProtoReflect.Descriptor instead.
func (*QueryVideoByVideoIdBatchResp) FastWrite ¶
func (x *QueryVideoByVideoIdBatchResp) FastWrite(buf []byte) (offset int)
func (*QueryVideoByVideoIdBatchResp) GetBaseResp ¶
func (x *QueryVideoByVideoIdBatchResp) GetBaseResp() *BaseResp
func (*QueryVideoByVideoIdBatchResp) GetVideoList ¶
func (x *QueryVideoByVideoIdBatchResp) GetVideoList() []*Video
func (*QueryVideoByVideoIdBatchResp) ProtoMessage ¶
func (*QueryVideoByVideoIdBatchResp) ProtoMessage()
func (*QueryVideoByVideoIdBatchResp) ProtoReflect ¶
func (x *QueryVideoByVideoIdBatchResp) ProtoReflect() protoreflect.Message
func (*QueryVideoByVideoIdBatchResp) Reset ¶
func (x *QueryVideoByVideoIdBatchResp) Reset()
func (*QueryVideoByVideoIdBatchResp) Size ¶
func (x *QueryVideoByVideoIdBatchResp) Size() (n int)
func (*QueryVideoByVideoIdBatchResp) String ¶
func (x *QueryVideoByVideoIdBatchResp) String() string
type QueryVideoReq ¶
type QueryVideoReq 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"` // contains filtered or unexported fields }
func (*QueryVideoReq) Descriptor
deprecated
func (*QueryVideoReq) Descriptor() ([]byte, []int)
Deprecated: Use QueryVideoReq.ProtoReflect.Descriptor instead.
func (*QueryVideoReq) FastWrite ¶
func (x *QueryVideoReq) FastWrite(buf []byte) (offset int)
func (*QueryVideoReq) GetLatestTime ¶
func (x *QueryVideoReq) GetLatestTime() int64
func (*QueryVideoReq) GetUserId ¶
func (x *QueryVideoReq) GetUserId() int64
func (*QueryVideoReq) ProtoMessage ¶
func (*QueryVideoReq) ProtoMessage()
func (*QueryVideoReq) ProtoReflect ¶
func (x *QueryVideoReq) ProtoReflect() protoreflect.Message
func (*QueryVideoReq) Reset ¶
func (x *QueryVideoReq) Reset()
func (*QueryVideoReq) Size ¶
func (x *QueryVideoReq) Size() (n int)
func (*QueryVideoReq) String ¶
func (x *QueryVideoReq) String() string
type QueryVideoResp ¶
type QueryVideoResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` VideoList []*Video `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"` NextTime int64 `protobuf:"varint,3,opt,name=next_time,json=nextTime,proto3" json:"next_time,omitempty"` // contains filtered or unexported fields }
func (*QueryVideoResp) Descriptor
deprecated
func (*QueryVideoResp) Descriptor() ([]byte, []int)
Deprecated: Use QueryVideoResp.ProtoReflect.Descriptor instead.
func (*QueryVideoResp) FastWrite ¶
func (x *QueryVideoResp) FastWrite(buf []byte) (offset int)
func (*QueryVideoResp) GetBaseResp ¶
func (x *QueryVideoResp) GetBaseResp() *BaseResp
func (*QueryVideoResp) GetNextTime ¶
func (x *QueryVideoResp) GetNextTime() int64
func (*QueryVideoResp) GetVideoList ¶
func (x *QueryVideoResp) GetVideoList() []*Video
func (*QueryVideoResp) ProtoMessage ¶
func (*QueryVideoResp) ProtoMessage()
func (*QueryVideoResp) ProtoReflect ¶
func (x *QueryVideoResp) ProtoReflect() protoreflect.Message
func (*QueryVideoResp) Reset ¶
func (x *QueryVideoResp) Reset()
func (*QueryVideoResp) Size ¶
func (x *QueryVideoResp) Size() (n int)
func (*QueryVideoResp) String ¶
func (x *QueryVideoResp) String() string
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户id Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 用户名称 FollowCount int64 `protobuf:"varint,3,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"` // 关注总数 FollowerCount int64 `protobuf:"varint,4,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"` // 粉丝总数 IsFollow bool `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty"` // true-已关注,false-未关注 // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type Video ¶
type Video struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 视频唯一标识 Author *User `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` // 视频作者信息 PlayUrl string `protobuf:"bytes,3,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"` // 视频播放地址 CoverUrl string `protobuf:"bytes,4,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 视频封面地址 FavoriteCount int64 `protobuf:"varint,5,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 视频的点赞总数 CommentCount int64 `protobuf:"varint,6,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"` // 视频的评论总数 IsFavorite bool `protobuf:"varint,7,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,omitempty"` // true-已点赞,false-未点赞 Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // 视频标题 // contains filtered or unexported fields }
func (*Video) Descriptor
deprecated
func (*Video) GetCommentCount ¶
func (*Video) GetCoverUrl ¶
func (*Video) GetFavoriteCount ¶
func (*Video) GetIsFavorite ¶
func (*Video) GetPlayUrl ¶
func (*Video) ProtoMessage ¶
func (*Video) ProtoMessage()
func (*Video) ProtoReflect ¶
func (x *Video) ProtoReflect() protoreflect.Message
type VideoService ¶
type VideoService interface { QueryVideo(ctx context.Context, req *QueryVideoReq) (res *QueryVideoResp, err error) CreateVideo(ctx context.Context, req *CreateVideoReq) (res *CreateVideoResp, err error) QueryVideoByUser(ctx context.Context, req *QueryVideoByUserReq) (res *QueryVideoByUserResp, err error) QueryVideoByIdBatch(ctx context.Context, req *QueryVideoByVideoIdBatchReq) (res *QueryVideoByVideoIdBatchResp, err error) IncreaseFavoriteCount(ctx context.Context, req *IncreaseFavoriteCountReq) (res *IncreaseFavoriteCountResp, err error) DecreaseFavoriteCount(ctx context.Context, req *DecreaseFavoriteCountReq) (res *DecreaseFavoriteCountResp, err error) IncreaseCommentCount(ctx context.Context, req *IncreaseCommentCountReq) (res *IncreaseCommentCountResp, err error) DecreaseCommentCount(ctx context.Context, req *DecreaseCommentCountReq) (res *DecreaseCommentCountResp, err error) GetAuthor(ctx context.Context, req *GetAuthorReq) (res *GetAuthorResp, err error) }