Documentation ¶
Index ¶
- Variables
- func RegisterLogicServer(s grpc.ServiceRegistrar, srv LogicServer)
- type AddFriendType
- func (AddFriendType) Descriptor() protoreflect.EnumDescriptor
- func (x AddFriendType) Enum() *AddFriendType
- func (AddFriendType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AddFriendType) Number() protoreflect.EnumNumber
- func (x AddFriendType) String() string
- func (AddFriendType) Type() protoreflect.EnumType
- type BlackFriendReq
- type ChannelHandleType
- func (ChannelHandleType) Descriptor() protoreflect.EnumDescriptor
- func (x ChannelHandleType) Enum() *ChannelHandleType
- func (ChannelHandleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChannelHandleType) Number() protoreflect.EnumNumber
- func (x ChannelHandleType) String() string
- func (ChannelHandleType) Type() protoreflect.EnumType
- type ChannelPackageData
- func (*ChannelPackageData) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelPackageData) GetData() []byte
- func (x *ChannelPackageData) GetType() ChannelHandleType
- func (*ChannelPackageData) ProtoMessage()
- func (x *ChannelPackageData) ProtoReflect() protoreflect.Message
- func (x *ChannelPackageData) Reset()
- func (x *ChannelPackageData) String() string
- type Command
- type CreateFriendReq
- type Custom
- type DeleteFriendReq
- type Face
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetId() int64
- func (x *File) GetName() string
- func (x *File) GetSize() int64
- func (x *File) GetUrl() string
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- type FriendHandle
- func (*FriendHandle) Descriptor() ([]byte, []int)deprecated
- func (x *FriendHandle) GetData() []byte
- func (x *FriendHandle) GetType() FriendHandleType
- func (*FriendHandle) ProtoMessage()
- func (x *FriendHandle) ProtoReflect() protoreflect.Message
- func (x *FriendHandle) Reset()
- func (x *FriendHandle) String() string
- type FriendHandleType
- func (FriendHandleType) Descriptor() protoreflect.EnumDescriptor
- func (x FriendHandleType) Enum() *FriendHandleType
- func (FriendHandleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FriendHandleType) Number() protoreflect.EnumNumber
- func (x FriendHandleType) String() string
- func (FriendHandleType) Type() protoreflect.EnumType
- type GroupHandleType
- func (GroupHandleType) Descriptor() protoreflect.EnumDescriptor
- func (x GroupHandleType) Enum() *GroupHandleType
- func (GroupHandleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupHandleType) Number() protoreflect.EnumNumber
- func (x GroupHandleType) String() string
- func (GroupHandleType) Type() protoreflect.EnumType
- type GroupPackageData
- func (*GroupPackageData) Descriptor() ([]byte, []int)deprecated
- func (x *GroupPackageData) GetData() []byte
- func (x *GroupPackageData) GetType() GroupHandleType
- func (*GroupPackageData) ProtoMessage()
- func (x *GroupPackageData) ProtoReflect() protoreflect.Message
- func (x *GroupPackageData) Reset()
- func (x *GroupPackageData) String() string
- type Image
- func (*Image) Descriptor() ([]byte, []int)deprecated
- func (x *Image) GetHeight() int32
- func (x *Image) GetId() string
- func (x *Image) GetThumbnailUrl() string
- func (x *Image) GetUrl() string
- func (x *Image) GetWidth() int32
- func (*Image) ProtoMessage()
- func (x *Image) ProtoReflect() protoreflect.Message
- func (x *Image) Reset()
- func (x *Image) String() string
- type Input
- func (*Input) Descriptor() ([]byte, []int)deprecated
- func (x *Input) GetData() []byte
- func (x *Input) GetRequestId() int64
- func (x *Input) GetType() PackageType
- func (x *Input) GetVersion() string
- func (*Input) ProtoMessage()
- func (x *Input) ProtoReflect() protoreflect.Message
- func (x *Input) Reset()
- func (x *Input) String() string
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetDesc() string
- func (x *Location) GetLatitude() float64
- func (x *Location) GetLongitude() float64
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type LogicClient
- type LogicServer
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetMessageContent() []byte
- func (x *Message) GetMessageType() MessageType
- func (x *Message) GetReceiverId() int64
- func (x *Message) GetReceiverType() ReceiverType
- func (x *Message) GetSendTime() int64
- func (x *Message) GetSender() *Sender
- func (x *Message) GetSeq() int64
- func (x *Message) GetStatus() MessageStatus
- func (x *Message) GetToUserIds() []int64
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageACK
- func (*MessageACK) Descriptor() ([]byte, []int)deprecated
- func (x *MessageACK) GetDeviceAck() int64
- func (x *MessageACK) GetReceiveTime() int64
- func (*MessageACK) ProtoMessage()
- func (x *MessageACK) ProtoReflect() protoreflect.Message
- func (x *MessageACK) Reset()
- func (x *MessageACK) String() string
- type MessageHandleType
- func (MessageHandleType) Descriptor() protoreflect.EnumDescriptor
- func (x MessageHandleType) Enum() *MessageHandleType
- func (MessageHandleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageHandleType) Number() protoreflect.EnumNumber
- func (x MessageHandleType) String() string
- func (MessageHandleType) Type() protoreflect.EnumType
- type MessagePackageData
- func (*MessagePackageData) Descriptor() ([]byte, []int)deprecated
- func (x *MessagePackageData) GetData() []byte
- func (x *MessagePackageData) GetType() MessageHandleType
- func (*MessagePackageData) ProtoMessage()
- func (x *MessagePackageData) ProtoReflect() protoreflect.Message
- func (x *MessagePackageData) Reset()
- func (x *MessagePackageData) String() string
- type MessageStatus
- func (MessageStatus) Descriptor() protoreflect.EnumDescriptor
- func (x MessageStatus) Enum() *MessageStatus
- func (MessageStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageStatus) Number() protoreflect.EnumNumber
- func (x MessageStatus) String() string
- func (MessageStatus) Type() protoreflect.EnumType
- type MessageType
- func (MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x MessageType) Enum() *MessageType
- func (MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageType) Number() protoreflect.EnumNumber
- func (x MessageType) String() string
- func (MessageType) Type() protoreflect.EnumType
- type NotifyHandleType
- func (NotifyHandleType) Descriptor() protoreflect.EnumDescriptor
- func (x NotifyHandleType) Enum() *NotifyHandleType
- func (NotifyHandleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x NotifyHandleType) Number() protoreflect.EnumNumber
- func (x NotifyHandleType) String() string
- func (NotifyHandleType) Type() protoreflect.EnumType
- type NotifyPackageData
- func (*NotifyPackageData) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyPackageData) GetData() []byte
- func (x *NotifyPackageData) GetType() NotifyHandleType
- func (*NotifyPackageData) ProtoMessage()
- func (x *NotifyPackageData) ProtoReflect() protoreflect.Message
- func (x *NotifyPackageData) Reset()
- func (x *NotifyPackageData) String() string
- type Output
- func (*Output) Descriptor() ([]byte, []int)deprecated
- func (x *Output) GetCode() int32
- func (x *Output) GetData() []byte
- func (x *Output) GetMessage() string
- func (x *Output) GetRequestId() int64
- func (x *Output) GetType() PackageType
- func (*Output) ProtoMessage()
- func (x *Output) ProtoReflect() protoreflect.Message
- func (x *Output) Reset()
- func (x *Output) String() string
- type PackageType
- func (PackageType) Descriptor() protoreflect.EnumDescriptor
- func (x PackageType) Enum() *PackageType
- func (PackageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PackageType) Number() protoreflect.EnumNumber
- func (x PackageType) String() string
- func (PackageType) Type() protoreflect.EnumType
- type ReceiverType
- func (ReceiverType) Descriptor() protoreflect.EnumDescriptor
- func (x ReceiverType) Enum() *ReceiverType
- func (ReceiverType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReceiverType) Number() protoreflect.EnumNumber
- func (x ReceiverType) String() string
- func (ReceiverType) Type() protoreflect.EnumType
- type RoomHandleType
- func (RoomHandleType) Descriptor() protoreflect.EnumDescriptor
- func (x RoomHandleType) Enum() *RoomHandleType
- func (RoomHandleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RoomHandleType) Number() protoreflect.EnumNumber
- func (x RoomHandleType) String() string
- func (RoomHandleType) Type() protoreflect.EnumType
- type RoomPackageData
- func (*RoomPackageData) Descriptor() ([]byte, []int)deprecated
- func (x *RoomPackageData) GetData() []byte
- func (x *RoomPackageData) GetType() RoomHandleType
- func (*RoomPackageData) ProtoMessage()
- func (x *RoomPackageData) ProtoReflect() protoreflect.Message
- func (x *RoomPackageData) Reset()
- func (x *RoomPackageData) String() string
- type SearchFriendReq
- type SearchHandleType
- func (SearchHandleType) Descriptor() protoreflect.EnumDescriptor
- func (x SearchHandleType) Enum() *SearchHandleType
- func (SearchHandleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchHandleType) Number() protoreflect.EnumNumber
- func (x SearchHandleType) String() string
- func (SearchHandleType) Type() protoreflect.EnumType
- type SearchPackageData
- func (*SearchPackageData) Descriptor() ([]byte, []int)deprecated
- func (x *SearchPackageData) GetData() []byte
- func (x *SearchPackageData) GetType() SearchHandleType
- func (*SearchPackageData) ProtoMessage()
- func (x *SearchPackageData) ProtoReflect() protoreflect.Message
- func (x *SearchPackageData) Reset()
- func (x *SearchPackageData) String() string
- type Sender
- func (*Sender) Descriptor() ([]byte, []int)deprecated
- func (x *Sender) GetAvatarUrl() string
- func (x *Sender) GetExtra() string
- func (x *Sender) GetNickname() string
- func (x *Sender) GetSenderId() int64
- func (x *Sender) GetSenderType() SenderType
- func (*Sender) ProtoMessage()
- func (x *Sender) ProtoReflect() protoreflect.Message
- func (x *Sender) Reset()
- func (x *Sender) String() string
- type SenderType
- type SignInInput
- func (*SignInInput) Descriptor() ([]byte, []int)deprecated
- func (x *SignInInput) GetDeviceId() int64
- func (x *SignInInput) GetToken() string
- func (x *SignInInput) GetUserId() int64
- func (*SignInInput) ProtoMessage()
- func (x *SignInInput) ProtoReflect() protoreflect.Message
- func (x *SignInInput) Reset()
- func (x *SignInInput) String() string
- type SyncInput
- type SyncOutput
- type Text
- type UnimplementedLogicServer
- type UnsafeLogicServer
- type UpdateFriendReq
- type UserHandle
- type UserHandleType
- func (UserHandleType) Descriptor() protoreflect.EnumDescriptor
- func (x UserHandleType) Enum() *UserHandleType
- func (UserHandleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserHandleType) Number() protoreflect.EnumNumber
- func (x UserHandleType) String() string
- func (UserHandleType) Type() protoreflect.EnumType
- type UserUpdateReq
- func (*UserUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserUpdateReq) GetAddFriendType() *wrapperspb.Int32Value
- func (x *UserUpdateReq) GetAvatarUrl() *wrapperspb.StringValue
- func (x *UserUpdateReq) GetFriendPassAnswer() *wrapperspb.StringValue
- func (x *UserUpdateReq) GetFriendPassProblem() *wrapperspb.StringValue
- func (x *UserUpdateReq) GetIdCard() *wrapperspb.StringValue
- func (x *UserUpdateReq) GetIntroduce() *wrapperspb.StringValue
- func (x *UserUpdateReq) GetName() *wrapperspb.StringValue
- func (x *UserUpdateReq) GetNickname() *wrapperspb.StringValue
- func (x *UserUpdateReq) GetPassword() *wrapperspb.StringValue
- func (x *UserUpdateReq) GetPhone() *wrapperspb.StringValue
- func (x *UserUpdateReq) GetSex() *wrapperspb.Int32Value
- func (x *UserUpdateReq) GetSnapCall() *wrapperspb.BoolValue
- func (*UserUpdateReq) ProtoMessage()
- func (x *UserUpdateReq) ProtoReflect() protoreflect.Message
- func (x *UserUpdateReq) Reset()
- func (x *UserUpdateReq) String() string
- type Voice
- func (*Voice) Descriptor() ([]byte, []int)deprecated
- func (x *Voice) GetDuration() int32
- func (x *Voice) GetId() string
- func (x *Voice) GetSize() int32
- func (x *Voice) GetUrl() string
- func (*Voice) ProtoMessage()
- func (x *Voice) ProtoReflect() protoreflect.Message
- func (x *Voice) Reset()
- func (x *Voice) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ChannelHandleType_name = map[int32]string{ 0: "CHANNEL_UNKNOWN_HANDLE", 1: "CHANNEL_MODIFICATION_NAME", 2: "CHANNEL_NO_DISTURB", 3: "CHANNEL_EDIT_PROCLAMATION", 4: "CHANNEL_LOOK_PROCLAMATION", 5: "CHANNEL_QUIT", 6: "CHANNEL_FOUND", 7: "CHANNEL_DISSOLVE", 8: "CHANNEL_TOP", 9: "CHANNEL_CHAT_RECORD", 10: "CHANNEL_subscription", } ChannelHandleType_value = map[string]int32{ "CHANNEL_UNKNOWN_HANDLE": 0, "CHANNEL_MODIFICATION_NAME": 1, "CHANNEL_NO_DISTURB": 2, "CHANNEL_EDIT_PROCLAMATION": 3, "CHANNEL_LOOK_PROCLAMATION": 4, "CHANNEL_QUIT": 5, "CHANNEL_FOUND": 6, "CHANNEL_DISSOLVE": 7, "CHANNEL_TOP": 8, "CHANNEL_CHAT_RECORD": 9, "CHANNEL_subscription": 10, } )
Enum value maps for ChannelHandleType.
var ( AddFriendType_name = map[int32]string{ 0: "UNKNOWN_TYPE", } AddFriendType_value = map[string]int32{ "UNKNOWN_TYPE": 0, } )
Enum value maps for AddFriendType.
var ( FriendHandleType_name = map[int32]string{ 0: "UNKNOWN_FRIEND_TYPE", 1: "CREATE_FRIEND", 2: "UPDATE_FRIEND", 3: "SEARCH_FRIEND_INFO", 6: "LIST_FRIEND", } FriendHandleType_value = map[string]int32{ "UNKNOWN_FRIEND_TYPE": 0, "CREATE_FRIEND": 1, "UPDATE_FRIEND": 2, "SEARCH_FRIEND_INFO": 3, "LIST_FRIEND": 6, } )
Enum value maps for FriendHandleType.
var ( GroupHandleType_name = map[int32]string{ 0: "GROUP_UNKNOWN_HANDLE", 1: "GROUP_FOUND", 2: "GROUP_DISSOLVE", 3: "GROUP_INVITATION_FRIEND", 4: "GROUP_MODIFICATION_NAME", 5: "GROUP_EDIT_PROCLAMATION", 6: "GROUP_LOOK_PROCLAMATION", 7: "GROUP_REMARK", 8: "GROUP_NO_DISTURB", 9: "GROUP_QUIT", 10: "GROUP_TOP", 11: "GROUP_MODIFICATION_MY_NICKNAME", 12: "GROUP_SHOW_ALL_NICKNAME", 13: "GROUP_LIST", 14: "GROUP_ADD_FRIEND", 15: "GROUP_CHAT_RECORD", } GroupHandleType_value = map[string]int32{ "GROUP_UNKNOWN_HANDLE": 0, "GROUP_FOUND": 1, "GROUP_DISSOLVE": 2, "GROUP_INVITATION_FRIEND": 3, "GROUP_MODIFICATION_NAME": 4, "GROUP_EDIT_PROCLAMATION": 5, "GROUP_LOOK_PROCLAMATION": 6, "GROUP_REMARK": 7, "GROUP_NO_DISTURB": 8, "GROUP_QUIT": 9, "GROUP_TOP": 10, "GROUP_MODIFICATION_MY_NICKNAME": 11, "GROUP_SHOW_ALL_NICKNAME": 12, "GROUP_LIST": 13, "GROUP_ADD_FRIEND": 14, "GROUP_CHAT_RECORD": 15, } )
Enum value maps for GroupHandleType.
var ( MessageHandleType_name = map[int32]string{ 0: "Message_UNKNOWN_HANDLE", 1: "Message_SEND", 2: "Message_SYNC", 3: "Message_ACK", } MessageHandleType_value = map[string]int32{ "Message_UNKNOWN_HANDLE": 0, "Message_SEND": 1, "Message_SYNC": 2, "Message_ACK": 3, } )
Enum value maps for MessageHandleType.
var ( ReceiverType_name = map[int32]string{ 0: "RT_UNKNOWN", 1: "RT_USER", 2: "RT_GROUP", 3: "RT_ROOM", } ReceiverType_value = map[string]int32{ "RT_UNKNOWN": 0, "RT_USER": 1, "RT_GROUP": 2, "RT_ROOM": 3, } )
Enum value maps for ReceiverType.
var ( MessageType_name = map[int32]string{ 0: "MT_UNKNOWN", 1: "MT_TEXT", 2: "MT_FACE", 3: "MT_VOICE", 4: "MT_IMAGE", 5: "MT_FILE", 6: "MT_LOCATION", 7: "MT_COMMAND", 8: "MT_LINK", 9: "MT_CUSTOM", } MessageType_value = map[string]int32{ "MT_UNKNOWN": 0, "MT_TEXT": 1, "MT_FACE": 2, "MT_VOICE": 3, "MT_IMAGE": 4, "MT_FILE": 5, "MT_LOCATION": 6, "MT_COMMAND": 7, "MT_LINK": 8, "MT_CUSTOM": 9, } )
Enum value maps for MessageType.
var ( MessageStatus_name = map[int32]string{ 0: "MS_UNKNOWN", 1: "MS_NORMAL", 2: "MS_RECALL", } MessageStatus_value = map[string]int32{ "MS_UNKNOWN": 0, "MS_NORMAL": 1, "MS_RECALL": 2, } )
Enum value maps for MessageStatus.
var ( SenderType_name = map[int32]string{ 0: "ST_UNKNOWN", 1: "ST_SYSTEM", 2: "ST_USER", 3: "ST_BUSINESS", } SenderType_value = map[string]int32{ "ST_UNKNOWN": 0, "ST_SYSTEM": 1, "ST_USER": 2, "ST_BUSINESS": 3, } )
Enum value maps for SenderType.
var ( NotifyHandleType_name = map[int32]string{ 0: "NOTIFY_UNKNOWN_HANDLE", 1: "NOTIFY_USER_INFORMATION", 2: "NOTIFY_GROUP_INFORMATION", 3: "NOTIFY_ONLINE", 4: "NOTIFY_OFFLINE", 5: "NOTIFY_CHANNEL_SUBSCRIPTION", 6: "NOTIFY_ADD_GROUP", 8: "NOTIFY_ROOM_SUBSCRIPTION", 9: "NOTIFY_SYSTEM", 10: "NOTIFY_WITHDRAW_INFORMATION", 11: "NOTIFY_SPECIAL_CARE", } NotifyHandleType_value = map[string]int32{ "NOTIFY_UNKNOWN_HANDLE": 0, "NOTIFY_USER_INFORMATION": 1, "NOTIFY_GROUP_INFORMATION": 2, "NOTIFY_ONLINE": 3, "NOTIFY_OFFLINE": 4, "NOTIFY_CHANNEL_SUBSCRIPTION": 5, "NOTIFY_ADD_GROUP": 6, "NOTIFY_ROOM_SUBSCRIPTION": 8, "NOTIFY_SYSTEM": 9, "NOTIFY_WITHDRAW_INFORMATION": 10, "NOTIFY_SPECIAL_CARE": 11, } )
Enum value maps for NotifyHandleType.
var ( PackageType_name = map[int32]string{ 0: "PT_UNKNOWN", 1: "PT_SIGN_IN", 2: "PT_HEARTBEAT", 3: "PT_MESSAGE", 4: "PT_GROUP", 5: "PT_FRIEND", 6: "PT_ROOM", 7: "PT_CHANNEL", 8: "PT_MINE", 9: "PT_SEARCH", 10: "PT_NOTIFY", } PackageType_value = map[string]int32{ "PT_UNKNOWN": 0, "PT_SIGN_IN": 1, "PT_HEARTBEAT": 2, "PT_MESSAGE": 3, "PT_GROUP": 4, "PT_FRIEND": 5, "PT_ROOM": 6, "PT_CHANNEL": 7, "PT_MINE": 8, "PT_SEARCH": 9, "PT_NOTIFY": 10, } )
Enum value maps for PackageType.
var ( RoomHandleType_name = map[int32]string{ 0: "ROOM_UNKNOWN_HANDLE", 1: "ROOM_MODIFICATION_NAME", 2: "ROOM_MODIFICATION_AVATAR", 3: "ROOM_SHARE", 4: "ROOM_REPORT", 5: "ROOM_CLOSURE", 6: "ROOM_FOUND", 7: "ROOM_SEND_BARRAGE", 8: "ROOM_SUBSCRIPTION", } RoomHandleType_value = map[string]int32{ "ROOM_UNKNOWN_HANDLE": 0, "ROOM_MODIFICATION_NAME": 1, "ROOM_MODIFICATION_AVATAR": 2, "ROOM_SHARE": 3, "ROOM_REPORT": 4, "ROOM_CLOSURE": 5, "ROOM_FOUND": 6, "ROOM_SEND_BARRAGE": 7, "ROOM_SUBSCRIPTION": 8, } )
Enum value maps for RoomHandleType.
var ( SearchHandleType_name = map[int32]string{ 0: "SEARCH_UNKNOWN_HANDLE", 1: "SEARCH_FRIEND", 2: "SEARCH_ROOM", 3: "SEARCH_CHANNEL", 4: "SEARCH_GROUP", 5: "SEARCH_CONTENT", } SearchHandleType_value = map[string]int32{ "SEARCH_UNKNOWN_HANDLE": 0, "SEARCH_FRIEND": 1, "SEARCH_ROOM": 2, "SEARCH_CHANNEL": 3, "SEARCH_GROUP": 4, "SEARCH_CONTENT": 5, } )
Enum value maps for SearchHandleType.
var ( UserHandleType_name = map[int32]string{ 0: "UNKNOWN_USER_HANDLE", 1: "UPDATE_USER", 2: "SEARCH_USER", } UserHandleType_value = map[string]int32{ "UNKNOWN_USER_HANDLE": 0, "UPDATE_USER": 1, "SEARCH_USER": 2, } )
Enum value maps for UserHandleType.
var File_v1_channel_proto protoreflect.FileDescriptor
var File_v1_friend_proto protoreflect.FileDescriptor
var File_v1_group_proto protoreflect.FileDescriptor
var File_v1_message_proto protoreflect.FileDescriptor
var File_v1_notify_proto protoreflect.FileDescriptor
var File_v1_package_proto protoreflect.FileDescriptor
var File_v1_room_proto protoreflect.FileDescriptor
var File_v1_search_proto protoreflect.FileDescriptor
var File_v1_user_proto protoreflect.FileDescriptor
var Logic_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Logic", HandlerType: (*LogicServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Call", Handler: _Logic_Call_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/package.proto", }
Logic_ServiceDesc is the grpc.ServiceDesc for Logic service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLogicServer ¶
func RegisterLogicServer(s grpc.ServiceRegistrar, srv LogicServer)
Types ¶
type AddFriendType ¶
type AddFriendType int32
性别枚举
enum Sex{ UNKNOWN_SEX = 0;//未知 SECRET = 1;//保密 BOY = 2;//男 GIRL = 3;//女 }
添加好友方式枚举
const (
AddFriendType_UNKNOWN_TYPE AddFriendType = 0 //未知
)
func (AddFriendType) Descriptor ¶
func (AddFriendType) Descriptor() protoreflect.EnumDescriptor
func (AddFriendType) Enum ¶
func (x AddFriendType) Enum() *AddFriendType
func (AddFriendType) EnumDescriptor
deprecated
func (AddFriendType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AddFriendType.Descriptor instead.
func (AddFriendType) Number ¶
func (x AddFriendType) Number() protoreflect.EnumNumber
func (AddFriendType) String ¶
func (x AddFriendType) String() string
func (AddFriendType) Type ¶
func (AddFriendType) Type() protoreflect.EnumType
type BlackFriendReq ¶
type BlackFriendReq struct {
// contains filtered or unexported fields
}
拉黑好友请求参数
func (*BlackFriendReq) Descriptor
deprecated
func (*BlackFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use BlackFriendReq.ProtoReflect.Descriptor instead.
func (*BlackFriendReq) ProtoMessage ¶
func (*BlackFriendReq) ProtoMessage()
func (*BlackFriendReq) ProtoReflect ¶
func (x *BlackFriendReq) ProtoReflect() protoreflect.Message
func (*BlackFriendReq) Reset ¶
func (x *BlackFriendReq) Reset()
func (*BlackFriendReq) String ¶
func (x *BlackFriendReq) String() string
type ChannelHandleType ¶
type ChannelHandleType int32
频道操作
const ( ChannelHandleType_CHANNEL_UNKNOWN_HANDLE ChannelHandleType = 0 //未知 ChannelHandleType_CHANNEL_MODIFICATION_NAME ChannelHandleType = 1 //修改频道名称 ChannelHandleType_CHANNEL_NO_DISTURB ChannelHandleType = 2 //频道消息免打扰 ChannelHandleType_CHANNEL_EDIT_PROCLAMATION ChannelHandleType = 3 //编辑频道公告 ChannelHandleType_CHANNEL_LOOK_PROCLAMATION ChannelHandleType = 4 //查看频道公告 ChannelHandleType_CHANNEL_QUIT ChannelHandleType = 5 //退出频道 ChannelHandleType_CHANNEL_FOUND ChannelHandleType = 6 //创建频道 ChannelHandleType_CHANNEL_DISSOLVE ChannelHandleType = 7 //解散频道 ChannelHandleType_CHANNEL_TOP ChannelHandleType = 8 //置顶频道 ChannelHandleType_CHANNEL_CHAT_RECORD ChannelHandleType = 9 //查找频道聊天记录 ChannelHandleType_CHANNEL_subscription ChannelHandleType = 10 //订阅频道 )
func (ChannelHandleType) Descriptor ¶
func (ChannelHandleType) Descriptor() protoreflect.EnumDescriptor
func (ChannelHandleType) Enum ¶
func (x ChannelHandleType) Enum() *ChannelHandleType
func (ChannelHandleType) EnumDescriptor
deprecated
func (ChannelHandleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChannelHandleType.Descriptor instead.
func (ChannelHandleType) Number ¶
func (x ChannelHandleType) Number() protoreflect.EnumNumber
func (ChannelHandleType) String ¶
func (x ChannelHandleType) String() string
func (ChannelHandleType) Type ¶
func (ChannelHandleType) Type() protoreflect.EnumType
type ChannelPackageData ¶
type ChannelPackageData struct { Type ChannelHandleType `protobuf:"varint,1,opt,name=type,proto3,enum=ChannelHandleType" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ChannelPackageData) Descriptor
deprecated
func (*ChannelPackageData) Descriptor() ([]byte, []int)
Deprecated: Use ChannelPackageData.ProtoReflect.Descriptor instead.
func (*ChannelPackageData) GetData ¶
func (x *ChannelPackageData) GetData() []byte
func (*ChannelPackageData) GetType ¶
func (x *ChannelPackageData) GetType() ChannelHandleType
func (*ChannelPackageData) ProtoMessage ¶
func (*ChannelPackageData) ProtoMessage()
func (*ChannelPackageData) ProtoReflect ¶
func (x *ChannelPackageData) ProtoReflect() protoreflect.Message
func (*ChannelPackageData) Reset ¶
func (x *ChannelPackageData) Reset()
func (*ChannelPackageData) String ¶
func (x *ChannelPackageData) String() string
type Command ¶
type Command struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 指令码 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // 数据内容 // contains filtered or unexported fields }
Command 指令推送,1000以下,IM内部用,1000以上,留给业务用
func (*Command) Descriptor
deprecated
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶
func (x *Command) ProtoReflect() protoreflect.Message
type CreateFriendReq ¶
type CreateFriendReq struct {
// contains filtered or unexported fields
}
添加好友请求参数
func (*CreateFriendReq) Descriptor
deprecated
func (*CreateFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateFriendReq.ProtoReflect.Descriptor instead.
func (*CreateFriendReq) ProtoMessage ¶
func (*CreateFriendReq) ProtoMessage()
func (*CreateFriendReq) ProtoReflect ¶
func (x *CreateFriendReq) ProtoReflect() protoreflect.Message
func (*CreateFriendReq) Reset ¶
func (x *CreateFriendReq) Reset()
func (*CreateFriendReq) String ¶
func (x *CreateFriendReq) String() string
type Custom ¶
type Custom struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 自定义数据 // contains filtered or unexported fields }
自定义消息
func (*Custom) Descriptor
deprecated
func (*Custom) ProtoMessage ¶
func (*Custom) ProtoMessage()
func (*Custom) ProtoReflect ¶
func (x *Custom) ProtoReflect() protoreflect.Message
type DeleteFriendReq ¶
type DeleteFriendReq struct {
// contains filtered or unexported fields
}
删除好友请求参数
func (*DeleteFriendReq) Descriptor
deprecated
func (*DeleteFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFriendReq.ProtoReflect.Descriptor instead.
func (*DeleteFriendReq) ProtoMessage ¶
func (*DeleteFriendReq) ProtoMessage()
func (*DeleteFriendReq) ProtoReflect ¶
func (x *DeleteFriendReq) ProtoReflect() protoreflect.Message
func (*DeleteFriendReq) Reset ¶
func (x *DeleteFriendReq) Reset()
func (*DeleteFriendReq) String ¶
func (x *DeleteFriendReq) String() string
type Face ¶
type Face struct { FaceId int64 `protobuf:"varint,1,opt,name=face_id,json=faceId,proto3" json:"face_id,omitempty"` FaceUrl string `protobuf:"bytes,2,opt,name=face_url,json=faceUrl,proto3" json:"face_url,omitempty"` // contains filtered or unexported fields }
表情消息
func (*Face) Descriptor
deprecated
func (*Face) GetFaceUrl ¶
func (*Face) ProtoMessage ¶
func (*Face) ProtoMessage()
func (*Face) ProtoReflect ¶
func (x *Face) ProtoReflect() protoreflect.Message
type File ¶
type File struct { Id int64 `protobuf:"varint,12,opt,name=id,proto3" json:"id,omitempty"` // 文件id Name string `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"` // 文件名 Size int64 `protobuf:"varint,14,opt,name=size,proto3" json:"size,omitempty"` // 文件大小 Url string `protobuf:"bytes,15,opt,name=url,proto3" json:"url,omitempty"` // 文件url // contains filtered or unexported fields }
文件消息
func (*File) Descriptor
deprecated
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type FriendHandle ¶
type FriendHandle struct { Type FriendHandleType `protobuf:"varint,1,opt,name=type,proto3,enum=FriendHandleType" json:"type,omitempty"` //操作类型 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` //数据 // contains filtered or unexported fields }
好友操作(上行data数据)
func (*FriendHandle) Descriptor
deprecated
func (*FriendHandle) Descriptor() ([]byte, []int)
Deprecated: Use FriendHandle.ProtoReflect.Descriptor instead.
func (*FriendHandle) GetData ¶
func (x *FriendHandle) GetData() []byte
func (*FriendHandle) GetType ¶
func (x *FriendHandle) GetType() FriendHandleType
func (*FriendHandle) ProtoMessage ¶
func (*FriendHandle) ProtoMessage()
func (*FriendHandle) ProtoReflect ¶
func (x *FriendHandle) ProtoReflect() protoreflect.Message
func (*FriendHandle) Reset ¶
func (x *FriendHandle) Reset()
func (*FriendHandle) String ¶
func (x *FriendHandle) String() string
type FriendHandleType ¶
type FriendHandleType int32
好友操作类型枚举
const ( FriendHandleType_UNKNOWN_FRIEND_TYPE FriendHandleType = 0 //未知 FriendHandleType_CREATE_FRIEND FriendHandleType = 1 //添加好友 FriendHandleType_UPDATE_FRIEND FriendHandleType = 2 //修改好友信息 FriendHandleType_SEARCH_FRIEND_INFO FriendHandleType = 3 //查找好友信息 // DELETE_FRIEND = 4;//删除好友 // BLACK_FRIEND = 5;//拉黑好友 FriendHandleType_LIST_FRIEND FriendHandleType = 6 //好友列表 )
func (FriendHandleType) Descriptor ¶
func (FriendHandleType) Descriptor() protoreflect.EnumDescriptor
func (FriendHandleType) Enum ¶
func (x FriendHandleType) Enum() *FriendHandleType
func (FriendHandleType) EnumDescriptor
deprecated
func (FriendHandleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FriendHandleType.Descriptor instead.
func (FriendHandleType) Number ¶
func (x FriendHandleType) Number() protoreflect.EnumNumber
func (FriendHandleType) String ¶
func (x FriendHandleType) String() string
func (FriendHandleType) Type ¶
func (FriendHandleType) Type() protoreflect.EnumType
type GroupHandleType ¶
type GroupHandleType int32
群组操作
const ( GroupHandleType_GROUP_UNKNOWN_HANDLE GroupHandleType = 0 //未知 GroupHandleType_GROUP_FOUND GroupHandleType = 1 //创建群 GroupHandleType_GROUP_DISSOLVE GroupHandleType = 2 //解散群 GroupHandleType_GROUP_INVITATION_FRIEND GroupHandleType = 3 //邀请好友进群 GroupHandleType_GROUP_MODIFICATION_NAME GroupHandleType = 4 //修改群名称 GroupHandleType_GROUP_EDIT_PROCLAMATION GroupHandleType = 5 //编辑群公告 GroupHandleType_GROUP_LOOK_PROCLAMATION GroupHandleType = 6 //查看群公告 GroupHandleType_GROUP_REMARK GroupHandleType = 7 //群名备注 GroupHandleType_GROUP_NO_DISTURB GroupHandleType = 8 //群消息免打扰 GroupHandleType_GROUP_QUIT GroupHandleType = 9 //退出群 GroupHandleType_GROUP_TOP GroupHandleType = 10 //置顶群 GroupHandleType_GROUP_MODIFICATION_MY_NICKNAME GroupHandleType = 11 //修改我在群的昵称 GroupHandleType_GROUP_SHOW_ALL_NICKNAME GroupHandleType = 12 //显示群成员昵称 GroupHandleType_GROUP_LIST GroupHandleType = 13 //群成员列表 GroupHandleType_GROUP_ADD_FRIEND GroupHandleType = 14 //添加群好友 GroupHandleType_GROUP_CHAT_RECORD GroupHandleType = 15 //查找群聊天记录 )
func (GroupHandleType) Descriptor ¶
func (GroupHandleType) Descriptor() protoreflect.EnumDescriptor
func (GroupHandleType) Enum ¶
func (x GroupHandleType) Enum() *GroupHandleType
func (GroupHandleType) EnumDescriptor
deprecated
func (GroupHandleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupHandleType.Descriptor instead.
func (GroupHandleType) Number ¶
func (x GroupHandleType) Number() protoreflect.EnumNumber
func (GroupHandleType) String ¶
func (x GroupHandleType) String() string
func (GroupHandleType) Type ¶
func (GroupHandleType) Type() protoreflect.EnumType
type GroupPackageData ¶
type GroupPackageData struct { Type GroupHandleType `protobuf:"varint,1,opt,name=type,proto3,enum=GroupHandleType" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GroupPackageData) Descriptor
deprecated
func (*GroupPackageData) Descriptor() ([]byte, []int)
Deprecated: Use GroupPackageData.ProtoReflect.Descriptor instead.
func (*GroupPackageData) GetData ¶
func (x *GroupPackageData) GetData() []byte
func (*GroupPackageData) GetType ¶
func (x *GroupPackageData) GetType() GroupHandleType
func (*GroupPackageData) ProtoMessage ¶
func (*GroupPackageData) ProtoMessage()
func (*GroupPackageData) ProtoReflect ¶
func (x *GroupPackageData) ProtoReflect() protoreflect.Message
func (*GroupPackageData) Reset ¶
func (x *GroupPackageData) Reset()
func (*GroupPackageData) String ¶
func (x *GroupPackageData) String() string
type Image ¶
type Image struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 图片id Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` // 图片宽度 Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // 图片长度 Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // 图片URL ThumbnailUrl string `protobuf:"bytes,5,opt,name=thumbnail_url,json=thumbnailUrl,proto3" json:"thumbnail_url,omitempty"` // 图片缩略图url // contains filtered or unexported fields }
图片消息
func (*Image) Descriptor
deprecated
func (*Image) GetThumbnailUrl ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type Input ¶
type Input struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` //版本 Type PackageType `protobuf:"varint,2,opt,name=type,proto3,enum=PackageType" json:"type,omitempty"` // 包的类型 RequestId int64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // 请求id Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // 数据 // contains filtered or unexported fields }
上行数据
func (*Input) Descriptor
deprecated
func (*Input) GetRequestId ¶
func (*Input) GetType ¶
func (x *Input) GetType() PackageType
func (*Input) GetVersion ¶
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) ProtoReflect ¶
func (x *Input) ProtoReflect() protoreflect.Message
type Location ¶
type Location struct { Desc string `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"` // 描述 Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"` // 经度 Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"` // 纬度 // contains filtered or unexported fields }
地理位置消息
func (*Location) Descriptor
deprecated
func (*Location) GetLatitude ¶
func (*Location) GetLongitude ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type LogicClient ¶
type LogicClient interface { // todo 添加好友状态 Call(ctx context.Context, in *Input, opts ...grpc.CallOption) (*Output, error) }
LogicClient is the client API for Logic service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLogicClient ¶
func NewLogicClient(cc grpc.ClientConnInterface) LogicClient
type LogicServer ¶
type LogicServer interface { // todo 添加好友状态 Call(context.Context, *Input) (*Output, error) // contains filtered or unexported methods }
LogicServer is the server API for Logic service. All implementations must embed UnimplementedLogicServer for forward compatibility
type Message ¶
type Message struct { Sender *Sender `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // 发送者 ReceiverType ReceiverType `protobuf:"varint,2,opt,name=receiver_type,json=receiverType,proto3,enum=ReceiverType" json:"receiver_type,omitempty"` // 接收者类型,1:user;2:group ReceiverId int64 `protobuf:"varint,3,opt,name=receiver_id,json=receiverId,proto3" json:"receiver_id,omitempty"` // 用户id或者群组id ToUserIds []int64 `protobuf:"varint,4,rep,packed,name=to_user_ids,json=toUserIds,proto3" json:"to_user_ids,omitempty"` // 需要@的用户id列表 MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=MessageType" json:"message_type,omitempty"` // 消息类型 MessageContent []byte `protobuf:"bytes,6,opt,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"` // 消息内容 Seq int64 `protobuf:"varint,7,opt,name=seq,proto3" json:"seq,omitempty"` // 用户消息发送序列号 SendTime int64 `protobuf:"varint,8,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` // 消息发送时间戳,精确到毫秒 Status MessageStatus `protobuf:"varint,9,opt,name=status,proto3,enum=MessageStatus" json:"status,omitempty"` // 消息状态 // contains filtered or unexported fields }
单条消息投递内容(估算大约100个字节),todo 通知栏提醒
func (*Message) Descriptor
deprecated
func (*Message) GetMessageContent ¶
func (*Message) GetMessageType ¶
func (x *Message) GetMessageType() MessageType
func (*Message) GetReceiverId ¶
func (*Message) GetReceiverType ¶
func (x *Message) GetReceiverType() ReceiverType
func (*Message) GetSendTime ¶
func (*Message) GetStatus ¶
func (x *Message) GetStatus() MessageStatus
func (*Message) GetToUserIds ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageACK ¶
type MessageACK struct { DeviceAck int64 `protobuf:"varint,2,opt,name=device_ack,json=deviceAck,proto3" json:"device_ack,omitempty"` // 设备收到消息的确认号 ReceiveTime int64 `protobuf:"varint,3,opt,name=receive_time,json=receiveTime,proto3" json:"receive_time,omitempty"` // 消息接收时间戳,精确到毫秒 // contains filtered or unexported fields }
投递消息回执
func (*MessageACK) Descriptor
deprecated
func (*MessageACK) Descriptor() ([]byte, []int)
Deprecated: Use MessageACK.ProtoReflect.Descriptor instead.
func (*MessageACK) GetDeviceAck ¶
func (x *MessageACK) GetDeviceAck() int64
func (*MessageACK) GetReceiveTime ¶
func (x *MessageACK) GetReceiveTime() int64
func (*MessageACK) ProtoMessage ¶
func (*MessageACK) ProtoMessage()
func (*MessageACK) ProtoReflect ¶
func (x *MessageACK) ProtoReflect() protoreflect.Message
func (*MessageACK) Reset ¶
func (x *MessageACK) Reset()
func (*MessageACK) String ¶
func (x *MessageACK) String() string
type MessageHandleType ¶
type MessageHandleType int32
消息
const ( MessageHandleType_Message_UNKNOWN_HANDLE MessageHandleType = 0 //未知 MessageHandleType_Message_SEND MessageHandleType = 1 // 发送消息(类) MessageHandleType_Message_SYNC MessageHandleType = 2 // 消息同步触发 MessageHandleType_Message_ACK MessageHandleType = 3 // 投递消息回执 )
func (MessageHandleType) Descriptor ¶
func (MessageHandleType) Descriptor() protoreflect.EnumDescriptor
func (MessageHandleType) Enum ¶
func (x MessageHandleType) Enum() *MessageHandleType
func (MessageHandleType) EnumDescriptor
deprecated
func (MessageHandleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageHandleType.Descriptor instead.
func (MessageHandleType) Number ¶
func (x MessageHandleType) Number() protoreflect.EnumNumber
func (MessageHandleType) String ¶
func (x MessageHandleType) String() string
func (MessageHandleType) Type ¶
func (MessageHandleType) Type() protoreflect.EnumType
type MessagePackageData ¶
type MessagePackageData struct { Type MessageHandleType `protobuf:"varint,1,opt,name=type,proto3,enum=MessageHandleType" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*MessagePackageData) Descriptor
deprecated
func (*MessagePackageData) Descriptor() ([]byte, []int)
Deprecated: Use MessagePackageData.ProtoReflect.Descriptor instead.
func (*MessagePackageData) GetData ¶
func (x *MessagePackageData) GetData() []byte
func (*MessagePackageData) GetType ¶
func (x *MessagePackageData) GetType() MessageHandleType
func (*MessagePackageData) ProtoMessage ¶
func (*MessagePackageData) ProtoMessage()
func (*MessagePackageData) ProtoReflect ¶
func (x *MessagePackageData) ProtoReflect() protoreflect.Message
func (*MessagePackageData) Reset ¶
func (x *MessagePackageData) Reset()
func (*MessagePackageData) String ¶
func (x *MessagePackageData) String() string
type MessageStatus ¶
type MessageStatus int32
const ( MessageStatus_MS_UNKNOWN MessageStatus = 0 // 未知的 MessageStatus_MS_NORMAL MessageStatus = 1 // 正常的 MessageStatus_MS_RECALL MessageStatus = 2 // 撤回 )
func (MessageStatus) Descriptor ¶
func (MessageStatus) Descriptor() protoreflect.EnumDescriptor
func (MessageStatus) Enum ¶
func (x MessageStatus) Enum() *MessageStatus
func (MessageStatus) EnumDescriptor
deprecated
func (MessageStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageStatus.Descriptor instead.
func (MessageStatus) Number ¶
func (x MessageStatus) Number() protoreflect.EnumNumber
func (MessageStatus) String ¶
func (x MessageStatus) String() string
func (MessageStatus) Type ¶
func (MessageStatus) Type() protoreflect.EnumType
type MessageType ¶
type MessageType int32
消息类型
const ( MessageType_MT_UNKNOWN MessageType = 0 // 未知 MessageType_MT_TEXT MessageType = 1 // 文本 MessageType_MT_FACE MessageType = 2 // 表情 MessageType_MT_VOICE MessageType = 3 // 语音消息 MessageType_MT_IMAGE MessageType = 4 // 图片 MessageType_MT_FILE MessageType = 5 // 文件 MessageType_MT_LOCATION MessageType = 6 // 地理位置 MessageType_MT_COMMAND MessageType = 7 // 指令推送 MessageType_MT_LINK MessageType = 8 // 链接URL MessageType_MT_CUSTOM MessageType = 9 // 自定义 )
func (MessageType) Descriptor ¶
func (MessageType) Descriptor() protoreflect.EnumDescriptor
func (MessageType) Enum ¶
func (x MessageType) Enum() *MessageType
func (MessageType) EnumDescriptor
deprecated
func (MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageType.Descriptor instead.
func (MessageType) Number ¶
func (x MessageType) Number() protoreflect.EnumNumber
func (MessageType) String ¶
func (x MessageType) String() string
func (MessageType) Type ¶
func (MessageType) Type() protoreflect.EnumType
type NotifyHandleType ¶
type NotifyHandleType int32
消息通知
const ( NotifyHandleType_NOTIFY_UNKNOWN_HANDLE NotifyHandleType = 0 //未知 NotifyHandleType_NOTIFY_USER_INFORMATION NotifyHandleType = 1 //个人消息通知 NotifyHandleType_NOTIFY_GROUP_INFORMATION NotifyHandleType = 2 //群消息通知 NotifyHandleType_NOTIFY_ONLINE NotifyHandleType = 3 //上线通知 NotifyHandleType_NOTIFY_OFFLINE NotifyHandleType = 4 // 下线通知 NotifyHandleType_NOTIFY_CHANNEL_SUBSCRIPTION NotifyHandleType = 5 // 订阅频道通知 NotifyHandleType_NOTIFY_ADD_GROUP NotifyHandleType = 6 // 加入群通知 NotifyHandleType_NOTIFY_ROOM_SUBSCRIPTION NotifyHandleType = 8 // 订阅房间通知 NotifyHandleType_NOTIFY_SYSTEM NotifyHandleType = 9 // 系统通知 NotifyHandleType_NOTIFY_WITHDRAW_INFORMATION NotifyHandleType = 10 // 撤回消息通知 NotifyHandleType_NOTIFY_SPECIAL_CARE NotifyHandleType = 11 // 特别关注通知 )
func (NotifyHandleType) Descriptor ¶
func (NotifyHandleType) Descriptor() protoreflect.EnumDescriptor
func (NotifyHandleType) Enum ¶
func (x NotifyHandleType) Enum() *NotifyHandleType
func (NotifyHandleType) EnumDescriptor
deprecated
func (NotifyHandleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NotifyHandleType.Descriptor instead.
func (NotifyHandleType) Number ¶
func (x NotifyHandleType) Number() protoreflect.EnumNumber
func (NotifyHandleType) String ¶
func (x NotifyHandleType) String() string
func (NotifyHandleType) Type ¶
func (NotifyHandleType) Type() protoreflect.EnumType
type NotifyPackageData ¶
type NotifyPackageData struct { Type NotifyHandleType `protobuf:"varint,1,opt,name=type,proto3,enum=NotifyHandleType" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*NotifyPackageData) Descriptor
deprecated
func (*NotifyPackageData) Descriptor() ([]byte, []int)
Deprecated: Use NotifyPackageData.ProtoReflect.Descriptor instead.
func (*NotifyPackageData) GetData ¶
func (x *NotifyPackageData) GetData() []byte
func (*NotifyPackageData) GetType ¶
func (x *NotifyPackageData) GetType() NotifyHandleType
func (*NotifyPackageData) ProtoMessage ¶
func (*NotifyPackageData) ProtoMessage()
func (*NotifyPackageData) ProtoReflect ¶
func (x *NotifyPackageData) ProtoReflect() protoreflect.Message
func (*NotifyPackageData) Reset ¶
func (x *NotifyPackageData) Reset()
func (*NotifyPackageData) String ¶
func (x *NotifyPackageData) String() string
type Output ¶
type Output struct { Type PackageType `protobuf:"varint,1,opt,name=type,proto3,enum=PackageType" json:"type,omitempty"` // 包的类型 RequestId int64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // 请求id Code int32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` // 错误码 Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` // 错误信息 Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // 数据 // contains filtered or unexported fields }
下行数据
func (*Output) Descriptor
deprecated
func (*Output) GetMessage ¶
func (*Output) GetRequestId ¶
func (*Output) GetType ¶
func (x *Output) GetType() PackageType
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) ProtoReflect ¶
func (x *Output) ProtoReflect() protoreflect.Message
type PackageType ¶
type PackageType int32
const ( PackageType_PT_UNKNOWN PackageType = 0 // 未知 PackageType_PT_SIGN_IN PackageType = 1 // 设备登录请求 PackageType_PT_HEARTBEAT PackageType = 2 // 心跳 PackageType_PT_MESSAGE PackageType = 3 // 消息(类) PackageType_PT_GROUP PackageType = 4 //群组操作 PackageType_PT_FRIEND PackageType = 5 //好友操作 PackageType_PT_ROOM PackageType = 6 //房间操作 PackageType_PT_CHANNEL PackageType = 7 //频道操作 PackageType_PT_MINE PackageType = 8 //我的操作 PackageType_PT_SEARCH PackageType = 9 //搜索操作(好友,群组...) PackageType_PT_NOTIFY PackageType = 10 //通知 )
func (PackageType) Descriptor ¶
func (PackageType) Descriptor() protoreflect.EnumDescriptor
func (PackageType) Enum ¶
func (x PackageType) Enum() *PackageType
func (PackageType) EnumDescriptor
deprecated
func (PackageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PackageType.Descriptor instead.
func (PackageType) Number ¶
func (x PackageType) Number() protoreflect.EnumNumber
func (PackageType) String ¶
func (x PackageType) String() string
func (PackageType) Type ¶
func (PackageType) Type() protoreflect.EnumType
type ReceiverType ¶
type ReceiverType int32
const ( ReceiverType_RT_UNKNOWN ReceiverType = 0 // 未知 ReceiverType_RT_USER ReceiverType = 1 // 用户 ReceiverType_RT_GROUP ReceiverType = 2 // 群组 ReceiverType_RT_ROOM ReceiverType = 3 // 房间 )
func (ReceiverType) Descriptor ¶
func (ReceiverType) Descriptor() protoreflect.EnumDescriptor
func (ReceiverType) Enum ¶
func (x ReceiverType) Enum() *ReceiverType
func (ReceiverType) EnumDescriptor
deprecated
func (ReceiverType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReceiverType.Descriptor instead.
func (ReceiverType) Number ¶
func (x ReceiverType) Number() protoreflect.EnumNumber
func (ReceiverType) String ¶
func (x ReceiverType) String() string
func (ReceiverType) Type ¶
func (ReceiverType) Type() protoreflect.EnumType
type RoomHandleType ¶
type RoomHandleType int32
房间操作
const ( RoomHandleType_ROOM_UNKNOWN_HANDLE RoomHandleType = 0 //未知 RoomHandleType_ROOM_MODIFICATION_NAME RoomHandleType = 1 //修改房间名称 RoomHandleType_ROOM_MODIFICATION_AVATAR RoomHandleType = 2 //修改房间头像 RoomHandleType_ROOM_SHARE RoomHandleType = 3 //分享房间 RoomHandleType_ROOM_REPORT RoomHandleType = 4 //举报房间 RoomHandleType_ROOM_CLOSURE RoomHandleType = 5 //关闭房间 RoomHandleType_ROOM_FOUND RoomHandleType = 6 //创建房间 RoomHandleType_ROOM_SEND_BARRAGE RoomHandleType = 7 //发送弹幕 RoomHandleType_ROOM_SUBSCRIPTION RoomHandleType = 8 //订阅房间 )
func (RoomHandleType) Descriptor ¶
func (RoomHandleType) Descriptor() protoreflect.EnumDescriptor
func (RoomHandleType) Enum ¶
func (x RoomHandleType) Enum() *RoomHandleType
func (RoomHandleType) EnumDescriptor
deprecated
func (RoomHandleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RoomHandleType.Descriptor instead.
func (RoomHandleType) Number ¶
func (x RoomHandleType) Number() protoreflect.EnumNumber
func (RoomHandleType) String ¶
func (x RoomHandleType) String() string
func (RoomHandleType) Type ¶
func (RoomHandleType) Type() protoreflect.EnumType
type RoomPackageData ¶
type RoomPackageData struct { Type RoomHandleType `protobuf:"varint,1,opt,name=type,proto3,enum=RoomHandleType" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*RoomPackageData) Descriptor
deprecated
func (*RoomPackageData) Descriptor() ([]byte, []int)
Deprecated: Use RoomPackageData.ProtoReflect.Descriptor instead.
func (*RoomPackageData) GetData ¶
func (x *RoomPackageData) GetData() []byte
func (*RoomPackageData) GetType ¶
func (x *RoomPackageData) GetType() RoomHandleType
func (*RoomPackageData) ProtoMessage ¶
func (*RoomPackageData) ProtoMessage()
func (*RoomPackageData) ProtoReflect ¶
func (x *RoomPackageData) ProtoReflect() protoreflect.Message
func (*RoomPackageData) Reset ¶
func (x *RoomPackageData) Reset()
func (*RoomPackageData) String ¶
func (x *RoomPackageData) String() string
type SearchFriendReq ¶
type SearchFriendReq struct {
// contains filtered or unexported fields
}
查找好友信息请求参数
func (*SearchFriendReq) Descriptor
deprecated
func (*SearchFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use SearchFriendReq.ProtoReflect.Descriptor instead.
func (*SearchFriendReq) ProtoMessage ¶
func (*SearchFriendReq) ProtoMessage()
func (*SearchFriendReq) ProtoReflect ¶
func (x *SearchFriendReq) ProtoReflect() protoreflect.Message
func (*SearchFriendReq) Reset ¶
func (x *SearchFriendReq) Reset()
func (*SearchFriendReq) String ¶
func (x *SearchFriendReq) String() string
type SearchHandleType ¶
type SearchHandleType int32
搜索操作
const ( SearchHandleType_SEARCH_UNKNOWN_HANDLE SearchHandleType = 0 //未知 SearchHandleType_SEARCH_FRIEND SearchHandleType = 1 //好友搜索 SearchHandleType_SEARCH_ROOM SearchHandleType = 2 //频道搜索 SearchHandleType_SEARCH_CHANNEL SearchHandleType = 3 //房间搜索 SearchHandleType_SEARCH_GROUP SearchHandleType = 4 //群搜索 SearchHandleType_SEARCH_CONTENT SearchHandleType = 5 //聊天内容搜索 )
func (SearchHandleType) Descriptor ¶
func (SearchHandleType) Descriptor() protoreflect.EnumDescriptor
func (SearchHandleType) Enum ¶
func (x SearchHandleType) Enum() *SearchHandleType
func (SearchHandleType) EnumDescriptor
deprecated
func (SearchHandleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchHandleType.Descriptor instead.
func (SearchHandleType) Number ¶
func (x SearchHandleType) Number() protoreflect.EnumNumber
func (SearchHandleType) String ¶
func (x SearchHandleType) String() string
func (SearchHandleType) Type ¶
func (SearchHandleType) Type() protoreflect.EnumType
type SearchPackageData ¶
type SearchPackageData struct { Type SearchHandleType `protobuf:"varint,1,opt,name=type,proto3,enum=SearchHandleType" json:"type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SearchPackageData) Descriptor
deprecated
func (*SearchPackageData) Descriptor() ([]byte, []int)
Deprecated: Use SearchPackageData.ProtoReflect.Descriptor instead.
func (*SearchPackageData) GetData ¶
func (x *SearchPackageData) GetData() []byte
func (*SearchPackageData) GetType ¶
func (x *SearchPackageData) GetType() SearchHandleType
func (*SearchPackageData) ProtoMessage ¶
func (*SearchPackageData) ProtoMessage()
func (*SearchPackageData) ProtoReflect ¶
func (x *SearchPackageData) ProtoReflect() protoreflect.Message
func (*SearchPackageData) Reset ¶
func (x *SearchPackageData) Reset()
func (*SearchPackageData) String ¶
func (x *SearchPackageData) String() string
type Sender ¶
type Sender struct { SenderType SenderType `protobuf:"varint,1,opt,name=sender_type,json=senderType,proto3,enum=SenderType" json:"sender_type,omitempty"` // 发送者类型,1:系统,2:用户,3:第三方业务系统 SenderId int64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` // 发送者id AvatarUrl string `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 昵称 Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` // 头像 Extra string `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"` // 扩展字段 // contains filtered or unexported fields }
func (*Sender) Descriptor
deprecated
func (*Sender) GetAvatarUrl ¶
func (*Sender) GetNickname ¶
func (*Sender) GetSenderId ¶
func (*Sender) GetSenderType ¶
func (x *Sender) GetSenderType() SenderType
func (*Sender) ProtoMessage ¶
func (*Sender) ProtoMessage()
func (*Sender) ProtoReflect ¶
func (x *Sender) ProtoReflect() protoreflect.Message
type SenderType ¶
type SenderType int32
const ( SenderType_ST_UNKNOWN SenderType = 0 // 未知的 SenderType_ST_SYSTEM SenderType = 1 // IM系统 SenderType_ST_USER SenderType = 2 // 用户 SenderType_ST_BUSINESS SenderType = 3 // 业务方 )
func (SenderType) Descriptor ¶
func (SenderType) Descriptor() protoreflect.EnumDescriptor
func (SenderType) Enum ¶
func (x SenderType) Enum() *SenderType
func (SenderType) EnumDescriptor
deprecated
func (SenderType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SenderType.Descriptor instead.
func (SenderType) Number ¶
func (x SenderType) Number() protoreflect.EnumNumber
func (SenderType) String ¶
func (x SenderType) String() string
func (SenderType) Type ¶
func (SenderType) Type() protoreflect.EnumType
type SignInInput ¶
type SignInInput struct { DeviceId int64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // 秘钥 // contains filtered or unexported fields }
PackageType=1
func (*SignInInput) Descriptor
deprecated
func (*SignInInput) Descriptor() ([]byte, []int)
Deprecated: Use SignInInput.ProtoReflect.Descriptor instead.
func (*SignInInput) GetDeviceId ¶
func (x *SignInInput) GetDeviceId() int64
func (*SignInInput) GetToken ¶
func (x *SignInInput) GetToken() string
func (*SignInInput) GetUserId ¶
func (x *SignInInput) GetUserId() int64
func (*SignInInput) ProtoMessage ¶
func (*SignInInput) ProtoMessage()
func (*SignInInput) ProtoReflect ¶
func (x *SignInInput) ProtoReflect() protoreflect.Message
func (*SignInInput) Reset ¶
func (x *SignInInput) Reset()
func (*SignInInput) String ¶
func (x *SignInInput) String() string
type SyncInput ¶
type SyncInput struct { Seq int64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` // 客户端已经同步的序列号 // contains filtered or unexported fields }
消息同步请求
func (*SyncInput) Descriptor
deprecated
func (*SyncInput) ProtoMessage ¶
func (*SyncInput) ProtoMessage()
func (*SyncInput) ProtoReflect ¶
func (x *SyncInput) ProtoReflect() protoreflect.Message
type SyncOutput ¶
type SyncOutput struct { Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // 消息列表 HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` // 是否有更多数据 // contains filtered or unexported fields }
消息同步响应
func (*SyncOutput) Descriptor
deprecated
func (*SyncOutput) Descriptor() ([]byte, []int)
Deprecated: Use SyncOutput.ProtoReflect.Descriptor instead.
func (*SyncOutput) GetHasMore ¶
func (x *SyncOutput) GetHasMore() bool
func (*SyncOutput) GetMessages ¶
func (x *SyncOutput) GetMessages() []*Message
func (*SyncOutput) ProtoMessage ¶
func (*SyncOutput) ProtoMessage()
func (*SyncOutput) ProtoReflect ¶
func (x *SyncOutput) ProtoReflect() protoreflect.Message
func (*SyncOutput) Reset ¶
func (x *SyncOutput) Reset()
func (*SyncOutput) String ¶
func (x *SyncOutput) String() string
type Text ¶
type Text struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // 文本消息内容 // contains filtered or unexported fields }
文本消息
func (*Text) Descriptor
deprecated
func (*Text) ProtoMessage ¶
func (*Text) ProtoMessage()
func (*Text) ProtoReflect ¶
func (x *Text) ProtoReflect() protoreflect.Message
type UnimplementedLogicServer ¶
type UnimplementedLogicServer struct { }
UnimplementedLogicServer must be embedded to have forward compatible implementations.
type UnsafeLogicServer ¶
type UnsafeLogicServer interface {
// contains filtered or unexported methods
}
UnsafeLogicServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogicServer will result in compilation errors.
type UpdateFriendReq ¶
type UpdateFriendReq struct {
// contains filtered or unexported fields
}
修改好友信息请求参数
func (*UpdateFriendReq) Descriptor
deprecated
func (*UpdateFriendReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFriendReq.ProtoReflect.Descriptor instead.
func (*UpdateFriendReq) ProtoMessage ¶
func (*UpdateFriendReq) ProtoMessage()
func (*UpdateFriendReq) ProtoReflect ¶
func (x *UpdateFriendReq) ProtoReflect() protoreflect.Message
func (*UpdateFriendReq) Reset ¶
func (x *UpdateFriendReq) Reset()
func (*UpdateFriendReq) String ¶
func (x *UpdateFriendReq) String() string
type UserHandle ¶
type UserHandle struct { Type UserHandleType `protobuf:"varint,1,opt,name=type,proto3,enum=UserHandleType" json:"type,omitempty"` //操作类型 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` //数据 // contains filtered or unexported fields }
个人操作(上行data数据)
func (*UserHandle) Descriptor
deprecated
func (*UserHandle) Descriptor() ([]byte, []int)
Deprecated: Use UserHandle.ProtoReflect.Descriptor instead.
func (*UserHandle) GetData ¶
func (x *UserHandle) GetData() []byte
func (*UserHandle) GetType ¶
func (x *UserHandle) GetType() UserHandleType
func (*UserHandle) ProtoMessage ¶
func (*UserHandle) ProtoMessage()
func (*UserHandle) ProtoReflect ¶
func (x *UserHandle) ProtoReflect() protoreflect.Message
func (*UserHandle) Reset ¶
func (x *UserHandle) Reset()
func (*UserHandle) String ¶
func (x *UserHandle) String() string
type UserHandleType ¶
type UserHandleType int32
个人操作类型枚举
const ( UserHandleType_UNKNOWN_USER_HANDLE UserHandleType = 0 //未知 UserHandleType_UPDATE_USER UserHandleType = 1 //修改个人信息 UserHandleType_SEARCH_USER UserHandleType = 2 //查看个人信息 )
func (UserHandleType) Descriptor ¶
func (UserHandleType) Descriptor() protoreflect.EnumDescriptor
func (UserHandleType) Enum ¶
func (x UserHandleType) Enum() *UserHandleType
func (UserHandleType) EnumDescriptor
deprecated
func (UserHandleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserHandleType.Descriptor instead.
func (UserHandleType) Number ¶
func (x UserHandleType) Number() protoreflect.EnumNumber
func (UserHandleType) String ¶
func (x UserHandleType) String() string
func (UserHandleType) Type ¶
func (UserHandleType) Type() protoreflect.EnumType
type UserUpdateReq ¶
type UserUpdateReq struct { Name *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` //姓名 IdCard *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=id_card,json=idCard,proto3" json:"id_card,omitempty"` //身份证号码 Password *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` //密码 Phone *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` //电话号码 Nickname *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` //昵称 Sex *wrapperspb.Int32Value `protobuf:"bytes,6,opt,name=sex,proto3" json:"sex,omitempty"` //性别 AvatarUrl *wrapperspb.StringValue `protobuf:"bytes,7,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` //头像地址 Introduce *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=introduce,proto3" json:"introduce,omitempty"` //个人介绍 SnapCall *wrapperspb.BoolValue `protobuf:"bytes,9,opt,name=snap_call,json=snapCall,proto3" json:"snap_call,omitempty"` //是否开启临时会话 AddFriendType *wrapperspb.Int32Value `protobuf:"bytes,10,opt,name=add_friend_type,json=addFriendType,proto3" json:"add_friend_type,omitempty"` //添加好友方式 FriendPassProblem *wrapperspb.StringValue `protobuf:"bytes,11,opt,name=friend_pass_problem,json=friendPassProblem,proto3" json:"friend_pass_problem,omitempty"` //通过问题通过好友验证问题 FriendPassAnswer *wrapperspb.StringValue `protobuf:"bytes,12,opt,name=friend_pass_answer,json=friendPassAnswer,proto3" json:"friend_pass_answer,omitempty"` //通过问题通过好友验证答案 // contains filtered or unexported fields }
修改个人信息请求参数(上行个人操作data数据)
func (*UserUpdateReq) Descriptor
deprecated
func (*UserUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use UserUpdateReq.ProtoReflect.Descriptor instead.
func (*UserUpdateReq) GetAddFriendType ¶
func (x *UserUpdateReq) GetAddFriendType() *wrapperspb.Int32Value
func (*UserUpdateReq) GetAvatarUrl ¶
func (x *UserUpdateReq) GetAvatarUrl() *wrapperspb.StringValue
func (*UserUpdateReq) GetFriendPassAnswer ¶
func (x *UserUpdateReq) GetFriendPassAnswer() *wrapperspb.StringValue
func (*UserUpdateReq) GetFriendPassProblem ¶
func (x *UserUpdateReq) GetFriendPassProblem() *wrapperspb.StringValue
func (*UserUpdateReq) GetIdCard ¶
func (x *UserUpdateReq) GetIdCard() *wrapperspb.StringValue
func (*UserUpdateReq) GetIntroduce ¶
func (x *UserUpdateReq) GetIntroduce() *wrapperspb.StringValue
func (*UserUpdateReq) GetName ¶
func (x *UserUpdateReq) GetName() *wrapperspb.StringValue
func (*UserUpdateReq) GetNickname ¶
func (x *UserUpdateReq) GetNickname() *wrapperspb.StringValue
func (*UserUpdateReq) GetPassword ¶
func (x *UserUpdateReq) GetPassword() *wrapperspb.StringValue
func (*UserUpdateReq) GetPhone ¶
func (x *UserUpdateReq) GetPhone() *wrapperspb.StringValue
func (*UserUpdateReq) GetSex ¶
func (x *UserUpdateReq) GetSex() *wrapperspb.Int32Value
func (*UserUpdateReq) GetSnapCall ¶
func (x *UserUpdateReq) GetSnapCall() *wrapperspb.BoolValue
func (*UserUpdateReq) ProtoMessage ¶
func (*UserUpdateReq) ProtoMessage()
func (*UserUpdateReq) ProtoReflect ¶
func (x *UserUpdateReq) ProtoReflect() protoreflect.Message
func (*UserUpdateReq) Reset ¶
func (x *UserUpdateReq) Reset()
func (*UserUpdateReq) String ¶
func (x *UserUpdateReq) String() string
type Voice ¶
type Voice struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 语音包id Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 语音包大小 Duration int32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"` // 语音时长 Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // 语音文件URL // contains filtered or unexported fields }
语音消息
func (*Voice) Descriptor
deprecated
func (*Voice) GetDuration ¶
func (*Voice) ProtoMessage ¶
func (*Voice) ProtoMessage()
func (*Voice) ProtoReflect ¶
func (x *Voice) ProtoReflect() protoreflect.Message