chat

package
v0.0.0-...-8f4e997 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{} //nolint:all

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

View Source
var MessageChatResponse_StatusMsg_DEFAULT string
View Source
var Message_CreateTime_DEFAULT string
View Source
var RelationActionResponse_StatusMsg_DEFAULT string

Functions

This section is empty.

Types

type ChatService

type ChatService interface {
	GetMsg(ctx context.Context, req *MessageChatRequest) (r *MessageChatResponse, err error)

	PostMsg(ctx context.Context, req *RelationActionRequest) (r *RelationActionResponse, err error)
}

type ChatServiceClient

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

func NewChatServiceClient

func NewChatServiceClient(c thrift.TClient) *ChatServiceClient

func NewChatServiceClientProtocol

func NewChatServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ChatServiceClient

func (*ChatServiceClient) Client_

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

func (*ChatServiceClient) GetMsg

func (*ChatServiceClient) PostMsg

type ChatServiceGetMsgArgs

type ChatServiceGetMsgArgs struct {
	Req *MessageChatRequest `thrift:"Req,1" frugal:"1,default,MessageChatRequest" json:"Req"`
}

func NewChatServiceGetMsgArgs

func NewChatServiceGetMsgArgs() *ChatServiceGetMsgArgs

func (*ChatServiceGetMsgArgs) BLength

func (p *ChatServiceGetMsgArgs) BLength() int

func (*ChatServiceGetMsgArgs) DeepEqual

func (*ChatServiceGetMsgArgs) FastRead

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

func (*ChatServiceGetMsgArgs) FastReadField1

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

func (*ChatServiceGetMsgArgs) FastWrite

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

for compatibility

func (*ChatServiceGetMsgArgs) FastWriteNocopy

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

func (*ChatServiceGetMsgArgs) Field1DeepEqual

func (p *ChatServiceGetMsgArgs) Field1DeepEqual(src *MessageChatRequest) bool

func (*ChatServiceGetMsgArgs) GetFirstArgument

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

func (*ChatServiceGetMsgArgs) GetReq

func (p *ChatServiceGetMsgArgs) GetReq() (v *MessageChatRequest)

func (*ChatServiceGetMsgArgs) InitDefault

func (p *ChatServiceGetMsgArgs) InitDefault()

func (*ChatServiceGetMsgArgs) IsSetReq

func (p *ChatServiceGetMsgArgs) IsSetReq() bool

func (*ChatServiceGetMsgArgs) Read

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

func (*ChatServiceGetMsgArgs) ReadField1

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

func (*ChatServiceGetMsgArgs) SetReq

func (p *ChatServiceGetMsgArgs) SetReq(val *MessageChatRequest)

func (*ChatServiceGetMsgArgs) String

func (p *ChatServiceGetMsgArgs) String() string

func (*ChatServiceGetMsgArgs) Write

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

type ChatServiceGetMsgResult

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

func NewChatServiceGetMsgResult

func NewChatServiceGetMsgResult() *ChatServiceGetMsgResult

func (*ChatServiceGetMsgResult) BLength

func (p *ChatServiceGetMsgResult) BLength() int

func (*ChatServiceGetMsgResult) DeepEqual

func (*ChatServiceGetMsgResult) FastRead

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

func (*ChatServiceGetMsgResult) FastReadField0

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

func (*ChatServiceGetMsgResult) FastWrite

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

for compatibility

func (*ChatServiceGetMsgResult) FastWriteNocopy

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

func (*ChatServiceGetMsgResult) Field0DeepEqual

func (p *ChatServiceGetMsgResult) Field0DeepEqual(src *MessageChatResponse) bool

func (*ChatServiceGetMsgResult) GetResult

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

func (*ChatServiceGetMsgResult) GetSuccess

func (p *ChatServiceGetMsgResult) GetSuccess() (v *MessageChatResponse)

func (*ChatServiceGetMsgResult) InitDefault

