comment

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommentActionRequest_CommentId_DEFAULT int64
View Source
var CommentActionRequest_CommentText_DEFAULT string
View Source
var CommentActionResponse_StatusMsg_DEFAULT string
View Source
var CommentListResponse_StatusMsg_DEFAULT string
View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Id         int64  `thrift:"id,1" frugal:"1,default,i64" json:"id"`
	User       *User  `thrift:"user,2" frugal:"2,default,User" json:"user"`
	Content    string `thrift:"content,3" frugal:"3,default,string" json:"content"`
	CreateDate string `thrift:"create_date,4" frugal:"4,default,string" json:"create_date"`
}
var CommentActionResponse_Comment_DEFAULT *Comment

func NewComment

func NewComment() *Comment

func (*Comment) BLength

func (p *Comment) BLength() int

func (*Comment) DeepEqual

func (p *Comment) DeepEqual(ano *Comment) bool

func (*Comment) FastRead

func (p *Comment) FastRead(buf []byte) (int, error)

func (*Comment) FastReadField1

func (p *Comment) FastReadField1(buf []byte) (int, error)

func (*Comment) FastReadField2

func (p *Comment) FastReadField2(buf []byte) (int, error)

func (*Comment) FastReadField3

func (p *Comment) FastReadField3(buf []byte) (int, error)

func (*Comment) FastReadField4

func (p *Comment) FastReadField4(buf []byte) (int, error)

func (*Comment) FastWrite

func (p *Comment) FastWrite(buf []byte) int

for compatibility

func (*Comment) FastWriteNocopy

func (p *Comment) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Comment) Field1DeepEqual

func (p *Comment) Field1DeepEqual(src int64) bool

func (*Comment) Field2DeepEqual

func (p *Comment) Field2DeepEqual(src *User) bool

func (*Comment) Field3DeepEqual

func (p *Comment) Field3DeepEqual(src string) bool

func (*Comment) Field4DeepEqual

func (p *Comment) Field4DeepEqual(src string) bool

func (*Comment) GetContent

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

func (*Comment) GetCreateDate

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

func (*Comment) GetId

func (p *Comment) GetId() (v int64)

func (*Comment) GetUser

func (p *Comment) GetUser() (v *User)

func (*Comment) InitDefault

func (p *Comment) InitDefault()

func (*Comment) IsSetUser

func (p *Comment) IsSetUser() bool

func (*Comment) Read

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

func (*Comment) ReadField1

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

func (*Comment) ReadField2

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

func (*Comment) ReadField3

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

func (*Comment) ReadField4

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

func (*Comment) SetContent

func (p *Comment) SetContent(val string)

func (*Comment) SetCreateDate

func (p *Comment) SetCreateDate(val string)

func (*Comment) SetId

func (p *Comment) SetId(val int64)

func (*Comment) SetUser

func (p *Comment) SetUser(val *User)

func (*Comment) String

func (p *Comment) String() string

func (*Comment) Write

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

type CommentActionRequest

type CommentActionRequest struct {
	Token       string  `thrift:"token,1" frugal:"1,default,string" json:"token"`
	VideoId     int64   `thrift:"video_id,2" frugal:"2,default,i64" json:"video_id"`
	ActionType  int32   `thrift:"action_type,3" frugal:"3,default,i32" json:"action_type"`
	CommentText *string `thrift:"comment_text,4,optional" frugal:"4,optional,string" json:"comment_text,omitempty"`
	CommentId   *int64  `thrift:"comment_id,5,optional" frugal:"5,optional,i64" json:"comment_id,omitempty"`
}
var CommentServiceCommentActionArgs_Req_DEFAULT *CommentActionRequest

func NewCommentActionRequest

func NewCommentActionRequest() *CommentActionRequest

func (*CommentActionRequest) BLength

func (p *CommentActionRequest) BLength() int

func (*CommentActionRequest) DeepEqual

func (p *CommentActionRequest) DeepEqual(ano *CommentActionRequest) bool

