favorite

package
v0.0.0-...-542fe02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

func (*FavoriteActionRequest) Write

func (p *FavoriteActionRequest) Write(oprot thrift.TProtocol) (err error)

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

func (*FavoriteActionResponse) Write

func (p *FavoriteActionResponse) Write(oprot thrift.TProtocol) (err error)

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

func (*FavoriteCountRequest) Write

func (p *FavoriteCountRequest) Write(oprot thrift.TProtocol) (err error)

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

func (*FavoriteCountResponse) Write

func (p *FavoriteCountResponse) Write(oprot thrift.TProtocol) (err error)

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

func (*FavoriteListRequest) Write

func (p *FavoriteListRequest) Write(oprot thrift.TProtocol) (err error)

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

func (*FavoriteListResponse) Write

func (p *FavoriteListResponse) Write(oprot thrift.TProtocol) (err error)

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 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 (*FavoriteServiceClient) FavoriteCount

func (*FavoriteServiceClient) FavoriteList

func (*FavoriteServiceClient) IsFavorite

type FavoriteServiceFavoriteActionArgs

type FavoriteServiceFavoriteActionArgs struct {
	Req *FavoriteActionRequest `thrift:"req,1,required"`
}

func NewFavoriteServiceFavoriteActionArgs

func NewFavoriteServiceFavoriteActionArgs() *FavoriteServiceFavoriteActionArgs

func (*FavoriteServiceFavoriteActionArgs) GetReq

func (*FavoriteServiceFavoriteActionArgs) IsSetReq

func (*FavoriteServiceFavoriteActionArgs) Read

func (*FavoriteServiceFavoriteActionArgs) ReadField1

func (*FavoriteServiceFavoriteActionArgs) String

func (*FavoriteServiceFavoriteActionArgs) Write

type FavoriteServiceFavoriteActionResult

type FavoriteServiceFavoriteActionResult struct {
	Success *FavoriteActionResponse `thrift:"success,0,optional"`
}

func NewFavoriteServiceFavoriteActionResult

func NewFavoriteServiceFavoriteActionResult() *FavoriteServiceFavoriteActionResult

func (*FavoriteServiceFavoriteActionResult) GetSuccess

func (*FavoriteServiceFavoriteActionResult) IsSetSuccess

func (p *FavoriteServiceFavoriteActionResult) IsSetSuccess() bool

func (*FavoriteServiceFavoriteActionResult) Read

func (*FavoriteServiceFavoriteActionResult) ReadField0

func (*FavoriteServiceFavoriteActionResult) String

func (*FavoriteServiceFavoriteActionResult) Write

type FavoriteServiceFavoriteCountArgs

type FavoriteServiceFavoriteCountArgs struct {
	Req *FavoriteCountRequest `thrift:"req,1"`
}

func NewFavoriteServiceFavoriteCountArgs

func NewFavoriteServiceFavoriteCountArgs() *FavoriteServiceFavoriteCountArgs

func (*FavoriteServiceFavoriteCountArgs) GetReq

func (*FavoriteServiceFavoriteCountArgs) IsSetReq

func (p *FavoriteServiceFavoriteCountArgs) IsSetReq() bool

func (*FavoriteServiceFavoriteCountArgs) Read

func (*FavoriteServiceFavoriteCountArgs) ReadField1

func (*FavoriteServiceFavoriteCountArgs) String

func (*FavoriteServiceFavoriteCountArgs) Write

type FavoriteServiceFavoriteCountResult

type FavoriteServiceFavoriteCountResult struct {
	Success *FavoriteCountResponse `thrift:"success,0,optional"`
}

func NewFavoriteServiceFavoriteCountResult

func NewFavoriteServiceFavoriteCountResult() *FavoriteServiceFavoriteCountResult

func (*FavoriteServiceFavoriteCountResult) GetSuccess

func (*FavoriteServiceFavoriteCountResult) IsSetSuccess