func (p *ChatServiceGetMsgResult) InitDefault()

func (*ChatServiceGetMsgResult) IsSetSuccess

func (p *ChatServiceGetMsgResult) IsSetSuccess() bool

func (*ChatServiceGetMsgResult) Read

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

func (*ChatServiceGetMsgResult) ReadField0

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

func (*ChatServiceGetMsgResult) SetSuccess

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

func (*ChatServiceGetMsgResult) String

func (p *ChatServiceGetMsgResult) String() string

func (*ChatServiceGetMsgResult) Write

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

type ChatServicePostMsgArgs

type ChatServicePostMsgArgs struct {
	Req *RelationActionRequest `thrift:"Req,1" frugal:"1,default,RelationActionRequest" json:"Req"`
}

func NewChatServicePostMsgArgs

func NewChatServicePostMsgArgs() *ChatServicePostMsgArgs

func (*ChatServicePostMsgArgs) BLength

func (p *ChatServicePostMsgArgs) BLength() int

func (*ChatServicePostMsgArgs) DeepEqual

func (*ChatServicePostMsgArgs) FastRead

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

func (*ChatServicePostMsgArgs) FastReadField1

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

func (*ChatServicePostMsgArgs) FastWrite

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

for compatibility

func (*ChatServicePostMsgArgs) FastWriteNocopy

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

func (*ChatServicePostMsgArgs) Field1DeepEqual

func (p *ChatServicePostMsgArgs) Field1DeepEqual(src *RelationActionRequest) bool

func (*ChatServicePostMsgArgs) GetFirstArgument

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

func (*ChatServicePostMsgArgs) GetReq

func (*ChatServicePostMsgArgs) InitDefault

func (p *ChatServicePostMsgArgs) InitDefault()

func (*ChatServicePostMsgArgs) IsSetReq

func (p *ChatServicePostMsgArgs) IsSetReq() bool

func (*ChatServicePostMsgArgs) Read

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

func (*ChatServicePostMsgArgs) ReadField1

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

func (*ChatServicePostMsgArgs) SetReq

func (*ChatServicePostMsgArgs) String

func (p *ChatServicePostMsgArgs) String() string

func (*ChatServicePostMsgArgs) Write

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

type ChatServicePostMsgResult

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

func NewChatServicePostMsgResult

func NewChatServicePostMsgResult() *ChatServicePostMsgResult

func (*ChatServicePostMsgResult) BLength

func (p *ChatServicePostMsgResult) BLength() int

func (*ChatServicePostMsgResult) DeepEqual

func (*ChatServicePostMsgResult) FastRead

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

func (*ChatServicePostMsgResult) FastReadField0

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

func (*ChatServicePostMsgResult) FastWrite

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

for compatibility

func (*ChatServicePostMsgResult) FastWriteNocopy

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

func (*ChatServicePostMsgResult) Field0DeepEqual

func (p *ChatServicePostMsgResult) Field0DeepEqual(src *RelationActionResponse) bool

func (*ChatServicePostMsgResult) GetResult

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

func (*ChatServicePostMsgResult) GetSuccess

func (p *ChatServicePostMsgResult) GetSuccess() (v *RelationActionResponse)

func (*ChatServicePostMsgResult) InitDefault

func (p *ChatServicePostMsgResult) InitDefault()

func (*ChatServicePostMsgResult) IsSetSuccess

func (p *ChatServicePostMsgResult) IsSetSuccess() bool

func (*ChatServicePostMsgResult) Read

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

func (*ChatServicePostMsgResult) ReadField0

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

func (*ChatServicePostMsgResult) SetSuccess

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

func (*ChatServicePostMsgResult) String

func (p *ChatServicePostMsgResult) String() string

func (*ChatServicePostMsgResult) Write

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

type ChatServiceProcessor

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

func NewChatServiceProcessor