func (*CommentActionRequest) FastRead

func (p *CommentActionRequest) FastRead(buf []byte) (int, error)

func (*CommentActionRequest) FastReadField1

func (p *CommentActionRequest) FastReadField1(buf []byte) (int, error)

func (*CommentActionRequest) FastReadField2

func (p *CommentActionRequest) FastReadField2(buf []byte) (int, error)

func (*CommentActionRequest) FastReadField3

func (p *CommentActionRequest) FastReadField3(buf []byte) (int, error)

func (*CommentActionRequest) FastReadField4

func (p *CommentActionRequest) FastReadField4(buf []byte) (int, error)

func (*CommentActionRequest) FastReadField5

func (p *CommentActionRequest) FastReadField5(buf []byte) (int, error)

func (*CommentActionRequest) FastWrite

func (p *CommentActionRequest) FastWrite(buf []byte) int

for compatibility

func (*CommentActionRequest) FastWriteNocopy

func (p *CommentActionRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentActionRequest) Field1DeepEqual

func (p *CommentActionRequest) Field1DeepEqual(src string) bool

func (*CommentActionRequest) Field2DeepEqual

func (p *CommentActionRequest) Field2DeepEqual(src int64) bool

func (*CommentActionRequest) Field3DeepEqual

func (p *CommentActionRequest) Field3DeepEqual(src int32) bool

func (*CommentActionRequest) Field4DeepEqual

func (p *CommentActionRequest) Field4DeepEqual(src *string) bool

func (*CommentActionRequest) Field5DeepEqual

func (p *CommentActionRequest) Field5DeepEqual(src *int64) bool

func (*CommentActionRequest) GetActionType

func (p *CommentActionRequest) GetActionType() (v int32)

func (*CommentActionRequest) GetCommentId

func (p *CommentActionRequest) GetCommentId() (v int64)

func (*CommentActionRequest) GetCommentText

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

func (*CommentActionRequest) GetToken

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

func (*CommentActionRequest) GetVideoId

func (p *CommentActionRequest) GetVideoId() (v int64)

func (*CommentActionRequest) InitDefault

func (p *CommentActionRequest) InitDefault()

func (*CommentActionRequest) IsSetCommentId

func (p *CommentActionRequest) IsSetCommentId() bool

func (*CommentActionRequest) IsSetCommentText

func (p *CommentActionRequest) IsSetCommentText() bool

func (*CommentActionRequest) Read

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

func (*CommentActionRequest) ReadField1

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

func (*CommentActionRequest) ReadField2

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

func (*CommentActionRequest) ReadField3

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

func (*CommentActionRequest) ReadField4

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

func (*CommentActionRequest) ReadField5

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

func (*CommentActionRequest) SetActionType

func (p *CommentActionRequest) SetActionType(val int32)

func (*CommentActionRequest) SetCommentId

func (p *CommentActionRequest) SetCommentId(val *int64)

func (*CommentActionRequest) SetCommentText

func (p *CommentActionRequest) SetCommentText(val *string)

func (*CommentActionRequest) SetToken

func (p *CommentActionRequest) SetToken(val string)

func (*CommentActionRequest) SetVideoId

func (p *CommentActionRequest) SetVideoId(val int64)

func (*CommentActionRequest) String

func (p *CommentActionRequest) String() string

func (*CommentActionRequest) Write

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

type CommentActionResponse

type CommentActionResponse struct {
	StatusCode int32    `thrift:"status_code,1" frugal:"1,default,i32" json:"status_code"`
	StatusMsg  *string  `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"`
	Comment    *Comment `thrift:"comment,3,optional" frugal:"3,optional,Comment" json:"comment,omitempty"`
}
var CommentServiceCommentActionResult_Success_DEFAULT *CommentActionResponse

func NewCommentActionResponse

func NewCommentActionResponse() *CommentActionResponse

func (*CommentActionResponse) BLength

func (p *CommentActionResponse) BLength() int

func (*CommentActionResponse) DeepEqual

