favorite

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

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

View Source
var LikeListResponse_StatusMsg_DEFAULT string
View Source
var LikeListResponse_VideoList_DEFAULT []*feed.VideoInfo

Functions

This section is empty.

Types

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" frugal:"1,default,LikeListRequest" json:"request"`
}

func NewFavoriteServiceGetLikeListArgs

func NewFavoriteServiceGetLikeListArgs() *FavoriteServiceGetLikeListArgs

func (*FavoriteServiceGetLikeListArgs) BLength

func (p *FavoriteServiceGetLikeListArgs) BLength() int

func (*FavoriteServiceGetLikeListArgs) DeepEqual

func (*FavoriteServiceGetLikeListArgs) FastRead

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

func (*FavoriteServiceGetLikeListArgs) FastReadField1

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

func (*FavoriteServiceGetLikeListArgs) FastWrite

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

for compatibility

func (*FavoriteServiceGetLikeListArgs) FastWriteNocopy

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

func (*FavoriteServiceGetLikeListArgs) Field1DeepEqual

func (p *FavoriteServiceGetLikeListArgs) Field1DeepEqual(src *LikeListRequest) bool

func (*FavoriteServiceGetLikeListArgs) GetFirstArgument

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

func (*FavoriteServiceGetLikeListArgs) GetRequest

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

func (*FavoriteServiceGetLikeListArgs) InitDefault

func (p *FavoriteServiceGetLikeListArgs) InitDefault()

func (*FavoriteServiceGetLikeListArgs) IsSetRequest

func (p *FavoriteServiceGetLikeListArgs) IsSetRequest() bool

func (*FavoriteServiceGetLikeListArgs) Read

func (*FavoriteServiceGetLikeListArgs) ReadField1

func (*FavoriteServiceGetLikeListArgs) SetRequest

func (p *FavoriteServiceGetLikeListArgs) SetRequest(val *LikeListRequest)

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" frugal:"0,optional,LikeListResponse" json:"success,omitempty"`
}

func NewFavoriteServiceGetLikeListResult

func NewFavoriteServiceGetLikeListResult() *FavoriteServiceGetLikeListResult

func (*FavoriteServiceGetLikeListResult) BLength

func (*FavoriteServiceGetLikeListResult) DeepEqual

func (*FavoriteServiceGetLikeListResult) FastRead

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

func (*FavoriteServiceGetLikeListResult) FastReadField0

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

func (*FavoriteServiceGetLikeListResult) FastWrite

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

for compatibility

func (*FavoriteServiceGetLikeListResult) FastWriteNocopy

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

func (*FavoriteServiceGetLikeListResult) Field0DeepEqual

func (p *FavoriteServiceGetLikeListResult) Field0DeepEqual(src *LikeListResponse) bool

func (*FavoriteServiceGetLikeListResult) GetResult

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

func (*FavoriteServiceGetLikeListResult) GetSuccess

func (*FavoriteServiceGetLikeListResult) InitDefault

func (p *FavoriteServiceGetLikeListResult) InitDefault()

func (*FavoriteServiceGetLikeListResult) IsSetSuccess

func (p *FavoriteServiceGetLikeListResult) IsSetSuccess() bool

func (*FavoriteServiceGetLikeListResult) Read

func (*FavoriteServiceGetLikeListResult) ReadField0

func (*FavoriteServiceGetLikeListResult) SetSuccess

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

func (*FavoriteServiceGetLikeListResult) String

func (*FavoriteServiceGetLikeListResult) Write

type FavoriteServiceLikeActionArgs

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

func NewFavoriteServiceLikeActionArgs

func NewFavoriteServiceLikeActionArgs() *FavoriteServiceLikeActionArgs

func (*FavoriteServiceLikeActionArgs) BLength

func (p *FavoriteServiceLikeActionArgs) BLength() int

func (*FavoriteServiceLikeActionArgs) DeepEqual

func (*FavoriteServiceLikeActionArgs) FastRead

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

func (*FavoriteServiceLikeActionArgs) FastReadField1

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