func NewChatServiceProcessor(handler ChatService) *ChatServiceProcessor

func (*ChatServiceProcessor) AddToProcessorMap

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

func (*ChatServiceProcessor) GetProcessorFunction

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

func (*ChatServiceProcessor) Process

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

func (*ChatServiceProcessor) ProcessorMap

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

type Message

type Message struct {
	Id         int64   `thrift:"Id,1" frugal:"1,default,i64" json:"id"`
	ToUserId   int64   `thrift:"ToUserId,2" frugal:"2,default,i64" json:"to_user_id"`
	FromUserId int64   `thrift:"FromUserId,3" frugal:"3,default,i64" json:"from_user_id"`
	Content    string  `thrift:"Content,4" frugal:"4,default,string" json:"content`
	CreateTime *string `thrift:"CreateTime,5,optional" frugal:"5,optional,string" json:"create_time"`
}

func NewMessage

func NewMessage() *Message

func (*Message) BLength

func (p *Message) BLength() int

func (*Message) DeepEqual

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

func (*Message) FastRead

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

func (*Message) FastReadField1

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

func (*Message) FastReadField2

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

func (*Message) FastReadField3

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

func (*Message) FastReadField4

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

func (*Message) FastReadField5

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

func (*Message) FastWrite

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

for compatibility

func (*Message) FastWriteNocopy

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

func (*Message) Field1DeepEqual

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

func (*Message) Field2DeepEqual

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

func (*Message) Field3DeepEqual

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

func (*Message) Field4DeepEqual

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

func (*Message) Field5DeepEqual

func (p *Message) Field5DeepEqual(src *string) bool

func (*Message) GetContent

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

func (*Message) GetCreateTime

func (p *Message) GetCreateTime() (v string)

func (*Message) GetFromUserId

func (p *Message) GetFromUserId() (v int64)

func (*Message) GetId

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

func (*Message) GetToUserId

func (p *Message) GetToUserId() (v int64)

func (*Message) InitDefault

func (p *Message) InitDefault()

func (*Message) IsSetCreateTime

func (p *Message) IsSetCreateTime() bool

func (*Message) Read

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

func (*Message) ReadField1

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

func (*Message) ReadField2

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

func (*Message) ReadField3

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

func (*Message) ReadField4

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

func (*Message) ReadField5

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

func (*Message) SetContent

func (p *Message) SetContent(val string)

func (*Message) SetCreateTime

func (p *Message) SetCreateTime(val *string)

func (*Message) SetFromUserId

func (p *Message) SetFromUserId(val int64)

func (*Message) SetId

func (p *Message) SetId(val int64)

func (*Message) SetToUserId

func (p *Message) SetToUserId(val int64)

func (*Message) String

func (p *Message) String() string

func (*Message) Write

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

type MessageChatRequest

type MessageChatRequest struct {
	Token      string `thrift:"Token,1" frugal:"1,default,string" json:"token"`
	ToUserId   int64  `thrift:"ToUserId,2" frugal:"2,default,i64" json:"to_user_id"`
	PreMsgTime int64  `thrift:"PreMsgTime,3" frugal:"3,default,i64" json:"pre_msg_time"`
}
var ChatServiceGetMsgArgs_Req_DEFAULT *MessageChatRequest

func NewMessageChatRequest

func NewMessageChatRequest() *MessageChatRequest

func (*MessageChatRequest) BLength

func (p *MessageChatRequest) BLength() int

func (*MessageChatRequest) DeepEqual

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

func (*MessageChatRequest) FastRead

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

func (*MessageChatRequest) FastReadField1

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

func (*MessageChatRequest) FastReadField2

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

func (*MessageChatRequest) FastReadField3

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

func (*MessageChatRequest) FastWrite

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

for compatibility

func (*MessageChatRequest) FastWriteNocopy

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

func (*MessageChatRequest) Field1DeepEqual

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