func (*CommentActionResponse) FastRead

func (p *CommentActionResponse) FastRead(buf []byte) (int, error)

func (*CommentActionResponse) FastReadField1

func (p *CommentActionResponse) FastReadField1(buf []byte) (int, error)

func (*CommentActionResponse) FastReadField2

func (p *CommentActionResponse) FastReadField2(buf []byte) (int, error)

func (*CommentActionResponse) FastReadField3

func (p *CommentActionResponse) FastReadField3(buf []byte) (int, error)

func (*CommentActionResponse) FastWrite

func (p *CommentActionResponse) FastWrite(buf []byte) int

for compatibility

func (*CommentActionResponse) FastWriteNocopy

func (p *CommentActionResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentActionResponse) Field1DeepEqual

func (p *CommentActionResponse) Field1DeepEqual(src int32) bool

func (*CommentActionResponse) Field2DeepEqual

func (p *CommentActionResponse) Field2DeepEqual(src *string) bool

func (*CommentActionResponse) Field3DeepEqual

func (p *CommentActionResponse) Field3DeepEqual(src *Comment) bool

func (*CommentActionResponse) GetComment

func (p *CommentActionResponse) GetComment() (v *Comment)

func (*CommentActionResponse) GetStatusCode

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

func (*CommentActionResponse) GetStatusMsg

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

func (*CommentActionResponse) InitDefault

func (p *CommentActionResponse) InitDefault()

func (*CommentActionResponse) IsSetComment

func (p *CommentActionResponse) IsSetComment() bool

func (*CommentActionResponse) IsSetStatusMsg

func (p *CommentActionResponse) IsSetStatusMsg() bool

func (*CommentActionResponse) Read

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

func (*CommentActionResponse) ReadField1

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

func (*CommentActionResponse) ReadField2

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

func (*CommentActionResponse) ReadField3

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

func (*CommentActionResponse) SetComment

func (p *CommentActionResponse) SetComment(val *Comment)

func (*CommentActionResponse) SetStatusCode

func (p *CommentActionResponse) SetStatusCode(val int32)

func (*CommentActionResponse) SetStatusMsg

func (p *CommentActionResponse) SetStatusMsg(val *string)

func (*CommentActionResponse) String

func (p *CommentActionResponse) String() string

func (*CommentActionResponse) Write

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

type CommentListRequest

type CommentListRequest struct {
	Token   string `thrift:"token,1" frugal:"1,default,string" json:"token"`
	VideoId int64  `thrift:"video_id,2" frugal:"2,default,i64" json:"video_id"`
}
var CommentServiceCommentListArgs_Req_DEFAULT *CommentListRequest

func NewCommentListRequest

func NewCommentListRequest() *CommentListRequest

func (*CommentListRequest) BLength

func (p *CommentListRequest) BLength() int

func (*CommentListRequest) DeepEqual

func (p *CommentListRequest) DeepEqual(ano *CommentListRequest) bool

func (*CommentListRequest) FastRead

func (p *CommentListRequest) FastRead(buf []byte) (int, error)

func (*CommentListRequest) FastReadField1

func (p *CommentListRequest) FastReadField1(buf []byte) (int, error)

func (*CommentListRequest) FastReadField2

func (p *CommentListRequest) FastReadField2(buf []byte) (int, error)

func (*CommentListRequest) FastWrite

func (p *CommentListRequest) FastWrite(buf []byte) int

for compatibility

func (*CommentListRequest) FastWriteNocopy

func (p *CommentListRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentListRequest) Field1DeepEqual

func (p *CommentListRequest) Field1DeepEqual(src string) bool

func (*CommentListRequest) Field2DeepEqual

func (p *CommentListRequest) Field2DeepEqual(src int64) bool

func (*CommentListRequest) GetToken

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

func (*CommentListRequest) GetVideoId

func (p *CommentListRequest) GetVideoId() (v int64)

func (*CommentListRequest) InitDefault

func (p *CommentListRequest) InitDefault()

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) SetToken