func (*FavoriteServiceLikeActionArgs) FastWrite

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

for compatibility

func (*FavoriteServiceLikeActionArgs) FastWriteNocopy

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

func (*FavoriteServiceLikeActionArgs) Field1DeepEqual

func (p *FavoriteServiceLikeActionArgs) Field1DeepEqual(src *LikeRequest) bool

func (*FavoriteServiceLikeActionArgs) GetFirstArgument

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

func (*FavoriteServiceLikeActionArgs) GetRequest

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

func (*FavoriteServiceLikeActionArgs) InitDefault

func (p *FavoriteServiceLikeActionArgs) InitDefault()

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

func (p *FavoriteServiceLikeActionArgs) SetRequest(val *LikeRequest)

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" frugal:"0,optional,LikeResponse" json:"success,omitempty"`
}

func NewFavoriteServiceLikeActionResult

func NewFavoriteServiceLikeActionResult() *FavoriteServiceLikeActionResult

func (*FavoriteServiceLikeActionResult) BLength

func (p *FavoriteServiceLikeActionResult) BLength() int

func (*FavoriteServiceLikeActionResult) DeepEqual

func (*FavoriteServiceLikeActionResult) FastRead

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

func (*FavoriteServiceLikeActionResult) FastReadField0

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

func (*FavoriteServiceLikeActionResult) FastWrite

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

for compatibility

func (*FavoriteServiceLikeActionResult) FastWriteNocopy

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

func (*FavoriteServiceLikeActionResult) Field0DeepEqual

func (p *FavoriteServiceLikeActionResult) Field0DeepEqual(src *LikeResponse) bool

func (*FavoriteServiceLikeActionResult) GetResult

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

func (*FavoriteServiceLikeActionResult) GetSuccess

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

func (*FavoriteServiceLikeActionResult) InitDefault

func (p *FavoriteServiceLikeActionResult) InitDefault()

func (*FavoriteServiceLikeActionResult) IsSetSuccess

func (p *FavoriteServiceLikeActionResult) IsSetSuccess() bool

func (*FavoriteServiceLikeActionResult) Read

func (*FavoriteServiceLikeActionResult) ReadField0

func (*FavoriteServiceLikeActionResult) SetSuccess

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

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 LikeListRequest

type LikeListRequest struct {
	UserId  int64 `thrift:"user_id,1" frugal:"1,default,i64" json:"user_id"`
	QueryId int64 `thrift:"query_id,2" frugal:"2,default,i64" json:"query_id"`
}
var FavoriteServiceGetLikeListArgs_Request_DEFAULT *LikeListRequest

func NewLikeListRequest

func NewLikeListRequest() *LikeListRequest

func (*LikeListRequest) BLength

func (p *LikeListRequest) BLength() int

func (*LikeListRequest) DeepEqual

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

func (*LikeListRequest) FastRead

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

func (*LikeListRequest) FastReadField1

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

func (*LikeListRequest) FastReadField2

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

func (*LikeListRequest) FastWrite

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

for compatibility

func (*LikeListRequest) FastWriteNocopy

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

func (*LikeListRequest) Field1DeepEqual

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

func (*LikeListRequest) Field2DeepEqual

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

func (*LikeListRequest) GetQueryId

func (p *LikeListRequest) GetQueryId() (v int64)

func (*LikeListRequest) GetUserId

func (p *LikeListRequest) GetUserId() (v int64)

func (*LikeListRequest) InitDefault

func (p *LikeListRequest) InitDefault()

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

func (p *LikeListRequest) SetQueryId(val int64)

func (*LikeListRequest) SetUserId

func (p *LikeListRequest) SetUserId(val int64)

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" frugal:"1,default,i64" json:"status_code"`
	StatusMsg  *string           `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"`
	VideoList  []*feed.VideoInfo `thrift:"video_list,4,optional" frugal:"4,optional,list<feed.VideoInfo>" json:"video_list,omitempty"`
}
var FavoriteServiceGetLikeListResult_Success_DEFAULT *LikeListResponse

func NewLikeListResponse

func NewLikeListResponse() *LikeListResponse