func (*MessageChatRequest) Field2DeepEqual

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

func (*MessageChatRequest) Field3DeepEqual

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

func (*MessageChatRequest) GetPreMsgTime

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

func (*MessageChatRequest) GetToUserId

func (p *MessageChatRequest) GetToUserId() (v int64)

func (*MessageChatRequest) GetToken

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

func (*MessageChatRequest) InitDefault

func (p *MessageChatRequest) InitDefault()

func (*MessageChatRequest) Read

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

func (*MessageChatRequest) ReadField1

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

func (*MessageChatRequest) ReadField2

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

func (*MessageChatRequest) ReadField3

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

func (*MessageChatRequest) SetPreMsgTime

func (p *MessageChatRequest) SetPreMsgTime(val int64)

func (*MessageChatRequest) SetToUserId

func (p *MessageChatRequest) SetToUserId(val int64)

func (*MessageChatRequest) SetToken

func (p *MessageChatRequest) SetToken(val string)

func (*MessageChatRequest) String

func (p *MessageChatRequest) String() string

func (*MessageChatRequest) Write

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

type MessageChatResponse

type MessageChatResponse struct {
	StatusCode  int32      `thrift:"StatusCode,1" frugal:"1,default,i32" json:"status_code"`
	StatusMsg   *string    `thrift:"StatusMsg,2,optional" frugal:"2,optional,string" json:"status_msg"`
	MessageList []*Message `thrift:"MessageList,3" frugal:"3,default,list<Message>" json:"message_list"`
}
var ChatServiceGetMsgResult_Success_DEFAULT *MessageChatResponse

func NewMessageChatResponse

func NewMessageChatResponse() *MessageChatResponse

func (*MessageChatResponse) BLength

func (p *MessageChatResponse) BLength() int

func (*MessageChatResponse) DeepEqual

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

func (*MessageChatResponse) FastRead

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

func (*MessageChatResponse) FastReadField1

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

func (*MessageChatResponse) FastReadField2

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

func (*MessageChatResponse) FastReadField3

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

func (*MessageChatResponse) FastWrite

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

for compatibility

func (*MessageChatResponse) FastWriteNocopy

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

func (*MessageChatResponse) Field1DeepEqual

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

func (*MessageChatResponse) Field2DeepEqual

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

func (*MessageChatResponse) Field3DeepEqual

func (p *MessageChatResponse) Field3DeepEqual(src []*Message) bool

func (*MessageChatResponse) GetMessageList

func (p *MessageChatResponse) GetMessageList() (v []*Message)

func (*MessageChatResponse) GetStatusCode

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

func (*MessageChatResponse) GetStatusMsg

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

func (*MessageChatResponse) InitDefault

func (p *MessageChatResponse) InitDefault()

func (*MessageChatResponse) IsSetStatusMsg

func (p *MessageChatResponse) IsSetStatusMsg() bool

func (*MessageChatResponse) Read

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

func (*MessageChatResponse) ReadField1

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

func (*MessageChatResponse) ReadField2

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

func (*MessageChatResponse) ReadField3

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

func (*MessageChatResponse) SetMessageList

func (p *MessageChatResponse) SetMessageList(val []*Message)

func (*MessageChatResponse) SetStatusCode

func (p *MessageChatResponse) SetStatusCode(val int32)

func (*MessageChatResponse) SetStatusMsg

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

func (*MessageChatResponse) String

func (p *MessageChatResponse) String() string

func (*MessageChatResponse) Write

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

type RelationActionRequest

type RelationActionRequest struct {
	Token      string `thrift:"Token,1" frugal:"1,default,string" json:"token"`
	ToUserId   int64  `thrift:"ToUserId,2" frugal:"2,default,i64" json:"to_user_id"`
	ActionType int32  `thrift:"ActionType,3" frugal:"3,default,i32" json:"action_type`
	Content    string `thrift:"Content,4" frugal:"4,default,string" json:"content`
}
var ChatServicePostMsgArgs_Req_DEFAULT *RelationActionRequest

