tiktokapi

package
v0.0.0-...-18974b4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChatRecordResponse_MessageList_DEFAULT []*MessageInfo
View Source
var ChatRecordResponse_StatusMsg_DEFAULT string
View Source
var CommentListResponse_CommentList_DEFAULT []*CommentInfo
View Source
var CommentListResponse_StatusMsg_DEFAULT string
View Source
var CommentRequest_CommentID_DEFAULT string
View Source
var CommentRequest_CommentText_DEFAULT string
View Source
var CommentResponse_StatusMsg_DEFAULT string
View Source
var FeedRequest_LatestTime_DEFAULT string
View Source
var FeedRequest_Token_DEFAULT string
View Source
var FeedResponse_NextTime_DEFAULT int64
View Source
var FeedResponse_StatusMsg_DEFAULT string
View Source
var FeedResponse_VideoList_DEFAULT []*VideoInfo
View Source
var LikeListResponse_StatusMsg_DEFAULT string
View Source
var LikeListResponse_VideoList_DEFAULT []*VideoInfo
View Source
var LoginResponse_StatusMsg_DEFAULT string
View Source
var LoginResponse_Token_DEFAULT string
View Source
var LoginResponse_UserID_DEFAULT int64
View Source
var MessageInfo_CreateTime_DEFAULT int64
View Source
var PublishListResponse_StatusMsg_DEFAULT string
View Source
var PublishListResponse_VideoList_DEFAULT []*VideoInfo
View Source
var PublishResponse_StatusMsg_DEFAULT string
View Source
var RelationListResponse_StatusMsg_DEFAULT string
View Source
var RelationListResponse_UserList_DEFAULT []*UserInfo
View Source
var UserInfoResponse_StatusMsg_DEFAULT string
View Source
var UserInfo_Avatar_DEFAULT string
View Source
var UserInfo_BackgroundImage_DEFAULT string
View Source
var UserInfo_FavoriteCount_DEFAULT int64
View Source
var UserInfo_Signature_DEFAULT string
View Source
var UserInfo_TotalFavorited_DEFAULT int64
View Source
var UserInfo_WorkCount_DEFAULT int64

Functions

This section is empty.

Types

type ChatRecordRequest

type ChatRecordRequest struct {
	Token      string `thrift:"token,1" json:"token" query:"token"`
	ToUserID   int64  `thrift:"to_user_id,2" json:"to_user_id" query:"to_user_id"`
	PreMsgTime int64  `thrift:"pre_msg_time,3" json:"pre_msg_time" query:"pre_msg_time"`
}
var MessageServiceGetChatRecordArgs_Request_DEFAULT *ChatRecordRequest

func NewChatRecordRequest

func NewChatRecordRequest() *ChatRecordRequest

func (*ChatRecordRequest) GetPreMsgTime

func (p *ChatRecordRequest) GetPreMsgTime() (v int64)

func (*ChatRecordRequest) GetToUserID

func (p *ChatRecordRequest) GetToUserID() (v int64)

func (*ChatRecordRequest) GetToken

func (p *ChatRecordRequest) GetToken() (v string)

func (*ChatRecordRequest) Read

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

func (*ChatRecordRequest) ReadField1

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

func (*ChatRecordRequest) ReadField2

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

func (*ChatRecordRequest) ReadField3

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

func (*ChatRecordRequest) String

func (p *ChatRecordRequest) String() string

func (*ChatRecordRequest) Write

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

type ChatRecordResponse

type ChatRecordResponse struct {
	StatusCode  int64          `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"`
	MessageList []*MessageInfo `thrift:"message_list,3,optional" form:"message_list" json:"message_list,omitempty" query:"message_list"`
}
var MessageServiceGetChatRecordResult_Success_DEFAULT *ChatRecordResponse

func NewChatRecordResponse

func NewChatRecordResponse() *ChatRecordResponse

func (*ChatRecordResponse) GetMessageList

func (p *ChatRecordResponse) GetMessageList() (v []*MessageInfo)

func (*ChatRecordResponse) GetStatusCode

func (p *ChatRecordResponse) GetStatusCode() (v int64)

func (*ChatRecordResponse) GetStatusMsg

func (p *ChatRecordResponse) GetStatusMsg() (v string)

func (*ChatRecordResponse) IsSetMessageList

func (p *ChatRecordResponse) IsSetMessageList() bool

func (*ChatRecordResponse) IsSetStatusMsg

func (p *ChatRecordResponse) IsSetStatusMsg() bool

func (*ChatRecordResponse) Read

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

func (*ChatRecordResponse) ReadField1

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

func (*ChatRecordResponse) ReadField2

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

func (*ChatRecordResponse) ReadField3

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

func (*ChatRecordResponse) String

func (p *ChatRecordResponse) String() string

func (*ChatRecordResponse) Write

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

type CommentInfo

type CommentInfo struct {
	ID         int64     `thrift:"id,1" form:"id" json:"id" query:"id"`
	User       *UserInfo `thrift:"user,2" form:"user" json:"user" query:"user"`
	Content    string    `thrift:"content,3" form:"content" json:"content" query:"content"`
	CreateDate string    `thrift:"create_date,4" form:"create_date" json:"create_date" query:"create_date"`
}
var CommentResponse_Comment_DEFAULT *CommentInfo

func NewCommentInfo

func NewCommentInfo() *CommentInfo

func (*CommentInfo) GetContent

func (p *CommentInfo) GetContent() (v string)

func (*CommentInfo) GetCreateDate

func (p *CommentInfo) GetCreateDate() (v string)

func (*CommentInfo) GetID

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

func (*CommentInfo) GetUser

func (p *CommentInfo) GetUser() (v *UserInfo)

func (*CommentInfo) IsSetUser

func (p *CommentInfo) IsSetUser() bool

func (*CommentInfo) Read

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

func (*CommentInfo) ReadField1

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

func (*CommentInfo) ReadField2

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

func (*CommentInfo) ReadField3

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

func (*CommentInfo) ReadField4

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

func (*CommentInfo) String

func (p *CommentInfo) String() string

func (*CommentInfo) Write

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

type CommentListRequest

type CommentListRequest struct {
	Token   string `thrift:"token,1" json:"token" query:"token"`
	VideoID string `thrift:"video_id,2" json:"video_id" query:"video_id"`
}
var CommentServiceGetCommentListArgs_Request_DEFAULT *CommentListRequest

func NewCommentListRequest

func NewCommentListRequest() *CommentListRequest

func (*CommentListRequest) GetToken

func (p *CommentListRequest) GetToken() (v string)

func (*CommentListRequest) GetVideoID

func (p *CommentListRequest) GetVideoID() (v string)

func (*CommentListRequest) Read

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

func (*CommentListRequest) ReadField1

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

func (*CommentListRequest) ReadField2

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

func (*CommentListRequest) String

func (p *CommentListRequest) String() string

func (*CommentListRequest) Write

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

type CommentListResponse

type CommentListResponse struct {
	StatusCode  int64          `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"`
	CommentList []*CommentInfo `thrift:"comment_list,4,optional" form:"comment_list" json:"comment_list,omitempty" query:"comment_list"`
}
var CommentServiceGetCommentListResult_Success_DEFAULT *CommentListResponse

func NewCommentListResponse

func NewCommentListResponse() *CommentListResponse

func (*CommentListResponse) GetCommentList

func (p *CommentListResponse) GetCommentList() (v []*CommentInfo)

func (*CommentListResponse) GetStatusCode

func (p *CommentListResponse) GetStatusCode() (v int64)

func (*CommentListResponse) GetStatusMsg

func (p *CommentListResponse) GetStatusMsg() (v string)

func (*CommentListResponse) IsSetCommentList

func (p *CommentListResponse) IsSetCommentList() bool

func (*CommentListResponse) IsSetStatusMsg

func (p *CommentListResponse) IsSetStatusMsg() bool

func (*CommentListResponse) Read

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

func (*CommentListResponse) ReadField1

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

func (*CommentListResponse) ReadField2

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

func (*CommentListResponse) ReadField4

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

func (*CommentListResponse) String

func (p *CommentListResponse) String() string

func (*CommentListResponse) Write

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

type CommentRequest

type CommentRequest struct {
	Token       string  `thrift:"token,1" json:"token" query:"token"`
	VideoID     string  `thrift:"video_id,2" json:"video_id" query:"video_id"`
	ActionType  string  `thrift:"action_type,3" json:"action_type" query:"action_type"`
	CommentText *string `thrift:"comment_text,4,optional" json:"comment_text,omitempty" query:"comment_text"`
	CommentID   *string `thrift:"comment_id,5,optional" json:"comment_id,omitempty" query:"comment_id"`
}
var CommentServiceCommentActionArgs_Request_DEFAULT *CommentRequest

func NewCommentRequest

func NewCommentRequest() *CommentRequest

func (*CommentRequest) GetActionType

func (p *CommentRequest) GetActionType() (v string)

func (*CommentRequest) GetCommentID

func (p *CommentRequest) GetCommentID() (v string)

func (*CommentRequest) GetCommentText

func (p *CommentRequest) GetCommentText() (v string)

func (*CommentRequest) GetToken

func (p *CommentRequest) GetToken() (v string)

func (*CommentRequest) GetVideoID

func (p *CommentRequest) GetVideoID() (v string)

