Documentation ¶
Index ¶
- Variables
- type Comment
- func (p *Comment) GetContent() (v string)
- func (p *Comment) GetCreateDate() (v string)
- func (p *Comment) GetID() (v int64)
- func (p *Comment) GetUser() (v *base.User)
- func (p *Comment) IsSetUser() bool
- func (p *Comment) Read(iprot thrift.TProtocol) (err error)
- func (p *Comment) ReadField1(iprot thrift.TProtocol) error
- func (p *Comment) ReadField2(iprot thrift.TProtocol) error
- func (p *Comment) ReadField3(iprot thrift.TProtocol) error
- func (p *Comment) ReadField4(iprot thrift.TProtocol) error
- func (p *Comment) String() string
- func (p *Comment) Write(oprot thrift.TProtocol) (err error)
- type CommentActionReq
- func (p *CommentActionReq) GetActionType() (v int32)
- func (p *CommentActionReq) GetCommentID() (v int64)
- func (p *CommentActionReq) GetCommentText() (v string)
- func (p *CommentActionReq) GetToken() (v string)
- func (p *CommentActionReq) GetVideoID() (v int64)
- func (p *CommentActionReq) IsSetCommentID() bool
- func (p *CommentActionReq) IsSetCommentText() bool
- func (p *CommentActionReq) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentActionReq) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentActionReq) ReadField2(iprot thrift.TProtocol) error
- func (p *CommentActionReq) ReadField3(iprot thrift.TProtocol) error
- func (p *CommentActionReq) ReadField4(iprot thrift.TProtocol) error
- func (p *CommentActionReq) ReadField5(iprot thrift.TProtocol) error
- func (p *CommentActionReq) String() string
- func (p *CommentActionReq) Write(oprot thrift.TProtocol) (err error)
- type CommentActionResp
- func (p *CommentActionResp) GetComment() (v *Comment)
- func (p *CommentActionResp) GetStatusCode() (v int32)
- func (p *CommentActionResp) GetStatusMsg() (v string)
- func (p *CommentActionResp) IsSetComment() bool
- func (p *CommentActionResp) IsSetStatusMsg() bool
- func (p *CommentActionResp) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentActionResp) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentActionResp) ReadField2(iprot thrift.TProtocol) error
- func (p *CommentActionResp) ReadField3(iprot thrift.TProtocol) error
- func (p *CommentActionResp) String() string
- func (p *CommentActionResp) Write(oprot thrift.TProtocol) (err error)
- type CommentListReq
- func (p *CommentListReq) GetToken() (v string)
- func (p *CommentListReq) GetVideoID() (v int64)
- func (p *CommentListReq) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentListReq) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentListReq) ReadField2(iprot thrift.TProtocol) error
- func (p *CommentListReq) String() string
- func (p *CommentListReq) Write(oprot thrift.TProtocol) (err error)
- type CommentListResp
- func (p *CommentListResp) GetCommentList() (v []*Comment)
- func (p *CommentListResp) GetStatusCode() (v int32)
- func (p *CommentListResp) GetStatusMsg() (v string)
- func (p *CommentListResp) IsSetStatusMsg() bool
- func (p *CommentListResp) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentListResp) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentListResp) ReadField2(iprot thrift.TProtocol) error
- func (p *CommentListResp) ReadField3(iprot thrift.TProtocol) error
- func (p *CommentListResp) String() string
- func (p *CommentListResp) Write(oprot thrift.TProtocol) (err error)
- type CommentService
- type CommentServiceClient
- func NewCommentServiceClient(c thrift.TClient) *CommentServiceClient
- func NewCommentServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *CommentServiceClient
- func NewCommentServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *CommentServiceClient
- type CommentServiceCommentActionArgs
- func (p *CommentServiceCommentActionArgs) GetReq() (v *CommentActionReq)
- func (p *CommentServiceCommentActionArgs) IsSetReq() bool
- func (p *CommentServiceCommentActionArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceCommentActionArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentServiceCommentActionArgs) String() string
- func (p *CommentServiceCommentActionArgs) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceCommentActionResult
- func (p *CommentServiceCommentActionResult) GetSuccess() (v *CommentActionResp)
- func (p *CommentServiceCommentActionResult) IsSetSuccess() bool
- func (p *CommentServiceCommentActionResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceCommentActionResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommentServiceCommentActionResult) String() string
- func (p *CommentServiceCommentActionResult) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceCommentListArgs
- func (p *CommentServiceCommentListArgs) GetReq() (v *CommentListReq)
- func (p *CommentServiceCommentListArgs) IsSetReq() bool
- func (p *CommentServiceCommentListArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceCommentListArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentServiceCommentListArgs) String() string
- func (p *CommentServiceCommentListArgs) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceCommentListResult
- func (p *CommentServiceCommentListResult) GetSuccess() (v *CommentListResp)
- func (p *CommentServiceCommentListResult) IsSetSuccess() bool
- func (p *CommentServiceCommentListResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceCommentListResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommentServiceCommentListResult) String() string
- func (p *CommentServiceCommentListResult) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceProcessor
- func (p *CommentServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *CommentServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *CommentServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *CommentServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type FavoriteActionReq
- func (p *FavoriteActionReq) GetActionType() (v int32)
- func (p *FavoriteActionReq) GetToken() (v string)
- func (p *FavoriteActionReq) GetVideoID() (v int64)
- func (p *FavoriteActionReq) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteActionReq) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteActionReq) ReadField2(iprot thrift.TProtocol) error
- func (p *FavoriteActionReq) ReadField3(iprot thrift.TProtocol) error
- func (p *FavoriteActionReq) String() string
- func (p *FavoriteActionReq) Write(oprot thrift.TProtocol) (err error)
- type FavoriteActionResp
- func (p *FavoriteActionResp) GetStatusCode() (v int32)
- func (p *FavoriteActionResp) GetStatusMsg() (v string)
- func (p *FavoriteActionResp) IsSetStatusMsg() bool
- func (p *FavoriteActionResp) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteActionResp) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteActionResp) ReadField2(iprot thrift.TProtocol) error
- func (p *FavoriteActionResp) String() string
- func (p *FavoriteActionResp) Write(oprot thrift.TProtocol) (err error)
- type FavoriteListReq
- func (p *FavoriteListReq) GetToken() (v string)
- func (p *FavoriteListReq) GetUserID() (v int64)
- func (p *FavoriteListReq) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteListReq) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteListReq) ReadField2(iprot thrift.TProtocol) error
- func (p *FavoriteListReq) String() string
- func (p *FavoriteListReq) Write(oprot thrift.TProtocol) (err error)
- type FavoriteListResp
- func (p *FavoriteListResp) GetStatusCode() (v int32)
- func (p *FavoriteListResp) GetStatusMsg() (v string)
- func (p *FavoriteListResp) GetVideoList() (v []*base.Video)
- func (p *FavoriteListResp) IsSetStatusMsg() bool
- func (p *FavoriteListResp) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteListResp) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteListResp) ReadField2(iprot thrift.TProtocol) error
- func (p *FavoriteListResp) ReadField3(iprot thrift.TProtocol) error
- func (p *FavoriteListResp) String() string
- func (p *FavoriteListResp) Write(oprot thrift.TProtocol) (err error)
- type FavoriteService
- type FavoriteServiceClient
- func NewFavoriteServiceClient(c thrift.TClient) *FavoriteServiceClient
- func NewFavoriteServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *FavoriteServiceClient
- func NewFavoriteServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FavoriteServiceClient
- func (p *FavoriteServiceClient) Client_() thrift.TClient
- func (p *FavoriteServiceClient) FavoriteAction(ctx context.Context, req *FavoriteActionReq) (r *FavoriteActionResp, err error)
- func (p *FavoriteServiceClient) FavoriteList(ctx context.Context, req *FavoriteListReq) (r *FavoriteListResp, err error)
- type FavoriteServiceFavoriteActionArgs
- func (p *FavoriteServiceFavoriteActionArgs) GetReq() (v *FavoriteActionReq)
- func (p *FavoriteServiceFavoriteActionArgs) IsSetReq() bool
- func (p *FavoriteServiceFavoriteActionArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteActionArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteActionArgs) String() string
- func (p *FavoriteServiceFavoriteActionArgs) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteActionResult
- func (p *FavoriteServiceFavoriteActionResult) GetSuccess() (v *FavoriteActionResp)
- func (p *FavoriteServiceFavoriteActionResult) IsSetSuccess() bool
- func (p *FavoriteServiceFavoriteActionResult) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteActionResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteActionResult) String() string
- func (p *FavoriteServiceFavoriteActionResult) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteListArgs
- func (p *FavoriteServiceFavoriteListArgs) GetReq() (v *FavoriteListReq)
- func (p *FavoriteServiceFavoriteListArgs) IsSetReq() bool
- func (p *FavoriteServiceFavoriteListArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteListArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteListArgs) String() string
- func (p *FavoriteServiceFavoriteListArgs) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteListResult
- func (p *FavoriteServiceFavoriteListResult) GetSuccess() (v *FavoriteListResp)
- func (p *FavoriteServiceFavoriteListResult) IsSetSuccess() bool
- func (p *FavoriteServiceFavoriteListResult) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteListResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteListResult) String() string
- func (p *FavoriteServiceFavoriteListResult) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceProcessor
- func (p *FavoriteServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *FavoriteServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *FavoriteServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *FavoriteServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var CommentActionReq_CommentID_DEFAULT int64
View Source
var CommentActionReq_CommentText_DEFAULT string
View Source
var CommentActionResp_StatusMsg_DEFAULT string
View Source
var CommentListResp_StatusMsg_DEFAULT string
View Source
var Comment_User_DEFAULT *base.User
View Source
var FavoriteActionResp_StatusMsg_DEFAULT string
View Source
var FavoriteListResp_StatusMsg_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { ID int64 `thrift:"ID,1,required" form:"id,required" json:"id,required" query:"id,required"` User *base.User `thrift:"User,2,required" form:"user,required" json:"user,required" query:"user,required"` Content string `thrift:"Content,3,required" form:"content,required" json:"content,required" query:"content,required"` CreateDate string `thrift:"CreateDate,4,required" form:"create_date,required" json:"create_date,required" query:"create_date,required"` }
var CommentActionResp_Comment_DEFAULT *Comment
func NewComment ¶
func NewComment() *Comment
func (*Comment) GetContent ¶
func (*Comment) GetCreateDate ¶
type CommentActionReq ¶
type CommentActionReq struct { Token string `thrift:"Token,1,required" json:"token,required" query:"token,required"` VideoID int64 `thrift:"VideoID,2,required" json:"video_id,required" query:"video_id,required"` ActionType int32 `thrift:"ActionType,3,required" json:"action_type,required" query:"action_type,required"` CommentText *string `thrift:"CommentText,4,optional" json:"comment_text,omitempty" query:"comment_text"` CommentID *int64 `thrift:"CommentID,5,optional" json:"comment_id,omitempty" query:"comment_id"` }
var CommentServiceCommentActionArgs_Req_DEFAULT *CommentActionReq
func NewCommentActionReq ¶
func NewCommentActionReq() *CommentActionReq
func (*CommentActionReq) GetActionType ¶
func (p *CommentActionReq) GetActionType() (v int32)
func (*CommentActionReq) GetCommentID ¶
func (p *CommentActionReq) GetCommentID() (v int64)
func (*CommentActionReq) GetCommentText ¶
func (p *CommentActionReq) GetCommentText() (v string)
func (*CommentActionReq) GetToken ¶
func (p *CommentActionReq) GetToken() (v string)
func (*CommentActionReq) GetVideoID ¶
func (p *CommentActionReq) GetVideoID() (v int64)
func (*CommentActionReq) IsSetCommentID ¶
func (p *CommentActionReq) IsSetCommentID() bool
func (*CommentActionReq) IsSetCommentText ¶
func (p *CommentActionReq) IsSetCommentText() bool
func (*CommentActionReq) ReadField1 ¶
func (p *CommentActionReq) ReadField1(iprot thrift.TProtocol) error
func (*CommentActionReq) ReadField2 ¶
func (p *CommentActionReq) ReadField2(iprot thrift.TProtocol) error
func (*CommentActionReq) ReadField3 ¶
func (p *CommentActionReq) ReadField3(iprot thrift.TProtocol) error
func (*CommentActionReq) ReadField4 ¶
func (p *CommentActionReq) ReadField4(iprot thrift.TProtocol) error
func (*CommentActionReq) ReadField5 ¶
func (p *CommentActionReq) ReadField5(iprot thrift.TProtocol) error
func (*CommentActionReq) String ¶
func (p *CommentActionReq) String() string
type CommentActionResp ¶
type CommentActionResp struct { StatusCode int32 `thrift:"StatusCode,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"` StatusMsg *string `thrift:"StatusMsg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` Comment *Comment `thrift:"Comment,3,optional" form:"comment" json:"comment,omitempty" query:"comment"` }
var CommentServiceCommentActionResult_Success_DEFAULT *CommentActionResp
func NewCommentActionResp ¶
func NewCommentActionResp() *CommentActionResp
func (*CommentActionResp) GetComment ¶
func (p *CommentActionResp) GetComment() (v *Comment)
func (*CommentActionResp) GetStatusCode ¶
func (p *CommentActionResp) GetStatusCode() (v int32)
func (*CommentActionResp) GetStatusMsg ¶
func (p *CommentActionResp) GetStatusMsg() (v string)
func (*CommentActionResp) IsSetComment ¶
func (p *CommentActionResp) IsSetComment() bool
func (*CommentActionResp) IsSetStatusMsg ¶
func (p *CommentActionResp) IsSetStatusMsg() bool
func (*CommentActionResp) Read ¶
func (p *CommentActionResp) Read(iprot thrift.TProtocol) (err error)
func (*CommentActionResp) ReadField1 ¶
func (p *CommentActionResp) ReadField1(iprot thrift.TProtocol) error
func (*CommentActionResp) ReadField2 ¶
func (p *CommentActionResp) ReadField2(iprot thrift.TProtocol) error
func (*CommentActionResp) ReadField3 ¶
func (p *CommentActionResp) ReadField3(iprot thrift.TProtocol) error
func (*CommentActionResp) String ¶
func (p *CommentActionResp) String() string
type CommentListReq ¶
type CommentListReq struct { Token string `thrift:"Token,1,required" json:"token,required" query:"token,required"` VideoID int64 `thrift:"VideoID,2,required" json:"video_id,required" query:"video_id,required"` }
var CommentServiceCommentListArgs_Req_DEFAULT *CommentListReq
func NewCommentListReq ¶
func NewCommentListReq() *CommentListReq
func (*CommentListReq) GetToken ¶
func (p *CommentListReq) GetToken() (v string)
func (*CommentListReq) GetVideoID ¶
func (p *CommentListReq) GetVideoID() (v int64)
func (*CommentListReq) ReadField1 ¶
func (p *CommentListReq) ReadField1(iprot thrift.TProtocol) error
func (*CommentListReq) ReadField2 ¶
func (p *CommentListReq) ReadField2(iprot thrift.TProtocol) error
func (*CommentListReq) String ¶
func (p *CommentListReq) String() string
type CommentListResp ¶
type CommentListResp struct { StatusCode int32 `thrift:"StatusCode,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"` StatusMsg *string `thrift:"StatusMsg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` CommentList []*Comment `thrift:"CommentList,3,required" form:"comment_list,required" json:"comment_list,required" query:"comment_list,required"` }
var CommentServiceCommentListResult_Success_DEFAULT *CommentListResp
func NewCommentListResp ¶
func NewCommentListResp() *CommentListResp
func (*CommentListResp) GetCommentList ¶
func (p *CommentListResp) GetCommentList() (v []*Comment)
func (*CommentListResp) GetStatusCode ¶
func (p *CommentListResp) GetStatusCode() (v int32)
func (*CommentListResp) GetStatusMsg ¶
func (p *CommentListResp) GetStatusMsg() (v string)
func (*CommentListResp) IsSetStatusMsg ¶
func (p *CommentListResp) IsSetStatusMsg() bool
func (*CommentListResp) ReadField1 ¶
func (p *CommentListResp) ReadField1(iprot thrift.TProtocol) error
func (*CommentListResp) ReadField2 ¶
func (p *CommentListResp) ReadField2(iprot thrift.TProtocol) error
func (*CommentListResp) ReadField3 ¶
func (p *CommentListResp) ReadField3(iprot thrift.TProtocol) error
func (*CommentListResp) String ¶
func (p *CommentListResp) String() string
type CommentService ¶
type CommentService interface { CommentAction(ctx context.Context, req *CommentActionReq) (r *CommentActionResp, err error) CommentList(ctx context.Context, req *CommentListReq) (r *CommentListResp, err error) }
type CommentServiceClient ¶
type CommentServiceClient struct {
// contains filtered or unexported fields
}
func NewCommentServiceClient ¶
func NewCommentServiceClient(c thrift.TClient) *CommentServiceClient
func NewCommentServiceClientFactory ¶
func NewCommentServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *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, req *CommentActionReq) (r *CommentActionResp, err error)
func (*CommentServiceClient) CommentList ¶
func (p *CommentServiceClient) CommentList(ctx context.Context, req *CommentListReq) (r *CommentListResp, err error)
type CommentServiceCommentActionArgs ¶
type CommentServiceCommentActionArgs struct {
Req *CommentActionReq `thrift:"req,1"`
}
func NewCommentServiceCommentActionArgs ¶
func NewCommentServiceCommentActionArgs() *CommentServiceCommentActionArgs
func (*CommentServiceCommentActionArgs) GetReq ¶
func (p *CommentServiceCommentActionArgs) GetReq() (v *CommentActionReq)
func (*CommentServiceCommentActionArgs) IsSetReq ¶
func (p *CommentServiceCommentActionArgs) IsSetReq() bool
func (*CommentServiceCommentActionArgs) Read ¶
func (p *CommentServiceCommentActionArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommentServiceCommentActionArgs) ReadField1 ¶
func (p *CommentServiceCommentActionArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommentServiceCommentActionArgs) String ¶
func (p *CommentServiceCommentActionArgs) String() string
type CommentServiceCommentActionResult ¶
type CommentServiceCommentActionResult struct {
Success *CommentActionResp `thrift:"success,0,optional"`
}
func NewCommentServiceCommentActionResult ¶
func NewCommentServiceCommentActionResult() *CommentServiceCommentActionResult
func (*CommentServiceCommentActionResult) GetSuccess ¶
func (p *CommentServiceCommentActionResult) GetSuccess() (v *CommentActionResp)
func (*CommentServiceCommentActionResult) IsSetSuccess ¶
func (p *CommentServiceCommentActionResult) IsSetSuccess() bool
func (*CommentServiceCommentActionResult) Read ¶
func (p *CommentServiceCommentActionResult) Read(iprot thrift.TProtocol) (err error)
func (*CommentServiceCommentActionResult) ReadField0 ¶
func (p *CommentServiceCommentActionResult) ReadField0(iprot thrift.TProtocol) error
func (*CommentServiceCommentActionResult) String ¶
func (p *CommentServiceCommentActionResult) String() string
type CommentServiceCommentListArgs ¶
type CommentServiceCommentListArgs struct {
Req *CommentListReq `thrift:"req,1"`
}
func NewCommentServiceCommentListArgs ¶
func NewCommentServiceCommentListArgs() *CommentServiceCommentListArgs
func (*CommentServiceCommentListArgs) GetReq ¶
func (p *CommentServiceCommentListArgs) GetReq() (v *CommentListReq)
func (*CommentServiceCommentListArgs) IsSetReq ¶
func (p *CommentServiceCommentListArgs) IsSetReq() bool
func (*CommentServiceCommentListArgs) Read ¶
func (p *CommentServiceCommentListArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommentServiceCommentListArgs) ReadField1 ¶
func (p *CommentServiceCommentListArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommentServiceCommentListArgs) String ¶
func (p *CommentServiceCommentListArgs) String() string
type CommentServiceCommentListResult ¶
type CommentServiceCommentListResult struct {
Success *CommentListResp `thrift:"success,0,optional"`
}
func NewCommentServiceCommentListResult ¶
func NewCommentServiceCommentListResult() *CommentServiceCommentListResult
func (*CommentServiceCommentListResult) GetSuccess ¶
func (p *CommentServiceCommentListResult) GetSuccess() (v *CommentListResp)
func (*CommentServiceCommentListResult) IsSetSuccess ¶
func (p *CommentServiceCommentListResult) IsSetSuccess() bool
func (*CommentServiceCommentListResult) Read ¶
func (p *CommentServiceCommentListResult) Read(iprot thrift.TProtocol) (err error)
func (*CommentServiceCommentListResult) ReadField0 ¶
func (p *CommentServiceCommentListResult) ReadField0(iprot thrift.TProtocol) error
func (*CommentServiceCommentListResult) String ¶
func (p *CommentServiceCommentListResult) String() string
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 ¶
func (p *CommentServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type FavoriteActionReq ¶
type FavoriteActionReq struct { Token string `thrift:"Token,1,required" json:"token,required" query:"token,required"` VideoID int64 `thrift:"VideoID,2,required" json:"video_id,required" query:"video_id,required"` ActionType int32 `thrift:"ActionType,3,required" json:"action_type,required" query:"action_type,required"` }
var FavoriteServiceFavoriteActionArgs_Req_DEFAULT *FavoriteActionReq
func NewFavoriteActionReq ¶
func NewFavoriteActionReq() *FavoriteActionReq
func (*FavoriteActionReq) GetActionType ¶
func (p *FavoriteActionReq) GetActionType() (v int32)
func (*FavoriteActionReq) GetToken ¶
func (p *FavoriteActionReq) GetToken() (v string)
func (*FavoriteActionReq) GetVideoID ¶
func (p *FavoriteActionReq) GetVideoID() (v int64)
func (*FavoriteActionReq) Read ¶
func (p *FavoriteActionReq) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteActionReq) ReadField1 ¶
func (p *FavoriteActionReq) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteActionReq) ReadField2 ¶
func (p *FavoriteActionReq) ReadField2(iprot thrift.TProtocol) error
func (*FavoriteActionReq) ReadField3 ¶
func (p *FavoriteActionReq) ReadField3(iprot thrift.TProtocol) error
func (*FavoriteActionReq) String ¶
func (p *FavoriteActionReq) String() string
type FavoriteActionResp ¶
type FavoriteActionResp struct { StatusCode int32 `thrift:"StatusCode,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"` StatusMsg *string `thrift:"StatusMsg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` }
var FavoriteServiceFavoriteActionResult_Success_DEFAULT *FavoriteActionResp
func NewFavoriteActionResp ¶
func NewFavoriteActionResp() *FavoriteActionResp
func (*FavoriteActionResp) GetStatusCode ¶
func (p *FavoriteActionResp) GetStatusCode() (v int32)
func (*FavoriteActionResp) GetStatusMsg ¶
func (p *FavoriteActionResp) GetStatusMsg() (v string)
func (*FavoriteActionResp) IsSetStatusMsg ¶
func (p *FavoriteActionResp) IsSetStatusMsg() bool
func (*FavoriteActionResp) Read ¶
func (p *FavoriteActionResp) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteActionResp) ReadField1 ¶
func (p *FavoriteActionResp) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteActionResp) ReadField2 ¶
func (p *FavoriteActionResp) ReadField2(iprot thrift.TProtocol) error
func (*FavoriteActionResp) String ¶
func (p *FavoriteActionResp) String() string
type FavoriteListReq ¶
type FavoriteListReq struct { UserID int64 `thrift:"UserID,1,required" json:"user_id,required" query:"user_id,required"` Token string `thrift:"Token,2,required" json:"token,required" query:"token,required"` }
var FavoriteServiceFavoriteListArgs_Req_DEFAULT *FavoriteListReq
func NewFavoriteListReq ¶
func NewFavoriteListReq() *FavoriteListReq
func (*FavoriteListReq) GetToken ¶
func (p *FavoriteListReq) GetToken() (v string)
func (*FavoriteListReq) GetUserID ¶
func (p *FavoriteListReq) GetUserID() (v int64)
func (*FavoriteListReq) ReadField1 ¶
func (p *FavoriteListReq) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteListReq) ReadField2 ¶
func (p *FavoriteListReq) ReadField2(iprot thrift.TProtocol) error
func (*FavoriteListReq) String ¶
func (p *FavoriteListReq) String() string
type FavoriteListResp ¶
type FavoriteListResp struct { StatusCode int32 `thrift:"StatusCode,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"` StatusMsg *string `thrift:"StatusMsg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` VideoList []*base.Video `thrift:"VideoList,3,required" form:"video_list,required" json:"video_list,required" query:"video_list,required"` }
var FavoriteServiceFavoriteListResult_Success_DEFAULT *FavoriteListResp
func NewFavoriteListResp ¶
func NewFavoriteListResp() *FavoriteListResp
func (*FavoriteListResp) GetStatusCode ¶
func (p *FavoriteListResp) GetStatusCode() (v int32)
func (*FavoriteListResp) GetStatusMsg ¶
func (p *FavoriteListResp) GetStatusMsg() (v string)
func (*FavoriteListResp) GetVideoList ¶
func (p *FavoriteListResp) GetVideoList() (v []*base.Video)
func (*FavoriteListResp) IsSetStatusMsg ¶
func (p *FavoriteListResp) IsSetStatusMsg() bool
func (*FavoriteListResp) ReadField1 ¶
func (p *FavoriteListResp) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteListResp) ReadField2 ¶
func (p *FavoriteListResp) ReadField2(iprot thrift.TProtocol) error
func (*FavoriteListResp) ReadField3 ¶
func (p *FavoriteListResp) ReadField3(iprot thrift.TProtocol) error
func (*FavoriteListResp) String ¶
func (p *FavoriteListResp) String() string
type FavoriteService ¶
type FavoriteService interface { FavoriteAction(ctx context.Context, req *FavoriteActionReq) (r *FavoriteActionResp, err error) FavoriteList(ctx context.Context, req *FavoriteListReq) (r *FavoriteListResp, err error) }
type FavoriteServiceClient ¶
type FavoriteServiceClient struct {
// contains filtered or unexported fields
}
func NewFavoriteServiceClient ¶
func NewFavoriteServiceClient(c thrift.TClient) *FavoriteServiceClient
func NewFavoriteServiceClientFactory ¶
func NewFavoriteServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *FavoriteServiceClient
func NewFavoriteServiceClientProtocol ¶
func NewFavoriteServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FavoriteServiceClient
func (*FavoriteServiceClient) Client_ ¶
func (p *FavoriteServiceClient) Client_() thrift.TClient
func (*FavoriteServiceClient) FavoriteAction ¶
func (p *FavoriteServiceClient) FavoriteAction(ctx context.Context, req *FavoriteActionReq) (r *FavoriteActionResp, err error)
func (*FavoriteServiceClient) FavoriteList ¶
func (p *FavoriteServiceClient) FavoriteList(ctx context.Context, req *FavoriteListReq) (r *FavoriteListResp, err error)
type FavoriteServiceFavoriteActionArgs ¶
type FavoriteServiceFavoriteActionArgs struct {
Req *FavoriteActionReq `thrift:"req,1"`
}
func NewFavoriteServiceFavoriteActionArgs ¶
func NewFavoriteServiceFavoriteActionArgs() *FavoriteServiceFavoriteActionArgs
func (*FavoriteServiceFavoriteActionArgs) GetReq ¶
func (p *FavoriteServiceFavoriteActionArgs) GetReq() (v *FavoriteActionReq)
func (*FavoriteServiceFavoriteActionArgs) IsSetReq ¶
func (p *FavoriteServiceFavoriteActionArgs) IsSetReq() bool
func (*FavoriteServiceFavoriteActionArgs) Read ¶
func (p *FavoriteServiceFavoriteActionArgs) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteActionArgs) ReadField1 ¶
func (p *FavoriteServiceFavoriteActionArgs) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteActionArgs) String ¶
func (p *FavoriteServiceFavoriteActionArgs) String() string
type FavoriteServiceFavoriteActionResult ¶
type FavoriteServiceFavoriteActionResult struct {
Success *FavoriteActionResp `thrift:"success,0,optional"`
}
func NewFavoriteServiceFavoriteActionResult ¶
func NewFavoriteServiceFavoriteActionResult() *FavoriteServiceFavoriteActionResult
func (*FavoriteServiceFavoriteActionResult) GetSuccess ¶
func (p *FavoriteServiceFavoriteActionResult) GetSuccess() (v *FavoriteActionResp)
func (*FavoriteServiceFavoriteActionResult) IsSetSuccess ¶
func (p *FavoriteServiceFavoriteActionResult) IsSetSuccess() bool
func (*FavoriteServiceFavoriteActionResult) Read ¶
func (p *FavoriteServiceFavoriteActionResult) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteActionResult) ReadField0 ¶
func (p *FavoriteServiceFavoriteActionResult) ReadField0(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteActionResult) String ¶
func (p *FavoriteServiceFavoriteActionResult) String() string
type FavoriteServiceFavoriteListArgs ¶
type FavoriteServiceFavoriteListArgs struct {
Req *FavoriteListReq `thrift:"req,1"`
}
func NewFavoriteServiceFavoriteListArgs ¶
func NewFavoriteServiceFavoriteListArgs() *FavoriteServiceFavoriteListArgs
func (*FavoriteServiceFavoriteListArgs) GetReq ¶
func (p *FavoriteServiceFavoriteListArgs) GetReq() (v *FavoriteListReq)
func (*FavoriteServiceFavoriteListArgs) IsSetReq ¶
func (p *FavoriteServiceFavoriteListArgs) IsSetReq() bool
func (*FavoriteServiceFavoriteListArgs) Read ¶
func (p *FavoriteServiceFavoriteListArgs) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteListArgs) ReadField1 ¶
func (p *FavoriteServiceFavoriteListArgs) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteListArgs) String ¶
func (p *FavoriteServiceFavoriteListArgs) String() string
type FavoriteServiceFavoriteListResult ¶
type FavoriteServiceFavoriteListResult struct {
Success *FavoriteListResp `thrift:"success,0,optional"`
}
func NewFavoriteServiceFavoriteListResult ¶
func NewFavoriteServiceFavoriteListResult() *FavoriteServiceFavoriteListResult
func (*FavoriteServiceFavoriteListResult) GetSuccess ¶
func (p *FavoriteServiceFavoriteListResult) GetSuccess() (v *FavoriteListResp)
func (*FavoriteServiceFavoriteListResult) IsSetSuccess ¶
func (p *FavoriteServiceFavoriteListResult) IsSetSuccess() bool
func (*FavoriteServiceFavoriteListResult) Read ¶
func (p *FavoriteServiceFavoriteListResult) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteListResult) ReadField0 ¶
func (p *FavoriteServiceFavoriteListResult) ReadField0(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteListResult) String ¶
func (p *FavoriteServiceFavoriteListResult) String() string
type FavoriteServiceProcessor ¶
type FavoriteServiceProcessor struct {
// contains filtered or unexported fields
}
func NewFavoriteServiceProcessor ¶
func NewFavoriteServiceProcessor(handler FavoriteService) *FavoriteServiceProcessor
func (*FavoriteServiceProcessor) AddToProcessorMap ¶
func (p *FavoriteServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*FavoriteServiceProcessor) GetProcessorFunction ¶
func (p *FavoriteServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*FavoriteServiceProcessor) Process ¶
func (p *FavoriteServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*FavoriteServiceProcessor) ProcessorMap ¶
func (p *FavoriteServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.