Documentation
¶
Index ¶
- Variables
- func RegisterChatBotServiceServer(s *grpc.Server, srv ChatBotServiceServer)
- func RegisterChatBotUserServiceServer(s *grpc.Server, srv ChatBotUserServiceServer)
- type AppChannelInfo
- func (*AppChannelInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AppChannelInfo) GetApp() ChatAppType
- func (x *AppChannelInfo) GetChannelid() string
- func (x *AppChannelInfo) GetChannelname() string
- func (x *AppChannelInfo) GetUsernameAppServ() string
- func (*AppChannelInfo) ProtoMessage()
- func (x *AppChannelInfo) ProtoReflect() protoreflect.Message
- func (x *AppChannelInfo) Reset()
- func (x *AppChannelInfo) String() string
- type AppCtrlData
- func (*AppCtrlData) Descriptor() ([]byte, []int)deprecated
- func (x *AppCtrlData) GetAct() AppCtrlType
- func (x *AppCtrlData) GetChannel() *AppChannelInfo
- func (x *AppCtrlData) GetCtrlID() int64
- func (*AppCtrlData) ProtoMessage()
- func (x *AppCtrlData) ProtoReflect() protoreflect.Message
- func (x *AppCtrlData) Reset()
- func (x *AppCtrlData) String() string
- type AppCtrlResult
- func (*AppCtrlResult) Descriptor() ([]byte, []int)deprecated
- func (x *AppCtrlResult) GetCtrl() *AppCtrlData
- func (x *AppCtrlResult) GetCtrlID() int64
- func (x *AppCtrlResult) GetResultCode() int32
- func (x *AppCtrlResult) GetToken() string
- func (*AppCtrlResult) ProtoMessage()
- func (x *AppCtrlResult) ProtoReflect() protoreflect.Message
- func (x *AppCtrlResult) Reset()
- func (x *AppCtrlResult) String() string
- type AppCtrlType
- func (AppCtrlType) Descriptor() protoreflect.EnumDescriptor
- func (x AppCtrlType) Enum() *AppCtrlType
- func (AppCtrlType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AppCtrlType) Number() protoreflect.EnumNumber
- func (x AppCtrlType) String() string
- func (AppCtrlType) Type() protoreflect.EnumType
- type AppServInfo
- func (*AppServInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AppServInfo) GetAppType() ChatAppType
- func (x *AppServInfo) GetSessionid() string
- func (x *AppServInfo) GetToken() string
- func (x *AppServInfo) GetUsername() string
- func (*AppServInfo) ProtoMessage()
- func (x *AppServInfo) ProtoReflect() protoreflect.Message
- func (x *AppServInfo) Reset()
- func (x *AppServInfo) String() string
- type ChatAppType
- func (ChatAppType) Descriptor() protoreflect.EnumDescriptor
- func (x ChatAppType) Enum() *ChatAppType
- func (ChatAppType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChatAppType) Number() protoreflect.EnumNumber
- func (x ChatAppType) String() string
- func (ChatAppType) Type() protoreflect.EnumType
- type ChatBotServInfo
- func (*ChatBotServInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ChatBotServInfo) GetServName() string
- func (x *ChatBotServInfo) GetSessionID() string
- func (x *ChatBotServInfo) GetToken() string
- func (*ChatBotServInfo) ProtoMessage()
- func (x *ChatBotServInfo) ProtoReflect() protoreflect.Message
- func (x *ChatBotServInfo) Reset()
- func (x *ChatBotServInfo) String() string
- type ChatBotServiceClient
- type ChatBotServiceServer
- type ChatBotService_RequestChatClient
- type ChatBotService_RequestChatServer
- type ChatBotService_SendChatClient
- type ChatBotService_SendChatServer
- type ChatBotUserServiceClient
- type ChatBotUserServiceServer
- type ChatMsg
- func (*ChatMsg) Descriptor() ([]byte, []int)deprecated
- func (x *ChatMsg) GetAppMsgID() string
- func (x *ChatMsg) GetCaption() string
- func (x *ChatMsg) GetError() string
- func (x *ChatMsg) GetFile() *FileData
- func (x *ChatMsg) GetFileData() []bytedeprecated
- func (x *ChatMsg) GetFileType() stringdeprecated
- func (x *ChatMsg) GetFilename() stringdeprecated
- func (x *ChatMsg) GetForward() *ForwardData
- func (x *ChatMsg) GetGai() *GroupAppInfo
- func (x *ChatMsg) GetImgs() []*ImageData
- func (x *ChatMsg) GetIsReplyPrivate() bool
- func (x *ChatMsg) GetMsg() string
- func (x *ChatMsg) GetSessionID() string
- func (x *ChatMsg) GetToken() string
- func (x *ChatMsg) GetUai() *UserAppInfo
- func (*ChatMsg) ProtoMessage()
- func (x *ChatMsg) ProtoReflect() protoreflect.Message
- func (x *ChatMsg) Reset()
- func (x *ChatMsg) String() string
- type ChatMsgStream
- func (*ChatMsgStream) Descriptor() ([]byte, []int)deprecated
- func (x *ChatMsgStream) GetChat() *ChatMsg
- func (x *ChatMsgStream) GetCurLength() int32
- func (x *ChatMsgStream) GetCurStart() int32
- func (x *ChatMsgStream) GetData() []byte
- func (x *ChatMsgStream) GetError() string
- func (x *ChatMsgStream) GetHashData() string
- func (x *ChatMsgStream) GetIsNoMsg() bool
- func (x *ChatMsgStream) GetSessionID() string
- func (x *ChatMsgStream) GetToken() string
- func (x *ChatMsgStream) GetTotalHashData() string
- func (x *ChatMsgStream) GetTotalLength() int32
- func (*ChatMsgStream) ProtoMessage()
- func (x *ChatMsgStream) ProtoReflect() protoreflect.Message
- func (x *ChatMsgStream) Reset()
- func (x *ChatMsgStream) String() string
- type FileData
- func (*FileData) Descriptor() ([]byte, []int)deprecated
- func (x *FileData) GetFileData() []byte
- func (x *FileData) GetFileType() string
- func (x *FileData) GetFilename() string
- func (*FileData) ProtoMessage()
- func (x *FileData) ProtoReflect() protoreflect.Message
- func (x *FileData) Reset()
- func (x *FileData) String() string
- type ForwardData
- func (*ForwardData) Descriptor() ([]byte, []int)deprecated
- func (x *ForwardData) GetAppMsgID() string
- func (x *ForwardData) GetDate() int64
- func (x *ForwardData) GetUai() *UserAppInfo
- func (*ForwardData) ProtoMessage()
- func (x *ForwardData) ProtoReflect() protoreflect.Message
- func (x *ForwardData) Reset()
- func (x *ForwardData) String() string
- type GroupAppInfo
- func (*GroupAppInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GroupAppInfo) GetApp() ChatAppType
- func (x *GroupAppInfo) GetGroupid() string
- func (x *GroupAppInfo) GetGroupname() string
- func (x *GroupAppInfo) GetUsernameAppServ() string
- func (*GroupAppInfo) ProtoMessage()
- func (x *GroupAppInfo) ProtoReflect() protoreflect.Message
- func (x *GroupAppInfo) Reset()
- func (x *GroupAppInfo) String() string
- type ImageData
- func (*ImageData) Descriptor() ([]byte, []int)deprecated
- func (x *ImageData) GetAppfileid() string
- func (x *ImageData) GetFileData() []byte
- func (x *ImageData) GetFilename() string
- func (x *ImageData) GetHeight() int32
- func (x *ImageData) GetWidth() int32
- func (*ImageData) ProtoMessage()
- func (x *ImageData) ProtoReflect() protoreflect.Message
- func (x *ImageData) Reset()
- func (x *ImageData) String() string
- type NoteInfo
- func (*NoteInfo) Descriptor() ([]byte, []int)deprecated
- func (x *NoteInfo) GetIsPublic() bool
- func (x *NoteInfo) GetKeys() []string
- func (x *NoteInfo) GetMapKeys() map[string]*NoteKeyInfo
- func (x *NoteInfo) GetMasters() []int64
- func (x *NoteInfo) GetName() string
- func (x *NoteInfo) GetNoteNums() int64
- func (*NoteInfo) ProtoMessage()
- func (x *NoteInfo) ProtoReflect() protoreflect.Message
- func (x *NoteInfo) Reset()
- func (x *NoteInfo) String() string
- type NoteKeyInfo
- type NoteNode
- func (*NoteNode) Descriptor() ([]byte, []int)deprecated
- func (x *NoteNode) GetDestAppMsgID() string
- func (x *NoteNode) GetDestUai() *UserAppInfo
- func (x *NoteNode) GetForwardAppMsgID() stringdeprecated
- func (x *NoteNode) GetKeys() []string
- func (x *NoteNode) GetName() string
- func (x *NoteNode) GetNoteIndex() int64
- func (x *NoteNode) GetSendAppMsgID() string
- func (x *NoteNode) GetSendUai() *UserAppInfo
- func (x *NoteNode) GetText() string
- func (x *NoteNode) GetUai() *UserAppInfodeprecated
- func (*NoteNode) ProtoMessage()
- func (x *NoteNode) ProtoReflect() protoreflect.Message
- func (x *NoteNode) Reset()
- func (x *NoteNode) String() string
- type RegisterAppService
- func (*RegisterAppService) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterAppService) GetAppServ() *AppServInfo
- func (*RegisterAppService) ProtoMessage()
- func (x *RegisterAppService) ProtoReflect() protoreflect.Message
- func (x *RegisterAppService) Reset()
- func (x *RegisterAppService) String() string
- type RegisterChatBotServ
- func (*RegisterChatBotServ) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterChatBotServ) GetServInfo() *ChatBotServInfo
- func (*RegisterChatBotServ) ProtoMessage()
- func (x *RegisterChatBotServ) ProtoReflect() protoreflect.Message
- func (x *RegisterChatBotServ) Reset()
- func (x *RegisterChatBotServ) String() string
- type ReplyRegisterAppService
- func (*ReplyRegisterAppService) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyRegisterAppService) GetAppType() ChatAppType
- func (x *ReplyRegisterAppService) GetError() string
- func (x *ReplyRegisterAppService) GetSessionID() string
- func (*ReplyRegisterAppService) ProtoMessage()
- func (x *ReplyRegisterAppService) ProtoReflect() protoreflect.Message
- func (x *ReplyRegisterAppService) Reset()
- func (x *ReplyRegisterAppService) String() string
- type ReplyRegisterChatBotServ
- func (*ReplyRegisterChatBotServ) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyRegisterChatBotServ) GetError() string
- func (x *ReplyRegisterChatBotServ) GetSessionID() string
- func (x *ReplyRegisterChatBotServ) GetToken() string
- func (*ReplyRegisterChatBotServ) ProtoMessage()
- func (x *ReplyRegisterChatBotServ) ProtoReflect() protoreflect.Message
- func (x *ReplyRegisterChatBotServ) Reset()
- func (x *ReplyRegisterChatBotServ) String() string
- type RequestChatData
- func (*RequestChatData) Descriptor() ([]byte, []int)deprecated
- func (x *RequestChatData) GetSessionID() string
- func (x *RequestChatData) GetToken() string
- func (*RequestChatData) ProtoMessage()
- func (x *RequestChatData) ProtoReflect() protoreflect.Message
- func (x *RequestChatData) Reset()
- func (x *RequestChatData) String() string
- type RequestCtrlData
- func (*RequestCtrlData) Descriptor() ([]byte, []int)deprecated
- func (x *RequestCtrlData) GetLastCtrlID() int64
- func (x *RequestCtrlData) GetToken() string
- func (*RequestCtrlData) ProtoMessage()
- func (x *RequestCtrlData) ProtoReflect() protoreflect.Message
- func (x *RequestCtrlData) Reset()
- func (x *RequestCtrlData) String() string
- type SCRResult
- type UnimplementedChatBotServiceServer
- func (*UnimplementedChatBotServiceServer) RegisterAppService(context.Context, *RegisterAppService) (*ReplyRegisterAppService, error)
- func (*UnimplementedChatBotServiceServer) RequestChat(*RequestChatData, ChatBotService_RequestChatServer) error
- func (*UnimplementedChatBotServiceServer) RequestCtrl(context.Context, *RequestCtrlData) (*AppCtrlData, error)
- func (*UnimplementedChatBotServiceServer) SendChat(ChatBotService_SendChatServer) error
- func (*UnimplementedChatBotServiceServer) SendCtrlResult(context.Context, *AppCtrlResult) (*SCRResult, error)
- type UnimplementedChatBotUserServiceServer
- type UserAppInfo
- func (*UserAppInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserAppInfo) GetApp() ChatAppType
- func (x *UserAppInfo) GetAppuid() string
- func (x *UserAppInfo) GetAppuname() string
- func (x *UserAppInfo) GetChatnums() int32
- func (x *UserAppInfo) GetLang() string
- func (x *UserAppInfo) GetUsernameAppServ() string
- func (*UserAppInfo) ProtoMessage()
- func (x *UserAppInfo) ProtoReflect() protoreflect.Message
- func (x *UserAppInfo) Reset()
- func (x *UserAppInfo) String() string
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetApps() []*UserAppInfo
- func (x *UserInfo) GetLanguage() string
- func (x *UserInfo) GetMoney() int64
- func (x *UserInfo) GetName() string
- func (x *UserInfo) GetTags() []string
- func (x *UserInfo) GetUid() int64
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ChatAppType_name = map[int32]string{ 0: "CAT_TELEGRAM", 1: "CAT_COOLQ", } ChatAppType_value = map[string]int32{ "CAT_TELEGRAM": 0, "CAT_COOLQ": 1, } )
Enum value maps for ChatAppType.
var ( AppCtrlType_name = map[int32]string{ 0: "ACT_JOINCHANNEL", } AppCtrlType_value = map[string]int32{ "ACT_JOINCHANNEL": 0, } )
Enum value maps for AppCtrlType.
var File_chatbot_proto protoreflect.FileDescriptor
Functions ¶
func RegisterChatBotServiceServer ¶
func RegisterChatBotServiceServer(s *grpc.Server, srv ChatBotServiceServer)
func RegisterChatBotUserServiceServer ¶
func RegisterChatBotUserServiceServer(s *grpc.Server, srv ChatBotUserServiceServer)
Types ¶
type AppChannelInfo ¶
type AppChannelInfo struct { App ChatAppType `protobuf:"varint,1,opt,name=app,proto3,enum=chatbotpb.ChatAppType" json:"app,omitempty"` UsernameAppServ string `protobuf:"bytes,2,opt,name=usernameAppServ,proto3" json:"usernameAppServ,omitempty"` Channelid string `protobuf:"bytes,3,opt,name=channelid,proto3" json:"channelid,omitempty"` Channelname string `protobuf:"bytes,4,opt,name=channelname,proto3" json:"channelname,omitempty"` // contains filtered or unexported fields }
AppChannelInfo - app channel info
func (*AppChannelInfo) Descriptor
deprecated
func (*AppChannelInfo) Descriptor() ([]byte, []int)
Deprecated: Use AppChannelInfo.ProtoReflect.Descriptor instead.
func (*AppChannelInfo) GetApp ¶
func (x *AppChannelInfo) GetApp() ChatAppType
func (*AppChannelInfo) GetChannelid ¶
func (x *AppChannelInfo) GetChannelid() string
func (*AppChannelInfo) GetChannelname ¶
func (x *AppChannelInfo) GetChannelname() string
func (*AppChannelInfo) GetUsernameAppServ ¶
func (x *AppChannelInfo) GetUsernameAppServ() string
func (*AppChannelInfo) ProtoMessage ¶
func (*AppChannelInfo) ProtoMessage()
func (*AppChannelInfo) ProtoReflect ¶
func (x *AppChannelInfo) ProtoReflect() protoreflect.Message
func (*AppChannelInfo) Reset ¶
func (x *AppChannelInfo) Reset()
func (*AppChannelInfo) String ¶
func (x *AppChannelInfo) String() string
type AppCtrlData ¶
type AppCtrlData struct { CtrlID int64 `protobuf:"varint,1,opt,name=ctrlID,proto3" json:"ctrlID,omitempty"` Act AppCtrlType `protobuf:"varint,2,opt,name=act,proto3,enum=chatbotpb.AppCtrlType" json:"act,omitempty"` Channel *AppChannelInfo `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"` // contains filtered or unexported fields }
AppCtrlData - app control data
func (*AppCtrlData) Descriptor
deprecated
func (*AppCtrlData) Descriptor() ([]byte, []int)
Deprecated: Use AppCtrlData.ProtoReflect.Descriptor instead.
func (*AppCtrlData) GetAct ¶
func (x *AppCtrlData) GetAct() AppCtrlType
func (*AppCtrlData) GetChannel ¶
func (x *AppCtrlData) GetChannel() *AppChannelInfo
func (*AppCtrlData) GetCtrlID ¶
func (x *AppCtrlData) GetCtrlID() int64
func (*AppCtrlData) ProtoMessage ¶
func (*AppCtrlData) ProtoMessage()
func (*AppCtrlData) ProtoReflect ¶
func (x *AppCtrlData) ProtoReflect() protoreflect.Message
func (*AppCtrlData) Reset ¶
func (x *AppCtrlData) Reset()
func (*AppCtrlData) String ¶
func (x *AppCtrlData) String() string
type AppCtrlResult ¶
type AppCtrlResult struct { CtrlID int64 `protobuf:"varint,1,opt,name=ctrlID,proto3" json:"ctrlID,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` Ctrl *AppCtrlData `protobuf:"bytes,3,opt,name=ctrl,proto3" json:"ctrl,omitempty"` ResultCode int32 `protobuf:"varint,4,opt,name=resultCode,proto3" json:"resultCode,omitempty"` // contains filtered or unexported fields }
AppCtrlResult - app control result
func (*AppCtrlResult) Descriptor
deprecated
func (*AppCtrlResult) Descriptor() ([]byte, []int)
Deprecated: Use AppCtrlResult.ProtoReflect.Descriptor instead.
func (*AppCtrlResult) GetCtrl ¶
func (x *AppCtrlResult) GetCtrl() *AppCtrlData
func (*AppCtrlResult) GetCtrlID ¶
func (x *AppCtrlResult) GetCtrlID() int64
func (*AppCtrlResult) GetResultCode ¶
func (x *AppCtrlResult) GetResultCode() int32
func (*AppCtrlResult) GetToken ¶
func (x *AppCtrlResult) GetToken() string
func (*AppCtrlResult) ProtoMessage ¶
func (*AppCtrlResult) ProtoMessage()
func (*AppCtrlResult) ProtoReflect ¶
func (x *AppCtrlResult) ProtoReflect() protoreflect.Message
func (*AppCtrlResult) Reset ¶
func (x *AppCtrlResult) Reset()
func (*AppCtrlResult) String ¶
func (x *AppCtrlResult) String() string
type AppCtrlType ¶
type AppCtrlType int32
AppCtrlType - app control type
const (
AppCtrlType_ACT_JOINCHANNEL AppCtrlType = 0
)
func (AppCtrlType) Descriptor ¶
func (AppCtrlType) Descriptor() protoreflect.EnumDescriptor
func (AppCtrlType) Enum ¶
func (x AppCtrlType) Enum() *AppCtrlType
func (AppCtrlType) EnumDescriptor
deprecated
func (AppCtrlType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AppCtrlType.Descriptor instead.
func (AppCtrlType) Number ¶
func (x AppCtrlType) Number() protoreflect.EnumNumber
func (AppCtrlType) String ¶
func (x AppCtrlType) String() string
func (AppCtrlType) Type ¶
func (AppCtrlType) Type() protoreflect.EnumType
type AppServInfo ¶
type AppServInfo struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` AppType ChatAppType `protobuf:"varint,2,opt,name=appType,proto3,enum=chatbotpb.ChatAppType" json:"appType,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Sessionid string `protobuf:"bytes,4,opt,name=sessionid,proto3" json:"sessionid,omitempty"` // contains filtered or unexported fields }
AppServInfo - app server info
func (*AppServInfo) Descriptor
deprecated
func (*AppServInfo) Descriptor() ([]byte, []int)
Deprecated: Use AppServInfo.ProtoReflect.Descriptor instead.
func (*AppServInfo) GetAppType ¶
func (x *AppServInfo) GetAppType() ChatAppType
func (*AppServInfo) GetSessionid ¶
func (x *AppServInfo) GetSessionid() string
func (*AppServInfo) GetToken ¶
func (x *AppServInfo) GetToken() string
func (*AppServInfo) GetUsername ¶
func (x *AppServInfo) GetUsername() string
func (*AppServInfo) ProtoMessage ¶
func (*AppServInfo) ProtoMessage()
func (*AppServInfo) ProtoReflect ¶
func (x *AppServInfo) ProtoReflect() protoreflect.Message
func (*AppServInfo) Reset ¶
func (x *AppServInfo) Reset()
func (*AppServInfo) String ¶
func (x *AppServInfo) String() string
type ChatAppType ¶
type ChatAppType int32
ChatAppType - chat app type
const ( ChatAppType_CAT_TELEGRAM ChatAppType = 0 ChatAppType_CAT_COOLQ ChatAppType = 1 )
func (ChatAppType) Descriptor ¶
func (ChatAppType) Descriptor() protoreflect.EnumDescriptor
func (ChatAppType) Enum ¶
func (x ChatAppType) Enum() *ChatAppType
func (ChatAppType) EnumDescriptor
deprecated
func (ChatAppType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChatAppType.Descriptor instead.
func (ChatAppType) Number ¶
func (x ChatAppType) Number() protoreflect.EnumNumber
func (ChatAppType) String ¶
func (x ChatAppType) String() string
func (ChatAppType) Type ¶
func (ChatAppType) Type() protoreflect.EnumType
type ChatBotServInfo ¶
type ChatBotServInfo struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` SessionID string `protobuf:"bytes,2,opt,name=sessionID,proto3" json:"sessionID,omitempty"` ServName string `protobuf:"bytes,3,opt,name=servName,proto3" json:"servName,omitempty"` // contains filtered or unexported fields }
ChatBotServInfo - ChatBot service infomation
func (*ChatBotServInfo) Descriptor
deprecated
func (*ChatBotServInfo) Descriptor() ([]byte, []int)
Deprecated: Use ChatBotServInfo.ProtoReflect.Descriptor instead.
func (*ChatBotServInfo) GetServName ¶
func (x *ChatBotServInfo) GetServName() string
func (*ChatBotServInfo) GetSessionID ¶
func (x *ChatBotServInfo) GetSessionID() string
func (*ChatBotServInfo) GetToken ¶
func (x *ChatBotServInfo) GetToken() string
func (*ChatBotServInfo) ProtoMessage ¶
func (*ChatBotServInfo) ProtoMessage()
func (*ChatBotServInfo) ProtoReflect ¶
func (x *ChatBotServInfo) ProtoReflect() protoreflect.Message
func (*ChatBotServInfo) Reset ¶
func (x *ChatBotServInfo) Reset()
func (*ChatBotServInfo) String ¶
func (x *ChatBotServInfo) String() string
type ChatBotServiceClient ¶
type ChatBotServiceClient interface { // registerAppService - register app service RegisterAppService(ctx context.Context, in *RegisterAppService, opts ...grpc.CallOption) (*ReplyRegisterAppService, error) // sendChat - send chat SendChat(ctx context.Context, opts ...grpc.CallOption) (ChatBotService_SendChatClient, error) // requestChat - request chat RequestChat(ctx context.Context, in *RequestChatData, opts ...grpc.CallOption) (ChatBotService_RequestChatClient, error) // requestCtrl - request control RequestCtrl(ctx context.Context, in *RequestCtrlData, opts ...grpc.CallOption) (*AppCtrlData, error) // sendCtrlResult - send control result SendCtrlResult(ctx context.Context, in *AppCtrlResult, opts ...grpc.CallOption) (*SCRResult, error) }
ChatBotServiceClient is the client API for ChatBotService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChatBotServiceClient ¶
func NewChatBotServiceClient(cc grpc.ClientConnInterface) ChatBotServiceClient
type ChatBotServiceServer ¶
type ChatBotServiceServer interface { // registerAppService - register app service RegisterAppService(context.Context, *RegisterAppService) (*ReplyRegisterAppService, error) // sendChat - send chat SendChat(ChatBotService_SendChatServer) error // requestChat - request chat RequestChat(*RequestChatData, ChatBotService_RequestChatServer) error // requestCtrl - request control RequestCtrl(context.Context, *RequestCtrlData) (*AppCtrlData, error) // sendCtrlResult - send control result SendCtrlResult(context.Context, *AppCtrlResult) (*SCRResult, error) }
ChatBotServiceServer is the server API for ChatBotService service.
type ChatBotService_RequestChatClient ¶
type ChatBotService_RequestChatClient interface { Recv() (*ChatMsgStream, error) grpc.ClientStream }
type ChatBotService_RequestChatServer ¶
type ChatBotService_RequestChatServer interface { Send(*ChatMsgStream) error grpc.ServerStream }
type ChatBotService_SendChatClient ¶
type ChatBotService_SendChatClient interface { Send(*ChatMsgStream) error Recv() (*ChatMsgStream, error) grpc.ClientStream }
type ChatBotService_SendChatServer ¶
type ChatBotService_SendChatServer interface { Send(*ChatMsgStream) error Recv() (*ChatMsgStream, error) grpc.ServerStream }
type ChatBotUserServiceClient ¶
type ChatBotUserServiceClient interface { // getUserInfo - register app service RegisterChatBotServ(ctx context.Context, in *RegisterChatBotServ, opts ...grpc.CallOption) (*ReplyRegisterChatBotServ, error) }
ChatBotUserServiceClient is the client API for ChatBotUserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChatBotUserServiceClient ¶
func NewChatBotUserServiceClient(cc grpc.ClientConnInterface) ChatBotUserServiceClient
type ChatBotUserServiceServer ¶
type ChatBotUserServiceServer interface { // getUserInfo - register app service RegisterChatBotServ(context.Context, *RegisterChatBotServ) (*ReplyRegisterChatBotServ, error) }
ChatBotUserServiceServer is the server API for ChatBotUserService service.
type ChatMsg ¶
type ChatMsg struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` Uai *UserAppInfo `protobuf:"bytes,2,opt,name=uai,proto3" json:"uai,omitempty"` Gai *GroupAppInfo `protobuf:"bytes,3,opt,name=gai,proto3" json:"gai,omitempty"` // Deprecated: Do not use. Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"` // Deprecated: Do not use. FileData []byte `protobuf:"bytes,5,opt,name=fileData,proto3" json:"fileData,omitempty"` Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` Token string `protobuf:"bytes,7,opt,name=token,proto3" json:"token,omitempty"` SessionID string `protobuf:"bytes,8,opt,name=sessionID,proto3" json:"sessionID,omitempty"` // Deprecated: Do not use. FileType string `protobuf:"bytes,9,opt,name=fileType,proto3" json:"fileType,omitempty"` File *FileData `protobuf:"bytes,10,opt,name=file,proto3" json:"file,omitempty"` Imgs []*ImageData `protobuf:"bytes,11,rep,name=imgs,proto3" json:"imgs,omitempty"` Forward *ForwardData `protobuf:"bytes,12,opt,name=forward,proto3" json:"forward,omitempty"` Caption string `protobuf:"bytes,13,opt,name=caption,proto3" json:"caption,omitempty"` AppMsgID string `protobuf:"bytes,14,opt,name=appMsgID,proto3" json:"appMsgID,omitempty"` IsReplyPrivate bool `protobuf:"varint,15,opt,name=isReplyPrivate,proto3" json:"isReplyPrivate,omitempty"` // contains filtered or unexported fields }
ChatMsg - chat message
func (*ChatMsg) Descriptor
deprecated
func (*ChatMsg) GetAppMsgID ¶
func (*ChatMsg) GetCaption ¶
func (*ChatMsg) GetFileData
deprecated
func (*ChatMsg) GetFileType
deprecated
func (*ChatMsg) GetFilename
deprecated
func (*ChatMsg) GetForward ¶
func (x *ChatMsg) GetForward() *ForwardData
func (*ChatMsg) GetGai ¶
func (x *ChatMsg) GetGai() *GroupAppInfo
func (*ChatMsg) GetIsReplyPrivate ¶
func (*ChatMsg) GetSessionID ¶
func (*ChatMsg) GetUai ¶
func (x *ChatMsg) GetUai() *UserAppInfo
func (*ChatMsg) ProtoMessage ¶
func (*ChatMsg) ProtoMessage()
func (*ChatMsg) ProtoReflect ¶
func (x *ChatMsg) ProtoReflect() protoreflect.Message
type ChatMsgStream ¶
type ChatMsgStream struct { // totalLength - If the message is too long, it will send data in multiple msg, this is the total length. TotalLength int32 `protobuf:"varint,1,opt,name=totalLength,proto3" json:"totalLength,omitempty"` // curStart - The starting point of the current data (in bytes). CurStart int32 `protobuf:"varint,2,opt,name=curStart,proto3" json:"curStart,omitempty"` // curLength - The length of the current data (in bytes). CurLength int32 `protobuf:"varint,3,opt,name=curLength,proto3" json:"curLength,omitempty"` // hashData - This is the hash of each paragraph. HashData string `protobuf:"bytes,4,opt,name=hashData,proto3" json:"hashData,omitempty"` // totalHashData - If multiple messages return data, this is the hash value of all data, only sent in the last message. TotalHashData string `protobuf:"bytes,5,opt,name=totalHashData,proto3" json:"totalHashData,omitempty"` // data Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` // error Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"` // token Token string `protobuf:"bytes,8,opt,name=token,proto3" json:"token,omitempty"` // sessionID SessionID string `protobuf:"bytes,9,opt,name=sessionID,proto3" json:"sessionID,omitempty"` // chat Chat *ChatMsg `protobuf:"bytes,10,opt,name=chat,proto3" json:"chat,omitempty"` // isNoMsg - no msg IsNoMsg bool `protobuf:"varint,11,opt,name=isNoMsg,proto3" json:"isNoMsg,omitempty"` // contains filtered or unexported fields }
ChatMsgStream - chat message stream
func (*ChatMsgStream) Descriptor
deprecated
func (*ChatMsgStream) Descriptor() ([]byte, []int)
Deprecated: Use ChatMsgStream.ProtoReflect.Descriptor instead.
func (*ChatMsgStream) GetChat ¶
func (x *ChatMsgStream) GetChat() *ChatMsg
func (*ChatMsgStream) GetCurLength ¶
func (x *ChatMsgStream) GetCurLength() int32
func (*ChatMsgStream) GetCurStart ¶
func (x *ChatMsgStream) GetCurStart() int32
func (*ChatMsgStream) GetData ¶
func (x *ChatMsgStream) GetData() []byte
func (*ChatMsgStream) GetError ¶
func (x *ChatMsgStream) GetError() string
func (*ChatMsgStream) GetHashData ¶
func (x *ChatMsgStream) GetHashData() string
func (*ChatMsgStream) GetIsNoMsg ¶
func (x *ChatMsgStream) GetIsNoMsg() bool
func (*ChatMsgStream) GetSessionID ¶
func (x *ChatMsgStream) GetSessionID() string
func (*ChatMsgStream) GetToken ¶
func (x *ChatMsgStream) GetToken() string
func (*ChatMsgStream) GetTotalHashData ¶
func (x *ChatMsgStream) GetTotalHashData() string
func (*ChatMsgStream) GetTotalLength ¶
func (x *ChatMsgStream) GetTotalLength() int32
func (*ChatMsgStream) ProtoMessage ¶
func (*ChatMsgStream) ProtoMessage()
func (*ChatMsgStream) ProtoReflect ¶
func (x *ChatMsgStream) ProtoReflect() protoreflect.Message
func (*ChatMsgStream) Reset ¶
func (x *ChatMsgStream) Reset()
func (*ChatMsgStream) String ¶
func (x *ChatMsgStream) String() string
type FileData ¶
type FileData struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` FileData []byte `protobuf:"bytes,2,opt,name=fileData,proto3" json:"fileData,omitempty"` FileType string `protobuf:"bytes,3,opt,name=fileType,proto3" json:"fileType,omitempty"` // contains filtered or unexported fields }
FileData - file data
func (*FileData) Descriptor
deprecated
func (*FileData) GetFileData ¶
func (*FileData) GetFileType ¶
func (*FileData) GetFilename ¶
func (*FileData) ProtoMessage ¶
func (*FileData) ProtoMessage()
func (*FileData) ProtoReflect ¶
func (x *FileData) ProtoReflect() protoreflect.Message
type ForwardData ¶
type ForwardData struct { Uai *UserAppInfo `protobuf:"bytes,1,opt,name=uai,proto3" json:"uai,omitempty"` AppMsgID string `protobuf:"bytes,2,opt,name=appMsgID,proto3" json:"appMsgID,omitempty"` Date int64 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` // contains filtered or unexported fields }
ForwardData - forward data
func (*ForwardData) Descriptor
deprecated
func (*ForwardData) Descriptor() ([]byte, []int)
Deprecated: Use ForwardData.ProtoReflect.Descriptor instead.
func (*ForwardData) GetAppMsgID ¶
func (x *ForwardData) GetAppMsgID() string
func (*ForwardData) GetDate ¶
func (x *ForwardData) GetDate() int64
func (*ForwardData) GetUai ¶
func (x *ForwardData) GetUai() *UserAppInfo
func (*ForwardData) ProtoMessage ¶
func (*ForwardData) ProtoMessage()
func (*ForwardData) ProtoReflect ¶
func (x *ForwardData) ProtoReflect() protoreflect.Message
func (*ForwardData) Reset ¶
func (x *ForwardData) Reset()
func (*ForwardData) String ¶
func (x *ForwardData) String() string
type GroupAppInfo ¶
type GroupAppInfo struct { App ChatAppType `protobuf:"varint,1,opt,name=app,proto3,enum=chatbotpb.ChatAppType" json:"app,omitempty"` UsernameAppServ string `protobuf:"bytes,2,opt,name=usernameAppServ,proto3" json:"usernameAppServ,omitempty"` Groupid string `protobuf:"bytes,3,opt,name=groupid,proto3" json:"groupid,omitempty"` Groupname string `protobuf:"bytes,4,opt,name=groupname,proto3" json:"groupname,omitempty"` // contains filtered or unexported fields }
GroupAppInfo - app group info
func (*GroupAppInfo) Descriptor
deprecated
func (*GroupAppInfo) Descriptor() ([]byte, []int)
Deprecated: Use GroupAppInfo.ProtoReflect.Descriptor instead.
func (*GroupAppInfo) GetApp ¶
func (x *GroupAppInfo) GetApp() ChatAppType
func (*GroupAppInfo) GetGroupid ¶
func (x *GroupAppInfo) GetGroupid() string
func (*GroupAppInfo) GetGroupname ¶
func (x *GroupAppInfo) GetGroupname() string
func (*GroupAppInfo) GetUsernameAppServ ¶
func (x *GroupAppInfo) GetUsernameAppServ() string
func (*GroupAppInfo) ProtoMessage ¶
func (*GroupAppInfo) ProtoMessage()
func (*GroupAppInfo) ProtoReflect ¶
func (x *GroupAppInfo) ProtoReflect() protoreflect.Message
func (*GroupAppInfo) Reset ¶
func (x *GroupAppInfo) Reset()
func (*GroupAppInfo) String ¶
func (x *GroupAppInfo) String() string
type ImageData ¶
type ImageData struct { Width int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` Appfileid string `protobuf:"bytes,4,opt,name=appfileid,proto3" json:"appfileid,omitempty"` FileData []byte `protobuf:"bytes,5,opt,name=fileData,proto3" json:"fileData,omitempty"` // contains filtered or unexported fields }
ImageData - image data
func (*ImageData) Descriptor
deprecated
func (*ImageData) GetAppfileid ¶
func (*ImageData) GetFileData ¶
func (*ImageData) GetFilename ¶
func (*ImageData) ProtoMessage ¶
func (*ImageData) ProtoMessage()
func (*ImageData) ProtoReflect ¶
func (x *ImageData) ProtoReflect() protoreflect.Message
type NoteInfo ¶
type NoteInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` NoteNums int64 `protobuf:"varint,3,opt,name=noteNums,proto3" json:"noteNums,omitempty"` Masters []int64 `protobuf:"varint,4,rep,packed,name=masters,proto3" json:"masters,omitempty"` IsPublic bool `protobuf:"varint,5,opt,name=isPublic,proto3" json:"isPublic,omitempty"` MapKeys map[string]*NoteKeyInfo `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
NoteInfo - note infomation
func (*NoteInfo) Descriptor
deprecated
func (*NoteInfo) GetIsPublic ¶
func (*NoteInfo) GetMapKeys ¶
func (x *NoteInfo) GetMapKeys() map[string]*NoteKeyInfo
func (*NoteInfo) GetMasters ¶
func (*NoteInfo) GetNoteNums ¶
func (*NoteInfo) ProtoMessage ¶
func (*NoteInfo) ProtoMessage()
func (*NoteInfo) ProtoReflect ¶
func (x *NoteInfo) ProtoReflect() protoreflect.Message
type NoteKeyInfo ¶
type NoteKeyInfo struct { Nodes []int64 `protobuf:"varint,1,rep,packed,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
NoteKeyInfo - note key infomation
func (*NoteKeyInfo) Descriptor
deprecated
func (*NoteKeyInfo) Descriptor() ([]byte, []int)
Deprecated: Use NoteKeyInfo.ProtoReflect.Descriptor instead.
func (*NoteKeyInfo) GetNodes ¶
func (x *NoteKeyInfo) GetNodes() []int64
func (*NoteKeyInfo) ProtoMessage ¶
func (*NoteKeyInfo) ProtoMessage()
func (*NoteKeyInfo) ProtoReflect ¶
func (x *NoteKeyInfo) ProtoReflect() protoreflect.Message
func (*NoteKeyInfo) Reset ¶
func (x *NoteKeyInfo) Reset()
func (*NoteKeyInfo) String ¶
func (x *NoteKeyInfo) String() string
type NoteNode ¶
type NoteNode struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` NoteIndex int64 `protobuf:"varint,3,opt,name=noteIndex,proto3" json:"noteIndex,omitempty"` // Deprecated: Do not use. ForwardAppMsgID string `protobuf:"bytes,4,opt,name=forwardAppMsgID,proto3" json:"forwardAppMsgID,omitempty"` Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` // Deprecated: Do not use. Uai *UserAppInfo `protobuf:"bytes,6,opt,name=uai,proto3" json:"uai,omitempty"` SendAppMsgID string `protobuf:"bytes,7,opt,name=sendAppMsgID,proto3" json:"sendAppMsgID,omitempty"` SendUai *UserAppInfo `protobuf:"bytes,8,opt,name=sendUai,proto3" json:"sendUai,omitempty"` DestAppMsgID string `protobuf:"bytes,9,opt,name=destAppMsgID,proto3" json:"destAppMsgID,omitempty"` DestUai *UserAppInfo `protobuf:"bytes,10,opt,name=destUai,proto3" json:"destUai,omitempty"` // contains filtered or unexported fields }
NoteNode - note node
func (*NoteNode) Descriptor
deprecated
func (*NoteNode) GetDestAppMsgID ¶
func (*NoteNode) GetDestUai ¶
func (x *NoteNode) GetDestUai() *UserAppInfo
func (*NoteNode) GetForwardAppMsgID
deprecated
func (*NoteNode) GetNoteIndex ¶
func (*NoteNode) GetSendAppMsgID ¶
func (*NoteNode) GetSendUai ¶
func (x *NoteNode) GetSendUai() *UserAppInfo
func (*NoteNode) GetUai
deprecated
func (x *NoteNode) GetUai() *UserAppInfo
Deprecated: Do not use.
func (*NoteNode) ProtoMessage ¶
func (*NoteNode) ProtoMessage()
func (*NoteNode) ProtoReflect ¶
func (x *NoteNode) ProtoReflect() protoreflect.Message
type RegisterAppService ¶
type RegisterAppService struct { AppServ *AppServInfo `protobuf:"bytes,1,opt,name=appServ,proto3" json:"appServ,omitempty"` // contains filtered or unexported fields }
RegisterAppService - register app service
func (*RegisterAppService) Descriptor
deprecated
func (*RegisterAppService) Descriptor() ([]byte, []int)
Deprecated: Use RegisterAppService.ProtoReflect.Descriptor instead.
func (*RegisterAppService) GetAppServ ¶
func (x *RegisterAppService) GetAppServ() *AppServInfo
func (*RegisterAppService) ProtoMessage ¶
func (*RegisterAppService) ProtoMessage()
func (*RegisterAppService) ProtoReflect ¶
func (x *RegisterAppService) ProtoReflect() protoreflect.Message
func (*RegisterAppService) Reset ¶
func (x *RegisterAppService) Reset()
func (*RegisterAppService) String ¶
func (x *RegisterAppService) String() string
type RegisterChatBotServ ¶
type RegisterChatBotServ struct { ServInfo *ChatBotServInfo `protobuf:"bytes,1,opt,name=servInfo,proto3" json:"servInfo,omitempty"` // contains filtered or unexported fields }
RegisterChatBotServ - register chatbot service
func (*RegisterChatBotServ) Descriptor
deprecated
func (*RegisterChatBotServ) Descriptor() ([]byte, []int)
Deprecated: Use RegisterChatBotServ.ProtoReflect.Descriptor instead.
func (*RegisterChatBotServ) GetServInfo ¶
func (x *RegisterChatBotServ) GetServInfo() *ChatBotServInfo
func (*RegisterChatBotServ) ProtoMessage ¶
func (*RegisterChatBotServ) ProtoMessage()
func (*RegisterChatBotServ) ProtoReflect ¶
func (x *RegisterChatBotServ) ProtoReflect() protoreflect.Message
func (*RegisterChatBotServ) Reset ¶
func (x *RegisterChatBotServ) Reset()
func (*RegisterChatBotServ) String ¶
func (x *RegisterChatBotServ) String() string
type ReplyRegisterAppService ¶
type ReplyRegisterAppService struct { AppType ChatAppType `protobuf:"varint,1,opt,name=appType,proto3,enum=chatbotpb.ChatAppType" json:"appType,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` SessionID string `protobuf:"bytes,3,opt,name=sessionID,proto3" json:"sessionID,omitempty"` // contains filtered or unexported fields }
ReplyRegisterAppService - reply RegisterAppService
func (*ReplyRegisterAppService) Descriptor
deprecated
func (*ReplyRegisterAppService) Descriptor() ([]byte, []int)
Deprecated: Use ReplyRegisterAppService.ProtoReflect.Descriptor instead.
func (*ReplyRegisterAppService) GetAppType ¶
func (x *ReplyRegisterAppService) GetAppType() ChatAppType
func (*ReplyRegisterAppService) GetError ¶
func (x *ReplyRegisterAppService) GetError() string
func (*ReplyRegisterAppService) GetSessionID ¶
func (x *ReplyRegisterAppService) GetSessionID() string
func (*ReplyRegisterAppService) ProtoMessage ¶
func (*ReplyRegisterAppService) ProtoMessage()
func (*ReplyRegisterAppService) ProtoReflect ¶
func (x *ReplyRegisterAppService) ProtoReflect() protoreflect.Message
func (*ReplyRegisterAppService) Reset ¶
func (x *ReplyRegisterAppService) Reset()
func (*ReplyRegisterAppService) String ¶
func (x *ReplyRegisterAppService) String() string
type ReplyRegisterChatBotServ ¶
type ReplyRegisterChatBotServ struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` SessionID string `protobuf:"bytes,2,opt,name=sessionID,proto3" json:"sessionID,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
ReplyRegisterChatBotServ - reply RegisterChatBotServ
func (*ReplyRegisterChatBotServ) Descriptor
deprecated
func (*ReplyRegisterChatBotServ) Descriptor() ([]byte, []int)
Deprecated: Use ReplyRegisterChatBotServ.ProtoReflect.Descriptor instead.
func (*ReplyRegisterChatBotServ) GetError ¶
func (x *ReplyRegisterChatBotServ) GetError() string
func (*ReplyRegisterChatBotServ) GetSessionID ¶
func (x *ReplyRegisterChatBotServ) GetSessionID() string
func (*ReplyRegisterChatBotServ) GetToken ¶
func (x *ReplyRegisterChatBotServ) GetToken() string
func (*ReplyRegisterChatBotServ) ProtoMessage ¶
func (*ReplyRegisterChatBotServ) ProtoMessage()
func (*ReplyRegisterChatBotServ) ProtoReflect ¶
func (x *ReplyRegisterChatBotServ) ProtoReflect() protoreflect.Message
func (*ReplyRegisterChatBotServ) Reset ¶
func (x *ReplyRegisterChatBotServ) Reset()
func (*ReplyRegisterChatBotServ) String ¶
func (x *ReplyRegisterChatBotServ) String() string
type RequestChatData ¶
type RequestChatData struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` SessionID string `protobuf:"bytes,2,opt,name=sessionID,proto3" json:"sessionID,omitempty"` // contains filtered or unexported fields }
RequestChatData - request chat data
func (*RequestChatData) Descriptor
deprecated
func (*RequestChatData) Descriptor() ([]byte, []int)
Deprecated: Use RequestChatData.ProtoReflect.Descriptor instead.
func (*RequestChatData) GetSessionID ¶
func (x *RequestChatData) GetSessionID() string
func (*RequestChatData) GetToken ¶
func (x *RequestChatData) GetToken() string
func (*RequestChatData) ProtoMessage ¶
func (*RequestChatData) ProtoMessage()
func (*RequestChatData) ProtoReflect ¶
func (x *RequestChatData) ProtoReflect() protoreflect.Message
func (*RequestChatData) Reset ¶
func (x *RequestChatData) Reset()
func (*RequestChatData) String ¶
func (x *RequestChatData) String() string
type RequestCtrlData ¶
type RequestCtrlData struct { LastCtrlID int64 `protobuf:"varint,1,opt,name=lastCtrlID,proto3" json:"lastCtrlID,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
RequestCtrlData - request app control data
func (*RequestCtrlData) Descriptor
deprecated
func (*RequestCtrlData) Descriptor() ([]byte, []int)
Deprecated: Use RequestCtrlData.ProtoReflect.Descriptor instead.
func (*RequestCtrlData) GetLastCtrlID ¶
func (x *RequestCtrlData) GetLastCtrlID() int64
func (*RequestCtrlData) GetToken ¶
func (x *RequestCtrlData) GetToken() string
func (*RequestCtrlData) ProtoMessage ¶
func (*RequestCtrlData) ProtoMessage()
func (*RequestCtrlData) ProtoReflect ¶
func (x *RequestCtrlData) ProtoReflect() protoreflect.Message
func (*RequestCtrlData) Reset ¶
func (x *RequestCtrlData) Reset()
func (*RequestCtrlData) String ¶
func (x *RequestCtrlData) String() string
type SCRResult ¶
type SCRResult struct { CtrlID int64 `protobuf:"varint,1,opt,name=ctrlID,proto3" json:"ctrlID,omitempty"` ResultCode int32 `protobuf:"varint,2,opt,name=resultCode,proto3" json:"resultCode,omitempty"` // contains filtered or unexported fields }
SCRResult - result for sendctrlresult
func (*SCRResult) Descriptor
deprecated
func (*SCRResult) GetResultCode ¶
func (*SCRResult) ProtoMessage ¶
func (*SCRResult) ProtoMessage()
func (*SCRResult) ProtoReflect ¶
func (x *SCRResult) ProtoReflect() protoreflect.Message
type UnimplementedChatBotServiceServer ¶
type UnimplementedChatBotServiceServer struct { }
UnimplementedChatBotServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedChatBotServiceServer) RegisterAppService ¶
func (*UnimplementedChatBotServiceServer) RegisterAppService(context.Context, *RegisterAppService) (*ReplyRegisterAppService, error)
func (*UnimplementedChatBotServiceServer) RequestChat ¶
func (*UnimplementedChatBotServiceServer) RequestChat(*RequestChatData, ChatBotService_RequestChatServer) error
func (*UnimplementedChatBotServiceServer) RequestCtrl ¶
func (*UnimplementedChatBotServiceServer) RequestCtrl(context.Context, *RequestCtrlData) (*AppCtrlData, error)
func (*UnimplementedChatBotServiceServer) SendChat ¶
func (*UnimplementedChatBotServiceServer) SendChat(ChatBotService_SendChatServer) error
func (*UnimplementedChatBotServiceServer) SendCtrlResult ¶
func (*UnimplementedChatBotServiceServer) SendCtrlResult(context.Context, *AppCtrlResult) (*SCRResult, error)
type UnimplementedChatBotUserServiceServer ¶
type UnimplementedChatBotUserServiceServer struct { }
UnimplementedChatBotUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedChatBotUserServiceServer) RegisterChatBotServ ¶
func (*UnimplementedChatBotUserServiceServer) RegisterChatBotServ(context.Context, *RegisterChatBotServ) (*ReplyRegisterChatBotServ, error)
type UserAppInfo ¶
type UserAppInfo struct { App ChatAppType `protobuf:"varint,1,opt,name=app,proto3,enum=chatbotpb.ChatAppType" json:"app,omitempty"` Appuid string `protobuf:"bytes,2,opt,name=appuid,proto3" json:"appuid,omitempty"` Appuname string `protobuf:"bytes,3,opt,name=appuname,proto3" json:"appuname,omitempty"` Chatnums int32 `protobuf:"varint,4,opt,name=chatnums,proto3" json:"chatnums,omitempty"` UsernameAppServ string `protobuf:"bytes,5,opt,name=usernameAppServ,proto3" json:"usernameAppServ,omitempty"` Lang string `protobuf:"bytes,6,opt,name=lang,proto3" json:"lang,omitempty"` // contains filtered or unexported fields }
UserAppInfo - user app info
func (*UserAppInfo) Descriptor
deprecated
func (*UserAppInfo) Descriptor() ([]byte, []int)
Deprecated: Use UserAppInfo.ProtoReflect.Descriptor instead.
func (*UserAppInfo) GetApp ¶
func (x *UserAppInfo) GetApp() ChatAppType
func (*UserAppInfo) GetAppuid ¶
func (x *UserAppInfo) GetAppuid() string
func (*UserAppInfo) GetAppuname ¶
func (x *UserAppInfo) GetAppuname() string
func (*UserAppInfo) GetChatnums ¶
func (x *UserAppInfo) GetChatnums() int32
func (*UserAppInfo) GetLang ¶
func (x *UserAppInfo) GetLang() string
func (*UserAppInfo) GetUsernameAppServ ¶
func (x *UserAppInfo) GetUsernameAppServ() string
func (*UserAppInfo) ProtoMessage ¶
func (*UserAppInfo) ProtoMessage()
func (*UserAppInfo) ProtoReflect ¶
func (x *UserAppInfo) ProtoReflect() protoreflect.Message
func (*UserAppInfo) Reset ¶
func (x *UserAppInfo) Reset()
func (*UserAppInfo) String ¶
func (x *UserAppInfo) String() string
type UserInfo ¶
type UserInfo struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Apps []*UserAppInfo `protobuf:"bytes,3,rep,name=apps,proto3" json:"apps,omitempty"` Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"` Money int64 `protobuf:"varint,10,opt,name=money,proto3" json:"money,omitempty"` // contains filtered or unexported fields }
UserInfo - user info
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetApps ¶
func (x *UserInfo) GetApps() []*UserAppInfo
func (*UserInfo) GetLanguage ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message