func (*CommentRequest) IsSetCommentID

func (p *CommentRequest) IsSetCommentID() bool

func (*CommentRequest) IsSetCommentText

func (p *CommentRequest) IsSetCommentText() bool

func (*CommentRequest) Read

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

func (*CommentRequest) ReadField1

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

func (*CommentRequest) ReadField2

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

func (*CommentRequest) ReadField3

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

func (*CommentRequest) ReadField4

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

func (*CommentRequest) ReadField5

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

func (*CommentRequest) String

func (p *CommentRequest) String() string

func (*CommentRequest) Write

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

type CommentResponse

type CommentResponse struct {
	StatusCode int64        `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"`
	Comment    *CommentInfo `thrift:"comment,3,optional" form:"comment" json:"comment,omitempty" query:"comment"`
}
var CommentServiceCommentActionResult_Success_DEFAULT *CommentResponse

func NewCommentResponse

func NewCommentResponse() *CommentResponse

func (*CommentResponse) GetComment

func (p *CommentResponse) GetComment() (v *CommentInfo)

func (*CommentResponse) GetStatusCode

func (p *CommentResponse) GetStatusCode() (v int64)

func (*CommentResponse) GetStatusMsg

func (p *CommentResponse) GetStatusMsg() (v string)

func (*CommentResponse) IsSetComment

func (p *CommentResponse) IsSetComment() bool

func (*CommentResponse) IsSetStatusMsg

func (p *CommentResponse) IsSetStatusMsg() bool

func (*CommentResponse) Read

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

func (*CommentResponse) ReadField1

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

func (*CommentResponse) ReadField2

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

func (*CommentResponse) ReadField3

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

func (*CommentResponse) String

func (p *CommentResponse) String() string

func (*CommentResponse) Write

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

type CommentService

type CommentService interface {
	CommentAction(ctx context.Context, request *CommentRequest) (r *CommentResponse, err error)

	GetCommentList(ctx context.Context, request *CommentListRequest) (r *CommentListResponse, err error)
}

type CommentServiceClient

type CommentServiceClient struct {
	// contains filtered or unexported fields
}

func NewCommentServiceClient

func NewCommentServiceClient(c thrift.TClient) *CommentServiceClient

func NewCommentServiceClientProtocol

func NewCommentServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *CommentServiceClient

func (*CommentServiceClient) Client_

func (p *CommentServiceClient) Client_() thrift.TClient

func (*CommentServiceClient) CommentAction

func (p *CommentServiceClient) CommentAction(ctx context.Context, request *CommentRequest) (r *CommentResponse, err error)

func (*CommentServiceClient) GetCommentList

func (p *CommentServiceClient) GetCommentList(ctx context.Context, request *CommentListRequest) (r *CommentListResponse, err error)

type CommentServiceCommentActionArgs

type CommentServiceCommentActionArgs struct {
	Request *CommentRequest `thrift:"request,1"`
}

func NewCommentServiceCommentActionArgs

func NewCommentServiceCommentActionArgs() *CommentServiceCommentActionArgs

func (*CommentServiceCommentActionArgs) GetRequest

func (p *CommentServiceCommentActionArgs) GetRequest() (v *CommentRequest)

func (*CommentServiceCommentActionArgs) IsSetRequest

func (p *CommentServiceCommentActionArgs) IsSetRequest() bool

func (*CommentServiceCommentActionArgs) Read

func (*CommentServiceCommentActionArgs) ReadField1

func (*CommentServiceCommentActionArgs) String

func (*CommentServiceCommentActionArgs) Write

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

type CommentServiceCommentActionResult

type CommentServiceCommentActionResult struct {
	Success *CommentResponse `thrift:"success,0,optional"`
}

func NewCommentServiceCommentActionResult

func NewCommentServiceCommentActionResult() *CommentServiceCommentActionResult

func (*CommentServiceCommentActionResult) GetSuccess

func (*CommentServiceCommentActionResult) IsSetSuccess

func (p *CommentServiceCommentActionResult) IsSetSuccess() bool

func (*CommentServiceCommentActionResult) Read

func (*CommentServiceCommentActionResult) ReadField0

func (*CommentServiceCommentActionResult) String

func (*CommentServiceCommentActionResult) Write

type CommentServiceGetCommentListArgs

type CommentServiceGetCommentListArgs struct {
	Request *CommentListRequest `thrift:"request,1"`
}

func NewCommentServiceGetCommentListArgs

func NewCommentServiceGetCommentListArgs() *CommentServiceGetCommentListArgs

func (*CommentServiceGetCommentListArgs) GetRequest

func (*CommentServiceGetCommentListArgs) IsSetRequest

func (p *CommentServiceGetCommentListArgs) IsSetRequest() bool

func (*CommentServiceGetCommentListArgs) Read

func (*CommentServiceGetCommentListArgs) ReadField1

func (*CommentServiceGetCommentListArgs) String

func (*CommentServiceGetCommentListArgs) Write

type CommentServiceGetCommentListResult

type CommentServiceGetCommentListResult struct {
	Success *CommentListResponse `thrift:"success,0,optional"`
}

func NewCommentServiceGetCommentListResult

func NewCommentServiceGetCommentListResult() *CommentServiceGetCommentListResult

func (*CommentServiceGetCommentListResult) GetSuccess

func (*CommentServiceGetCommentListResult) IsSetSuccess

func (p *CommentServiceGetCommentListResult) IsSetSuccess() bool

func (*CommentServiceGetCommentListResult) Read

func (*CommentServiceGetCommentListResult) ReadField0

func (*CommentServiceGetCommentListResult) String

func (*CommentServiceGetCommentListResult) Write

type CommentServiceProcessor

type CommentServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewCommentServiceProcessor

func NewCommentServiceProcessor(handler CommentService) *CommentServiceProcessor

func (*CommentServiceProcessor) AddToProcessorMap

func (p *CommentServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*CommentServiceProcessor) GetProcessorFunction

func (p *CommentServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*CommentServiceProcessor) Process

func (p *CommentServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*CommentServiceProcessor) ProcessorMap

type FavoriteService

