comment

package
v0.0.0-...-671c73a Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActionRequest_CommentID_DEFAULT int64
View Source
var ActionRequest_CommentText_DEFAULT string
View Source
var ActionResponse_StatusMsg_DEFAULT string
View Source
var Comment_User_DEFAULT *user.User
View Source
var ListResponse_StatusMsg_DEFAULT string

Functions

This section is empty.

Types

type ActionRequest

type ActionRequest struct {
	Token       string  `thrift:"token,1,required" form:"token,required" json:"token,required" query:"token,required"`
	VideoID     int64   `thrift:"video_id,2,required" form:"video_id,required" json:"video_id,required" query:"video_id,required"`
	ActionType  int32   `thrift:"action_type,3,required" form:"action_type,required" json:"action_type,required" query:"action_type,required"`
	CommentText *string `thrift:"comment_text,4,optional" form:"comment_text" json:"comment_text,omitempty" query:"comment_text"`
	CommentID   *int64  `thrift:"comment_id,5,optional" form:"comment_id" json:"comment_id,omitempty" query:"comment_id"`
}
var CommentServiceCommentActionArgs_Req_DEFAULT *ActionRequest

func NewActionRequest

func NewActionRequest() *ActionRequest

func (*ActionRequest) GetActionType

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

func (*ActionRequest) GetCommentID

func (p *ActionRequest) GetCommentID() (v int64)

func (*ActionRequest) GetCommentText

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

func (*ActionRequest) GetToken

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

func (*ActionRequest) GetVideoID

func (p *ActionRequest) GetVideoID() (v int64)

func (*ActionRequest) IsSetCommentID

func (p *ActionRequest) IsSetCommentID() bool

func (*ActionRequest) IsSetCommentText

func (p *ActionRequest) IsSetCommentText() bool

func (*ActionRequest) Read

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

func (*ActionRequest) ReadField1

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

func (*ActionRequest) ReadField2

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

func (*ActionRequest) ReadField3

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

func (*ActionRequest) ReadField4

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

func (*ActionRequest) ReadField5

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

func (*ActionRequest) String

func (p *ActionRequest) String() string

func (*ActionRequest) Write

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

type ActionResponse

type ActionResponse struct {
	StatusCode int32    `thrift:"status_code,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg  *string  `thrift:"status_msg,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 *ActionResponse

func NewActionResponse

func NewActionResponse() *ActionResponse

func (*ActionResponse) GetComment

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

func (*ActionResponse) GetStatusCode

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

func (*ActionResponse) GetStatusMsg

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

func (*ActionResponse) IsSetComment

func (p *ActionResponse) IsSetComment() bool

func (*ActionResponse) IsSetStatusMsg

func (p *ActionResponse) IsSetStatusMsg() bool

func (*ActionResponse) Read

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

func (*ActionResponse) ReadField1

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

func (*ActionResponse) ReadField2

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

func (*ActionResponse) ReadField3

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

func (*ActionResponse) String

func (p *ActionResponse) String() string

func (*ActionResponse) Write

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

type Comment

type Comment struct {
	ID         int64      `thrift:"id,1,required" form:"id,required" json:"id,required" query:"id,required"`
	User       *user.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:"create_date,4,required" form:"create_date,required" json:"create_date,required" query:"create_date,required"`
}
var ActionResponse_Comment_DEFAULT *Comment

func NewComment

func NewComment() *Comment

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.User)

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

func (p *Comment) String() string

func (*Comment) Write

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

type CommentService

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

	CommentList(ctx context.Context, req *ListRequest) (r *ListResponse, 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, req *ActionRequest) (r *ActionResponse, err error)

func (*CommentServiceClient) CommentList

func (p *CommentServiceClient) CommentList(ctx context.Context, req *ListRequest) (r *ListResponse, err error)

type CommentServiceCommentActionArgs

type CommentServiceCommentActionArgs struct {
	Req *ActionRequest `thrift:"req,1"`
}

func NewCommentServiceCommentActionArgs

func NewCommentServiceCommentActionArgs() *CommentServiceCommentActionArgs

func (*CommentServiceCommentActionArgs) GetReq

func (*CommentServiceCommentActionArgs) IsSetReq

func (p *CommentServiceCommentActionArgs) IsSetReq() 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 *ActionResponse `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 CommentServiceCommentListArgs

type CommentServiceCommentListArgs struct {
	Req *ListRequest `thrift:"req,1"`
}

func NewCommentServiceCommentListArgs

func NewCommentServiceCommentListArgs() *CommentServiceCommentListArgs

func (*CommentServiceCommentListArgs) GetReq

func (p *CommentServiceCommentListArgs) GetReq() (v *ListRequest)

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

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

type CommentServiceCommentListResult

type CommentServiceCommentListResult struct {
	Success *ListResponse `thrift:"success,0,optional"`
}

func NewCommentServiceCommentListResult

func NewCommentServiceCommentListResult() *CommentServiceCommentListResult

func (*CommentServiceCommentListResult) GetSuccess

func (p *CommentServiceCommentListResult) GetSuccess() (v *ListResponse)

func (*CommentServiceCommentListResult) IsSetSuccess

func (p *CommentServiceCommentListResult) IsSetSuccess() bool

func (*CommentServiceCommentListResult) Read

func (*CommentServiceCommentListResult) ReadField0

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 ListRequest

type ListRequest struct {
	Token   string `thrift:"token,1,required" form:"token,required" json:"token,required" query:"token,required"`
	VideoID int64  `thrift:"video_id,2,required" form:"video_id,required" json:"video_id,required" query:"video_id,required"`
}
var CommentServiceCommentListArgs_Req_DEFAULT *ListRequest

func NewListRequest

func NewListRequest() *ListRequest

func (*ListRequest) GetToken

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

func (*ListRequest) GetVideoID

func (p *ListRequest) GetVideoID() (v int64)

func (*ListRequest) Read

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

func (*ListRequest) ReadField1

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

func (*ListRequest) ReadField2

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

func (*ListRequest) String

func (p *ListRequest) String() string

func (*ListRequest) Write

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

type ListResponse

type ListResponse struct {
	StatusCode  int32      `thrift:"status_code,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"`
	StatusMsg   *string    `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"`
	CommentList []*Comment `thrift:"comment_list,3,required" form:"comment_list,required" json:"comment_list,required" query:"comment_list,required"`
}
var CommentServiceCommentListResult_Success_DEFAULT *ListResponse

func NewListResponse

func NewListResponse() *ListResponse

func (*ListResponse) GetCommentList

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

func (*ListResponse) GetStatusCode

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

func (*ListResponse) GetStatusMsg

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

func (*ListResponse) IsSetStatusMsg

func (p *ListResponse) IsSetStatusMsg() bool

func (*ListResponse) Read

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

func (*ListResponse) ReadField1

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

func (*ListResponse) ReadField2

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

func (*ListResponse) ReadField3

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

func (*ListResponse) String

func (p *ListResponse) String() string

func (*ListResponse) Write

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

Jump to

Keyboard shortcuts

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