Documentation ¶
Index ¶
- Variables
- type BaseResp
- func (*BaseResp) Descriptor() ([]byte, []int)deprecated
- func (x *BaseResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *BaseResp) FastWrite(buf []byte) (offset int)
- func (x *BaseResp) GetServiceTime() int64
- func (x *BaseResp) GetStatusCode() int32
- func (x *BaseResp) GetStatusMessage() string
- func (*BaseResp) ProtoMessage()
- func (x *BaseResp) ProtoReflect() protoreflect.Message
- func (x *BaseResp) Reset()
- func (x *BaseResp) Size() (n int)
- func (x *BaseResp) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Message) FastWrite(buf []byte) (offset int)
- func (x *Message) GetContent() string
- func (x *Message) GetCreateTime() int64
- func (x *Message) GetFromUserId() int64
- func (x *Message) GetId() int64
- func (x *Message) GetToUserId() int64
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) Size() (n int)
- func (x *Message) String() string
- type MessageActionRequest
- func (*MessageActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageActionRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *MessageActionRequest) FastWrite(buf []byte) (offset int)
- func (x *MessageActionRequest) GetActionType() int32
- func (x *MessageActionRequest) GetContent() string
- func (x *MessageActionRequest) GetToUserId() int64
- func (x *MessageActionRequest) GetToken() string
- func (*MessageActionRequest) ProtoMessage()
- func (x *MessageActionRequest) ProtoReflect() protoreflect.Message
- func (x *MessageActionRequest) Reset()
- func (x *MessageActionRequest) Size() (n int)
- func (x *MessageActionRequest) String() string
- type MessageActionResponse
- func (*MessageActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageActionResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *MessageActionResponse) FastWrite(buf []byte) (offset int)
- func (x *MessageActionResponse) GetBaseResp() *BaseResp
- func (*MessageActionResponse) ProtoMessage()
- func (x *MessageActionResponse) ProtoReflect() protoreflect.Message
- func (x *MessageActionResponse) Reset()
- func (x *MessageActionResponse) Size() (n int)
- func (x *MessageActionResponse) String() string
- type MessageChatRequest
- func (*MessageChatRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageChatRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *MessageChatRequest) FastWrite(buf []byte) (offset int)
- func (x *MessageChatRequest) GetPreMsgTime() int64
- func (x *MessageChatRequest) GetToUserId() int64
- func (x *MessageChatRequest) GetToken() string
- func (*MessageChatRequest) ProtoMessage()
- func (x *MessageChatRequest) ProtoReflect() protoreflect.Message
- func (x *MessageChatRequest) Reset()
- func (x *MessageChatRequest) Size() (n int)
- func (x *MessageChatRequest) String() string
- type MessageChatResponse
- func (*MessageChatResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageChatResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *MessageChatResponse) FastWrite(buf []byte) (offset int)
- func (x *MessageChatResponse) GetBaseResp() *BaseResp
- func (x *MessageChatResponse) GetMessageList() []*Message
- func (*MessageChatResponse) ProtoMessage()
- func (x *MessageChatResponse) ProtoReflect() protoreflect.Message
- func (x *MessageChatResponse) Reset()
- func (x *MessageChatResponse) Size() (n int)
- func (x *MessageChatResponse) String() string
- type MessageService
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *User) FastWrite(buf []byte) (offset int)
- func (x *User) GetAvatar() string
- func (x *User) GetBackgroundImage() string
- func (x *User) GetFavoriteCount() int64
- func (x *User) GetFollowCount() int64
- func (x *User) GetFollowerCount() int64
- func (x *User) GetId() int64
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- func (x *User) GetSignature() string
- func (x *User) GetTotalFavorited() int64
- func (x *User) GetWorkCount() int64
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) Size() (n int)
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_idl_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BaseResp ¶
type BaseResp struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` //状态码 StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` //状态描述 ServiceTime int64 `protobuf:"varint,3,opt,name=service_time,json=serviceTime,proto3" json:"service_time,omitempty"` //服务时间 // contains filtered or unexported fields }
func (*BaseResp) Descriptor
deprecated
func (*BaseResp) GetServiceTime ¶
func (*BaseResp) GetStatusCode ¶
func (*BaseResp) GetStatusMessage ¶
func (*BaseResp) ProtoMessage ¶
func (*BaseResp) ProtoMessage()
func (*BaseResp) ProtoReflect ¶
func (x *BaseResp) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // 该消息接收者的id FromUserId int64 `protobuf:"varint,3,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"` // 该消息发送者的id Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 消息内容 CreateTime int64 `protobuf:"varint,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 消息创建时间 // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetContent ¶
func (*Message) GetCreateTime ¶
func (*Message) GetFromUserId ¶
func (*Message) GetToUserId ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageActionRequest ¶
type MessageActionRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权 token ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // 对方用户 id ActionType int32 `protobuf:"varint,3,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` // 1- 发送消息 Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 消息内容 // contains filtered or unexported fields }
func (*MessageActionRequest) Descriptor
deprecated
func (*MessageActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageActionRequest.ProtoReflect.Descriptor instead.
func (*MessageActionRequest) FastWrite ¶
func (x *MessageActionRequest) FastWrite(buf []byte) (offset int)
func (*MessageActionRequest) GetActionType ¶
func (x *MessageActionRequest) GetActionType() int32
func (*MessageActionRequest) GetContent ¶
func (x *MessageActionRequest) GetContent() string
func (*MessageActionRequest) GetToUserId ¶
func (x *MessageActionRequest) GetToUserId() int64
func (*MessageActionRequest) GetToken ¶
func (x *MessageActionRequest) GetToken() string
func (*MessageActionRequest) ProtoMessage ¶
func (*MessageActionRequest) ProtoMessage()
func (*MessageActionRequest) ProtoReflect ¶
func (x *MessageActionRequest) ProtoReflect() protoreflect.Message
func (*MessageActionRequest) Reset ¶
func (x *MessageActionRequest) Reset()
func (*MessageActionRequest) Size ¶
func (x *MessageActionRequest) Size() (n int)
func (*MessageActionRequest) String ¶
func (x *MessageActionRequest) String() string
type MessageActionResponse ¶
type MessageActionResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*MessageActionResponse) Descriptor
deprecated
func (*MessageActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageActionResponse.ProtoReflect.Descriptor instead.
func (*MessageActionResponse) FastWrite ¶
func (x *MessageActionResponse) FastWrite(buf []byte) (offset int)
func (*MessageActionResponse) GetBaseResp ¶
func (x *MessageActionResponse) GetBaseResp() *BaseResp
func (*MessageActionResponse) ProtoMessage ¶
func (*MessageActionResponse) ProtoMessage()
func (*MessageActionResponse) ProtoReflect ¶
func (x *MessageActionResponse) ProtoReflect() protoreflect.Message
func (*MessageActionResponse) Reset ¶
func (x *MessageActionResponse) Reset()
func (*MessageActionResponse) Size ¶
func (x *MessageActionResponse) Size() (n int)
func (*MessageActionResponse) String ¶
func (x *MessageActionResponse) String() string
type MessageChatRequest ¶
type MessageChatRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // 对方用户id PreMsgTime int64 `protobuf:"varint,3,opt,name=pre_msg_time,json=preMsgTime,proto3" json:"pre_msg_time,omitempty"` // 上次最新消息的时间 // contains filtered or unexported fields }
func (*MessageChatRequest) Descriptor
deprecated
func (*MessageChatRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageChatRequest.ProtoReflect.Descriptor instead.
func (*MessageChatRequest) FastWrite ¶
func (x *MessageChatRequest) FastWrite(buf []byte) (offset int)
func (*MessageChatRequest) GetPreMsgTime ¶
func (x *MessageChatRequest) GetPreMsgTime() int64
func (*MessageChatRequest) GetToUserId ¶
func (x *MessageChatRequest) GetToUserId() int64
func (*MessageChatRequest) GetToken ¶
func (x *MessageChatRequest) GetToken() string
func (*MessageChatRequest) ProtoMessage ¶
func (*MessageChatRequest) ProtoMessage()
func (*MessageChatRequest) ProtoReflect ¶
func (x *MessageChatRequest) ProtoReflect() protoreflect.Message
func (*MessageChatRequest) Reset ¶
func (x *MessageChatRequest) Reset()
func (*MessageChatRequest) Size ¶
func (x *MessageChatRequest) Size() (n int)
func (*MessageChatRequest) String ¶
func (x *MessageChatRequest) String() string
type MessageChatResponse ¶
type MessageChatResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` MessageList []*Message `protobuf:"bytes,2,rep,name=message_list,json=messageList,proto3" json:"message_list,omitempty"` // 消息列 // contains filtered or unexported fields }
func (*MessageChatResponse) Descriptor
deprecated
func (*MessageChatResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageChatResponse.ProtoReflect.Descriptor instead.
func (*MessageChatResponse) FastWrite ¶
func (x *MessageChatResponse) FastWrite(buf []byte) (offset int)
func (*MessageChatResponse) GetBaseResp ¶
func (x *MessageChatResponse) GetBaseResp() *BaseResp
func (*MessageChatResponse) GetMessageList ¶
func (x *MessageChatResponse) GetMessageList() []*Message
func (*MessageChatResponse) ProtoMessage ¶
func (*MessageChatResponse) ProtoMessage()
func (*MessageChatResponse) ProtoReflect ¶
func (x *MessageChatResponse) ProtoReflect() protoreflect.Message
func (*MessageChatResponse) Reset ¶
func (x *MessageChatResponse) Reset()
func (*MessageChatResponse) Size ¶
func (x *MessageChatResponse) Size() (n int)
func (*MessageChatResponse) String ¶
func (x *MessageChatResponse) String() string
type MessageService ¶
type MessageService interface { MessageAction(ctx context.Context, req *MessageActionRequest) (res *MessageActionResponse, err error) MessageChat(ctx context.Context, req *MessageChatRequest) (res *MessageChatResponse, err error) }
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //用户id Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //用户名称 FollowCount int64 `protobuf:"varint,3,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"` //关注总数 FollowerCount int64 `protobuf:"varint,4,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"` //粉丝总数 IsFollow bool `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty"` //true-已关注,false-未关注 Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` // 用户头像 BackgroundImage string `protobuf:"bytes,7,opt,name=background_image,json=backgroundImage,proto3" json:"background_image,omitempty"` // 用户个人页顶部大图 Signature string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` // 个人简介 TotalFavorited int64 `protobuf:"varint,9,opt,name=total_favorited,json=totalFavorited,proto3" json:"total_favorited,omitempty"` // 获赞数量 WorkCount int64 `protobuf:"varint,10,opt,name=work_count,json=workCount,proto3" json:"work_count,omitempty"` // 作品数量 FavoriteCount int64 `protobuf:"varint,11,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` // 点赞数量 // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetBackgroundImage ¶
func (*User) GetFavoriteCount ¶
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) GetSignature ¶
func (*User) GetTotalFavorited ¶
func (*User) GetWorkCount ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.