func NewRelationActionRequest

func NewRelationActionRequest() *RelationActionRequest

func (*RelationActionRequest) BLength

func (p *RelationActionRequest) BLength() int

func (*RelationActionRequest) DeepEqual

func (*RelationActionRequest) FastRead

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

func (*RelationActionRequest) FastReadField1

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

func (*RelationActionRequest) FastReadField2

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

func (*RelationActionRequest) FastReadField3

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

func (*RelationActionRequest) FastReadField4

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

func (*RelationActionRequest) FastWrite

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

for compatibility

func (*RelationActionRequest) FastWriteNocopy

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

func (*RelationActionRequest) Field1DeepEqual

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

func (*RelationActionRequest) Field2DeepEqual

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

func (*RelationActionRequest) Field3DeepEqual

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

func (*RelationActionRequest) Field4DeepEqual

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

func (*RelationActionRequest) GetActionType

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

func (*RelationActionRequest) GetContent

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

func (*RelationActionRequest) GetToUserId

func (p *RelationActionRequest) GetToUserId() (v int64)

func (*RelationActionRequest) GetToken

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

func (*RelationActionRequest) InitDefault

func (p *RelationActionRequest) InitDefault()

func (*RelationActionRequest) Read

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

func (*RelationActionRequest) ReadField1

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

func (*RelationActionRequest) ReadField2

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

func (*RelationActionRequest) ReadField3

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

func (*RelationActionRequest) ReadField4

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

func (*RelationActionRequest) SetActionType

func (p *RelationActionRequest) SetActionType(val int32)

func (*RelationActionRequest) SetContent

func (p *RelationActionRequest) SetContent(val string)

func (*RelationActionRequest) SetToUserId

func (p *RelationActionRequest) SetToUserId(val int64)

func (*RelationActionRequest) SetToken

func (p *RelationActionRequest) SetToken(val string)

func (*RelationActionRequest) String

func (p *RelationActionRequest) String() string

func (*RelationActionRequest) Write

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

type RelationActionResponse

type RelationActionResponse struct {
	StatusCode int32   `thrift:"StatusCode,1" frugal:"1,default,i32" json:"status_code"`
	StatusMsg  *string `thrift:"StatusMsg,2,optional" frugal:"2,optional,string" json:"status_msg"`
}
var ChatServicePostMsgResult_Success_DEFAULT *RelationActionResponse

func NewRelationActionResponse

func NewRelationActionResponse() *RelationActionResponse

func (*RelationActionResponse) BLength

func (p *RelationActionResponse) BLength() int

func (*RelationActionResponse) DeepEqual

func (*RelationActionResponse) FastRead

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

func (*RelationActionResponse) FastReadField1

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

func (*RelationActionResponse) FastReadField2

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

func (*RelationActionResponse) FastWrite

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

for compatibility

func (*RelationActionResponse) FastWriteNocopy

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

func (*RelationActionResponse) Field1DeepEqual

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

func (*RelationActionResponse) Field2DeepEqual

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

func (*RelationActionResponse) GetStatusCode

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

func (*RelationActionResponse) GetStatusMsg

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

func (*RelationActionResponse) InitDefault

func (p *RelationActionResponse) InitDefault()

func (*RelationActionResponse) IsSetStatusMsg

func (p *RelationActionResponse) IsSetStatusMsg() bool

func (*RelationActionResponse) Read

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

func (*RelationActionResponse) ReadField1

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

func (*RelationActionResponse) ReadField2

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

func (*RelationActionResponse) SetStatusCode

func (p *RelationActionResponse) SetStatusCode(val int32)

func (*RelationActionResponse) SetStatusMsg

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

func (*RelationActionResponse) String

func (p *RelationActionResponse) String() string

func (*RelationActionResponse) Write

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