func (p *CommentListRequest) SetToken(val string)

func (*CommentListRequest) SetVideoId

func (p *CommentListRequest) SetVideoId(val int64)

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  int32      `thrift:"status_code,1" frugal:"1,default,i32" json:"status_code"`
	StatusMsg   *string    `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"`
	CommentList []*Comment `thrift:"comment_list,3" frugal:"3,default,list<Comment>" json:"comment_list"`
}
var CommentServiceCommentListResult_Success_DEFAULT *CommentListResponse

func NewCommentListResponse

func NewCommentListResponse() *CommentListResponse

func (*CommentListResponse) BLength

func (p *CommentListResponse) BLength() int

func (*CommentListResponse) DeepEqual

func (p *CommentListResponse) DeepEqual(ano *CommentListResponse) bool

func (*CommentListResponse) FastRead

func (p *CommentListResponse) FastRead(buf []byte) (int, error)

func (*CommentListResponse) FastReadField1

func (p *CommentListResponse) FastReadField1(buf []byte) (int, error)

func (*CommentListResponse) FastReadField2

func (p *CommentListResponse) FastReadField2(buf []byte) (int, error)

func (*CommentListResponse) FastReadField3

func (p *CommentListResponse) FastReadField3(buf []byte) (int, error)

func (*CommentListResponse) FastWrite

func (p *CommentListResponse) FastWrite(buf []byte) int

for compatibility

func (*CommentListResponse) FastWriteNocopy

func (p *CommentListResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentListResponse) Field1DeepEqual

func (p *CommentListResponse) Field1DeepEqual(src int32) bool

func (*CommentListResponse) Field2DeepEqual

func (p *CommentListResponse) Field2DeepEqual(src *string) bool

func (*CommentListResponse) Field3DeepEqual

func (p *CommentListResponse) Field3DeepEqual(src []*Comment) bool

func (*CommentListResponse) GetCommentList

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

func (*CommentListResponse) GetStatusCode

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

func (*CommentListResponse) GetStatusMsg

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

func (*CommentListResponse) InitDefault

func (p *CommentListResponse) InitDefault()

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) ReadField3

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

func (*CommentListResponse) SetCommentList

func (p *CommentListResponse) SetCommentList(val []*Comment)

func (*CommentListResponse) SetStatusCode

func (p *CommentListResponse) SetStatusCode(val int32)

func (*CommentListResponse) SetStatusMsg

func (p *CommentListResponse) SetStatusMsg(val *string)

func (*CommentListResponse) String

func (p *CommentListResponse) String() string

func (*CommentListResponse) Write

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

type CommentService

