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) GetStatusCode() int32
- func (x *BaseResp) GetStatusMsg() 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 DouyinFavoriteActionRequest
- func (*DouyinFavoriteActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFavoriteActionRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinFavoriteActionRequest) FastWrite(buf []byte) (offset int)
- func (x *DouyinFavoriteActionRequest) GetActionType() int32
- func (x *DouyinFavoriteActionRequest) GetUserId() int64
- func (x *DouyinFavoriteActionRequest) GetVideoId() int64
- func (*DouyinFavoriteActionRequest) ProtoMessage()
- func (x *DouyinFavoriteActionRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinFavoriteActionRequest) Reset()
- func (x *DouyinFavoriteActionRequest) Size() (n int)
- func (x *DouyinFavoriteActionRequest) String() string
- type DouyinFavoriteActionResponse
- func (*DouyinFavoriteActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFavoriteActionResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinFavoriteActionResponse) FastWrite(buf []byte) (offset int)
- func (x *DouyinFavoriteActionResponse) GetBaseResp() *BaseResp
- func (*DouyinFavoriteActionResponse) ProtoMessage()
- func (x *DouyinFavoriteActionResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinFavoriteActionResponse) Reset()
- func (x *DouyinFavoriteActionResponse) Size() (n int)
- func (x *DouyinFavoriteActionResponse) String() string
- type DouyinFavoriteListRequest
- func (*DouyinFavoriteListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFavoriteListRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinFavoriteListRequest) FastWrite(buf []byte) (offset int)
- func (x *DouyinFavoriteListRequest) GetUserId() int64
- func (*DouyinFavoriteListRequest) ProtoMessage()
- func (x *DouyinFavoriteListRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinFavoriteListRequest) Reset()
- func (x *DouyinFavoriteListRequest) Size() (n int)
- func (x *DouyinFavoriteListRequest) String() string
- type DouyinFavoriteListResponse
- func (*DouyinFavoriteListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFavoriteListResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinFavoriteListResponse) FastWrite(buf []byte) (offset int)
- func (x *DouyinFavoriteListResponse) GetBaseResp() *BaseResp
- func (x *DouyinFavoriteListResponse) GetVideoList() []*Video
- func (*DouyinFavoriteListResponse) ProtoMessage()
- func (x *DouyinFavoriteListResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinFavoriteListResponse) Reset()
- func (x *DouyinFavoriteListResponse) Size() (n int)
- func (x *DouyinFavoriteListResponse) String() string
- type DouyinQueryFavoriteRequest
- func (*DouyinQueryFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinQueryFavoriteRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinQueryFavoriteRequest) FastWrite(buf []byte) (offset int)
- func (x *DouyinQueryFavoriteRequest) GetUserId() int64
- func (x *DouyinQueryFavoriteRequest) GetVideoId() int64
- func (*DouyinQueryFavoriteRequest) ProtoMessage()
- func (x *DouyinQueryFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinQueryFavoriteRequest) Reset()
- func (x *DouyinQueryFavoriteRequest) Size() (n int)
- func (x *DouyinQueryFavoriteRequest) String() string
- type DouyinQueryFavoriteResponse
- func (*DouyinQueryFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinQueryFavoriteResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinQueryFavoriteResponse) FastWrite(buf []byte) (offset int)
- func (x *DouyinQueryFavoriteResponse) GetBaseResp() *BaseResp
- func (x *DouyinQueryFavoriteResponse) GetFavorite() bool
- func (*DouyinQueryFavoriteResponse) ProtoMessage()
- func (x *DouyinQueryFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinQueryFavoriteResponse) Reset()
- func (x *DouyinQueryFavoriteResponse) Size() (n int)
- func (x *DouyinQueryFavoriteResponse) String() string
- type DouyinUserBeFavoriteRequest
- func (*DouyinUserBeFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinUserBeFavoriteRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinUserBeFavoriteRequest) FastWrite(buf []byte) (offset int)
- func (x *DouyinUserBeFavoriteRequest) GetUserId() int64
- func (*DouyinUserBeFavoriteRequest) ProtoMessage()
- func (x *DouyinUserBeFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinUserBeFavoriteRequest) Reset()
- func (x *DouyinUserBeFavoriteRequest) Size() (n int)
- func (x *DouyinUserBeFavoriteRequest) String() string
- type DouyinUserBeFavoriteResponse
- func (*DouyinUserBeFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinUserBeFavoriteResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinUserBeFavoriteResponse) FastWrite(buf []byte) (offset int)
- func (x *DouyinUserBeFavoriteResponse) GetBaseResp() *BaseResp
- func (x *DouyinUserBeFavoriteResponse) GetFavoriteCount() int64
- func (x *DouyinUserBeFavoriteResponse) GetTotalBeFavorite() int64
- func (*DouyinUserBeFavoriteResponse) ProtoMessage()
- func (x *DouyinUserBeFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinUserBeFavoriteResponse) Reset()
- func (x *DouyinUserBeFavoriteResponse) Size() (n int)
- func (x *DouyinUserBeFavoriteResponse) String() string
- type DouyinVideoBeFavoriteRequest
- func (*DouyinVideoBeFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinVideoBeFavoriteRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinVideoBeFavoriteRequest) FastWrite(buf []byte) (offset int)
- func (x *DouyinVideoBeFavoriteRequest) GetVideoId() int64
- func (*DouyinVideoBeFavoriteRequest) ProtoMessage()
- func (x *DouyinVideoBeFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinVideoBeFavoriteRequest) Reset()
- func (x *DouyinVideoBeFavoriteRequest) Size() (n int)
- func (x *DouyinVideoBeFavoriteRequest) String() string
- type DouyinVideoBeFavoriteResponse
- func (*DouyinVideoBeFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinVideoBeFavoriteResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinVideoBeFavoriteResponse) FastWrite(buf []byte) (offset int)
- func (x *DouyinVideoBeFavoriteResponse) GetBaseResp() *BaseResp
- func (x *DouyinVideoBeFavoriteResponse) GetFavoriteCount() int64
- func (x *DouyinVideoBeFavoriteResponse) GetIsFavorite() bool
- func (*DouyinVideoBeFavoriteResponse) ProtoMessage()
- func (x *DouyinVideoBeFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinVideoBeFavoriteResponse) Reset()
- func (x *DouyinVideoBeFavoriteResponse) Size() (n int)
- func (x *DouyinVideoBeFavoriteResponse) String() string
- type FavoriteService
- 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) GetFavoriteCount() int64
- func (x *User) GetFollowCount() int64
- func (x *User) GetFollowerCount() int64
- func (x *User) GetId() int64
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- func (x *User) GetTotalBeFavorite() int64
- 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
Constants ¶
This section is empty.
Variables ¶
var File_FavoriteServer_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"` // 状态码,0-成功,其他值-失败 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty"` // 返回状态描述 // contains filtered or unexported fields }
func (*BaseResp) Descriptor
deprecated
func (*BaseResp) GetStatusCode ¶
func (*BaseResp) GetStatusMsg ¶
func (*BaseResp) ProtoMessage ¶
func (*BaseResp) ProtoMessage()
func (*BaseResp) ProtoReflect ¶
func (x *BaseResp) ProtoReflect() protoreflect.Message
type DouyinFavoriteActionRequest ¶
type DouyinFavoriteActionRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id ActionType int32 `protobuf:"varint,3,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` // 1-点赞,2-取消点赞 // contains filtered or unexported fields }
点赞/取消赞
func (*DouyinFavoriteActionRequest) Descriptor
deprecated
func (*DouyinFavoriteActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinFavoriteActionRequest.ProtoReflect.Descriptor instead.
func (*DouyinFavoriteActionRequest) FastWrite ¶
func (x *DouyinFavoriteActionRequest) FastWrite(buf []byte) (offset int)
func (*DouyinFavoriteActionRequest) GetActionType ¶
func (x *DouyinFavoriteActionRequest) GetActionType() int32
func (*DouyinFavoriteActionRequest) GetUserId ¶
func (x *DouyinFavoriteActionRequest) GetUserId() int64
func (*DouyinFavoriteActionRequest) GetVideoId ¶
func (x *DouyinFavoriteActionRequest) GetVideoId() int64
func (*DouyinFavoriteActionRequest) ProtoMessage ¶
func (*DouyinFavoriteActionRequest) ProtoMessage()
func (*DouyinFavoriteActionRequest) ProtoReflect ¶
func (x *DouyinFavoriteActionRequest) ProtoReflect() protoreflect.Message
func (*DouyinFavoriteActionRequest) Reset ¶
func (x *DouyinFavoriteActionRequest) Reset()
func (*DouyinFavoriteActionRequest) Size ¶
func (x *DouyinFavoriteActionRequest) Size() (n int)
func (*DouyinFavoriteActionRequest) String ¶
func (x *DouyinFavoriteActionRequest) String() string
type DouyinFavoriteActionResponse ¶
type DouyinFavoriteActionResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*DouyinFavoriteActionResponse) Descriptor
deprecated
func (*DouyinFavoriteActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinFavoriteActionResponse.ProtoReflect.Descriptor instead.
func (*DouyinFavoriteActionResponse) FastWrite ¶
func (x *DouyinFavoriteActionResponse) FastWrite(buf []byte) (offset int)
func (*DouyinFavoriteActionResponse) GetBaseResp ¶
func (x *DouyinFavoriteActionResponse) GetBaseResp() *BaseResp
func (*DouyinFavoriteActionResponse) ProtoMessage ¶
func (*DouyinFavoriteActionResponse) ProtoMessage()
func (*DouyinFavoriteActionResponse) ProtoReflect ¶
func (x *DouyinFavoriteActionResponse) ProtoReflect() protoreflect.Message
func (*DouyinFavoriteActionResponse) Reset ¶
func (x *DouyinFavoriteActionResponse) Reset()
func (*DouyinFavoriteActionResponse) Size ¶
func (x *DouyinFavoriteActionResponse) Size() (n int)
func (*DouyinFavoriteActionResponse) String ¶
func (x *DouyinFavoriteActionResponse) String() string
type DouyinFavoriteListRequest ¶
type DouyinFavoriteListRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id // contains filtered or unexported fields }
获取点赞列表
func (*DouyinFavoriteListRequest) Descriptor
deprecated
func (*DouyinFavoriteListRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinFavoriteListRequest.ProtoReflect.Descriptor instead.
func (*DouyinFavoriteListRequest) FastWrite ¶
func (x *DouyinFavoriteListRequest) FastWrite(buf []byte) (offset int)
func (*DouyinFavoriteListRequest) GetUserId ¶
func (x *DouyinFavoriteListRequest) GetUserId() int64
func (*DouyinFavoriteListRequest) ProtoMessage ¶
func (*DouyinFavoriteListRequest) ProtoMessage()
func (*DouyinFavoriteListRequest) ProtoReflect ¶
func (x *DouyinFavoriteListRequest) ProtoReflect() protoreflect.Message
func (*DouyinFavoriteListRequest) Reset ¶
func (x *DouyinFavoriteListRequest) Reset()
func (*DouyinFavoriteListRequest) Size ¶
func (x *DouyinFavoriteListRequest) Size() (n int)
func (*DouyinFavoriteListRequest) String ¶
func (x *DouyinFavoriteListRequest) String() string
type DouyinFavoriteListResponse ¶
type DouyinFavoriteListResponse 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 (*DouyinFavoriteListResponse) Descriptor
deprecated
func (*DouyinFavoriteListResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinFavoriteListResponse.ProtoReflect.Descriptor instead.
func (*DouyinFavoriteListResponse) FastWrite ¶
func (x *DouyinFavoriteListResponse) FastWrite(buf []byte) (offset int)
func (*DouyinFavoriteListResponse) GetBaseResp ¶
func (x *DouyinFavoriteListResponse) GetBaseResp() *BaseResp
func (*DouyinFavoriteListResponse) GetVideoList ¶
func (x *DouyinFavoriteListResponse) GetVideoList() []*Video
func (*DouyinFavoriteListResponse) ProtoMessage ¶
func (*DouyinFavoriteListResponse) ProtoMessage()
func (*DouyinFavoriteListResponse) ProtoReflect ¶
func (x *DouyinFavoriteListResponse) ProtoReflect() protoreflect.Message
func (*DouyinFavoriteListResponse) Reset ¶
func (x *DouyinFavoriteListResponse) Reset()
func (*DouyinFavoriteListResponse) Size ¶
func (x *DouyinFavoriteListResponse) Size() (n int)
func (*DouyinFavoriteListResponse) String ¶
func (x *DouyinFavoriteListResponse) String() string
type DouyinQueryFavoriteRequest ¶
type DouyinQueryFavoriteRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // contains filtered or unexported fields }
func (*DouyinQueryFavoriteRequest) Descriptor
deprecated
func (*DouyinQueryFavoriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinQueryFavoriteRequest.ProtoReflect.Descriptor instead.
func (*DouyinQueryFavoriteRequest) FastWrite ¶
func (x *DouyinQueryFavoriteRequest) FastWrite(buf []byte) (offset int)
func (*DouyinQueryFavoriteRequest) GetUserId ¶
func (x *DouyinQueryFavoriteRequest) GetUserId() int64
func (*DouyinQueryFavoriteRequest) GetVideoId ¶
func (x *DouyinQueryFavoriteRequest) GetVideoId() int64
func (*DouyinQueryFavoriteRequest) ProtoMessage ¶
func (*DouyinQueryFavoriteRequest) ProtoMessage()
func (*DouyinQueryFavoriteRequest) ProtoReflect ¶
func (x *DouyinQueryFavoriteRequest) ProtoReflect() protoreflect.Message
func (*DouyinQueryFavoriteRequest) Reset ¶
func (x *DouyinQueryFavoriteRequest) Reset()
func (*DouyinQueryFavoriteRequest) Size ¶
func (x *DouyinQueryFavoriteRequest) Size() (n int)
func (*DouyinQueryFavoriteRequest) String ¶
func (x *DouyinQueryFavoriteRequest) String() string
type DouyinQueryFavoriteResponse ¶
type DouyinQueryFavoriteResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` Favorite bool `protobuf:"varint,2,opt,name=favorite,proto3" json:"favorite,omitempty"` //true 已点赞,false未点赞 // contains filtered or unexported fields }
func (*DouyinQueryFavoriteResponse) Descriptor
deprecated
func (*DouyinQueryFavoriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinQueryFavoriteResponse.ProtoReflect.Descriptor instead.
func (*DouyinQueryFavoriteResponse) FastWrite ¶
func (x *DouyinQueryFavoriteResponse) FastWrite(buf []byte) (offset int)
func (*DouyinQueryFavoriteResponse) GetBaseResp ¶
func (x *DouyinQueryFavoriteResponse) GetBaseResp() *BaseResp
func (*DouyinQueryFavoriteResponse) GetFavorite ¶
func (x *DouyinQueryFavoriteResponse) GetFavorite() bool
func (*DouyinQueryFavoriteResponse) ProtoMessage ¶
func (*DouyinQueryFavoriteResponse) ProtoMessage()
func (*DouyinQueryFavoriteResponse) ProtoReflect ¶
func (x *DouyinQueryFavoriteResponse) ProtoReflect() protoreflect.Message
func (*DouyinQueryFavoriteResponse) Reset ¶
func (x *DouyinQueryFavoriteResponse) Reset()
func (*DouyinQueryFavoriteResponse) Size ¶
func (x *DouyinQueryFavoriteResponse) Size() (n int)
func (*DouyinQueryFavoriteResponse) String ¶
func (x *DouyinQueryFavoriteResponse) String() string
type DouyinUserBeFavoriteRequest ¶
type DouyinUserBeFavoriteRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id // contains filtered or unexported fields }
todo
func (*DouyinUserBeFavoriteRequest) Descriptor
deprecated
func (*DouyinUserBeFavoriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinUserBeFavoriteRequest.ProtoReflect.Descriptor instead.
func (*DouyinUserBeFavoriteRequest) FastWrite ¶
func (x *DouyinUserBeFavoriteRequest) FastWrite(buf []byte) (offset int)
func (*DouyinUserBeFavoriteRequest) GetUserId ¶
func (x *DouyinUserBeFavoriteRequest) GetUserId() int64
func (*DouyinUserBeFavoriteRequest) ProtoMessage ¶
func (*DouyinUserBeFavoriteRequest) ProtoMessage()
func (*DouyinUserBeFavoriteRequest) ProtoReflect ¶
func (x *DouyinUserBeFavoriteRequest) ProtoReflect() protoreflect.Message
func (*DouyinUserBeFavoriteRequest) Reset ¶
func (x *DouyinUserBeFavoriteRequest) Reset()
func (*DouyinUserBeFavoriteRequest) Size ¶
func (x *DouyinUserBeFavoriteRequest) Size() (n int)
func (*DouyinUserBeFavoriteRequest) String ¶
func (x *DouyinUserBeFavoriteRequest) String() string
type DouyinUserBeFavoriteResponse ¶
type DouyinUserBeFavoriteResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` TotalBeFavorite int64 `protobuf:"varint,2,opt,name=total_be_favorite,json=totalBeFavorite,proto3" json:"total_be_favorite,omitempty"` // 被赞的总次数 FavoriteCount int64 `protobuf:"varint,3,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 喜欢总数量 // contains filtered or unexported fields }
todo
func (*DouyinUserBeFavoriteResponse) Descriptor
deprecated
func (*DouyinUserBeFavoriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinUserBeFavoriteResponse.ProtoReflect.Descriptor instead.
func (*DouyinUserBeFavoriteResponse) FastWrite ¶
func (x *DouyinUserBeFavoriteResponse) FastWrite(buf []byte) (offset int)
func (*DouyinUserBeFavoriteResponse) GetBaseResp ¶
func (x *DouyinUserBeFavoriteResponse) GetBaseResp() *BaseResp
func (*DouyinUserBeFavoriteResponse) GetFavoriteCount ¶
func (x *DouyinUserBeFavoriteResponse) GetFavoriteCount() int64
func (*DouyinUserBeFavoriteResponse) GetTotalBeFavorite ¶
func (x *DouyinUserBeFavoriteResponse) GetTotalBeFavorite() int64
func (*DouyinUserBeFavoriteResponse) ProtoMessage ¶
func (*DouyinUserBeFavoriteResponse) ProtoMessage()
func (*DouyinUserBeFavoriteResponse) ProtoReflect ¶
func (x *DouyinUserBeFavoriteResponse) ProtoReflect() protoreflect.Message
func (*DouyinUserBeFavoriteResponse) Reset ¶
func (x *DouyinUserBeFavoriteResponse) Reset()
func (*DouyinUserBeFavoriteResponse) Size ¶
func (x *DouyinUserBeFavoriteResponse) Size() (n int)
func (*DouyinUserBeFavoriteResponse) String ¶
func (x *DouyinUserBeFavoriteResponse) String() string
type DouyinVideoBeFavoriteRequest ¶
type DouyinVideoBeFavoriteRequest struct { VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频唯一标识 // contains filtered or unexported fields }
todo
func (*DouyinVideoBeFavoriteRequest) Descriptor
deprecated
func (*DouyinVideoBeFavoriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinVideoBeFavoriteRequest.ProtoReflect.Descriptor instead.
func (*DouyinVideoBeFavoriteRequest) FastWrite ¶
func (x *DouyinVideoBeFavoriteRequest) FastWrite(buf []byte) (offset int)
func (*DouyinVideoBeFavoriteRequest) GetVideoId ¶
func (x *DouyinVideoBeFavoriteRequest) GetVideoId() int64
func (*DouyinVideoBeFavoriteRequest) ProtoMessage ¶
func (*DouyinVideoBeFavoriteRequest) ProtoMessage()
func (*DouyinVideoBeFavoriteRequest) ProtoReflect ¶
func (x *DouyinVideoBeFavoriteRequest) ProtoReflect() protoreflect.Message
func (*DouyinVideoBeFavoriteRequest) Reset ¶
func (x *DouyinVideoBeFavoriteRequest) Reset()
func (*DouyinVideoBeFavoriteRequest) Size ¶
func (x *DouyinVideoBeFavoriteRequest) Size() (n int)
func (*DouyinVideoBeFavoriteRequest) String ¶
func (x *DouyinVideoBeFavoriteRequest) String() string
type DouyinVideoBeFavoriteResponse ¶
type DouyinVideoBeFavoriteResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` FavoriteCount int64 `protobuf:"varint,2,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 视频的点赞总数 IsFavorite bool `protobuf:"varint,3,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,omitempty"` // true-已点赞,false-未点赞 // contains filtered or unexported fields }
todo
func (*DouyinVideoBeFavoriteResponse) Descriptor
deprecated
func (*DouyinVideoBeFavoriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinVideoBeFavoriteResponse.ProtoReflect.Descriptor instead.
func (*DouyinVideoBeFavoriteResponse) FastWrite ¶
func (x *DouyinVideoBeFavoriteResponse) FastWrite(buf []byte) (offset int)
func (*DouyinVideoBeFavoriteResponse) GetBaseResp ¶
func (x *DouyinVideoBeFavoriteResponse) GetBaseResp() *BaseResp
func (*DouyinVideoBeFavoriteResponse) GetFavoriteCount ¶
func (x *DouyinVideoBeFavoriteResponse) GetFavoriteCount() int64
func (*DouyinVideoBeFavoriteResponse) GetIsFavorite ¶
func (x *DouyinVideoBeFavoriteResponse) GetIsFavorite() bool
func (*DouyinVideoBeFavoriteResponse) ProtoMessage ¶
func (*DouyinVideoBeFavoriteResponse) ProtoMessage()
func (*DouyinVideoBeFavoriteResponse) ProtoReflect ¶
func (x *DouyinVideoBeFavoriteResponse) ProtoReflect() protoreflect.Message
func (*DouyinVideoBeFavoriteResponse) Reset ¶
func (x *DouyinVideoBeFavoriteResponse) Reset()
func (*DouyinVideoBeFavoriteResponse) Size ¶
func (x *DouyinVideoBeFavoriteResponse) Size() (n int)
func (*DouyinVideoBeFavoriteResponse) String ¶
func (x *DouyinVideoBeFavoriteResponse) String() string
type FavoriteService ¶
type FavoriteService interface { FavoriteAction(ctx context.Context, req *DouyinFavoriteActionRequest) (res *DouyinFavoriteActionResponse, err error) GetFavoriteList(ctx context.Context, req *DouyinFavoriteListRequest) (res *DouyinFavoriteListResponse, err error) GetFavoriteUser(ctx context.Context, req *DouyinUserBeFavoriteRequest) (res *DouyinUserBeFavoriteResponse, err error) GetFavoriteVideo(ctx context.Context, req *DouyinVideoBeFavoriteRequest) (res *DouyinVideoBeFavoriteResponse, err error) QueryUserLikeVideo(ctx context.Context, req *DouyinQueryFavoriteRequest) (res *DouyinQueryFavoriteResponse, err error) }
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-未关注 TotalBeFavorite int64 `protobuf:"varint,6,opt,name=total_be_favorite,json=totalBeFavorite,proto3" json:"total_be_favorite,omitempty"` // 被赞的总次数 todo FavoriteCount int64 `protobuf:"varint,7,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 喜欢总数量 todo // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetFavoriteCount ¶
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) GetTotalBeFavorite ¶
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"` 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