func (p *FavoriteServiceFavoriteCountResult) IsSetSuccess() bool

func (*FavoriteServiceFavoriteCountResult) Read

func (*FavoriteServiceFavoriteCountResult) ReadField0

func (*FavoriteServiceFavoriteCountResult) String

func (*FavoriteServiceFavoriteCountResult) Write

type FavoriteServiceFavoriteListArgs

type FavoriteServiceFavoriteListArgs struct {
	Req *FavoriteListRequest `thrift:"req,1,required"`
}

func NewFavoriteServiceFavoriteListArgs

func NewFavoriteServiceFavoriteListArgs() *FavoriteServiceFavoriteListArgs

func (*FavoriteServiceFavoriteListArgs) GetReq

func (*FavoriteServiceFavoriteListArgs) IsSetReq

func (p *FavoriteServiceFavoriteListArgs) IsSetReq() bool

func (*FavoriteServiceFavoriteListArgs) Read

func (*FavoriteServiceFavoriteListArgs) ReadField1

func (*FavoriteServiceFavoriteListArgs) String

func (*FavoriteServiceFavoriteListArgs) Write

func (p *FavoriteServiceFavoriteListArgs) Write(oprot thrift.TProtocol) (err error)

type FavoriteServiceFavoriteListResult

type FavoriteServiceFavoriteListResult struct {
	Success *FavoriteListResponse `thrift:"success,0,optional"`
}

func NewFavoriteServiceFavoriteListResult

func NewFavoriteServiceFavoriteListResult() *FavoriteServiceFavoriteListResult

func (*FavoriteServiceFavoriteListResult) GetSuccess

func (*FavoriteServiceFavoriteListResult) IsSetSuccess

func (p *FavoriteServiceFavoriteListResult) IsSetSuccess() bool

func (*FavoriteServiceFavoriteListResult) Read

func (*FavoriteServiceFavoriteListResult) ReadField0

func (*FavoriteServiceFavoriteListResult) String

func (*FavoriteServiceFavoriteListResult) Write

type FavoriteServiceIsFavoriteArgs

type FavoriteServiceIsFavoriteArgs struct {
	Req *IsFavoriteRequest `thrift:"req,1"`
}

func NewFavoriteServiceIsFavoriteArgs

func NewFavoriteServiceIsFavoriteArgs() *FavoriteServiceIsFavoriteArgs

func (*FavoriteServiceIsFavoriteArgs) GetReq

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 (*FavoriteServiceIsFavoriteArgs) Write

func (p *FavoriteServiceIsFavoriteArgs) Write(oprot thrift.TProtocol) (err error)

type FavoriteServiceIsFavoriteResult

type FavoriteServiceIsFavoriteResult struct {
	Success *IsFavoriteResponse `thrift:"success,0,optional"`
}

func NewFavoriteServiceIsFavoriteResult

func NewFavoriteServiceIsFavoriteResult() *FavoriteServiceIsFavoriteResult

func (*FavoriteServiceIsFavoriteResult) GetSuccess

func (*FavoriteServiceIsFavoriteResult) IsSetSuccess

func (p *FavoriteServiceIsFavoriteResult) IsSetSuccess() bool

func (*FavoriteServiceIsFavoriteResult) Read

func (*FavoriteServiceIsFavoriteResult) ReadField0

func (*FavoriteServiceIsFavoriteResult) String

func (*FavoriteServiceIsFavoriteResult) Write

func (p *FavoriteServiceIsFavoriteResult) Write(oprot thrift.TProtocol) (err error)

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

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

func (*IsFavoriteRequest) Write

func (p *IsFavoriteRequest) Write(oprot thrift.TProtocol) (err error)

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

func (*IsFavoriteResponse) Write

func (p *IsFavoriteResponse) Write(oprot thrift.TProtocol) (err error)

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 NewUser

func NewUser() *User

func (*User) GetAvatar

func (p *User) GetAvatar() (v string)