type CommentService interface {
	CommentAction(ctx context.Context, req *CommentActionRequest) (r *CommentActionResponse, err error)

	CommentList(ctx context.Context, req *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 (*CommentServiceClient) CommentList

type CommentServiceCommentActionArgs

type CommentServiceCommentActionArgs struct {
	Req *CommentActionRequest `thrift:"req,1" frugal:"1,default,CommentActionRequest" json:"req"`
}

func NewCommentServiceCommentActionArgs

func NewCommentServiceCommentActionArgs() *CommentServiceCommentActionArgs

func (*CommentServiceCommentActionArgs) BLength

func (p *CommentServiceCommentActionArgs) BLength() int

func (*CommentServiceCommentActionArgs) DeepEqual

func (*CommentServiceCommentActionArgs) FastRead

func (p *CommentServiceCommentActionArgs) FastRead(buf []byte) (int, error)

func (*CommentServiceCommentActionArgs) FastReadField1

func (p *CommentServiceCommentActionArgs) FastReadField1(buf []byte) (int, error)

func (*CommentServiceCommentActionArgs) FastWrite

func (p *CommentServiceCommentActionArgs) FastWrite(buf []byte) int

for compatibility

func (*CommentServiceCommentActionArgs) FastWriteNocopy

func (p *CommentServiceCommentActionArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentServiceCommentActionArgs) Field1DeepEqual

func (*CommentServiceCommentActionArgs) GetFirstArgument

func (p *CommentServiceCommentActionArgs) GetFirstArgument() interface{}

func (*CommentServiceCommentActionArgs) GetReq

func (*CommentServiceCommentActionArgs) InitDefault

func (p *CommentServiceCommentActionArgs) InitDefault()

func (*CommentServiceCommentActionArgs) IsSetReq

func (p *CommentServiceCommentActionArgs) IsSetReq() bool

func (*CommentServiceCommentActionArgs) Read

func (*CommentServiceCommentActionArgs) ReadField1

func (*CommentServiceCommentActionArgs) SetReq

func (*CommentServiceCommentActionArgs) String

func (*CommentServiceCommentActionArgs) Write

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

type CommentServiceCommentActionResult

type CommentServiceCommentActionResult struct {
	Success *CommentActionResponse `thrift:"success,0,optional" frugal:"0,optional,CommentActionResponse" json:"success,omitempty"`
}

func NewCommentServiceCommentActionResult

func NewCommentServiceCommentActionResult() *CommentServiceCommentActionResult

func (*CommentServiceCommentActionResult) BLength

func (*CommentServiceCommentActionResult) DeepEqual

func (*CommentServiceCommentActionResult) FastRead

func (p *CommentServiceCommentActionResult) FastRead(buf []byte) (int, error)

func (*CommentServiceCommentActionResult) FastReadField0

func (p *CommentServiceCommentActionResult) FastReadField0(buf []byte) (int, error)

func (*CommentServiceCommentActionResult) FastWrite

func (p *CommentServiceCommentActionResult) FastWrite(buf []byte) int

for compatibility

func (*CommentServiceCommentActionResult) FastWriteNocopy

func (p *CommentServiceCommentActionResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentServiceCommentActionResult) Field0DeepEqual

func (*CommentServiceCommentActionResult) GetResult

func (p *CommentServiceCommentActionResult) GetResult() interface{}

func (*CommentServiceCommentActionResult) GetSuccess

func (*CommentServiceCommentActionResult) InitDefault

func (p *CommentServiceCommentActionResult) InitDefault()

func (*CommentServiceCommentActionResult) IsSetSuccess

func (p *CommentServiceCommentActionResult) IsSetSuccess() bool

func (*CommentServiceCommentActionResult) Read

func (*CommentServiceCommentActionResult) ReadField0

func (*CommentServiceCommentActionResult) SetSuccess

func (p *CommentServiceCommentActionResult) SetSuccess(x interface{})

func (*CommentServiceCommentActionResult) String

func (*CommentServiceCommentActionResult) Write

type CommentServiceCommentListArgs

type CommentServiceCommentListArgs struct {
	Req *CommentListRequest `thrift:"req,1" frugal:"1,default,CommentListRequest" json:"req"`
}

func NewCommentServiceCommentListArgs

func NewCommentServiceCommentListArgs() *CommentServiceCommentListArgs

func (*CommentServiceCommentListArgs) BLength

func (p *CommentServiceCommentListArgs) BLength() int

func (*CommentServiceCommentListArgs) DeepEqual

func (*CommentServiceCommentListArgs) FastRead

func (p *CommentServiceCommentListArgs) FastRead(buf []byte) (int, error)

func (*CommentServiceCommentListArgs) FastReadField1

func (p *CommentServiceCommentListArgs) FastReadField1(buf []byte) (int, error)

func (*CommentServiceCommentListArgs) FastWrite

func (p *CommentServiceCommentListArgs) FastWrite(buf []byte) int

for compatibility

func (*CommentServiceCommentListArgs) FastWriteNocopy

func (p *CommentServiceCommentListArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentServiceCommentListArgs) Field1DeepEqual

func (p *CommentServiceCommentListArgs) Field1DeepEqual(src *CommentListRequest) bool

func (*CommentServiceCommentListArgs) GetFirstArgument

func (p *CommentServiceCommentListArgs) GetFirstArgument() interface{}

func (*CommentServiceCommentListArgs) GetReq

func (*CommentServiceCommentListArgs) InitDefault

func (p *CommentServiceCommentListArgs) InitDefault()

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) SetReq

func (*CommentServiceCommentListArgs) String

func (*CommentServiceCommentListArgs) Write

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

type CommentServiceCommentListResult

type CommentServiceCommentListResult struct {
	Success *CommentListResponse `thrift:"success,0,optional" frugal:"0,optional,CommentListResponse" json:"success,omitempty"`
}

func NewCommentServiceCommentListResult

func NewCommentServiceCommentListResult() *CommentServiceCommentListResult

func (*CommentServiceCommentListResult) BLength

func (p *CommentServiceCommentListResult) BLength() int

func (*CommentServiceCommentListResult) DeepEqual

func (*CommentServiceCommentListResult) FastRead

func (p *CommentServiceCommentListResult) FastRead(buf []byte) (int, error)

func (*CommentServiceCommentListResult) FastReadField0

func (p *CommentServiceCommentListResult) FastReadField0(buf []byte) (int, error)

func (*CommentServiceCommentListResult) FastWrite

func (p *CommentServiceCommentListResult) FastWrite(buf []byte) int

for compatibility

func (*CommentServiceCommentListResult) FastWriteNocopy

func (p *CommentServiceCommentListResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CommentServiceCommentListResult) Field0DeepEqual

func (p *CommentServiceCommentListResult) Field0DeepEqual(src *CommentListResponse) bool

func (*CommentServiceCommentListResult) GetResult

func (p *CommentServiceCommentListResult) GetResult() interface{}

func (*CommentServiceCommentListResult) GetSuccess

func (*CommentServiceCommentListResult) InitDefault

func (p *CommentServiceCommentListResult) InitDefault()

func (*CommentServiceCommentListResult) IsSetSuccess

func (p *CommentServiceCommentListResult) IsSetSuccess() bool

func (*CommentServiceCommentListResult) Read

func (*CommentServiceCommentListResult) ReadField0

func (*CommentServiceCommentListResult) SetSuccess

func (p *CommentServiceCommentListResult) SetSuccess(x interface{})

func (*CommentServiceCommentListResult) String

func (*CommentServiceCommentListResult) Write

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

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 User

type User struct {
	Id              int64  `thrift:"id,1" frugal:"1,default,i64" json:"id"`
	Name            string `thrift:"name,2" frugal:"2,default,string" json:"name"`
	FollowCount     int64  `thrift:"follow_count,3" frugal:"3,default,i64" json:"follow_count"`
	FollowerCount   int64  `thrift:"follower_count,4" frugal:"4,default,i64" json:"follower_count"`
	IsFollow        bool   `thrift:"is_follow,5" frugal:"5,default,bool" json:"is_follow"`
	Avatar          string `thrift:"avatar,6" frugal:"6,default,string" json:"avatar"`
	BackgroundImage string `thrift:"background_image,7" frugal:"7,default,string" json:"background_image"`
	Signature       string `thrift:"signature,8" frugal:"8,default,string" json:"signature"`
	TotalFavorited  int64  `thrift:"total_favorited,9" frugal:"9,default,i64" json:"total_favorited"`
	WorkCount       int64  `thrift:"work_count,10" frugal:"10,default,i64" json:"work_count"`
	FavoriteCount   int64  `thrift:"favorite_count,11" frugal:"11,default,i64" json:"favorite_count"`
}
var Comment_User_DEFAULT *User

func NewUser

func NewUser() *User

func (*User) BLength

func (p *User) BLength() int

func (*User) DeepEqual

func (p *User) DeepEqual(ano *User) bool

func (*User) FastRead

func (p *User) FastRead(buf []byte) (int, error)

func (*User) FastReadField1

func (p *User) FastReadField1(buf []byte) (int, error)

func (*User) FastReadField10

func (p *User) FastReadField10(buf []byte) (int, error)

func (*User) FastReadField11

func (p *User) FastReadField11(buf []byte) (int, error)

func (*User) FastReadField2

func (p *User) FastReadField2(buf []byte) (int, error)

func (*User) FastReadField3

func (p *User) FastReadField3(buf []byte) (int, error)

func (*User) FastReadField4

func (p *User) FastReadField4(buf []byte) (int, error)

func (*User) FastReadField5

func (p *User) FastReadField5(buf []byte) (int, error)

func (*User) FastReadField6

func (p *User) FastReadField6(buf []byte) (int, error)

func (*User) FastReadField7

func (p *User) FastReadField7(buf []byte) (int, error)

func (*User) FastReadField8

func (p *User) FastReadField8(buf []byte) (int, error)

func (*User) FastReadField9

func (p *User) FastReadField9(buf []byte) (int, error)

func (*User) FastWrite

func (p *User) FastWrite(buf []byte) int

for compatibility

func (*User) FastWriteNocopy

func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*User) Field10DeepEqual