func (*LikeListResponse) BLength

func (p *LikeListResponse) BLength() int

func (*LikeListResponse) DeepEqual

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

func (*LikeListResponse) FastRead

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

func (*LikeListResponse) FastReadField1

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

func (*LikeListResponse) FastReadField2

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

func (*LikeListResponse) FastReadField4

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

func (*LikeListResponse) FastWrite

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

for compatibility

func (*LikeListResponse) FastWriteNocopy

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

func (*LikeListResponse) Field1DeepEqual

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

func (*LikeListResponse) Field2DeepEqual

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

func (*LikeListResponse) Field4DeepEqual

func (p *LikeListResponse) Field4DeepEqual(src []*feed.VideoInfo) bool

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 []*feed.VideoInfo)

func (*LikeListResponse) InitDefault

func (p *LikeListResponse) InitDefault()

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

func (p *LikeListResponse) SetStatusCode(val int64)

func (*LikeListResponse) SetStatusMsg

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

func (*LikeListResponse) SetVideoList

func (p *LikeListResponse) SetVideoList(val []*feed.VideoInfo)

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 {
	UserId     int64 `thrift:"user_id,1" frugal:"1,default,i64" json:"user_id"`
	VideoId    int64 `thrift:"video_id,2" frugal:"2,default,i64" json:"video_id"`
	ActionType bool  `thrift:"action_type,3" frugal:"3,default,bool" json:"action_type"`
}
var FavoriteServiceLikeActionArgs_Request_DEFAULT *LikeRequest

func NewLikeRequest

func NewLikeRequest() *LikeRequest

func (*LikeRequest) BLength

func (p *LikeRequest) BLength() int

func (*LikeRequest) DeepEqual

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

func (*LikeRequest) FastRead

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

func (*LikeRequest) FastReadField1

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

func (*LikeRequest) FastReadField2

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

func (*LikeRequest) FastReadField3

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

func (*LikeRequest) FastWrite

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

for compatibility

func (*LikeRequest) FastWriteNocopy

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

func (*LikeRequest) Field1DeepEqual

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

func (*LikeRequest) Field2DeepEqual

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

func (*LikeRequest) Field3DeepEqual

func (p *LikeRequest) Field3DeepEqual(src bool) bool

func (*LikeRequest) GetActionType

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

func (*LikeRequest) GetUserId

func (p *LikeRequest) GetUserId() (v int64)

func (*LikeRequest) GetVideoId

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

func (*LikeRequest) InitDefault

func (p *LikeRequest) InitDefault()

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

func (p *LikeRequest) SetActionType(val bool)

func (*LikeRequest) SetUserId

func (p *LikeRequest) SetUserId(val int64)

func (*LikeRequest) SetVideoId

func (p *LikeRequest) SetVideoId(val int64)

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" frugal:"1,default,i64" json:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" frugal:"2,default,string" json:"status_msg"`
}
var FavoriteServiceLikeActionResult_Success_DEFAULT *LikeResponse

func NewLikeResponse

func NewLikeResponse() *LikeResponse

func (*LikeResponse) BLength

func (p *LikeResponse) BLength() int

func (*LikeResponse) DeepEqual

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

func (*LikeResponse) FastRead

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

func (*LikeResponse) FastReadField1

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

func (*LikeResponse) FastReadField2

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

func (*LikeResponse) FastWrite

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

for compatibility

func (*LikeResponse) FastWriteNocopy

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

func (*LikeResponse) Field1DeepEqual

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

func (*LikeResponse) Field2DeepEqual

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

func (*LikeResponse) GetStatusCode

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

func (*LikeResponse) GetStatusMsg

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

func (*LikeResponse) InitDefault

func (p *LikeResponse) InitDefault()

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

func (p *LikeResponse) SetStatusCode(val int64)

func (*LikeResponse) SetStatusMsg

func (p *LikeResponse) SetStatusMsg(val string)

func (*LikeResponse) String

func (p *LikeResponse) String() string

func (*LikeResponse) Write

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

Directories

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

Jump to

Keyboard shortcuts

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