Documentation ¶
Index ¶
- Variables
- type FavoriteActionRequest
- func (p *FavoriteActionRequest) GetActionType() (v int32)
- func (p *FavoriteActionRequest) GetToken() (v string)
- func (p *FavoriteActionRequest) GetUserID() (v int64)
- func (p *FavoriteActionRequest) GetVideoID() (v int64)
- func (p *FavoriteActionRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteActionRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteActionRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *FavoriteActionRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *FavoriteActionRequest) ReadField4(iprot thrift.TProtocol) error
- func (p *FavoriteActionRequest) String() string
- func (p *FavoriteActionRequest) Write(oprot thrift.TProtocol) (err error)
- type FavoriteActionResponse
- func (p *FavoriteActionResponse) GetStatusCode() (v int32)
- func (p *FavoriteActionResponse) GetStatusMsg() (v string)
- func (p *FavoriteActionResponse) IsSetStatusMsg() bool
- func (p *FavoriteActionResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteActionResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteActionResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *FavoriteActionResponse) String() string
- func (p *FavoriteActionResponse) Write(oprot thrift.TProtocol) (err error)
- type FavoriteCountRequest
- func (p *FavoriteCountRequest) GetVideoID() (v int64)
- func (p *FavoriteCountRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteCountRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteCountRequest) String() string
- func (p *FavoriteCountRequest) Write(oprot thrift.TProtocol) (err error)
- type FavoriteCountResponse
- func (p *FavoriteCountResponse) GetFavoriteCount() (v int64)
- func (p *FavoriteCountResponse) GetStatusCode() (v int32)
- func (p *FavoriteCountResponse) GetStatusMsg() (v string)
- func (p *FavoriteCountResponse) IsSetStatusMsg() bool
- func (p *FavoriteCountResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteCountResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteCountResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *FavoriteCountResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *FavoriteCountResponse) String() string
- func (p *FavoriteCountResponse) Write(oprot thrift.TProtocol) (err error)
- type FavoriteListRequest
- func (p *FavoriteListRequest) GetToken() (v string)
- func (p *FavoriteListRequest) GetUserID() (v int64)
- func (p *FavoriteListRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteListRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteListRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *FavoriteListRequest) String() string
- func (p *FavoriteListRequest) Write(oprot thrift.TProtocol) (err error)
- type FavoriteListResponse
- func (p *FavoriteListResponse) GetStatusCode() (v int32)
- func (p *FavoriteListResponse) GetStatusMsg() (v string)
- func (p *FavoriteListResponse) GetVideoList() (v []*Video)
- func (p *FavoriteListResponse) IsSetStatusMsg() bool
- func (p *FavoriteListResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteListResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteListResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *FavoriteListResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *FavoriteListResponse) String() string
- func (p *FavoriteListResponse) Write(oprot thrift.TProtocol) (err error)
- type FavoriteService
- type FavoriteServiceClient
- func NewFavoriteServiceClient(c thrift.TClient) *FavoriteServiceClient
- func NewFavoriteServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *FavoriteServiceClient
- func NewFavoriteServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FavoriteServiceClient
- func (p *FavoriteServiceClient) Client_() thrift.TClient
- func (p *FavoriteServiceClient) FavoriteAction(ctx context.Context, req *FavoriteActionRequest) (r *FavoriteActionResponse, err error)
- func (p *FavoriteServiceClient) FavoriteCount(ctx context.Context, req *FavoriteCountRequest) (r *FavoriteCountResponse, err error)
- func (p *FavoriteServiceClient) FavoriteList(ctx context.Context, req *FavoriteListRequest) (r *FavoriteListResponse, err error)
- func (p *FavoriteServiceClient) IsFavorite(ctx context.Context, req *IsFavoriteRequest) (r *IsFavoriteResponse, err error)
- type FavoriteServiceFavoriteActionArgs
- func (p *FavoriteServiceFavoriteActionArgs) GetReq() (v *FavoriteActionRequest)
- func (p *FavoriteServiceFavoriteActionArgs) IsSetReq() bool
- func (p *FavoriteServiceFavoriteActionArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteActionArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteActionArgs) String() string
- func (p *FavoriteServiceFavoriteActionArgs) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteActionResult
- func (p *FavoriteServiceFavoriteActionResult) GetSuccess() (v *FavoriteActionResponse)
- func (p *FavoriteServiceFavoriteActionResult) IsSetSuccess() bool
- func (p *FavoriteServiceFavoriteActionResult) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteActionResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteActionResult) String() string
- func (p *FavoriteServiceFavoriteActionResult) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteCountArgs
- func (p *FavoriteServiceFavoriteCountArgs) GetReq() (v *FavoriteCountRequest)
- func (p *FavoriteServiceFavoriteCountArgs) IsSetReq() bool
- func (p *FavoriteServiceFavoriteCountArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteCountArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteCountArgs) String() string
- func (p *FavoriteServiceFavoriteCountArgs) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteCountResult
- func (p *FavoriteServiceFavoriteCountResult) GetSuccess() (v *FavoriteCountResponse)
- func (p *FavoriteServiceFavoriteCountResult) IsSetSuccess() bool
- func (p *FavoriteServiceFavoriteCountResult) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteCountResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteCountResult) String() string
- func (p *FavoriteServiceFavoriteCountResult) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteListArgs
- func (p *FavoriteServiceFavoriteListArgs) GetReq() (v *FavoriteListRequest)
- func (p *FavoriteServiceFavoriteListArgs) IsSetReq() bool
- func (p *FavoriteServiceFavoriteListArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteListArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteListArgs) String() string
- func (p *FavoriteServiceFavoriteListArgs) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteListResult
- func (p *FavoriteServiceFavoriteListResult) GetSuccess() (v *FavoriteListResponse)
- func (p *FavoriteServiceFavoriteListResult) IsSetSuccess() bool
- func (p *FavoriteServiceFavoriteListResult) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteListResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteListResult) String() string
- func (p *FavoriteServiceFavoriteListResult) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceIsFavoriteArgs
- func (p *FavoriteServiceIsFavoriteArgs) GetReq() (v *IsFavoriteRequest)
- func (p *FavoriteServiceIsFavoriteArgs) IsSetReq() bool
- func (p *FavoriteServiceIsFavoriteArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceIsFavoriteArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteServiceIsFavoriteArgs) String() string
- func (p *FavoriteServiceIsFavoriteArgs) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceIsFavoriteResult
- func (p *FavoriteServiceIsFavoriteResult) GetSuccess() (v *IsFavoriteResponse)
- func (p *FavoriteServiceIsFavoriteResult) IsSetSuccess() bool
- func (p *FavoriteServiceIsFavoriteResult) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceIsFavoriteResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FavoriteServiceIsFavoriteResult) String() string
- func (p *FavoriteServiceIsFavoriteResult) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceProcessor
- func (p *FavoriteServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *FavoriteServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *FavoriteServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *FavoriteServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type IsFavoriteRequest
- func (p *IsFavoriteRequest) GetUserID() (v int64)
- func (p *IsFavoriteRequest) GetVideoID() (v int64)
- func (p *IsFavoriteRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *IsFavoriteRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *IsFavoriteRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *IsFavoriteRequest) String() string
- func (p *IsFavoriteRequest) Write(oprot thrift.TProtocol) (err error)
- type IsFavoriteResponse
- func (p *IsFavoriteResponse) GetIsFavorite() (v bool)
- func (p *IsFavoriteResponse) GetStatusCode() (v int32)
- func (p *IsFavoriteResponse) GetStatusMsg() (v string)
- func (p *IsFavoriteResponse) IsSetStatusMsg() bool
- func (p *IsFavoriteResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *IsFavoriteResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *IsFavoriteResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *IsFavoriteResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *IsFavoriteResponse) String() string
- func (p *IsFavoriteResponse) Write(oprot thrift.TProtocol) (err error)
- type User
- func (p *User) GetAvatar() (v string)
- func (p *User) GetBackgroundImage() (v string)
- func (p *User) GetFavoriteCount() (v int64)
- func (p *User) GetFollowCount() (v int64)
- func (p *User) GetFollowerCount() (v int64)
- func (p *User) GetID() (v int64)
- func (p *User) GetIsFollow() (v bool)
- func (p *User) GetName() (v string)
- func (p *User) GetSignature() (v string)
- func (p *User) GetTotalFavorited() (v int64)
- func (p *User) GetWorkCount() (v int64)
- func (p *User) Read(iprot thrift.TProtocol) (err error)
- func (p *User) ReadField1(iprot thrift.TProtocol) error
- func (p *User) ReadField10(iprot thrift.TProtocol) error
- func (p *User) ReadField11(iprot thrift.TProtocol) error
- func (p *User) ReadField2(iprot thrift.TProtocol) error
- func (p *User) ReadField3(iprot thrift.TProtocol) error
- func (p *User) ReadField4(iprot thrift.TProtocol) error
- func (p *User) ReadField5(iprot thrift.TProtocol) error
- func (p *User) ReadField6(iprot thrift.TProtocol) error
- func (p *User) ReadField7(iprot thrift.TProtocol) error
- func (p *User) ReadField8(iprot thrift.TProtocol) error
- func (p *User) ReadField9(iprot thrift.TProtocol) error
- func (p *User) String() string
- func (p *User) Write(oprot thrift.TProtocol) (err error)
- type Video
- func (p *Video) GetAuthor() (v *User)
- func (p *Video) GetCommentCount() (v int64)
- func (p *Video) GetCoverURL() (v string)
- func (p *Video) GetFavoriteCount() (v int64)
- func (p *Video) GetID() (v int64)
- func (p *Video) GetIsFavorite() (v bool)
- func (p *Video) GetPlayURL() (v string)
- func (p *Video) GetTitle() (v string)
- func (p *Video) IsSetAuthor() bool
- func (p *Video) Read(iprot thrift.TProtocol) (err error)
- func (p *Video) ReadField1(iprot thrift.TProtocol) error
- func (p *Video) ReadField2(iprot thrift.TProtocol) error
- func (p *Video) ReadField3(iprot thrift.TProtocol) error
- func (p *Video) ReadField4(iprot thrift.TProtocol) error
- func (p *Video) ReadField5(iprot thrift.TProtocol) error
- func (p *Video) ReadField6(iprot thrift.TProtocol) error
- func (p *Video) ReadField7(iprot thrift.TProtocol) error
- func (p *Video) ReadField8(iprot thrift.TProtocol) error
- func (p *Video) String() string
- func (p *Video) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var FavoriteActionResponse_StatusMsg_DEFAULT string
View Source
var FavoriteCountResponse_StatusMsg_DEFAULT string
View Source
var FavoriteListResponse_StatusMsg_DEFAULT string
View Source
var IsFavoriteResponse_StatusMsg_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type FavoriteActionRequest ¶
type FavoriteActionRequest struct { // 用户鉴权token Token string `thrift:"token,1" json:"token" query:"token"` // 视频id VideoID int64 `thrift:"video_id,2" json:"video_id" query:"video_id"` // 1-点赞,2-取消点赞 ActionType int32 `thrift:"action_type,3" json:"action_type" query:"action_type"` // 用户id UserID int64 `thrift:"user_id,4" form:"user_id" json:"user_id" query:"user_id"` }
var FavoriteServiceFavoriteActionArgs_Req_DEFAULT *FavoriteActionRequest
func NewFavoriteActionRequest ¶
func NewFavoriteActionRequest() *FavoriteActionRequest
func (*FavoriteActionRequest) GetActionType ¶
func (p *FavoriteActionRequest) GetActionType() (v int32)
func (*FavoriteActionRequest) GetToken ¶
func (p *FavoriteActionRequest) GetToken() (v string)
func (*FavoriteActionRequest) GetUserID ¶
func (p *FavoriteActionRequest) GetUserID() (v int64)
func (*FavoriteActionRequest) GetVideoID ¶
func (p *FavoriteActionRequest) GetVideoID() (v int64)
func (*FavoriteActionRequest) Read ¶
func (p *FavoriteActionRequest) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteActionRequest) ReadField1 ¶
func (p *FavoriteActionRequest) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteActionRequest) ReadField2 ¶
func (p *FavoriteActionRequest) ReadField2(iprot thrift.TProtocol) error
func (*FavoriteActionRequest) ReadField3 ¶
func (p *FavoriteActionRequest) ReadField3(iprot thrift.TProtocol) error
func (*FavoriteActionRequest) ReadField4 ¶
func (p *FavoriteActionRequest) ReadField4(iprot thrift.TProtocol) error
func (*FavoriteActionRequest) String ¶
func (p *FavoriteActionRequest) String() string
type FavoriteActionResponse ¶
type FavoriteActionResponse struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"` // 返回状态描述 StatusMsg *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` }
var FavoriteServiceFavoriteActionResult_Success_DEFAULT *FavoriteActionResponse
func NewFavoriteActionResponse ¶
func NewFavoriteActionResponse() *FavoriteActionResponse
func (*FavoriteActionResponse) GetStatusCode ¶
func (p *FavoriteActionResponse) GetStatusCode() (v int32)
func (*FavoriteActionResponse) GetStatusMsg ¶
func (p *FavoriteActionResponse) GetStatusMsg() (v string)
func (*FavoriteActionResponse) IsSetStatusMsg ¶
func (p *FavoriteActionResponse) IsSetStatusMsg() bool
func (*FavoriteActionResponse) Read ¶
func (p *FavoriteActionResponse) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteActionResponse) ReadField1 ¶
func (p *FavoriteActionResponse) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteActionResponse) ReadField2 ¶
func (p *FavoriteActionResponse) ReadField2(iprot thrift.TProtocol) error
func (*FavoriteActionResponse) String ¶
func (p *FavoriteActionResponse) String() string
type FavoriteCountRequest ¶
type FavoriteCountRequest struct {
VideoID int64 `thrift:"video_id,1" json:"video_id" query:"video_id"`
}
var FavoriteServiceFavoriteCountArgs_Req_DEFAULT *FavoriteCountRequest
func NewFavoriteCountRequest ¶
func NewFavoriteCountRequest() *FavoriteCountRequest
func (*FavoriteCountRequest) GetVideoID ¶
func (p *FavoriteCountRequest) GetVideoID() (v int64)
func (*FavoriteCountRequest) Read ¶
func (p *FavoriteCountRequest) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteCountRequest) ReadField1 ¶
func (p *FavoriteCountRequest) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteCountRequest) String ¶
func (p *FavoriteCountRequest) String() string
type FavoriteCountResponse ¶
type FavoriteCountResponse struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"` // 返回状态描述 StatusMsg *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` FavoriteCount int64 `thrift:"favorite_count,3" form:"favorite_count" json:"favorite_count" query:"favorite_count"` }
var FavoriteServiceFavoriteCountResult_Success_DEFAULT *FavoriteCountResponse
func NewFavoriteCountResponse ¶
func NewFavoriteCountResponse() *FavoriteCountResponse
func (*FavoriteCountResponse) GetFavoriteCount ¶
func (p *FavoriteCountResponse) GetFavoriteCount() (v int64)
func (*FavoriteCountResponse) GetStatusCode ¶
func (p *FavoriteCountResponse) GetStatusCode() (v int32)
func (*FavoriteCountResponse) GetStatusMsg ¶
func (p *FavoriteCountResponse) GetStatusMsg() (v string)
func (*FavoriteCountResponse) IsSetStatusMsg ¶
func (p *FavoriteCountResponse) IsSetStatusMsg() bool
func (*FavoriteCountResponse) Read ¶
func (p *FavoriteCountResponse) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteCountResponse) ReadField1 ¶
func (p *FavoriteCountResponse) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteCountResponse) ReadField2 ¶
func (p *FavoriteCountResponse) ReadField2(iprot thrift.TProtocol) error
func (*FavoriteCountResponse) ReadField3 ¶
func (p *FavoriteCountResponse) ReadField3(iprot thrift.TProtocol) error
func (*FavoriteCountResponse) String ¶
func (p *FavoriteCountResponse) String() string
type FavoriteListRequest ¶
type FavoriteListRequest struct { // 用户id UserID int64 `thrift:"user_id,1" form:"user_id" json:"user_id" query:"user_id"` // 用户鉴权token Token string `thrift:"token,2" json:"token" query:"token"` }
var FavoriteServiceFavoriteListArgs_Req_DEFAULT *FavoriteListRequest
func NewFavoriteListRequest ¶
func NewFavoriteListRequest() *FavoriteListRequest
func (*FavoriteListRequest) GetToken ¶
func (p *FavoriteListRequest) GetToken() (v string)
func (*FavoriteListRequest) GetUserID ¶
func (p *FavoriteListRequest) GetUserID() (v int64)
func (*FavoriteListRequest) Read ¶
func (p *FavoriteListRequest) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteListRequest) ReadField1 ¶
func (p *FavoriteListRequest) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteListRequest) ReadField2 ¶
func (p *FavoriteListRequest) ReadField2(iprot thrift.TProtocol) error
func (*FavoriteListRequest) String ¶
func (p *FavoriteListRequest) String() string
type FavoriteListResponse ¶
type FavoriteListResponse struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"` // 返回状态描述 StatusMsg *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` // 用户点赞视频列表 VideoList []*Video `thrift:"video_list,3" form:"video_list" json:"video_list" query:"video_list"` }
var FavoriteServiceFavoriteListResult_Success_DEFAULT *FavoriteListResponse
func NewFavoriteListResponse ¶
func NewFavoriteListResponse() *FavoriteListResponse
func (*FavoriteListResponse) GetStatusCode ¶
func (p *FavoriteListResponse) GetStatusCode() (v int32)
func (*FavoriteListResponse) GetStatusMsg ¶
func (p *FavoriteListResponse) GetStatusMsg() (v string)
func (*FavoriteListResponse) GetVideoList ¶
func (p *FavoriteListResponse) GetVideoList() (v []*Video)
func (*FavoriteListResponse) IsSetStatusMsg ¶
func (p *FavoriteListResponse) IsSetStatusMsg() bool
func (*FavoriteListResponse) Read ¶
func (p *FavoriteListResponse) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteListResponse) ReadField1 ¶
func (p *FavoriteListResponse) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteListResponse) ReadField2 ¶
func (p *FavoriteListResponse) ReadField2(iprot thrift.TProtocol) error
func (*FavoriteListResponse) ReadField3 ¶
func (p *FavoriteListResponse) ReadField3(iprot thrift.TProtocol) error
func (*FavoriteListResponse) String ¶
func (p *FavoriteListResponse) String() string
type FavoriteService ¶
type FavoriteService interface { // 点赞操作 FavoriteAction(ctx context.Context, req *FavoriteActionRequest) (r *FavoriteActionResponse, err error) // 获取喜欢列表 FavoriteList(ctx context.Context, req *FavoriteListRequest) (r *FavoriteListResponse, err error) // 获取喜欢计数 FavoriteCount(ctx context.Context, req *FavoriteCountRequest) (r *FavoriteCountResponse, err error) // 是否喜欢 IsFavorite(ctx context.Context, req *IsFavoriteRequest) (r *IsFavoriteResponse, err error) }
type FavoriteServiceClient ¶
type FavoriteServiceClient struct {
// contains filtered or unexported fields
}
func NewFavoriteServiceClient ¶
func NewFavoriteServiceClient(c thrift.TClient) *FavoriteServiceClient
func NewFavoriteServiceClientFactory ¶
func NewFavoriteServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *FavoriteServiceClient
func NewFavoriteServiceClientProtocol ¶
func NewFavoriteServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FavoriteServiceClient
func (*FavoriteServiceClient) Client_ ¶
func (p *FavoriteServiceClient) Client_() thrift.TClient
func (*FavoriteServiceClient) FavoriteAction ¶
func (p *FavoriteServiceClient) FavoriteAction(ctx context.Context, req *FavoriteActionRequest) (r *FavoriteActionResponse, err error)
func (*FavoriteServiceClient) FavoriteCount ¶
func (p *FavoriteServiceClient) FavoriteCount(ctx context.Context, req *FavoriteCountRequest) (r *FavoriteCountResponse, err error)
func (*FavoriteServiceClient) FavoriteList ¶
func (p *FavoriteServiceClient) FavoriteList(ctx context.Context, req *FavoriteListRequest) (r *FavoriteListResponse, err error)
func (*FavoriteServiceClient) IsFavorite ¶
func (p *FavoriteServiceClient) IsFavorite(ctx context.Context, req *IsFavoriteRequest) (r *IsFavoriteResponse, err error)
type FavoriteServiceFavoriteActionArgs ¶
type FavoriteServiceFavoriteActionArgs struct {
Req *FavoriteActionRequest `thrift:"req,1,required"`
}
func NewFavoriteServiceFavoriteActionArgs ¶
func NewFavoriteServiceFavoriteActionArgs() *FavoriteServiceFavoriteActionArgs
func (*FavoriteServiceFavoriteActionArgs) GetReq ¶
func (p *FavoriteServiceFavoriteActionArgs) GetReq() (v *FavoriteActionRequest)
func (*FavoriteServiceFavoriteActionArgs) IsSetReq ¶
func (p *FavoriteServiceFavoriteActionArgs) IsSetReq() bool
func (*FavoriteServiceFavoriteActionArgs) Read ¶
func (p *FavoriteServiceFavoriteActionArgs) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteActionArgs) ReadField1 ¶
func (p *FavoriteServiceFavoriteActionArgs) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteActionArgs) String ¶
func (p *FavoriteServiceFavoriteActionArgs) String() string
type FavoriteServiceFavoriteActionResult ¶
type FavoriteServiceFavoriteActionResult struct {
Success *FavoriteActionResponse `thrift:"success,0,optional"`
}
func NewFavoriteServiceFavoriteActionResult ¶
func NewFavoriteServiceFavoriteActionResult() *FavoriteServiceFavoriteActionResult
func (*FavoriteServiceFavoriteActionResult) GetSuccess ¶
func (p *FavoriteServiceFavoriteActionResult) GetSuccess() (v *FavoriteActionResponse)
func (*FavoriteServiceFavoriteActionResult) IsSetSuccess ¶
func (p *FavoriteServiceFavoriteActionResult) IsSetSuccess() bool
func (*FavoriteServiceFavoriteActionResult) Read ¶
func (p *FavoriteServiceFavoriteActionResult) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteActionResult) ReadField0 ¶
func (p *FavoriteServiceFavoriteActionResult) ReadField0(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteActionResult) String ¶
func (p *FavoriteServiceFavoriteActionResult) String() string
type FavoriteServiceFavoriteCountArgs ¶
type FavoriteServiceFavoriteCountArgs struct {
Req *FavoriteCountRequest `thrift:"req,1"`
}
func NewFavoriteServiceFavoriteCountArgs ¶
func NewFavoriteServiceFavoriteCountArgs() *FavoriteServiceFavoriteCountArgs
func (*FavoriteServiceFavoriteCountArgs) GetReq ¶
func (p *FavoriteServiceFavoriteCountArgs) GetReq() (v *FavoriteCountRequest)
func (*FavoriteServiceFavoriteCountArgs) IsSetReq ¶
func (p *FavoriteServiceFavoriteCountArgs) IsSetReq() bool
func (*FavoriteServiceFavoriteCountArgs) Read ¶
func (p *FavoriteServiceFavoriteCountArgs) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteCountArgs) ReadField1 ¶
func (p *FavoriteServiceFavoriteCountArgs) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteCountArgs) String ¶
func (p *FavoriteServiceFavoriteCountArgs) String() string
type FavoriteServiceFavoriteCountResult ¶
type FavoriteServiceFavoriteCountResult struct {
Success *FavoriteCountResponse `thrift:"success,0,optional"`
}
func NewFavoriteServiceFavoriteCountResult ¶
func NewFavoriteServiceFavoriteCountResult() *FavoriteServiceFavoriteCountResult
func (*FavoriteServiceFavoriteCountResult) GetSuccess ¶
func (p *FavoriteServiceFavoriteCountResult) GetSuccess() (v *FavoriteCountResponse)
func (*FavoriteServiceFavoriteCountResult) IsSetSuccess ¶
func (p *FavoriteServiceFavoriteCountResult) IsSetSuccess() bool
func (*FavoriteServiceFavoriteCountResult) Read ¶
func (p *FavoriteServiceFavoriteCountResult) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteCountResult) ReadField0 ¶
func (p *FavoriteServiceFavoriteCountResult) ReadField0(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteCountResult) String ¶
func (p *FavoriteServiceFavoriteCountResult) String() string
type FavoriteServiceFavoriteListArgs ¶
type FavoriteServiceFavoriteListArgs struct {
Req *FavoriteListRequest `thrift:"req,1,required"`
}
func NewFavoriteServiceFavoriteListArgs ¶
func NewFavoriteServiceFavoriteListArgs() *FavoriteServiceFavoriteListArgs
func (*FavoriteServiceFavoriteListArgs) GetReq ¶
func (p *FavoriteServiceFavoriteListArgs) GetReq() (v *FavoriteListRequest)
func (*FavoriteServiceFavoriteListArgs) IsSetReq ¶
func (p *FavoriteServiceFavoriteListArgs) IsSetReq() bool
func (*FavoriteServiceFavoriteListArgs) Read ¶
func (p *FavoriteServiceFavoriteListArgs) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteListArgs) ReadField1 ¶
func (p *FavoriteServiceFavoriteListArgs) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteListArgs) String ¶
func (p *FavoriteServiceFavoriteListArgs) String() string
type FavoriteServiceFavoriteListResult ¶
type FavoriteServiceFavoriteListResult struct {
Success *FavoriteListResponse `thrift:"success,0,optional"`
}
func NewFavoriteServiceFavoriteListResult ¶
func NewFavoriteServiceFavoriteListResult() *FavoriteServiceFavoriteListResult
func (*FavoriteServiceFavoriteListResult) GetSuccess ¶
func (p *FavoriteServiceFavoriteListResult) GetSuccess() (v *FavoriteListResponse)
func (*FavoriteServiceFavoriteListResult) IsSetSuccess ¶
func (p *FavoriteServiceFavoriteListResult) IsSetSuccess() bool
func (*FavoriteServiceFavoriteListResult) Read ¶
func (p *FavoriteServiceFavoriteListResult) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteListResult) ReadField0 ¶
func (p *FavoriteServiceFavoriteListResult) ReadField0(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteListResult) String ¶
func (p *FavoriteServiceFavoriteListResult) String() string
type FavoriteServiceIsFavoriteArgs ¶
type FavoriteServiceIsFavoriteArgs struct {
Req *IsFavoriteRequest `thrift:"req,1"`
}
func NewFavoriteServiceIsFavoriteArgs ¶
func NewFavoriteServiceIsFavoriteArgs() *FavoriteServiceIsFavoriteArgs
func (*FavoriteServiceIsFavoriteArgs) GetReq ¶
func (p *FavoriteServiceIsFavoriteArgs) GetReq() (v *IsFavoriteRequest)
func (*FavoriteServiceIsFavoriteArgs) IsSetReq ¶
func (p *FavoriteServiceIsFavoriteArgs) IsSetReq() bool
func (*FavoriteServiceIsFavoriteArgs) Read ¶
func (p *FavoriteServiceIsFavoriteArgs) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceIsFavoriteArgs) ReadField1 ¶
func (p *FavoriteServiceIsFavoriteArgs) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteServiceIsFavoriteArgs) String ¶
func (p *FavoriteServiceIsFavoriteArgs) String() string
type FavoriteServiceIsFavoriteResult ¶
type FavoriteServiceIsFavoriteResult struct {
Success *IsFavoriteResponse `thrift:"success,0,optional"`
}
func NewFavoriteServiceIsFavoriteResult ¶
func NewFavoriteServiceIsFavoriteResult() *FavoriteServiceIsFavoriteResult
func (*FavoriteServiceIsFavoriteResult) GetSuccess ¶
func (p *FavoriteServiceIsFavoriteResult) GetSuccess() (v *IsFavoriteResponse)
func (*FavoriteServiceIsFavoriteResult) IsSetSuccess ¶
func (p *FavoriteServiceIsFavoriteResult) IsSetSuccess() bool
func (*FavoriteServiceIsFavoriteResult) Read ¶
func (p *FavoriteServiceIsFavoriteResult) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceIsFavoriteResult) ReadField0 ¶
func (p *FavoriteServiceIsFavoriteResult) ReadField0(iprot thrift.TProtocol) error
func (*FavoriteServiceIsFavoriteResult) String ¶
func (p *FavoriteServiceIsFavoriteResult) String() string
type FavoriteServiceProcessor ¶
type FavoriteServiceProcessor struct {
// contains filtered or unexported fields
}
func NewFavoriteServiceProcessor ¶
func NewFavoriteServiceProcessor(handler FavoriteService) *FavoriteServiceProcessor
func (*FavoriteServiceProcessor) AddToProcessorMap ¶
func (p *FavoriteServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*FavoriteServiceProcessor) GetProcessorFunction ¶
func (p *FavoriteServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*FavoriteServiceProcessor) Process ¶
func (p *FavoriteServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*FavoriteServiceProcessor) ProcessorMap ¶
func (p *FavoriteServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type IsFavoriteRequest ¶
type IsFavoriteRequest struct { UserID int64 `thrift:"user_id,1" json:"user_id" query:"user_id"` VideoID int64 `thrift:"video_id,2" json:"video_id" query:"video_id"` }
is_favorite ueser_id like video_id
var FavoriteServiceIsFavoriteArgs_Req_DEFAULT *IsFavoriteRequest
func NewIsFavoriteRequest ¶
func NewIsFavoriteRequest() *IsFavoriteRequest
func (*IsFavoriteRequest) GetUserID ¶
func (p *IsFavoriteRequest) GetUserID() (v int64)
func (*IsFavoriteRequest) GetVideoID ¶
func (p *IsFavoriteRequest) GetVideoID() (v int64)
func (*IsFavoriteRequest) Read ¶
func (p *IsFavoriteRequest) Read(iprot thrift.TProtocol) (err error)
func (*IsFavoriteRequest) ReadField1 ¶
func (p *IsFavoriteRequest) ReadField1(iprot thrift.TProtocol) error
func (*IsFavoriteRequest) ReadField2 ¶
func (p *IsFavoriteRequest) ReadField2(iprot thrift.TProtocol) error
func (*IsFavoriteRequest) String ¶
func (p *IsFavoriteRequest) String() string
type IsFavoriteResponse ¶
type IsFavoriteResponse struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"` // 返回状态描述 StatusMsg *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` IsFavorite bool `thrift:"is_favorite,3" form:"is_favorite" json:"is_favorite" query:"is_favorite"` }
var FavoriteServiceIsFavoriteResult_Success_DEFAULT *IsFavoriteResponse
func NewIsFavoriteResponse ¶
func NewIsFavoriteResponse() *IsFavoriteResponse
func (*IsFavoriteResponse) GetIsFavorite ¶
func (p *IsFavoriteResponse) GetIsFavorite() (v bool)
func (*IsFavoriteResponse) GetStatusCode ¶
func (p *IsFavoriteResponse) GetStatusCode() (v int32)
func (*IsFavoriteResponse) GetStatusMsg ¶
func (p *IsFavoriteResponse) GetStatusMsg() (v string)
func (*IsFavoriteResponse) IsSetStatusMsg ¶
func (p *IsFavoriteResponse) IsSetStatusMsg() bool
func (*IsFavoriteResponse) Read ¶
func (p *IsFavoriteResponse) Read(iprot thrift.TProtocol) (err error)
func (*IsFavoriteResponse) ReadField1 ¶
func (p *IsFavoriteResponse) ReadField1(iprot thrift.TProtocol) error
func (*IsFavoriteResponse) ReadField2 ¶
func (p *IsFavoriteResponse) ReadField2(iprot thrift.TProtocol) error
func (*IsFavoriteResponse) ReadField3 ¶
func (p *IsFavoriteResponse) ReadField3(iprot thrift.TProtocol) error
func (*IsFavoriteResponse) String ¶
func (p *IsFavoriteResponse) String() string
type User ¶
type User struct { // 用户id ID int64 `thrift:"id,1" form:"id" json:"id" query:"id"` // 用户名称 Name string `thrift:"name,2" form:"name" json:"name" query:"name"` // 关注总数 FollowCount int64 `thrift:"follow_count,3" form:"follow_count" json:"follow_count" query:"follow_count"` // 粉丝总数 FollowerCount int64 `thrift:"follower_count,4" form:"follower_count" json:"follower_count" query:"follower_count"` // true-已关注,false-未关注 IsFollow bool `thrift:"is_follow,5" form:"is_follow" json:"is_follow" query:"is_follow"` // 用户头像 Avatar string `thrift:"avatar,6" form:"avatar" json:"avatar" query:"avatar"` // 用户个人页顶部大图 BackgroundImage string `thrift:"background_image,7" form:"background_image" json:"background_image" query:"background_image"` // 个人简介 Signature string `thrift:"signature,8" form:"signature" json:"signature" query:"signature"` // 获赞数量 TotalFavorited int64 `thrift:"total_favorited,9" form:"total_favorited" json:"total_favorited" query:"total_favorited"` // 作品数量 WorkCount int64 `thrift:"work_count,10" form:"work_count" json:"work_count" query:"work_count"` // 点赞数量 FavoriteCount int64 `thrift:"favorite_count,11" form:"favorite_count" json:"favorite_count" query:"favorite_count"` }
var Video_Author_DEFAULT *User
func (*User) GetBackgroundImage ¶
func (*User) GetFavoriteCount ¶
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) GetSignature ¶
func (*User) GetTotalFavorited ¶
func (*User) GetWorkCount ¶
type Video ¶
type Video struct { // 视频唯一标识 ID int64 `thrift:"id,1" form:"id" json:"id" query:"id"` // 视频作者信息 Author *User `thrift:"author,2" form:"author" json:"author" query:"author"` // 视频播放地址 PlayURL string `thrift:"play_url,3" form:"play_url" json:"play_url" query:"play_url"` // 视频封面地址 CoverURL string `thrift:"cover_url,4" form:"cover_url" json:"cover_url" query:"cover_url"` // 视频的点赞总数 FavoriteCount int64 `thrift:"favorite_count,5" form:"favorite_count" json:"favorite_count" query:"favorite_count"` // 视频的评论总数 CommentCount int64 `thrift:"comment_count,6" form:"comment_count" json:"comment_count" query:"comment_count"` // true-已点赞,false-未点赞 IsFavorite bool `thrift:"is_favorite,7" form:"is_favorite" json:"is_favorite" query:"is_favorite"` // 视频标题 Title string `thrift:"title,8" form:"title" json:"title" query:"title"` }
func (*Video) GetCommentCount ¶
func (*Video) GetCoverURL ¶
func (*Video) GetFavoriteCount ¶
func (*Video) GetIsFavorite ¶
func (*Video) GetPlayURL ¶
func (*Video) IsSetAuthor ¶
Click to show internal directories.
Click to hide internal directories.