func (p *User) Field10DeepEqual(src int64) bool

func (*User) Field11DeepEqual

func (p *User) Field11DeepEqual(src int64) bool

func (*User) Field1DeepEqual

func (p *User) Field1DeepEqual(src int64) bool

func (*User) Field2DeepEqual

func (p *User) Field2DeepEqual(src string) bool

func (*User) Field3DeepEqual

func (p *User) Field3DeepEqual(src int64) bool

func (*User) Field4DeepEqual

func (p *User) Field4DeepEqual(src int64) bool

func (*User) Field5DeepEqual

func (p *User) Field5DeepEqual(src bool) bool

func (*User) Field6DeepEqual

func (p *User) Field6DeepEqual(src string) bool

func (*User) Field7DeepEqual

func (p *User) Field7DeepEqual(src string) bool

func (*User) Field8DeepEqual

func (p *User) Field8DeepEqual(src string) bool

func (*User) Field9DeepEqual

func (p *User) Field9DeepEqual(src int64) bool

func (*User) GetAvatar

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

func (*User) GetBackgroundImage

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

func (*User) GetFavoriteCount

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

func (*User) GetFollowCount

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

func (*User) GetFollowerCount

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

func (*User) GetId

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

func (*User) GetIsFollow

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

func (*User) GetName

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

