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 RPCCheckFollowReq
- func (*RPCCheckFollowReq) Descriptor() ([]byte, []int)deprecated
- func (x *RPCCheckFollowReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCCheckFollowReq) FastWrite(buf []byte) (offset int)
- func (x *RPCCheckFollowReq) GetFollowerId() int64
- func (x *RPCCheckFollowReq) GetToUserId() int64
- func (*RPCCheckFollowReq) ProtoMessage()
- func (x *RPCCheckFollowReq) ProtoReflect() protoreflect.Message
- func (x *RPCCheckFollowReq) Reset()
- func (x *RPCCheckFollowReq) Size() (n int)
- func (x *RPCCheckFollowReq) String() string
- type RPCCheckFollowResp
- func (*RPCCheckFollowResp) Descriptor() ([]byte, []int)deprecated
- func (x *RPCCheckFollowResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCCheckFollowResp) FastWrite(buf []byte) (offset int)
- func (x *RPCCheckFollowResp) GetBaseResp() *BaseResp
- func (x *RPCCheckFollowResp) GetIsFollow() bool
- func (*RPCCheckFollowResp) ProtoMessage()
- func (x *RPCCheckFollowResp) ProtoReflect() protoreflect.Message
- func (x *RPCCheckFollowResp) Reset()
- func (x *RPCCheckFollowResp) Size() (n int)
- func (x *RPCCheckFollowResp) String() string
- type RPCRelationActionReq
- func (*RPCRelationActionReq) Descriptor() ([]byte, []int)deprecated
- func (x *RPCRelationActionReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCRelationActionReq) FastWrite(buf []byte) (offset int)
- func (x *RPCRelationActionReq) GetActionType() int32
- func (x *RPCRelationActionReq) GetFollowerId() int64
- func (x *RPCRelationActionReq) GetToUserId() int64
- func (*RPCRelationActionReq) ProtoMessage()
- func (x *RPCRelationActionReq) ProtoReflect() protoreflect.Message
- func (x *RPCRelationActionReq) Reset()
- func (x *RPCRelationActionReq) Size() (n int)
- func (x *RPCRelationActionReq) String() string
- type RPCRelationActionResp
- func (*RPCRelationActionResp) Descriptor() ([]byte, []int)deprecated
- func (x *RPCRelationActionResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCRelationActionResp) FastWrite(buf []byte) (offset int)
- func (x *RPCRelationActionResp) GetBaseResp() *BaseResp
- func (*RPCRelationActionResp) ProtoMessage()
- func (x *RPCRelationActionResp) ProtoReflect() protoreflect.Message
- func (x *RPCRelationActionResp) Reset()
- func (x *RPCRelationActionResp) Size() (n int)
- func (x *RPCRelationActionResp) String() string
- type RPCRelationFollowListReq
- func (*RPCRelationFollowListReq) Descriptor() ([]byte, []int)deprecated
- func (x *RPCRelationFollowListReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCRelationFollowListReq) FastWrite(buf []byte) (offset int)
- func (x *RPCRelationFollowListReq) GetFollowerId() int64
- func (x *RPCRelationFollowListReq) GetUserId() int64
- func (*RPCRelationFollowListReq) ProtoMessage()
- func (x *RPCRelationFollowListReq) ProtoReflect() protoreflect.Message
- func (x *RPCRelationFollowListReq) Reset()
- func (x *RPCRelationFollowListReq) Size() (n int)
- func (x *RPCRelationFollowListReq) String() string
- type RPCRelationFollowListResp
- func (*RPCRelationFollowListResp) Descriptor() ([]byte, []int)deprecated
- func (x *RPCRelationFollowListResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCRelationFollowListResp) FastWrite(buf []byte) (offset int)
- func (x *RPCRelationFollowListResp) GetBaseResp() *BaseResp
- func (x *RPCRelationFollowListResp) GetFollowList() []*User
- func (*RPCRelationFollowListResp) ProtoMessage()
- func (x *RPCRelationFollowListResp) ProtoReflect() protoreflect.Message
- func (x *RPCRelationFollowListResp) Reset()
- func (x *RPCRelationFollowListResp) Size() (n int)
- func (x *RPCRelationFollowListResp) String() string
- type RPCRelationFollowerListReq
- func (*RPCRelationFollowerListReq) Descriptor() ([]byte, []int)deprecated
- func (x *RPCRelationFollowerListReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCRelationFollowerListReq) FastWrite(buf []byte) (offset int)
- func (x *RPCRelationFollowerListReq) GetToUserId() int64
- func (x *RPCRelationFollowerListReq) GetUserId() int64
- func (*RPCRelationFollowerListReq) ProtoMessage()
- func (x *RPCRelationFollowerListReq) ProtoReflect() protoreflect.Message
- func (x *RPCRelationFollowerListReq) Reset()
- func (x *RPCRelationFollowerListReq) Size() (n int)
- func (x *RPCRelationFollowerListReq) String() string
- type RPCRelationFollowerListResp
- func (*RPCRelationFollowerListResp) Descriptor() ([]byte, []int)deprecated
- func (x *RPCRelationFollowerListResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RPCRelationFollowerListResp) FastWrite(buf []byte) (offset int)
- func (x *RPCRelationFollowerListResp) GetBaseResp() *BaseResp
- func (x *RPCRelationFollowerListResp) GetFollowerList() []*User
- func (*RPCRelationFollowerListResp) ProtoMessage()
- func (x *RPCRelationFollowerListResp) ProtoReflect() protoreflect.Message
- func (x *RPCRelationFollowerListResp) Reset()
- func (x *RPCRelationFollowerListResp) Size() (n int)
- func (x *RPCRelationFollowerListResp) String() string
- type RelationService
- 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) GetFollowCount() int64
- func (x *User) GetFollowerCount() int64
- func (x *User) GetId() int64
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- 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_relation_rpc_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 RPCCheckFollowReq ¶
type RPCCheckFollowReq struct { FollowerId int64 `protobuf:"varint,1,opt,name=follower_id,json=followerId,proto3" json:"follower_id,omitempty"` //关注者id ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // contains filtered or unexported fields }
func (*RPCCheckFollowReq) Descriptor
deprecated
func (*RPCCheckFollowReq) Descriptor() ([]byte, []int)
Deprecated: Use RPCCheckFollowReq.ProtoReflect.Descriptor instead.
func (*RPCCheckFollowReq) FastWrite ¶
func (x *RPCCheckFollowReq) FastWrite(buf []byte) (offset int)
func (*RPCCheckFollowReq) GetFollowerId ¶
func (x *RPCCheckFollowReq) GetFollowerId() int64
func (*RPCCheckFollowReq) GetToUserId ¶
func (x *RPCCheckFollowReq) GetToUserId() int64
func (*RPCCheckFollowReq) ProtoMessage ¶
func (*RPCCheckFollowReq) ProtoMessage()
func (*RPCCheckFollowReq) ProtoReflect ¶
func (x *RPCCheckFollowReq) ProtoReflect() protoreflect.Message
func (*RPCCheckFollowReq) Reset ¶
func (x *RPCCheckFollowReq) Reset()
func (*RPCCheckFollowReq) Size ¶
func (x *RPCCheckFollowReq) Size() (n int)
func (*RPCCheckFollowReq) String ¶
func (x *RPCCheckFollowReq) String() string
type RPCCheckFollowResp ¶
type RPCCheckFollowResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` IsFollow bool `protobuf:"varint,2,opt,name=IsFollow,proto3" json:"IsFollow,omitempty"` // contains filtered or unexported fields }
func (*RPCCheckFollowResp) Descriptor
deprecated
func (*RPCCheckFollowResp) Descriptor() ([]byte, []int)
Deprecated: Use RPCCheckFollowResp.ProtoReflect.Descriptor instead.
func (*RPCCheckFollowResp) FastWrite ¶
func (x *RPCCheckFollowResp) FastWrite(buf []byte) (offset int)
func (*RPCCheckFollowResp) GetBaseResp ¶
func (x *RPCCheckFollowResp) GetBaseResp() *BaseResp
func (*RPCCheckFollowResp) GetIsFollow ¶
func (x *RPCCheckFollowResp) GetIsFollow() bool
func (*RPCCheckFollowResp) ProtoMessage ¶
func (*RPCCheckFollowResp) ProtoMessage()
func (*RPCCheckFollowResp) ProtoReflect ¶
func (x *RPCCheckFollowResp) ProtoReflect() protoreflect.Message
func (*RPCCheckFollowResp) Reset ¶
func (x *RPCCheckFollowResp) Reset()
func (*RPCCheckFollowResp) Size ¶
func (x *RPCCheckFollowResp) Size() (n int)
func (*RPCCheckFollowResp) String ¶
func (x *RPCCheckFollowResp) String() string
type RPCRelationActionReq ¶
type RPCRelationActionReq struct { ToUserId int64 `protobuf:"varint,1,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` FollowerId int64 `protobuf:"varint,2,opt,name=follower_id,json=followerId,proto3" json:"follower_id,omitempty"` ActionType int32 `protobuf:"varint,3,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` // contains filtered or unexported fields }
func (*RPCRelationActionReq) Descriptor
deprecated
func (*RPCRelationActionReq) Descriptor() ([]byte, []int)
Deprecated: Use RPCRelationActionReq.ProtoReflect.Descriptor instead.
func (*RPCRelationActionReq) FastWrite ¶
func (x *RPCRelationActionReq) FastWrite(buf []byte) (offset int)
func (*RPCRelationActionReq) GetActionType ¶
func (x *RPCRelationActionReq) GetActionType() int32
func (*RPCRelationActionReq) GetFollowerId ¶
func (x *RPCRelationActionReq) GetFollowerId() int64
func (*RPCRelationActionReq) GetToUserId ¶
func (x *RPCRelationActionReq) GetToUserId() int64
func (*RPCRelationActionReq) ProtoMessage ¶
func (*RPCRelationActionReq) ProtoMessage()
func (*RPCRelationActionReq) ProtoReflect ¶
func (x *RPCRelationActionReq) ProtoReflect() protoreflect.Message
func (*RPCRelationActionReq) Reset ¶
func (x *RPCRelationActionReq) Reset()
func (*RPCRelationActionReq) Size ¶
func (x *RPCRelationActionReq) Size() (n int)
func (*RPCRelationActionReq) String ¶
func (x *RPCRelationActionReq) String() string
type RPCRelationActionResp ¶
type RPCRelationActionResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*RPCRelationActionResp) Descriptor
deprecated
func (*RPCRelationActionResp) Descriptor() ([]byte, []int)
Deprecated: Use RPCRelationActionResp.ProtoReflect.Descriptor instead.
func (*RPCRelationActionResp) FastWrite ¶
func (x *RPCRelationActionResp) FastWrite(buf []byte) (offset int)
func (*RPCRelationActionResp) GetBaseResp ¶
func (x *RPCRelationActionResp) GetBaseResp() *BaseResp
func (*RPCRelationActionResp) ProtoMessage ¶
func (*RPCRelationActionResp) ProtoMessage()
func (*RPCRelationActionResp) ProtoReflect ¶
func (x *RPCRelationActionResp) ProtoReflect() protoreflect.Message
func (*RPCRelationActionResp) Reset ¶
func (x *RPCRelationActionResp) Reset()
func (*RPCRelationActionResp) Size ¶
func (x *RPCRelationActionResp) Size() (n int)
func (*RPCRelationActionResp) String ¶
func (x *RPCRelationActionResp) String() string
type RPCRelationFollowListReq ¶
type RPCRelationFollowListReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` FollowerId int64 `protobuf:"varint,2,opt,name=follower_id,json=followerId,proto3" json:"follower_id,omitempty"` // contains filtered or unexported fields }
func (*RPCRelationFollowListReq) Descriptor
deprecated
func (*RPCRelationFollowListReq) Descriptor() ([]byte, []int)
Deprecated: Use RPCRelationFollowListReq.ProtoReflect.Descriptor instead.
func (*RPCRelationFollowListReq) FastWrite ¶
func (x *RPCRelationFollowListReq) FastWrite(buf []byte) (offset int)
func (*RPCRelationFollowListReq) GetFollowerId ¶
func (x *RPCRelationFollowListReq) GetFollowerId() int64
func (*RPCRelationFollowListReq) GetUserId ¶
func (x *RPCRelationFollowListReq) GetUserId() int64
func (*RPCRelationFollowListReq) ProtoMessage ¶
func (*RPCRelationFollowListReq) ProtoMessage()
func (*RPCRelationFollowListReq) ProtoReflect ¶
func (x *RPCRelationFollowListReq) ProtoReflect() protoreflect.Message
func (*RPCRelationFollowListReq) Reset ¶
func (x *RPCRelationFollowListReq) Reset()
func (*RPCRelationFollowListReq) Size ¶
func (x *RPCRelationFollowListReq) Size() (n int)
func (*RPCRelationFollowListReq) String ¶
func (x *RPCRelationFollowListReq) String() string
type RPCRelationFollowListResp ¶
type RPCRelationFollowListResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` FollowList []*User `protobuf:"bytes,2,rep,name=follow_list,json=followList,proto3" json:"follow_list,omitempty"` // contains filtered or unexported fields }
func (*RPCRelationFollowListResp) Descriptor
deprecated
func (*RPCRelationFollowListResp) Descriptor() ([]byte, []int)
Deprecated: Use RPCRelationFollowListResp.ProtoReflect.Descriptor instead.
func (*RPCRelationFollowListResp) FastWrite ¶
func (x *RPCRelationFollowListResp) FastWrite(buf []byte) (offset int)
func (*RPCRelationFollowListResp) GetBaseResp ¶
func (x *RPCRelationFollowListResp) GetBaseResp() *BaseResp
func (*RPCRelationFollowListResp) GetFollowList ¶
func (x *RPCRelationFollowListResp) GetFollowList() []*User
func (*RPCRelationFollowListResp) ProtoMessage ¶
func (*RPCRelationFollowListResp) ProtoMessage()
func (*RPCRelationFollowListResp) ProtoReflect ¶
func (x *RPCRelationFollowListResp) ProtoReflect() protoreflect.Message
func (*RPCRelationFollowListResp) Reset ¶
func (x *RPCRelationFollowListResp) Reset()
func (*RPCRelationFollowListResp) Size ¶
func (x *RPCRelationFollowListResp) Size() (n int)
func (*RPCRelationFollowListResp) String ¶
func (x *RPCRelationFollowListResp) String() string
type RPCRelationFollowerListReq ¶
type RPCRelationFollowerListReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // contains filtered or unexported fields }
func (*RPCRelationFollowerListReq) Descriptor
deprecated
func (*RPCRelationFollowerListReq) Descriptor() ([]byte, []int)
Deprecated: Use RPCRelationFollowerListReq.ProtoReflect.Descriptor instead.
func (*RPCRelationFollowerListReq) FastWrite ¶
func (x *RPCRelationFollowerListReq) FastWrite(buf []byte) (offset int)
func (*RPCRelationFollowerListReq) GetToUserId ¶
func (x *RPCRelationFollowerListReq) GetToUserId() int64
func (*RPCRelationFollowerListReq) GetUserId ¶
func (x *RPCRelationFollowerListReq) GetUserId() int64
func (*RPCRelationFollowerListReq) ProtoMessage ¶
func (*RPCRelationFollowerListReq) ProtoMessage()
func (*RPCRelationFollowerListReq) ProtoReflect ¶
func (x *RPCRelationFollowerListReq) ProtoReflect() protoreflect.Message
func (*RPCRelationFollowerListReq) Reset ¶
func (x *RPCRelationFollowerListReq) Reset()
func (*RPCRelationFollowerListReq) Size ¶
func (x *RPCRelationFollowerListReq) Size() (n int)
func (*RPCRelationFollowerListReq) String ¶
func (x *RPCRelationFollowerListReq) String() string
type RPCRelationFollowerListResp ¶
type RPCRelationFollowerListResp struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` FollowerList []*User `protobuf:"bytes,2,rep,name=follower_list,json=followerList,proto3" json:"follower_list,omitempty"` // contains filtered or unexported fields }
func (*RPCRelationFollowerListResp) Descriptor
deprecated
func (*RPCRelationFollowerListResp) Descriptor() ([]byte, []int)
Deprecated: Use RPCRelationFollowerListResp.ProtoReflect.Descriptor instead.
func (*RPCRelationFollowerListResp) FastWrite ¶
func (x *RPCRelationFollowerListResp) FastWrite(buf []byte) (offset int)
func (*RPCRelationFollowerListResp) GetBaseResp ¶
func (x *RPCRelationFollowerListResp) GetBaseResp() *BaseResp
func (*RPCRelationFollowerListResp) GetFollowerList ¶
func (x *RPCRelationFollowerListResp) GetFollowerList() []*User
func (*RPCRelationFollowerListResp) ProtoMessage ¶
func (*RPCRelationFollowerListResp) ProtoMessage()
func (*RPCRelationFollowerListResp) ProtoReflect ¶
func (x *RPCRelationFollowerListResp) ProtoReflect() protoreflect.Message
func (*RPCRelationFollowerListResp) Reset ¶
func (x *RPCRelationFollowerListResp) Reset()
func (*RPCRelationFollowerListResp) Size ¶
func (x *RPCRelationFollowerListResp) Size() (n int)
func (*RPCRelationFollowerListResp) String ¶
func (x *RPCRelationFollowerListResp) String() string
type RelationService ¶
type RelationService interface { Action(ctx context.Context, req *RPCRelationActionReq) (res *RPCRelationActionResp, err error) FollowList(ctx context.Context, req *RPCRelationFollowListReq) (res *RPCRelationFollowListResp, err error) FollowerList(ctx context.Context, req *RPCRelationFollowerListReq) (res *RPCRelationFollowerListResp, err error) CheckFollow(ctx context.Context, req *RPCCheckFollowReq) (res *RPCCheckFollowResp, err error) }
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 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"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
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.