Documentation ¶
Index ¶
- Variables
- type DouyinFavoriteActionRequest
- func (*DouyinFavoriteActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFavoriteActionRequest) GetActionType() int32
- func (x *DouyinFavoriteActionRequest) GetToken() string
- 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) String() string
- type DouyinFavoriteActionResponse
- func (*DouyinFavoriteActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFavoriteActionResponse) GetStatusCode() int32
- func (x *DouyinFavoriteActionResponse) GetStatusMsg() string
- func (*DouyinFavoriteActionResponse) ProtoMessage()
- func (x *DouyinFavoriteActionResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinFavoriteActionResponse) Reset()
- func (x *DouyinFavoriteActionResponse) String() string
- type DouyinFavoriteListRequest
- func (*DouyinFavoriteListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFavoriteListRequest) GetToken() string
- func (x *DouyinFavoriteListRequest) GetUserId() int64
- func (*DouyinFavoriteListRequest) ProtoMessage()
- func (x *DouyinFavoriteListRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinFavoriteListRequest) Reset()
- func (x *DouyinFavoriteListRequest) String() string
- type DouyinFavoriteListResponse
- func (*DouyinFavoriteListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFavoriteListResponse) GetStatusCode() int32
- func (x *DouyinFavoriteListResponse) GetStatusMsg() string
- func (x *DouyinFavoriteListResponse) GetVideoList() []*feed.Video
- func (*DouyinFavoriteListResponse) ProtoMessage()
- func (x *DouyinFavoriteListResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinFavoriteListResponse) Reset()
- func (x *DouyinFavoriteListResponse) String() string
- type FavoriteSrv
Constants ¶
This section is empty.
Variables ¶
View Source
var File_favorite_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DouyinFavoriteActionRequest ¶
type DouyinFavoriteActionRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token VideoId int64 `protobuf:"varint,3,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id ActionType int32 `protobuf:"varint,4,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) GetActionType ¶
func (x *DouyinFavoriteActionRequest) GetActionType() int32
func (*DouyinFavoriteActionRequest) GetToken ¶
func (x *DouyinFavoriteActionRequest) GetToken() string
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) String ¶
func (x *DouyinFavoriteActionRequest) String() string
type DouyinFavoriteActionResponse ¶
type DouyinFavoriteActionResponse 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,oneof" json:"status_msg,omitempty"` // 返回状态描述 // contains filtered or unexported fields }
func (*DouyinFavoriteActionResponse) Descriptor
deprecated
func (*DouyinFavoriteActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinFavoriteActionResponse.ProtoReflect.Descriptor instead.
func (*DouyinFavoriteActionResponse) GetStatusCode ¶
func (x *DouyinFavoriteActionResponse) GetStatusCode() int32
func (*DouyinFavoriteActionResponse) GetStatusMsg ¶
func (x *DouyinFavoriteActionResponse) GetStatusMsg() string
func (*DouyinFavoriteActionResponse) ProtoMessage ¶
func (*DouyinFavoriteActionResponse) ProtoMessage()
func (*DouyinFavoriteActionResponse) ProtoReflect ¶
func (x *DouyinFavoriteActionResponse) ProtoReflect() protoreflect.Message
func (*DouyinFavoriteActionResponse) Reset ¶
func (x *DouyinFavoriteActionResponse) Reset()
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 Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token // contains filtered or unexported fields }
func (*DouyinFavoriteListRequest) Descriptor
deprecated
func (*DouyinFavoriteListRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinFavoriteListRequest.ProtoReflect.Descriptor instead.
func (*DouyinFavoriteListRequest) GetToken ¶
func (x *DouyinFavoriteListRequest) GetToken() string
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) String ¶
func (x *DouyinFavoriteListRequest) String() string
type DouyinFavoriteListResponse ¶
type DouyinFavoriteListResponse 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,oneof" json:"status_msg,omitempty"` // 返回状态描述 VideoList []*feed.Video `protobuf:"bytes,3,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) GetStatusCode ¶
func (x *DouyinFavoriteListResponse) GetStatusCode() int32
func (*DouyinFavoriteListResponse) GetStatusMsg ¶
func (x *DouyinFavoriteListResponse) GetStatusMsg() string
func (*DouyinFavoriteListResponse) GetVideoList ¶
func (x *DouyinFavoriteListResponse) GetVideoList() []*feed.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) String ¶
func (x *DouyinFavoriteListResponse) String() string
type FavoriteSrv ¶
type FavoriteSrv interface { FavoriteAction(ctx context.Context, req *DouyinFavoriteActionRequest) (res *DouyinFavoriteActionResponse, err error) FavoriteList(ctx context.Context, req *DouyinFavoriteListRequest) (res *DouyinFavoriteListResponse, err error) }
Click to show internal directories.
Click to hide internal directories.