func (*User) GetSignature

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

func (*User) GetTotalFavorited

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

func (*User) GetWorkCount

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

func (*User) InitDefault

func (p *User) InitDefault()

func (*User) Read

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

func (*User) ReadField1

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

func (*User) ReadField10

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

func (*User) ReadField11

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

func (*User) ReadField2

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

func (*User) ReadField3

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

func (*User) ReadField4

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

func (*User) ReadField5

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

func (*User) ReadField6

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

func (*User) ReadField7

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

func (*User) ReadField8

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

func (*User) ReadField9

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

func (*User) SetAvatar

func (p *User) SetAvatar(val string)

func (*User) SetBackgroundImage

func (p *User) SetBackgroundImage(val string)

func (*User) SetFavoriteCount

func (p *User) SetFavoriteCount(val int64)

func (*User) SetFollowCount

func (p *User) SetFollowCount(val int64)

func (*User) SetFollowerCount

func (p *User) SetFollowerCount(val int64)

func (*User) SetId

func (p *User) SetId(val int64)

func (*User) SetIsFollow

func (p *User) SetIsFollow(val bool)

func (*User) SetName

func (p *User) SetName(val string)

func (*User) SetSignature

func (p *User) SetSignature(val string)

func (*User) SetTotalFavorited

func (p *User) SetTotalFavorited(val int64)

func (*User) SetWorkCount

func (p *User) SetWorkCount(val int64)

func (*User) String

func (p *User) String() string

func (*User) Write

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

Directories

Path Synopsis
Code generated by Kitex v0.6.2.
Code generated by Kitex v0.6.2.

Jump to

Keyboard shortcuts

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