type FavoriteService interface {
	LikeAction(ctx context.Context, request *LikeRequest) (r *LikeResponse, err error)

	GetLikeList(ctx context.Context, request *LikeListRequest) (r *LikeListResponse, 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) GetLikeList

func (p *FavoriteServiceClient) GetLikeList(ctx context.Context, request *LikeListRequest) (r *LikeListResponse, err error)

func (*FavoriteServiceClient) LikeAction

func (p *FavoriteServiceClient) LikeAction(ctx context.Context, request *LikeRequest) (r *LikeResponse, err error)

type FavoriteServiceGetLikeListArgs

type FavoriteServiceGetLikeListArgs struct {
	Request *LikeListRequest `thrift:"request,1"`
}

func NewFavoriteServiceGetLikeListArgs

func NewFavoriteServiceGetLikeListArgs() *FavoriteServiceGetLikeListArgs

func (*FavoriteServiceGetLikeListArgs) GetRequest

func (p *FavoriteServiceGetLikeListArgs) GetRequest() (v *LikeListRequest)

func (*FavoriteServiceGetLikeListArgs) IsSetRequest

func (p *FavoriteServiceGetLikeListArgs) IsSetRequest() bool

func (*FavoriteServiceGetLikeListArgs) Read

func (*FavoriteServiceGetLikeListArgs) ReadField1

func (*FavoriteServiceGetLikeListArgs) String

func (*FavoriteServiceGetLikeListArgs) Write

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

type FavoriteServiceGetLikeListResult

type FavoriteServiceGetLikeListResult struct {
	Success *LikeListResponse `thrift:"success,0,optional"`
}

func NewFavoriteServiceGetLikeListResult

func NewFavoriteServiceGetLikeListResult() *FavoriteServiceGetLikeListResult

func (*FavoriteServiceGetLikeListResult) GetSuccess

func (*FavoriteServiceGetLikeListResult) IsSetSuccess

func (p *FavoriteServiceGetLikeListResult) IsSetSuccess() bool

func (*FavoriteServiceGetLikeListResult) Read

func (*FavoriteServiceGetLikeListResult) ReadField0

func (*FavoriteServiceGetLikeListResult) String

func (*FavoriteServiceGetLikeListResult) Write

type FavoriteServiceLikeActionArgs

type FavoriteServiceLikeActionArgs struct {
	Request *LikeRequest `thrift:"request,1"`
}

func NewFavoriteServiceLikeActionArgs

func NewFavoriteServiceLikeActionArgs() *FavoriteServiceLikeActionArgs

func (*FavoriteServiceLikeActionArgs) GetRequest

func (p *FavoriteServiceLikeActionArgs) GetRequest() (v *LikeRequest)

func (*FavoriteServiceLikeActionArgs) IsSetRequest

func (p *FavoriteServiceLikeActionArgs) IsSetRequest() bool

func (*FavoriteServiceLikeActionArgs) Read

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

func (*FavoriteServiceLikeActionArgs) ReadField1

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

func (*FavoriteServiceLikeActionArgs) String

func (*FavoriteServiceLikeActionArgs) Write

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

type FavoriteServiceLikeActionResult

type FavoriteServiceLikeActionResult struct {
	Success *LikeResponse `thrift:"success,0,optional"`
}

func NewFavoriteServiceLikeActionResult

func NewFavoriteServiceLikeActionResult() *FavoriteServiceLikeActionResult

func (*FavoriteServiceLikeActionResult) GetSuccess

func (p *FavoriteServiceLikeActionResult) GetSuccess() (v *LikeResponse)

func (*FavoriteServiceLikeActionResult) IsSetSuccess

func (p *FavoriteServiceLikeActionResult) IsSetSuccess() bool

func (*FavoriteServiceLikeActionResult) Read

func (*FavoriteServiceLikeActionResult) ReadField0

func (*FavoriteServiceLikeActionResult) String

func (*FavoriteServiceLikeActionResult) Write

func (p *FavoriteServiceLikeActionResult) 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 FeedRequest

type FeedRequest struct {
	LatestTime *string `thrift:"latest_time,1,optional" form:"latest_time" json:"latest_time,omitempty" query:"latest_time"`
	Token      *string `thrift:"token,2,optional" form:"token" json:"token,omitempty" query:"token"`
}
var FeedServiceGetVideoListArgs_Request_DEFAULT *FeedRequest

func NewFeedRequest

func NewFeedRequest() *FeedRequest

func (*FeedRequest) GetLatestTime

func (p *FeedRequest) GetLatestTime() (v string)

func (*FeedRequest) GetToken

func (p *FeedRequest) GetToken() (v string)

func (*FeedRequest) IsSetLatestTime

func (p *FeedRequest) IsSetLatestTime() bool

func (*FeedRequest) IsSetToken

func (p *FeedRequest) IsSetToken() bool

func (*FeedRequest) Read

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

func (*FeedRequest) ReadField1

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

func (*FeedRequest) ReadField2

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

func (*FeedRequest) String

func (p *FeedRequest) String() string

func (*FeedRequest) Write

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

type FeedResponse

type FeedResponse struct {
	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"`
	NextTime   *int64       `thrift:"next_time,3,optional" form:"next_time" json:"next_time,omitempty" query:"next_time"`
	VideoList  []*VideoInfo `thrift:"video_list,4,optional" form:"video_list" json:"video_list,omitempty" query:"video_list"`
}
var FeedServiceGetVideoListResult_Success_DEFAULT *FeedResponse

func NewFeedResponse

func NewFeedResponse() *FeedResponse

func (*FeedResponse) GetNextTime

func (p *FeedResponse) GetNextTime() (v int64)

func (*FeedResponse) GetStatusCode

func (p *FeedResponse) GetStatusCode() (v int32)

func (*FeedResponse) GetStatusMsg

func (p *FeedResponse) GetStatusMsg() (v string)

func (*FeedResponse) GetVideoList

func (p *FeedResponse) GetVideoList() (v []*VideoInfo)

func (*FeedResponse) IsSetNextTime

func (p *FeedResponse) IsSetNextTime() bool

func (*FeedResponse) IsSetStatusMsg

func (p *FeedResponse) IsSetStatusMsg() bool

func (*FeedResponse) IsSetVideoList

func (p *FeedResponse) IsSetVideoList() bool

func (*FeedResponse) Read

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

func (*FeedResponse) ReadField1

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

func (*FeedResponse) ReadField2

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

func (*FeedResponse) ReadField3

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

func (*FeedResponse) ReadField4

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

func (*FeedResponse) String

func (p *FeedResponse) String() string

func (*FeedResponse) Write

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

type FeedService

type FeedService interface {
	GetVideoList(ctx context.Context, request *FeedRequest) (r *FeedResponse, err error)
}

type FeedServiceClient

type FeedServiceClient struct {
	// contains filtered or unexported fields
}

func NewFeedServiceClient

func NewFeedServiceClient(c thrift.TClient) *FeedServiceClient

func NewFeedServiceClientProtocol

func NewFeedServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FeedServiceClient

func (*FeedServiceClient) Client_

func (p *FeedServiceClient) Client_() thrift.TClient

func (*FeedServiceClient) GetVideoList

func (p *FeedServiceClient) GetVideoList(ctx context.Context, request *FeedRequest) (r *FeedResponse, err error)

type FeedServiceGetVideoListArgs

type FeedServiceGetVideoListArgs struct {
	Request *FeedRequest `thrift:"request,1"`
}

func NewFeedServiceGetVideoListArgs

func NewFeedServiceGetVideoListArgs() *FeedServiceGetVideoListArgs

func (*FeedServiceGetVideoListArgs) GetRequest

func (p *FeedServiceGetVideoListArgs) GetRequest() (v *FeedRequest)

func (*FeedServiceGetVideoListArgs) IsSetRequest

func (p *FeedServiceGetVideoListArgs) IsSetRequest() bool

func (*FeedServiceGetVideoListArgs) Read

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

func (*FeedServiceGetVideoListArgs) ReadField1

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

func (*FeedServiceGetVideoListArgs) String

func (p *FeedServiceGetVideoListArgs) String() string

func (*FeedServiceGetVideoListArgs) Write

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

type FeedServiceGetVideoListResult

type FeedServiceGetVideoListResult struct {
	Success *FeedResponse `thrift:"success,0,optional"`
}

func NewFeedServiceGetVideoListResult

func NewFeedServiceGetVideoListResult() *FeedServiceGetVideoListResult

func (*FeedServiceGetVideoListResult) GetSuccess

func (p *FeedServiceGetVideoListResult) GetSuccess() (v *FeedResponse)

func (*FeedServiceGetVideoListResult) IsSetSuccess

func (p *FeedServiceGetVideoListResult) IsSetSuccess() bool

func (*FeedServiceGetVideoListResult) Read

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

func (*FeedServiceGetVideoListResult) ReadField0

func (p *FeedServiceGetVideoListResult) ReadField0(iprot thrift.TProtocol) error

func (*FeedServiceGetVideoListResult) String

func (*FeedServiceGetVideoListResult) Write

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

type FeedServiceProcessor

type FeedServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewFeedServiceProcessor

func NewFeedServiceProcessor(handler FeedService) *FeedServiceProcessor

func (*FeedServiceProcessor) AddToProcessorMap

func (p *FeedServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*FeedServiceProcessor) GetProcessorFunction

func (p *FeedServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*FeedServiceProcessor) Process

func (p *FeedServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*FeedServiceProcessor) ProcessorMap

func (p *FeedServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

type FollowRequest

type FollowRequest struct {
	Token      string `thrift:"token,1" json:"token" query:"token"`
	ToUserID   string `thrift:"to_user_id,2" json:"to_user_id" query:"to_user_id"`
	ActionType string `thrift:"action_type,3" json:"action_type" query:"action_type"`
}
var RelationServiceFollowActionArgs_Request_DEFAULT *FollowRequest

func NewFollowRequest

func NewFollowRequest() *FollowRequest

func (*FollowRequest) GetActionType

func (p *FollowRequest) GetActionType() (v string)

func (*FollowRequest) GetToUserID

func (p *FollowRequest) GetToUserID() (v string)

func (*FollowRequest) GetToken

func (p *FollowRequest) GetToken() (v string)

func (*FollowRequest) Read

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

func (*FollowRequest) ReadField1

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

func (*FollowRequest) ReadField2

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

func (*FollowRequest) ReadField3

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

func (*FollowRequest) String

func (p *FollowRequest) String() string

func (*FollowRequest) Write

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

type FollowResponse

type FollowResponse struct {
	StatusCode int64  `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" form:"status_msg" json:"status_msg" query:"status_msg"`
}
var RelationServiceFollowActionResult_Success_DEFAULT *FollowResponse

func NewFollowResponse

func NewFollowResponse() *FollowResponse

func (*FollowResponse) GetStatusCode

func (p *FollowResponse) GetStatusCode() (v int64)

func (*FollowResponse) GetStatusMsg

func (p *FollowResponse) GetStatusMsg() (v string)

func (*FollowResponse) Read

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

func (*FollowResponse) ReadField1

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

func (*FollowResponse) ReadField2

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

func (*FollowResponse) String

func (p *FollowResponse) String() string

func (*FollowResponse) Write

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

type LikeListRequest

type LikeListRequest struct {
	UserID string `thrift:"user_id,1" json:"user_id" query:"user_id"`
	Token  string `thrift:"token,2" json:"token" query:"token"`
}
var FavoriteServiceGetLikeListArgs_Request_DEFAULT *LikeListRequest

func NewLikeListRequest

func NewLikeListRequest() *LikeListRequest

func (*LikeListRequest) GetToken

func (p *LikeListRequest) GetToken() (v string)

func (*LikeListRequest) GetUserID

func (p *LikeListRequest) GetUserID() (v string)

func (*LikeListRequest) Read

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

func (*LikeListRequest) ReadField1

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

func (*LikeListRequest) ReadField2

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

func (*LikeListRequest) String

func (p *LikeListRequest) String() string

func (*LikeListRequest) Write

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

type LikeListResponse

type LikeListResponse struct {
	StatusCode int64        `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  []*VideoInfo `thrift:"video_list,4,optional" form:"video_list" json:"video_list,omitempty" query:"video_list"`
}
var FavoriteServiceGetLikeListResult_Success_DEFAULT *LikeListResponse

func NewLikeListResponse

func NewLikeListResponse() *LikeListResponse

func (*LikeListResponse) GetStatusCode

func (p *LikeListResponse) GetStatusCode() (v int64)

func (*LikeListResponse) GetStatusMsg

func (p *LikeListResponse) GetStatusMsg() (v string)

func (*LikeListResponse) GetVideoList

func (p *LikeListResponse) GetVideoList() (v []*VideoInfo)

func (*LikeListResponse) IsSetStatusMsg

func (p *LikeListResponse) IsSetStatusMsg() bool

func (*LikeListResponse) IsSetVideoList

func (p *LikeListResponse) IsSetVideoList() bool

func (*LikeListResponse) Read

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

func (*LikeListResponse) ReadField1

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

func (*LikeListResponse) ReadField2

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

func (*LikeListResponse) ReadField4

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

func (*LikeListResponse) String

func (p *LikeListResponse) String() string

func (*LikeListResponse) Write

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

type LikeRequest

type LikeRequest struct {
	Token      string `thrift:"token,1" json:"token" query:"token"`
	VideoID    string `thrift:"video_id,2" json:"video_id" query:"video_id"`
	ActionType string `thrift:"action_type,3" json:"action_type" query:"action_type"`
}
var FavoriteServiceLikeActionArgs_Request_DEFAULT *LikeRequest

func NewLikeRequest

func NewLikeRequest() *LikeRequest

func (*LikeRequest) GetActionType

func (p *LikeRequest) GetActionType() (v string)

func (*LikeRequest) GetToken

func (p *LikeRequest) GetToken() (v string)

func (*LikeRequest) GetVideoID

func (p *LikeRequest) GetVideoID() (v string)

func (*LikeRequest) Read

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

func (*LikeRequest) ReadField1

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

func (*LikeRequest) ReadField2

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

func (*LikeRequest) ReadField3

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

func (*LikeRequest) String

func (p *LikeRequest) String() string

func (*LikeRequest) Write

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

type LikeResponse

type LikeResponse struct {
	StatusCode int64  `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" form:"status_msg" json:"status_msg" query:"status_msg"`
}
var FavoriteServiceLikeActionResult_Success_DEFAULT *LikeResponse

func NewLikeResponse

func NewLikeResponse() *LikeResponse

func (*LikeResponse) GetStatusCode

func (p *LikeResponse) GetStatusCode() (v int64)

func (*LikeResponse) GetStatusMsg

func (p *LikeResponse) GetStatusMsg() (v string)

func (*LikeResponse) Read

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

func (*LikeResponse) ReadField1

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

func (*LikeResponse) ReadField2

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

func (*LikeResponse) String

func (p *LikeResponse) String() string

func (*LikeResponse) Write

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

type LoginRequest

type LoginRequest struct {
	Username string `thrift:"username,1" json:"username" query:"username"`
	Password string `thrift:"password,2" json:"password" query:"password"`
}
var UserServiceUserLoginArgs_Request_DEFAULT *LoginRequest

func NewLoginRequest

func NewLoginRequest() *LoginRequest

func (*LoginRequest) GetPassword

func (p *LoginRequest) GetPassword() (v string)

func (*LoginRequest) GetUsername

func (p *LoginRequest) GetUsername() (v string)

func (*LoginRequest) Read

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

func (*LoginRequest) ReadField1

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

func (*LoginRequest) ReadField2

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

func (*LoginRequest) String

func (p *LoginRequest) String() string

func (*LoginRequest) Write

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

type LoginResponse

type LoginResponse struct {
	StatusCode int64   `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"`
	UserID     *int64  `thrift:"user_id,3,optional" form:"user_id" json:"user_id,omitempty" query:"user_id"`
	Token      *string `thrift:"token,4,optional" form:"token" json:"token,omitempty" query:"token"`
}
var UserServiceUserLoginResult_Success_DEFAULT *LoginResponse

func NewLoginResponse

func NewLoginResponse() *LoginResponse

func (*LoginResponse) GetStatusCode

func (p *LoginResponse) GetStatusCode() (v int64)

func (*LoginResponse) GetStatusMsg

func (p *LoginResponse) GetStatusMsg() (v string)

func (*LoginResponse) GetToken

func (p *LoginResponse) GetToken() (v string)

func (*LoginResponse) GetUserID

func (p *LoginResponse) GetUserID() (v int64)

func (*LoginResponse) IsSetStatusMsg

func (p *LoginResponse) IsSetStatusMsg() bool

func (*LoginResponse) IsSetToken

func (p *LoginResponse) IsSetToken() bool

func (*LoginResponse) IsSetUserID

func (p *LoginResponse) IsSetUserID() bool

func (*LoginResponse) Read

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

func (*LoginResponse) ReadField1

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

func (*LoginResponse) ReadField2

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

func (*LoginResponse) ReadField3

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

func (*LoginResponse) ReadField4

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

func (*LoginResponse) String

func (p *LoginResponse) String() string

func (*LoginResponse) Write

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

type MessageInfo

type MessageInfo struct {
	ID         int64  `thrift:"id,1,required" form:"id,required" json:"id,required" query:"id,required"`
	ToUserID   int64  `thrift:"to_user_id,2,required" form:"to_user_id,required" json:"to_user_id,required" query:"to_user_id,required"`
	FromUserID int64  `thrift:"from_user_id,3,required" form:"from_user_id,required" json:"from_user_id,required" query:"from_user_id,required"`
	Content    string `thrift:"content,4,required" form:"content,required" json:"content,required" query:"content,required"`
	CreateTime *int64 `thrift:"create_time,5,optional" form:"create_time" json:"create_time,omitempty" query:"create_time"`
}

func NewMessageInfo

func NewMessageInfo() *MessageInfo

func (*MessageInfo) GetContent

func (p *MessageInfo) GetContent() (v string)

func (*MessageInfo) GetCreateTime

func (p *MessageInfo) GetCreateTime() (v int64)

func (*MessageInfo) GetFromUserID

func (p *MessageInfo) GetFromUserID() (v int64)

func (*MessageInfo) GetID

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

func (*MessageInfo) GetToUserID

func (p *MessageInfo) GetToUserID() (v int64)

func (*MessageInfo) IsSetCreateTime

func (p *MessageInfo) IsSetCreateTime() bool

func (*MessageInfo) Read

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

func (*MessageInfo) ReadField1

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

func (*MessageInfo) ReadField2

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

func (*MessageInfo) ReadField3

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

func (*MessageInfo) ReadField4

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

func (*MessageInfo) ReadField5

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

func (*MessageInfo) String

func (p *MessageInfo) String() string

func (*MessageInfo) Write

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

type MessageRequest

type MessageRequest struct {
	Token      string `thrift:"token,1" json:"token" query:"token"`
	ToUserID   int64  `thrift:"to_user_id,2" json:"to_user_id" query:"to_user_id"`
	ActionType string `thrift:"action_type,3" json:"action_type" query:"action_type"`
	Content    string `thrift:"content,4" json:"content" query:"content"`
}
var MessageServiceSendMessageArgs_Request_DEFAULT *MessageRequest

func NewMessageRequest

func NewMessageRequest() *MessageRequest

func (*MessageRequest) GetActionType

func (p *MessageRequest) GetActionType() (v string)

func (*MessageRequest) GetContent

func (p *MessageRequest) GetContent() (v string)

func (*MessageRequest) GetToUserID

func (p *MessageRequest) GetToUserID() (v int64)

func (*MessageRequest) GetToken

func (p *MessageRequest) GetToken() (v string)

func (*MessageRequest) Read

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

func (*MessageRequest) ReadField1

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

func (*MessageRequest) ReadField2

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

func (*MessageRequest) ReadField3

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

func (*MessageRequest) ReadField4

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

func (*MessageRequest) String

func (p *MessageRequest) String() string

func (*MessageRequest) Write

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

type MessageResponse

type MessageResponse struct {
	StatusCode int64  `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" form:"status_msg" json:"status_msg" query:"status_msg"`
}
var MessageServiceSendMessageResult_Success_DEFAULT *MessageResponse

func NewMessageResponse

func NewMessageResponse() *MessageResponse

func (*MessageResponse) GetStatusCode

func (p *MessageResponse) GetStatusCode() (v int64)

func (*MessageResponse) GetStatusMsg

func (p *MessageResponse) GetStatusMsg() (v string)

func (*MessageResponse) Read

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

func (*MessageResponse) ReadField1

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

func (*MessageResponse) ReadField2

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

func (*MessageResponse) String

func (p *MessageResponse) String() string

func (*MessageResponse) Write

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

type MessageService

type MessageService interface {
	SendMessage(ctx context.Context, request *MessageRequest) (r *MessageResponse, err error)

	GetChatRecord(ctx context.Context, request *ChatRecordRequest) (r *ChatRecordResponse, err error)
}

type MessageServiceClient

type MessageServiceClient struct {
	// contains filtered or unexported fields
}

func NewMessageServiceClient

func NewMessageServiceClient(c thrift.TClient) *MessageServiceClient

func NewMessageServiceClientProtocol

func NewMessageServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MessageServiceClient

func (*MessageServiceClient) Client_

func (p *MessageServiceClient) Client_() thrift.TClient

func (*MessageServiceClient) GetChatRecord

func (p *MessageServiceClient) GetChatRecord(ctx context.Context, request *ChatRecordRequest) (r *ChatRecordResponse, err error)

func (*MessageServiceClient) SendMessage

func (p *MessageServiceClient) SendMessage(ctx context.Context, request *MessageRequest) (r *MessageResponse, err error)

type MessageServiceGetChatRecordArgs

type MessageServiceGetChatRecordArgs struct {
	Request *ChatRecordRequest `thrift:"request,1"`
}

func NewMessageServiceGetChatRecordArgs

func NewMessageServiceGetChatRecordArgs() *MessageServiceGetChatRecordArgs

func (*MessageServiceGetChatRecordArgs) GetRequest

func (*MessageServiceGetChatRecordArgs) IsSetRequest

func (p *MessageServiceGetChatRecordArgs) IsSetRequest() bool

func (*MessageServiceGetChatRecordArgs) Read

func (*MessageServiceGetChatRecordArgs) ReadField1

func (*MessageServiceGetChatRecordArgs) String

func (*MessageServiceGetChatRecordArgs) Write

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

type MessageServiceGetChatRecordResult

type MessageServiceGetChatRecordResult struct {
	Success *ChatRecordResponse `thrift:"success,0,optional"`
}

func NewMessageServiceGetChatRecordResult

func NewMessageServiceGetChatRecordResult() *MessageServiceGetChatRecordResult

func (*MessageServiceGetChatRecordResult) GetSuccess

func (*MessageServiceGetChatRecordResult) IsSetSuccess

func (p *MessageServiceGetChatRecordResult) IsSetSuccess() bool

func (*MessageServiceGetChatRecordResult) Read

func (*MessageServiceGetChatRecordResult) ReadField0

func (*MessageServiceGetChatRecordResult) String

func (*MessageServiceGetChatRecordResult) Write

type MessageServiceProcessor

type MessageServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewMessageServiceProcessor

func NewMessageServiceProcessor(handler MessageService) *MessageServiceProcessor

func (*MessageServiceProcessor) AddToProcessorMap

func (p *MessageServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*MessageServiceProcessor) GetProcessorFunction

func (p *MessageServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*MessageServiceProcessor) Process

func (p *MessageServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*MessageServiceProcessor) ProcessorMap

type MessageServiceSendMessageArgs

type MessageServiceSendMessageArgs struct {
	Request *MessageRequest `thrift:"request,1"`
}

func NewMessageServiceSendMessageArgs

func NewMessageServiceSendMessageArgs() *MessageServiceSendMessageArgs

func (*MessageServiceSendMessageArgs) GetRequest

func (p *MessageServiceSendMessageArgs) GetRequest() (v *MessageRequest)

func (*MessageServiceSendMessageArgs) IsSetRequest

func (p *MessageServiceSendMessageArgs) IsSetRequest() bool

func (*MessageServiceSendMessageArgs) Read

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

func (*MessageServiceSendMessageArgs) ReadField1

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

func (*MessageServiceSendMessageArgs) String

func (*MessageServiceSendMessageArgs) Write

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

type MessageServiceSendMessageResult

type MessageServiceSendMessageResult struct {
	Success *MessageResponse `thrift:"success,0,optional"`
}

func NewMessageServiceSendMessageResult

func NewMessageServiceSendMessageResult() *MessageServiceSendMessageResult

func (*MessageServiceSendMessageResult) GetSuccess

func (p *MessageServiceSendMessageResult) GetSuccess() (v *MessageResponse)

func (*MessageServiceSendMessageResult) IsSetSuccess

func (p *MessageServiceSendMessageResult) IsSetSuccess() bool

func (*MessageServiceSendMessageResult) Read

func (*MessageServiceSendMessageResult) ReadField0

func (*MessageServiceSendMessageResult) String

func (*MessageServiceSendMessageResult) Write

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

type PublishListRequest

type PublishListRequest struct {
	Token  string `thrift:"token,1" json:"token" query:"token"`
	UserID string `thrift:"user_id,2" json:"user_id" query:"user_id"`
}
var PublishServiceGetPublishListArgs_Request_DEFAULT *PublishListRequest

func NewPublishListRequest

func NewPublishListRequest() *PublishListRequest

func (*PublishListRequest) GetToken

func (p *PublishListRequest) GetToken() (v string)

func (*PublishListRequest) GetUserID

func (p *PublishListRequest) GetUserID() (v string)

func (*PublishListRequest) Read

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

func (*PublishListRequest) ReadField1

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

func (*PublishListRequest) ReadField2

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

func (*PublishListRequest) String

func (p *PublishListRequest) String() string

func (*PublishListRequest) Write

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

type PublishListResponse

type PublishListResponse struct {
	StatusCode int64        `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  []*VideoInfo `thrift:"video_list,4,optional" form:"video_list" json:"video_list,omitempty" query:"video_list"`
}
var PublishServiceGetPublishListResult_Success_DEFAULT *PublishListResponse

func NewPublishListResponse

func NewPublishListResponse() *PublishListResponse

func (*PublishListResponse) GetStatusCode

func (p *PublishListResponse) GetStatusCode() (v int64)

func (*PublishListResponse) GetStatusMsg

func (p *PublishListResponse) GetStatusMsg() (v string)

func (*PublishListResponse) GetVideoList

func (p *PublishListResponse) GetVideoList() (v []*VideoInfo)

func (*PublishListResponse) IsSetStatusMsg

func (p *PublishListResponse) IsSetStatusMsg() bool

func (*PublishListResponse) IsSetVideoList

func (p *PublishListResponse) IsSetVideoList() bool

func (*PublishListResponse) Read

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

func (*PublishListResponse) ReadField1

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

func (*PublishListResponse) ReadField2

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

func (*PublishListResponse) ReadField4

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

func (*PublishListResponse) String

func (p *PublishListResponse) String() string

func (*PublishListResponse) Write

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

type PublishRequest

type PublishRequest struct {
	Data  []byte `thrift:"data,1" form:"date" json:"data"`
	Token string `thrift:"token,2" form:"token" json:"token"`
	Title string `thrift:"title,3" form:"title" json:"title"`
}
var PublishServicePublishActionArgs_Request_DEFAULT *PublishRequest

func NewPublishRequest

func NewPublishRequest() *PublishRequest

func (*PublishRequest) GetData

func (p *PublishRequest) GetData() (v []byte)

func (*PublishRequest) GetTitle

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

func (*PublishRequest) GetToken

func (p *PublishRequest) GetToken() (v string)

func (*PublishRequest) Read

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

func (*PublishRequest) ReadField1

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

func (*PublishRequest) ReadField2

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

func (*PublishRequest) ReadField3

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

func (*PublishRequest) String

func (p *PublishRequest) String() string

func (*PublishRequest) Write

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

type PublishResponse

type PublishResponse struct {
	StatusCode int64   `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 PublishServicePublishActionResult_Success_DEFAULT *PublishResponse

func NewPublishResponse

func NewPublishResponse() *PublishResponse

func (*PublishResponse) GetStatusCode

func (p *PublishResponse) GetStatusCode() (v int64)

func (*PublishResponse) GetStatusMsg

func (p *PublishResponse) GetStatusMsg() (v string)

func (*PublishResponse) IsSetStatusMsg

func (p *PublishResponse) IsSetStatusMsg() bool

func (*PublishResponse) Read

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

func (*PublishResponse) ReadField1

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

func (*PublishResponse) ReadField2

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

func (*PublishResponse) String

func (p *PublishResponse) String() string

func (*PublishResponse) Write

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

type PublishService

type PublishService interface {
	PublishAction(ctx context.Context, request *PublishRequest) (r *PublishResponse, err error)

	GetPublishList(ctx context.Context, request *PublishListRequest) (r *PublishListResponse, err error)
}

type PublishServiceClient

type PublishServiceClient struct {
	// contains filtered or unexported fields
}

func NewPublishServiceClient

func NewPublishServiceClient(c thrift.TClient) *PublishServiceClient

func NewPublishServiceClientProtocol

func NewPublishServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *PublishServiceClient

func (*PublishServiceClient) Client_

func (p *PublishServiceClient) Client_() thrift.TClient

func (*PublishServiceClient) GetPublishList

func (p *PublishServiceClient) GetPublishList(ctx context.Context, request *PublishListRequest) (r *PublishListResponse, err error)

func (*PublishServiceClient) PublishAction

func (p *PublishServiceClient) PublishAction(ctx context.Context, request *PublishRequest) (r *PublishResponse, err error)

type PublishServiceGetPublishListArgs

type PublishServiceGetPublishListArgs struct {
	Request *PublishListRequest `thrift:"request,1"`
}

func NewPublishServiceGetPublishListArgs

func NewPublishServiceGetPublishListArgs() *PublishServiceGetPublishListArgs

func (*PublishServiceGetPublishListArgs) GetRequest

func (*PublishServiceGetPublishListArgs) IsSetRequest

func (p *PublishServiceGetPublishListArgs) IsSetRequest() bool

func (*PublishServiceGetPublishListArgs) Read

func (*PublishServiceGetPublishListArgs) ReadField1

func (*PublishServiceGetPublishListArgs) String

func (*PublishServiceGetPublishListArgs) Write

type PublishServiceGetPublishListResult

type PublishServiceGetPublishListResult struct {
	Success *PublishListResponse `thrift:"success,0,optional"`
}

func NewPublishServiceGetPublishListResult

func NewPublishServiceGetPublishListResult() *PublishServiceGetPublishListResult

func (*PublishServiceGetPublishListResult) GetSuccess

func (*PublishServiceGetPublishListResult) IsSetSuccess

func (p *PublishServiceGetPublishListResult) IsSetSuccess() bool

func (*PublishServiceGetPublishListResult) Read

func (*PublishServiceGetPublishListResult) ReadField0

func (*PublishServiceGetPublishListResult) String

func (*PublishServiceGetPublishListResult) Write

type PublishServiceProcessor

type PublishServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewPublishServiceProcessor

func NewPublishServiceProcessor(handler PublishService) *PublishServiceProcessor

func (*PublishServiceProcessor) AddToProcessorMap

func (p *PublishServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*PublishServiceProcessor) GetProcessorFunction

func (p *PublishServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*PublishServiceProcessor) Process

func (p *PublishServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*PublishServiceProcessor) ProcessorMap

type PublishServicePublishActionArgs

type PublishServicePublishActionArgs struct {
	Request *PublishRequest `thrift:"request,1"`
}

func NewPublishServicePublishActionArgs

func NewPublishServicePublishActionArgs() *PublishServicePublishActionArgs

func (*PublishServicePublishActionArgs) GetRequest

func (p *PublishServicePublishActionArgs) GetRequest() (v *PublishRequest)

func (*PublishServicePublishActionArgs) IsSetRequest

func (p *PublishServicePublishActionArgs) IsSetRequest() bool

func (*PublishServicePublishActionArgs) Read

func (*PublishServicePublishActionArgs) ReadField1

func (*PublishServicePublishActionArgs) String

func (*PublishServicePublishActionArgs) Write

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

type PublishServicePublishActionResult

type PublishServicePublishActionResult struct {
	Success *PublishResponse `thrift:"success,0,optional"`
}

func NewPublishServicePublishActionResult

func NewPublishServicePublishActionResult() *PublishServicePublishActionResult

func (*PublishServicePublishActionResult) GetSuccess

func (*PublishServicePublishActionResult) IsSetSuccess

func (p *PublishServicePublishActionResult) IsSetSuccess() bool

func (*PublishServicePublishActionResult) Read

func (*PublishServicePublishActionResult) ReadField0

func (*PublishServicePublishActionResult) String

func (*PublishServicePublishActionResult) Write

type RegisterRequest

type RegisterRequest struct {
	Username string `thrift:"username,1" json:"username" query:"username"`
	Password string `thrift:"password,2" json:"password" query:"password"`
}
var UserServiceUserRegisterArgs_Request_DEFAULT *RegisterRequest

func NewRegisterRequest

func NewRegisterRequest() *RegisterRequest

func (*RegisterRequest) GetPassword

func (p *RegisterRequest) GetPassword() (v string)

func (*RegisterRequest) GetUsername

func (p *RegisterRequest) GetUsername() (v string)

func (*RegisterRequest) Read

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

func (*RegisterRequest) ReadField1

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

func (*RegisterRequest) ReadField2

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

func (*RegisterRequest) String

func (p *RegisterRequest) String() string

func (*RegisterRequest) Write

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

type RegisterResponse

type RegisterResponse struct {
	StatusCode int64  `thrift:"status_code,1" form:"status_code" json:"status_code" query:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" form:"status_msg" json:"status_msg" query:"status_msg"`
	UserID     int64  `thrift:"user_id,3" form:"user_id" json:"user_id" query:"user_id"`
	Token      string `thrift:"token,4" form:"token" json:"token" query:"token"`
}
var UserServiceUserRegisterResult_Success_DEFAULT *RegisterResponse

func NewRegisterResponse

func NewRegisterResponse() *RegisterResponse

func (*RegisterResponse) GetStatusCode

func (p *RegisterResponse) GetStatusCode() (v int64)

func (*RegisterResponse) GetStatusMsg

func (p *RegisterResponse) GetStatusMsg() (v string)

func (*RegisterResponse) GetToken

func (p *RegisterResponse) GetToken() (v string)

func (*RegisterResponse) GetUserID

func (p *RegisterResponse) GetUserID() (v int64)

func (*RegisterResponse) Read

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

func (*RegisterResponse) ReadField1

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

func (*RegisterResponse) ReadField2

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

func (*RegisterResponse) ReadField3

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

func (*RegisterResponse) ReadField4

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

func (*RegisterResponse) String

func (p *RegisterResponse) String() string

func (*RegisterResponse) Write

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

type RelationListRequest

type RelationListRequest struct {
	UserID string `thrift:"user_id,1" json:"user_id" query:"user_id"`
	Token  string `thrift:"token,2" json:"token" query:"token"`
}
var RelationServiceGetFollowListArgs_Request_DEFAULT *RelationListRequest
var RelationServiceGetFollowerListArgs_Request_DEFAULT *RelationListRequest
var RelationServiceGetFriendListArgs_Request_DEFAULT *RelationListRequest

func NewRelationListRequest

func NewRelationListRequest() *RelationListRequest

func (*RelationListRequest) GetToken

func (p *RelationListRequest) GetToken() (v string)

func (*RelationListRequest) GetUserID

func (p *RelationListRequest) GetUserID() (v string)

func (*RelationListRequest) Read

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

func (*RelationListRequest) ReadField1

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

func (*RelationListRequest) ReadField2

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

func (*RelationListRequest) String

func (p *RelationListRequest) String() string

func (*RelationListRequest) Write

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

type RelationListResponse

type RelationListResponse struct {
	StatusCode int64       `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"`
	UserList   []*UserInfo `thrift:"user_list,3,optional" form:"user_list" json:"user_list,omitempty" query:"user_list"`
}
var RelationServiceGetFollowListResult_Success_DEFAULT *RelationListResponse
var RelationServiceGetFollowerListResult_Success_DEFAULT *RelationListResponse
var RelationServiceGetFriendListResult_Success_DEFAULT *RelationListResponse

func NewRelationListResponse

func NewRelationListResponse() *RelationListResponse

func (*RelationListResponse) GetStatusCode

func (p *RelationListResponse) GetStatusCode() (v int64)

func (*RelationListResponse) GetStatusMsg

func (p *RelationListResponse) GetStatusMsg() (v string)

func (*RelationListResponse) GetUserList

func (p *RelationListResponse) GetUserList() (v []*UserInfo)

func (*RelationListResponse) IsSetStatusMsg

func (p *RelationListResponse) IsSetStatusMsg() bool

func (*RelationListResponse) IsSetUserList

func (p *RelationListResponse) IsSetUserList() bool

func (*RelationListResponse) Read

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

func (*RelationListResponse) ReadField1

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

func (*RelationListResponse) ReadField2

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

func (*RelationListResponse) ReadField3

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

func (*RelationListResponse) String

func (p *RelationListResponse) String() string

func (*RelationListResponse) Write

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

type RelationService

type RelationService interface {
	FollowAction(ctx context.Context, request *FollowRequest) (r *FollowResponse, err error)

	GetFollowList(ctx context.Context, request *RelationListRequest) (r *RelationListResponse, err error)

	GetFollowerList(ctx context.Context, request *RelationListRequest) (r *RelationListResponse, err error)

	GetFriendList(ctx context.Context, request *RelationListRequest) (r *RelationListResponse, err error)
}

type RelationServiceClient

type RelationServiceClient struct {
	// contains filtered or unexported fields
}

func NewRelationServiceClient

func NewRelationServiceClient(c thrift.TClient) *RelationServiceClient

func NewRelationServiceClientProtocol

func NewRelationServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *RelationServiceClient

func (*RelationServiceClient) Client_

func (p *RelationServiceClient) Client_() thrift.TClient

func (*RelationServiceClient) FollowAction

func (p *RelationServiceClient) FollowAction(ctx context.Context, request *FollowRequest) (r *FollowResponse, err error)

func (*RelationServiceClient) GetFollowList

func (p *RelationServiceClient) GetFollowList(ctx context.Context, request *RelationListRequest) (r *RelationListResponse, err error)

func (*RelationServiceClient) GetFollowerList

func (p *RelationServiceClient) GetFollowerList(ctx context.Context, request *RelationListRequest) (r *RelationListResponse, err error)

func (*RelationServiceClient) GetFriendList

func (p *RelationServiceClient) GetFriendList(ctx context.Context, request *RelationListRequest) (r *RelationListResponse, err error)

type RelationServiceFollowActionArgs

type RelationServiceFollowActionArgs struct {
	Request *FollowRequest `thrift:"request,1"`
}

func NewRelationServiceFollowActionArgs

func NewRelationServiceFollowActionArgs() *RelationServiceFollowActionArgs

func (*RelationServiceFollowActionArgs) GetRequest

func (p *RelationServiceFollowActionArgs) GetRequest() (v *FollowRequest)

func (*RelationServiceFollowActionArgs) IsSetRequest

func (p *RelationServiceFollowActionArgs) IsSetRequest() bool

func (*RelationServiceFollowActionArgs) Read

func (*RelationServiceFollowActionArgs) ReadField1

func (*RelationServiceFollowActionArgs) String

func (*RelationServiceFollowActionArgs) Write

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

type RelationServiceFollowActionResult

type RelationServiceFollowActionResult struct {
	Success *FollowResponse `thrift:"success,0,optional"`
}

func NewRelationServiceFollowActionResult

func NewRelationServiceFollowActionResult() *RelationServiceFollowActionResult

func (*RelationServiceFollowActionResult) GetSuccess

func (*RelationServiceFollowActionResult) IsSetSuccess

func (p *RelationServiceFollowActionResult) IsSetSuccess() bool

func (*RelationServiceFollowActionResult) Read

func (*RelationServiceFollowActionResult) ReadField0

func (*RelationServiceFollowActionResult) String

func (*RelationServiceFollowActionResult) Write

type RelationServiceGetFollowListArgs

type RelationServiceGetFollowListArgs struct {
	Request *RelationListRequest `thrift:"request,1"`
}

func NewRelationServiceGetFollowListArgs

func NewRelationServiceGetFollowListArgs() *RelationServiceGetFollowListArgs

func (*RelationServiceGetFollowListArgs) GetRequest

func (*RelationServiceGetFollowListArgs) IsSetRequest

func (p *RelationServiceGetFollowListArgs) IsSetRequest() bool

func (*RelationServiceGetFollowListArgs) Read

func (*RelationServiceGetFollowListArgs) ReadField1

func (*RelationServiceGetFollowListArgs) String

func (*RelationServiceGetFollowListArgs) Write

type RelationServiceGetFollowListResult

type RelationServiceGetFollowListResult struct {
	Success *RelationListResponse `thrift:"success,0,optional"`
}

func NewRelationServiceGetFollowListResult

func NewRelationServiceGetFollowListResult() *RelationServiceGetFollowListResult

func (*RelationServiceGetFollowListResult) GetSuccess

func (*RelationServiceGetFollowListResult) IsSetSuccess

func (p *RelationServiceGetFollowListResult) IsSetSuccess() bool

func (*RelationServiceGetFollowListResult) Read

func (*RelationServiceGetFollowListResult) ReadField0

func (*RelationServiceGetFollowListResult) String

func (*RelationServiceGetFollowListResult) Write

type RelationServiceGetFollowerListArgs

type RelationServiceGetFollowerListArgs struct {
	Request *RelationListRequest `thrift:"request,1"`
}

func NewRelationServiceGetFollowerListArgs

func NewRelationServiceGetFollowerListArgs() *RelationServiceGetFollowerListArgs

func (*RelationServiceGetFollowerListArgs) GetRequest

func (*RelationServiceGetFollowerListArgs) IsSetRequest

func (p *RelationServiceGetFollowerListArgs) IsSetRequest() bool

func (*RelationServiceGetFollowerListArgs) Read

func (*RelationServiceGetFollowerListArgs) ReadField1

func (*RelationServiceGetFollowerListArgs) String

func (*RelationServiceGetFollowerListArgs) Write

type RelationServiceGetFollowerListResult

type RelationServiceGetFollowerListResult struct {
	Success *RelationListResponse `thrift:"success,0,optional"`
}

func NewRelationServiceGetFollowerListResult

func NewRelationServiceGetFollowerListResult() *RelationServiceGetFollowerListResult

func (*RelationServiceGetFollowerListResult) GetSuccess

func (*RelationServiceGetFollowerListResult) IsSetSuccess

func (p *RelationServiceGetFollowerListResult) IsSetSuccess() bool

func (*RelationServiceGetFollowerListResult) Read

func (*RelationServiceGetFollowerListResult) ReadField0

func (*RelationServiceGetFollowerListResult) String

func (*RelationServiceGetFollowerListResult) Write

type RelationServiceGetFriendListArgs

type RelationServiceGetFriendListArgs struct {
	Request *RelationListRequest `thrift:"request,1"`
}

func NewRelationServiceGetFriendListArgs

func NewRelationServiceGetFriendListArgs() *RelationServiceGetFriendListArgs

func (*RelationServiceGetFriendListArgs) GetRequest

func (*RelationServiceGetFriendListArgs) IsSetRequest

func (p *RelationServiceGetFriendListArgs) IsSetRequest() bool

func (*RelationServiceGetFriendListArgs) Read

func (*RelationServiceGetFriendListArgs) ReadField1

func (*RelationServiceGetFriendListArgs) String

func (*RelationServiceGetFriendListArgs) Write

type RelationServiceGetFriendListResult

type RelationServiceGetFriendListResult struct {
	Success *RelationListResponse `thrift:"success,0,optional"`
}

func NewRelationServiceGetFriendListResult

func NewRelationServiceGetFriendListResult() *RelationServiceGetFriendListResult

func (*RelationServiceGetFriendListResult) GetSuccess

func (*RelationServiceGetFriendListResult) IsSetSuccess

func (p *RelationServiceGetFriendListResult) IsSetSuccess() bool

func (*RelationServiceGetFriendListResult) Read

func (*RelationServiceGetFriendListResult) ReadField0

func (*RelationServiceGetFriendListResult) String

func (*RelationServiceGetFriendListResult) Write

type RelationServiceProcessor

type RelationServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewRelationServiceProcessor

func NewRelationServiceProcessor(handler RelationService) *RelationServiceProcessor

func (*RelationServiceProcessor) AddToProcessorMap

func (p *RelationServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*RelationServiceProcessor) GetProcessorFunction

func (p *RelationServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*RelationServiceProcessor) Process

func (p *RelationServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*RelationServiceProcessor) ProcessorMap

type UserInfo

type UserInfo struct {
	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"`
	IsFollow        bool    `thrift:"is_follow,5" form:"is_follow" json:"is_follow" query:"is_follow"`
	WorkCount       *int64  `thrift:"work_count,6,optional" form:"work_count" json:"work_count,omitempty" query:"work_count"`
	FavoriteCount   *int64  `thrift:"favorite_count,7,optional" form:"favorite_count" json:"favorite_count,omitempty" query:"favorite_count"`
	TotalFavorited  *int64  `thrift:"total_favorited,8,optional" form:"total_favorited" json:"total_favorited,omitempty" query:"total_favorited"`
	Signature       *string `thrift:"signature,9,optional" form:"signature" json:"signature,omitempty" query:"signature"`
	Avatar          *string `thrift:"avatar,10,optional" form:"avatar" json:"avatar,omitempty" query:"avatar"`
	BackgroundImage *string `thrift:"background_image,11,optional" form:"background_image" json:"background_image,omitempty" query:"background_image"`
}
var CommentInfo_User_DEFAULT *UserInfo
var UserInfoResponse_User_DEFAULT *UserInfo
var VideoInfo_Author_DEFAULT *UserInfo

func NewUserInfo

func NewUserInfo() *UserInfo

func (*UserInfo) GetAvatar

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

func (*UserInfo) GetBackgroundImage

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

func (*UserInfo) GetFavoriteCount

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

func (*UserInfo) GetFollowCount

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

func (*UserInfo) GetFollowerCount

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

func (*UserInfo) GetID

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

func (*UserInfo) GetIsFollow

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

func (*UserInfo) GetName

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

func (*UserInfo) GetSignature

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

func (*UserInfo) GetTotalFavorited

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

func (*UserInfo) GetWorkCount

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

func (*UserInfo) IsSetAvatar

func (p *UserInfo) IsSetAvatar() bool

func (*UserInfo) IsSetBackgroundImage

func (p *UserInfo) IsSetBackgroundImage() bool

func (*UserInfo) IsSetFavoriteCount

func (p *UserInfo) IsSetFavoriteCount() bool

func (*UserInfo) IsSetSignature

func (p *UserInfo) IsSetSignature() bool

func (*UserInfo) IsSetTotalFavorited

func (p *UserInfo) IsSetTotalFavorited() bool

func (*UserInfo) IsSetWorkCount

func (p *UserInfo) IsSetWorkCount() bool

func (*UserInfo) Read

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

func (*UserInfo) ReadField1

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

func (*UserInfo) ReadField10

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

func (*UserInfo) ReadField11

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

func (*UserInfo) ReadField2

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

func (*UserInfo) ReadField3

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

func (*UserInfo) ReadField4

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

func (*UserInfo) ReadField5

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

func (*UserInfo) ReadField6

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

func (*UserInfo) ReadField7

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

func (*UserInfo) ReadField8

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

func (*UserInfo) ReadField9

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

func (*UserInfo) String

func (p *UserInfo) String() string

func (*UserInfo) Write

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

type UserInfoRequest

type UserInfoRequest struct {
	UserID string `thrift:"user_id,1" json:"user_id" query:"user_id"`
	Token  string `thrift:"token,2" json:"token" query:"token"`
}
var UserServiceGetUserInfoArgs_Request_DEFAULT *UserInfoRequest

func NewUserInfoRequest

func NewUserInfoRequest() *UserInfoRequest

func (*UserInfoRequest) GetToken

func (p *UserInfoRequest) GetToken() (v string)

func (*UserInfoRequest) GetUserID

func (p *UserInfoRequest) GetUserID() (v string)

func (*UserInfoRequest) Read

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

func (*UserInfoRequest) ReadField1

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

func (*UserInfoRequest) ReadField2

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

func (*UserInfoRequest) String

func (p *UserInfoRequest) String() string

func (*UserInfoRequest) Write

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

type UserInfoResponse

type UserInfoResponse struct {
	StatusCode int64     `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"`
	User       *UserInfo `thrift:"user,3,optional" form:"user" json:"user,omitempty" query:"user"`
}
var UserServiceGetUserInfoResult_Success_DEFAULT *UserInfoResponse

func NewUserInfoResponse

func NewUserInfoResponse() *UserInfoResponse

func (*UserInfoResponse) GetStatusCode

func (p *UserInfoResponse) GetStatusCode() (v int64)

func (*UserInfoResponse) GetStatusMsg

func (p *UserInfoResponse) GetStatusMsg() (v string)

func (*UserInfoResponse) GetUser

func (p *UserInfoResponse) GetUser() (v *UserInfo)

func (*UserInfoResponse) IsSetStatusMsg

func (p *UserInfoResponse) IsSetStatusMsg() bool

func (*UserInfoResponse) IsSetUser

func (p *UserInfoResponse) IsSetUser() bool

func (*UserInfoResponse) Read

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

func (*UserInfoResponse) ReadField1

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

func (*UserInfoResponse) ReadField2

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

func (*UserInfoResponse) ReadField3

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

func (*UserInfoResponse) String

func (p *UserInfoResponse) String() string

func (*UserInfoResponse) Write

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

type UserService

type UserService interface {
	UserRegister(ctx context.Context, request *RegisterRequest) (r *RegisterResponse, err error)

	UserLogin(ctx context.Context, request *LoginRequest) (r *LoginResponse, err error)

	GetUserInfo(ctx context.Context, request *UserInfoRequest) (r *UserInfoResponse, err error)
}

type UserServiceClient

type UserServiceClient struct {
	// contains filtered or unexported fields
}

func NewUserServiceClient

func NewUserServiceClient(c thrift.TClient) *UserServiceClient

func NewUserServiceClientProtocol

func NewUserServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *UserServiceClient

func (*UserServiceClient) Client_

func (p *UserServiceClient) Client_() thrift.TClient

func (*UserServiceClient) GetUserInfo

func (p *UserServiceClient) GetUserInfo(ctx context.Context, request *UserInfoRequest) (r *UserInfoResponse, err error)

func (*UserServiceClient) UserLogin

func (p *UserServiceClient) UserLogin(ctx context.Context, request *LoginRequest) (r *LoginResponse, err error)

func (*UserServiceClient) UserRegister

func (p *UserServiceClient) UserRegister(ctx context.Context, request *RegisterRequest) (r *RegisterResponse, err error)

type UserServiceGetUserInfoArgs

type UserServiceGetUserInfoArgs struct {
	Request *UserInfoRequest `thrift:"request,1"`
}

func NewUserServiceGetUserInfoArgs

func NewUserServiceGetUserInfoArgs() *UserServiceGetUserInfoArgs

func (*UserServiceGetUserInfoArgs) GetRequest

func (p *UserServiceGetUserInfoArgs) GetRequest() (v *UserInfoRequest)

func (*UserServiceGetUserInfoArgs) IsSetRequest

func (p *UserServiceGetUserInfoArgs) IsSetRequest() bool

func (*UserServiceGetUserInfoArgs) Read

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

func (*UserServiceGetUserInfoArgs) ReadField1

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

func (*UserServiceGetUserInfoArgs) String

func (p *UserServiceGetUserInfoArgs) String() string

func (*UserServiceGetUserInfoArgs) Write

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

type UserServiceGetUserInfoResult

type UserServiceGetUserInfoResult struct {
	Success *UserInfoResponse `thrift:"success,0,optional"`
}

func NewUserServiceGetUserInfoResult

func NewUserServiceGetUserInfoResult() *UserServiceGetUserInfoResult

func (*UserServiceGetUserInfoResult) GetSuccess

func (p *UserServiceGetUserInfoResult) GetSuccess() (v *UserInfoResponse)

func (*UserServiceGetUserInfoResult) IsSetSuccess

func (p *UserServiceGetUserInfoResult) IsSetSuccess() bool

func (*UserServiceGetUserInfoResult) Read

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

func (*UserServiceGetUserInfoResult) ReadField0

func (p *UserServiceGetUserInfoResult) ReadField0(iprot thrift.TProtocol) error

func (*UserServiceGetUserInfoResult) String

func (*UserServiceGetUserInfoResult) Write

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

type UserServiceProcessor

type UserServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewUserServiceProcessor

func NewUserServiceProcessor(handler UserService) *UserServiceProcessor

func (*UserServiceProcessor) AddToProcessorMap

func (p *UserServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*UserServiceProcessor) GetProcessorFunction

func (p *UserServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*UserServiceProcessor) Process

func (p *UserServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*UserServiceProcessor) ProcessorMap

func (p *UserServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

type UserServiceUserLoginArgs

type UserServiceUserLoginArgs struct {
	Request *LoginRequest `thrift:"request,1"`
}

func NewUserServiceUserLoginArgs

func NewUserServiceUserLoginArgs() *UserServiceUserLoginArgs

func (*UserServiceUserLoginArgs) GetRequest

func (p *UserServiceUserLoginArgs) GetRequest() (v *LoginRequest)

func (*UserServiceUserLoginArgs) IsSetRequest

func (p *UserServiceUserLoginArgs) IsSetRequest() bool

func (*UserServiceUserLoginArgs) Read

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

func (*UserServiceUserLoginArgs) ReadField1

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

func (*UserServiceUserLoginArgs) String

func (p *UserServiceUserLoginArgs) String() string

func (*UserServiceUserLoginArgs) Write

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

type UserServiceUserLoginResult

type UserServiceUserLoginResult struct {
	Success *LoginResponse `thrift:"success,0,optional"`
}

func NewUserServiceUserLoginResult

func NewUserServiceUserLoginResult() *UserServiceUserLoginResult

func (*UserServiceUserLoginResult) GetSuccess

func (p *UserServiceUserLoginResult) GetSuccess() (v *LoginResponse)

func (*UserServiceUserLoginResult) IsSetSuccess

func (p *UserServiceUserLoginResult) IsSetSuccess() bool

func (*UserServiceUserLoginResult) Read

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

func (*UserServiceUserLoginResult) ReadField0

func (p *UserServiceUserLoginResult) ReadField0(iprot thrift.TProtocol) error

func (*UserServiceUserLoginResult) String

func (p *UserServiceUserLoginResult) String() string

func (*UserServiceUserLoginResult) Write

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

type UserServiceUserRegisterArgs

type UserServiceUserRegisterArgs struct {
	Request *RegisterRequest `thrift:"request,1"`
}

func NewUserServiceUserRegisterArgs

func NewUserServiceUserRegisterArgs() *UserServiceUserRegisterArgs

func (*UserServiceUserRegisterArgs) GetRequest

func (p *UserServiceUserRegisterArgs) GetRequest() (v *RegisterRequest)

func (*UserServiceUserRegisterArgs) IsSetRequest

func (p *UserServiceUserRegisterArgs) IsSetRequest() bool

func (*UserServiceUserRegisterArgs) Read

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

func (*UserServiceUserRegisterArgs) ReadField1

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

func (*UserServiceUserRegisterArgs) String

func (p *UserServiceUserRegisterArgs) String() string

func (*UserServiceUserRegisterArgs) Write

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

type UserServiceUserRegisterResult

type UserServiceUserRegisterResult struct {
	Success *RegisterResponse `thrift:"success,0,optional"`
}

func NewUserServiceUserRegisterResult

func NewUserServiceUserRegisterResult() *UserServiceUserRegisterResult

func (*UserServiceUserRegisterResult) GetSuccess

func (p *UserServiceUserRegisterResult) GetSuccess() (v *RegisterResponse)

func (*UserServiceUserRegisterResult) IsSetSuccess

func (p *UserServiceUserRegisterResult) IsSetSuccess() bool

func (*UserServiceUserRegisterResult) Read

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

func (*UserServiceUserRegisterResult) ReadField0

func (p *UserServiceUserRegisterResult) ReadField0(iprot thrift.TProtocol) error

func (*UserServiceUserRegisterResult) String

func (*UserServiceUserRegisterResult) Write

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

type VideoInfo

type VideoInfo struct {
	ID            int64     `thrift:"id,1" form:"id" json:"id" query:"id"`
	Author        *UserInfo `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"`
	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 NewVideoInfo

func NewVideoInfo() *VideoInfo

func (*VideoInfo) GetAuthor

func (p *VideoInfo) GetAuthor() (v *UserInfo)

func (*VideoInfo) GetCommentCount

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

func (*VideoInfo) GetCoverURL

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

func (*VideoInfo) GetFavoriteCount

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

func (*VideoInfo) GetID

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

func (*VideoInfo) GetIsFavorite

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

func (*VideoInfo) GetPlayURL

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

func (*VideoInfo) GetTitle

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

func (*VideoInfo) IsSetAuthor

func (p *VideoInfo) IsSetAuthor() bool

func (*VideoInfo) Read

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

func (*VideoInfo) ReadField1

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

func (*VideoInfo) ReadField2

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

func (*VideoInfo) ReadField3

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

func (*VideoInfo) ReadField4

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

func (*VideoInfo) ReadField5

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

func (*VideoInfo) ReadField6

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

func (*VideoInfo) ReadField7

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

func (*VideoInfo) ReadField8

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

func (*VideoInfo) String

func (p *VideoInfo) String() string

func (*VideoInfo) Write

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

Jump to

Keyboard shortcuts

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