Documentation ¶
Index ¶
- Variables
- type FavoriteActionReq
- func (*FavoriteActionReq) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteActionReq) GetActionType() FavoriteActionType
- func (x *FavoriteActionReq) GetToken() string
- func (x *FavoriteActionReq) GetVideoId() int64
- func (*FavoriteActionReq) ProtoMessage()
- func (x *FavoriteActionReq) ProtoReflect() protoreflect.Message
- func (x *FavoriteActionReq) Reset()
- func (x *FavoriteActionReq) String() string
- type FavoriteActionResp
- func (*FavoriteActionResp) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteActionResp) GetStatusCode() int32
- func (x *FavoriteActionResp) GetStatusMsg() string
- func (*FavoriteActionResp) ProtoMessage()
- func (x *FavoriteActionResp) ProtoReflect() protoreflect.Message
- func (x *FavoriteActionResp) Reset()
- func (x *FavoriteActionResp) String() string
- type FavoriteActionType
- func (FavoriteActionType) Descriptor() protoreflect.EnumDescriptor
- func (x FavoriteActionType) Enum() *FavoriteActionType
- func (FavoriteActionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FavoriteActionType) Number() protoreflect.EnumNumber
- func (x FavoriteActionType) String() string
- func (FavoriteActionType) Type() protoreflect.EnumType
- func (x *FavoriteActionType) UnmarshalJSON(b []byte) errordeprecated
- type FavoriteListReq
- func (*FavoriteListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteListReq) GetToke() string
- func (x *FavoriteListReq) GetUserId() int64
- func (*FavoriteListReq) ProtoMessage()
- func (x *FavoriteListReq) ProtoReflect() protoreflect.Message
- func (x *FavoriteListReq) Reset()
- func (x *FavoriteListReq) String() string
- type FavoriteListResp
- func (*FavoriteListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteListResp) GetStatusCode() int32
- func (x *FavoriteListResp) GetStatusMsg() string
- func (x *FavoriteListResp) GetVideoList() []*common.Video
- func (*FavoriteListResp) ProtoMessage()
- func (x *FavoriteListResp) ProtoReflect() protoreflect.Message
- func (x *FavoriteListResp) Reset()
- func (x *FavoriteListResp) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FavoriteActionType_name = map[int32]string{ 0: "_", 1: "FAVORITE", 2: "CANCEL", } FavoriteActionType_value = map[string]int32{ "_": 0, "FAVORITE": 1, "CANCEL": 2, } )
Enum value maps for FavoriteActionType.
View Source
var File_favorite_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FavoriteActionReq ¶
type FavoriteActionReq struct { Token *string `protobuf:"bytes,1,req,name=token" json:"token,required" form:"token,required" query:"token,required"` // 用户鉴权token VideoId *int64 `` // 视频id /* 126-byte string literal not displayed */ ActionType *FavoriteActionType `` // 1-点赞,2-取消点赞 /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
func (*FavoriteActionReq) Descriptor
deprecated
func (*FavoriteActionReq) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteActionReq.ProtoReflect.Descriptor instead.
func (*FavoriteActionReq) GetActionType ¶
func (x *FavoriteActionReq) GetActionType() FavoriteActionType
func (*FavoriteActionReq) GetToken ¶
func (x *FavoriteActionReq) GetToken() string
func (*FavoriteActionReq) GetVideoId ¶
func (x *FavoriteActionReq) GetVideoId() int64
func (*FavoriteActionReq) ProtoMessage ¶
func (*FavoriteActionReq) ProtoMessage()
func (*FavoriteActionReq) ProtoReflect ¶
func (x *FavoriteActionReq) ProtoReflect() protoreflect.Message
func (*FavoriteActionReq) Reset ¶
func (x *FavoriteActionReq) Reset()
func (*FavoriteActionReq) String ¶
func (x *FavoriteActionReq) String() string
type FavoriteActionResp ¶
type FavoriteActionResp struct { StatusCode *int32 `` // 状态码,0-成功,其他值-失败 /* 141-byte string literal not displayed */ StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述 // contains filtered or unexported fields }
func (*FavoriteActionResp) Descriptor
deprecated
func (*FavoriteActionResp) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteActionResp.ProtoReflect.Descriptor instead.
func (*FavoriteActionResp) GetStatusCode ¶
func (x *FavoriteActionResp) GetStatusCode() int32
func (*FavoriteActionResp) GetStatusMsg ¶
func (x *FavoriteActionResp) GetStatusMsg() string
func (*FavoriteActionResp) ProtoMessage ¶
func (*FavoriteActionResp) ProtoMessage()
func (*FavoriteActionResp) ProtoReflect ¶
func (x *FavoriteActionResp) ProtoReflect() protoreflect.Message
func (*FavoriteActionResp) Reset ¶
func (x *FavoriteActionResp) Reset()
func (*FavoriteActionResp) String ¶
func (x *FavoriteActionResp) String() string
type FavoriteActionType ¶
type FavoriteActionType int32
const ( FavoriteActionType__ FavoriteActionType = 0 FavoriteActionType_FAVORITE FavoriteActionType = 1 FavoriteActionType_CANCEL FavoriteActionType = 2 )
func (FavoriteActionType) Descriptor ¶
func (FavoriteActionType) Descriptor() protoreflect.EnumDescriptor
func (FavoriteActionType) Enum ¶
func (x FavoriteActionType) Enum() *FavoriteActionType
func (FavoriteActionType) EnumDescriptor
deprecated
func (FavoriteActionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FavoriteActionType.Descriptor instead.
func (FavoriteActionType) Number ¶
func (x FavoriteActionType) Number() protoreflect.EnumNumber
func (FavoriteActionType) String ¶
func (x FavoriteActionType) String() string
func (FavoriteActionType) Type ¶
func (FavoriteActionType) Type() protoreflect.EnumType
func (*FavoriteActionType) UnmarshalJSON
deprecated
func (x *FavoriteActionType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type FavoriteListReq ¶
type FavoriteListReq struct { UserId *int64 `protobuf:"varint,1,req,name=user_id,json=userId" json:"user_id,required" form:"user_id,required" query:"user_id,required"` // 用户id Toke *string `protobuf:"bytes,2,req,name=token" json:"token,required" form:"token,required" query:"token,required"` // 用户鉴权token // contains filtered or unexported fields }
func (*FavoriteListReq) Descriptor
deprecated
func (*FavoriteListReq) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteListReq.ProtoReflect.Descriptor instead.
func (*FavoriteListReq) GetToke ¶
func (x *FavoriteListReq) GetToke() string
func (*FavoriteListReq) GetUserId ¶
func (x *FavoriteListReq) GetUserId() int64
func (*FavoriteListReq) ProtoMessage ¶
func (*FavoriteListReq) ProtoMessage()
func (*FavoriteListReq) ProtoReflect ¶
func (x *FavoriteListReq) ProtoReflect() protoreflect.Message
func (*FavoriteListReq) Reset ¶
func (x *FavoriteListReq) Reset()
func (*FavoriteListReq) String ¶
func (x *FavoriteListReq) String() string
type FavoriteListResp ¶
type FavoriteListResp struct { StatusCode *int32 `` // 状态码,0-成功,其他值-失败 /* 141-byte string literal not displayed */ StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述 VideoList []*common.Video `protobuf:"bytes,3,rep,name=video_list,json=videoList" json:"video_list" form:"video_list" query:"video_list"` // 用户点赞视频列表 // contains filtered or unexported fields }
func (*FavoriteListResp) Descriptor
deprecated
func (*FavoriteListResp) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteListResp.ProtoReflect.Descriptor instead.
func (*FavoriteListResp) GetStatusCode ¶
func (x *FavoriteListResp) GetStatusCode() int32
func (*FavoriteListResp) GetStatusMsg ¶
func (x *FavoriteListResp) GetStatusMsg() string
func (*FavoriteListResp) GetVideoList ¶
func (x *FavoriteListResp) GetVideoList() []*common.Video
func (*FavoriteListResp) ProtoMessage ¶
func (*FavoriteListResp) ProtoMessage()
func (*FavoriteListResp) ProtoReflect ¶
func (x *FavoriteListResp) ProtoReflect() protoreflect.Message
func (*FavoriteListResp) Reset ¶
func (x *FavoriteListResp) Reset()
func (*FavoriteListResp) String ¶
func (x *FavoriteListResp) String() string
Click to show internal directories.
Click to hide internal directories.