func (*User) GetBackgroundImage

func (p *User) GetBackgroundImage() (v string)

func (*User) GetFavoriteCount

func (p *User) GetFavoriteCount() (v int64)

func (*User) GetFollowCount

func (p *User) GetFollowCount() (v int64)

func (*User) GetFollowerCount

func (p *User) GetFollowerCount() (v int64)

func (*User) GetID

func (p *User) GetID() (v int64)

func (*User) GetIsFollow

func (p *User) GetIsFollow() (v bool)

func (*User) GetName

func (p *User) GetName() (v string)

func (*User) GetSignature

func (p *User) GetSignature() (v string)

func (*User) GetTotalFavorited

func (p *User) GetTotalFavorited() (v int64)

func (*User) GetWorkCount

func (p *User) GetWorkCount() (v int64)

func (*User) Read

func (p *User) Read(iprot thrift.TProtocol) (err error)

func (*User) ReadField1

func (p *User) ReadField1(iprot thrift.TProtocol) error

func (*User) ReadField10

func (p *User) ReadField10(iprot thrift.TProtocol) error

func (*User) ReadField11

func (p *User) ReadField11(iprot thrift.TProtocol) error

func (*User) ReadField2

func (p *User) ReadField2(iprot thrift.TProtocol) error

func (*User) ReadField3

func (p *User) ReadField3(iprot thrift.TProtocol) error

func (*User) ReadField4

func (p *User) ReadField4(iprot thrift.TProtocol) error

func (*User) ReadField5

func (p *User) ReadField5(iprot thrift.TProtocol) error

func (*User) ReadField6

func (p *User) ReadField6(iprot thrift.TProtocol) error

func (*User) ReadField7

func (p *User) ReadField7(iprot thrift.TProtocol) error

func (*User) ReadField8

func (p *User) ReadField8(iprot thrift.TProtocol) error

func (*User) ReadField9

func (p *User) ReadField9(iprot thrift.TProtocol) error

func (*User) String

func (p *User) String() string

func (*User) Write

func (p *User) Write(oprot thrift.TProtocol) (err error)

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 NewVideo

func NewVideo() *Video

func (*Video) GetAuthor

func (p *Video) GetAuthor() (v *User)

func (*Video) GetCommentCount

func (p *Video) GetCommentCount() (v int64)

func (*Video) GetCoverURL

func (p *Video) GetCoverURL() (v string)

func (*Video) GetFavoriteCount

func (p *Video) GetFavoriteCount() (v int64)

func (*Video) GetID

func (p *Video) GetID() (v int64)

func (*Video) GetIsFavorite

func (p *Video) GetIsFavorite() (v bool)

func (*Video) GetPlayURL

func (p *Video) GetPlayURL() (v string)

func (*Video) GetTitle

func (p *Video) GetTitle() (v string)

func (*Video) IsSetAuthor

func (p *Video) IsSetAuthor() bool

func (*Video) Read

func (p *Video) Read(iprot thrift.TProtocol) (err error)

func (*Video) ReadField1

func (p *Video) ReadField1(iprot thrift.TProtocol) error

func (*Video) ReadField2

func (p *Video) ReadField2(iprot thrift.TProtocol) error

func (*Video) ReadField3

func (p *Video) ReadField3(iprot thrift.TProtocol) error

func (*Video) ReadField4

func (p *Video) ReadField4(iprot thrift.TProtocol) error

func (*Video) ReadField5

func (p *Video) ReadField5(iprot thrift.TProtocol) error

func (*Video) ReadField6

func (p *Video) ReadField6(iprot thrift.TProtocol) error

func (*Video) ReadField7

func (p *Video) ReadField7(iprot thrift.TProtocol) error

func (*Video) ReadField8

func (p *Video) ReadField8(iprot thrift.TProtocol) error

func (*Video) String

func (p *Video) String() string

func (*Video) Write

func (p *Video) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL