Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRelationServiceHTTPServer(s *http.Server, srv RelationServiceHTTPServer)
- func RegisterRelationServiceServer(s grpc.ServiceRegistrar, srv RelationServiceServer)
- type FriendUser
- func (*FriendUser) Descriptor() ([]byte, []int)deprecated
- func (x *FriendUser) GetAvatar() string
- func (x *FriendUser) GetBackgroundImage() string
- func (x *FriendUser) GetFavoriteCount() uint32
- func (x *FriendUser) GetFollowCount() uint32
- func (x *FriendUser) GetFollowerCount() uint32
- func (x *FriendUser) GetId() uint32
- func (x *FriendUser) GetIsFollow() bool
- func (x *FriendUser) GetMessage() string
- func (x *FriendUser) GetMsgType() uint32
- func (x *FriendUser) GetName() string
- func (x *FriendUser) GetSignature() string
- func (x *FriendUser) GetTotalFavorited() uint32
- func (x *FriendUser) GetWorkCount() uint32
- func (*FriendUser) ProtoMessage()
- func (x *FriendUser) ProtoReflect() protoreflect.Message
- func (x *FriendUser) Reset()
- func (x *FriendUser) String() string
- func (m *FriendUser) Validate() error
- func (m *FriendUser) ValidateAll() error
- type FriendUserMultiError
- type FriendUserValidationError
- type IsFollowReply
- func (*IsFollowReply) Descriptor() ([]byte, []int)deprecated
- func (x *IsFollowReply) GetIsFollow() []bool
- func (*IsFollowReply) ProtoMessage()
- func (x *IsFollowReply) ProtoReflect() protoreflect.Message
- func (x *IsFollowReply) Reset()
- func (x *IsFollowReply) String() string
- func (m *IsFollowReply) Validate() error
- func (m *IsFollowReply) ValidateAll() error
- type IsFollowReplyMultiError
- type IsFollowReplyValidationError
- func (e IsFollowReplyValidationError) Cause() error
- func (e IsFollowReplyValidationError) Error() string
- func (e IsFollowReplyValidationError) ErrorName() string
- func (e IsFollowReplyValidationError) Field() string
- func (e IsFollowReplyValidationError) Key() bool
- func (e IsFollowReplyValidationError) Reason() string
- type IsFollowRequest
- func (*IsFollowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsFollowRequest) GetToUserId() []uint32
- func (x *IsFollowRequest) GetUserId() uint32
- func (*IsFollowRequest) ProtoMessage()
- func (x *IsFollowRequest) ProtoReflect() protoreflect.Message
- func (x *IsFollowRequest) Reset()
- func (x *IsFollowRequest) String() string
- func (m *IsFollowRequest) Validate() error
- func (m *IsFollowRequest) ValidateAll() error
- type IsFollowRequestMultiError
- type IsFollowRequestValidationError
- func (e IsFollowRequestValidationError) Cause() error
- func (e IsFollowRequestValidationError) Error() string
- func (e IsFollowRequestValidationError) ErrorName() string
- func (e IsFollowRequestValidationError) Field() string
- func (e IsFollowRequestValidationError) Key() bool
- func (e IsFollowRequestValidationError) Reason() string
- type RelationActionReply
- func (*RelationActionReply) Descriptor() ([]byte, []int)deprecated
- func (x *RelationActionReply) GetStatusCode() int32
- func (x *RelationActionReply) GetStatusMsg() string
- func (*RelationActionReply) ProtoMessage()
- func (x *RelationActionReply) ProtoReflect() protoreflect.Message
- func (x *RelationActionReply) Reset()
- func (x *RelationActionReply) String() string
- func (m *RelationActionReply) Validate() error
- func (m *RelationActionReply) ValidateAll() error
- type RelationActionReplyMultiError
- type RelationActionReplyValidationError
- func (e RelationActionReplyValidationError) Cause() error
- func (e RelationActionReplyValidationError) Error() string
- func (e RelationActionReplyValidationError) ErrorName() string
- func (e RelationActionReplyValidationError) Field() string
- func (e RelationActionReplyValidationError) Key() bool
- func (e RelationActionReplyValidationError) Reason() string
- type RelationActionRequest
- func (*RelationActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RelationActionRequest) GetActionType() uint32
- func (x *RelationActionRequest) GetToUserId() uint32
- func (x *RelationActionRequest) GetToken() string
- func (*RelationActionRequest) ProtoMessage()
- func (x *RelationActionRequest) ProtoReflect() protoreflect.Message
- func (x *RelationActionRequest) Reset()
- func (x *RelationActionRequest) String() string
- func (m *RelationActionRequest) Validate() error
- func (m *RelationActionRequest) ValidateAll() error
- type RelationActionRequestMultiError
- type RelationActionRequestValidationError
- func (e RelationActionRequestValidationError) Cause() error
- func (e RelationActionRequestValidationError) Error() string
- func (e RelationActionRequestValidationError) ErrorName() string
- func (e RelationActionRequestValidationError) Field() string
- func (e RelationActionRequestValidationError) Key() bool
- func (e RelationActionRequestValidationError) Reason() string
- type RelationFollowListReply
- func (*RelationFollowListReply) Descriptor() ([]byte, []int)deprecated
- func (x *RelationFollowListReply) GetStatusCode() int32
- func (x *RelationFollowListReply) GetStatusMsg() string
- func (x *RelationFollowListReply) GetUserList() []*User
- func (*RelationFollowListReply) ProtoMessage()
- func (x *RelationFollowListReply) ProtoReflect() protoreflect.Message
- func (x *RelationFollowListReply) Reset()
- func (x *RelationFollowListReply) String() string
- func (m *RelationFollowListReply) Validate() error
- func (m *RelationFollowListReply) ValidateAll() error
- type RelationFollowListReplyMultiError
- type RelationFollowListReplyValidationError
- func (e RelationFollowListReplyValidationError) Cause() error
- func (e RelationFollowListReplyValidationError) Error() string
- func (e RelationFollowListReplyValidationError) ErrorName() string
- func (e RelationFollowListReplyValidationError) Field() string
- func (e RelationFollowListReplyValidationError) Key() bool
- func (e RelationFollowListReplyValidationError) Reason() string
- type RelationFollowListRequest
- func (*RelationFollowListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RelationFollowListRequest) GetToken() string
- func (x *RelationFollowListRequest) GetUserId() uint32
- func (*RelationFollowListRequest) ProtoMessage()
- func (x *RelationFollowListRequest) ProtoReflect() protoreflect.Message
- func (x *RelationFollowListRequest) Reset()
- func (x *RelationFollowListRequest) String() string
- func (m *RelationFollowListRequest) Validate() error
- func (m *RelationFollowListRequest) ValidateAll() error
- type RelationFollowListRequestMultiError
- type RelationFollowListRequestValidationError
- func (e RelationFollowListRequestValidationError) Cause() error
- func (e RelationFollowListRequestValidationError) Error() string
- func (e RelationFollowListRequestValidationError) ErrorName() string
- func (e RelationFollowListRequestValidationError) Field() string
- func (e RelationFollowListRequestValidationError) Key() bool
- func (e RelationFollowListRequestValidationError) Reason() string
- type RelationFollowerListReply
- func (*RelationFollowerListReply) Descriptor() ([]byte, []int)deprecated
- func (x *RelationFollowerListReply) GetStatusCode() int32
- func (x *RelationFollowerListReply) GetStatusMsg() string
- func (x *RelationFollowerListReply) GetUserList() []*User
- func (*RelationFollowerListReply) ProtoMessage()
- func (x *RelationFollowerListReply) ProtoReflect() protoreflect.Message
- func (x *RelationFollowerListReply) Reset()
- func (x *RelationFollowerListReply) String() string
- func (m *RelationFollowerListReply) Validate() error
- func (m *RelationFollowerListReply) ValidateAll() error
- type RelationFollowerListReplyMultiError
- type RelationFollowerListReplyValidationError
- func (e RelationFollowerListReplyValidationError) Cause() error
- func (e RelationFollowerListReplyValidationError) Error() string
- func (e RelationFollowerListReplyValidationError) ErrorName() string
- func (e RelationFollowerListReplyValidationError) Field() string
- func (e RelationFollowerListReplyValidationError) Key() bool
- func (e RelationFollowerListReplyValidationError) Reason() string
- type RelationFollowerListRequest
- func (*RelationFollowerListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RelationFollowerListRequest) GetToken() string
- func (x *RelationFollowerListRequest) GetUserId() uint32
- func (*RelationFollowerListRequest) ProtoMessage()
- func (x *RelationFollowerListRequest) ProtoReflect() protoreflect.Message
- func (x *RelationFollowerListRequest) Reset()
- func (x *RelationFollowerListRequest) String() string
- func (m *RelationFollowerListRequest) Validate() error
- func (m *RelationFollowerListRequest) ValidateAll() error
- type RelationFollowerListRequestMultiError
- type RelationFollowerListRequestValidationError
- func (e RelationFollowerListRequestValidationError) Cause() error
- func (e RelationFollowerListRequestValidationError) Error() string
- func (e RelationFollowerListRequestValidationError) ErrorName() string
- func (e RelationFollowerListRequestValidationError) Field() string
- func (e RelationFollowerListRequestValidationError) Key() bool
- func (e RelationFollowerListRequestValidationError) Reason() string
- type RelationFriendListReply
- func (*RelationFriendListReply) Descriptor() ([]byte, []int)deprecated
- func (x *RelationFriendListReply) GetStatusCode() int32
- func (x *RelationFriendListReply) GetStatusMsg() string
- func (x *RelationFriendListReply) GetUserList() []*FriendUser
- func (*RelationFriendListReply) ProtoMessage()
- func (x *RelationFriendListReply) ProtoReflect() protoreflect.Message
- func (x *RelationFriendListReply) Reset()
- func (x *RelationFriendListReply) String() string
- func (m *RelationFriendListReply) Validate() error
- func (m *RelationFriendListReply) ValidateAll() error
- type RelationFriendListReplyMultiError
- type RelationFriendListReplyValidationError
- func (e RelationFriendListReplyValidationError) Cause() error
- func (e RelationFriendListReplyValidationError) Error() string
- func (e RelationFriendListReplyValidationError) ErrorName() string
- func (e RelationFriendListReplyValidationError) Field() string
- func (e RelationFriendListReplyValidationError) Key() bool
- func (e RelationFriendListReplyValidationError) Reason() string
- type RelationFriendListRequest
- func (*RelationFriendListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RelationFriendListRequest) GetToken() string
- func (x *RelationFriendListRequest) GetUserId() uint32
- func (*RelationFriendListRequest) ProtoMessage()
- func (x *RelationFriendListRequest) ProtoReflect() protoreflect.Message
- func (x *RelationFriendListRequest) Reset()
- func (x *RelationFriendListRequest) String() string
- func (m *RelationFriendListRequest) Validate() error
- func (m *RelationFriendListRequest) ValidateAll() error
- type RelationFriendListRequestMultiError
- type RelationFriendListRequestValidationError
- func (e RelationFriendListRequestValidationError) Cause() error
- func (e RelationFriendListRequestValidationError) Error() string
- func (e RelationFriendListRequestValidationError) ErrorName() string
- func (e RelationFriendListRequestValidationError) Field() string
- func (e RelationFriendListRequestValidationError) Key() bool
- func (e RelationFriendListRequestValidationError) Reason() string
- type RelationServiceClient
- type RelationServiceHTTPClient
- type RelationServiceHTTPClientImpl
- func (c *RelationServiceHTTPClientImpl) GetFollowRelationList(ctx context.Context, in *RelationFollowListRequest, opts ...http.CallOption) (*RelationFollowListReply, error)
- func (c *RelationServiceHTTPClientImpl) GetFollowerRelationList(ctx context.Context, in *RelationFollowerListRequest, opts ...http.CallOption) (*RelationFollowerListReply, error)
- func (c *RelationServiceHTTPClientImpl) GetFriendRelationList(ctx context.Context, in *RelationFriendListRequest, opts ...http.CallOption) (*RelationFriendListReply, error)
- func (c *RelationServiceHTTPClientImpl) RelationAction(ctx context.Context, in *RelationActionRequest, opts ...http.CallOption) (*RelationActionReply, error)
- type RelationServiceHTTPServer
- type RelationServiceServer
- type UnimplementedRelationServiceServer
- func (UnimplementedRelationServiceServer) GetFollowRelationList(context.Context, *RelationFollowListRequest) (*RelationFollowListReply, error)
- func (UnimplementedRelationServiceServer) GetFollowerRelationList(context.Context, *RelationFollowerListRequest) (*RelationFollowerListReply, error)
- func (UnimplementedRelationServiceServer) GetFriendRelationList(context.Context, *RelationFriendListRequest) (*RelationFriendListReply, error)
- func (UnimplementedRelationServiceServer) IsFollow(context.Context, *IsFollowRequest) (*IsFollowReply, error)
- func (UnimplementedRelationServiceServer) RelationAction(context.Context, *RelationActionRequest) (*RelationActionReply, error)
- type UnsafeRelationServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() string
- func (x *User) GetBackgroundImage() string
- func (x *User) GetFavoriteCount() uint32
- func (x *User) GetFollowCount() uint32
- func (x *User) GetFollowerCount() uint32
- func (x *User) GetId() uint32
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- func (x *User) GetSignature() string
- func (x *User) GetTotalFavorited() uint32
- func (x *User) GetWorkCount() uint32
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserMultiError
- type UserValidationError
Constants ¶
const ( RelationService_GetFollowerRelationList_FullMethodName = "/relation.service.v1.RelationService/GetFollowerRelationList" RelationService_GetFollowRelationList_FullMethodName = "/relation.service.v1.RelationService/GetFollowRelationList" RelationService_RelationAction_FullMethodName = "/relation.service.v1.RelationService/RelationAction" RelationService_GetFriendRelationList_FullMethodName = "/relation.service.v1.RelationService/GetFriendRelationList" RelationService_IsFollow_FullMethodName = "/relation.service.v1.RelationService/IsFollow" )
const OperationRelationServiceGetFollowRelationList = "/relation.service.v1.RelationService/GetFollowRelationList"
const OperationRelationServiceGetFollowerRelationList = "/relation.service.v1.RelationService/GetFollowerRelationList"
const OperationRelationServiceGetFriendRelationList = "/relation.service.v1.RelationService/GetFriendRelationList"
const OperationRelationServiceRelationAction = "/relation.service.v1.RelationService/RelationAction"
Variables ¶
var File_relation_service_v1_relation_proto protoreflect.FileDescriptor
var RelationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "relation.service.v1.RelationService", HandlerType: (*RelationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFollowerRelationList", Handler: _RelationService_GetFollowerRelationList_Handler, }, { MethodName: "GetFollowRelationList", Handler: _RelationService_GetFollowRelationList_Handler, }, { MethodName: "RelationAction", Handler: _RelationService_RelationAction_Handler, }, { MethodName: "GetFriendRelationList", Handler: _RelationService_GetFriendRelationList_Handler, }, { MethodName: "IsFollow", Handler: _RelationService_IsFollow_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "relation/service/v1/relation.proto", }
RelationService_ServiceDesc is the grpc.ServiceDesc for RelationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRelationServiceHTTPServer ¶
func RegisterRelationServiceHTTPServer(s *http.Server, srv RelationServiceHTTPServer)
func RegisterRelationServiceServer ¶
func RegisterRelationServiceServer(s grpc.ServiceRegistrar, srv RelationServiceServer)
Types ¶
type FriendUser ¶
type FriendUser struct { // 用户id Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 关注总数 FollowCount uint32 `protobuf:"varint,3,opt,name=follow_count,proto3" json:"follow_count,omitempty"` // 粉丝总数 FollowerCount uint32 `protobuf:"varint,4,opt,name=follower_count,proto3" json:"follower_count,omitempty"` // true-已关注,false-未关注 IsFollow bool `protobuf:"varint,5,opt,name=is_follow,proto3" json:"is_follow,omitempty"` //用户头像 Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` //用户个人页顶部大图 BackgroundImage string `protobuf:"bytes,7,opt,name=background_image,proto3" json:"background_image,omitempty"` //个人简介 Signature string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` //获赞数量 TotalFavorited uint32 `protobuf:"varint,9,opt,name=total_favorited,proto3" json:"total_favorited,omitempty"` //作品数量 WorkCount uint32 `protobuf:"varint,10,opt,name=work_count,proto3" json:"work_count,omitempty"` //点赞数量 FavoriteCount uint32 `protobuf:"varint,11,opt,name=favorite_count,proto3" json:"favorite_count,omitempty"` // 和该好友的最新聊天消息 Message string `protobuf:"bytes,12,opt,name=message,proto3" json:"message,omitempty"` // message消息的类型,0 => 当前请求用户接收的消息, 1 => 当前请求用户发送的消息 MsgType uint32 `protobuf:"varint,13,opt,name=msgType,json=msg_type,proto3" json:"msgType,omitempty"` // contains filtered or unexported fields }
func (*FriendUser) Descriptor
deprecated
func (*FriendUser) Descriptor() ([]byte, []int)
Deprecated: Use FriendUser.ProtoReflect.Descriptor instead.
func (*FriendUser) GetAvatar ¶
func (x *FriendUser) GetAvatar() string
func (*FriendUser) GetBackgroundImage ¶
func (x *FriendUser) GetBackgroundImage() string
func (*FriendUser) GetFavoriteCount ¶
func (x *FriendUser) GetFavoriteCount() uint32
func (*FriendUser) GetFollowCount ¶
func (x *FriendUser) GetFollowCount() uint32
func (*FriendUser) GetFollowerCount ¶
func (x *FriendUser) GetFollowerCount() uint32
func (*FriendUser) GetId ¶
func (x *FriendUser) GetId() uint32
func (*FriendUser) GetIsFollow ¶
func (x *FriendUser) GetIsFollow() bool
func (*FriendUser) GetMessage ¶
func (x *FriendUser) GetMessage() string
func (*FriendUser) GetMsgType ¶
func (x *FriendUser) GetMsgType() uint32
func (*FriendUser) GetName ¶
func (x *FriendUser) GetName() string
func (*FriendUser) GetSignature ¶
func (x *FriendUser) GetSignature() string
func (*FriendUser) GetTotalFavorited ¶
func (x *FriendUser) GetTotalFavorited() uint32
func (*FriendUser) GetWorkCount ¶
func (x *FriendUser) GetWorkCount() uint32
func (*FriendUser) ProtoMessage ¶
func (*FriendUser) ProtoMessage()
func (*FriendUser) ProtoReflect ¶
func (x *FriendUser) ProtoReflect() protoreflect.Message
func (*FriendUser) Reset ¶
func (x *FriendUser) Reset()
func (*FriendUser) String ¶
func (x *FriendUser) String() string
func (*FriendUser) Validate ¶
func (m *FriendUser) Validate() error
Validate checks the field values on FriendUser with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FriendUser) ValidateAll ¶
func (m *FriendUser) ValidateAll() error
ValidateAll checks the field values on FriendUser with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FriendUserMultiError, or nil if none found.
type FriendUserMultiError ¶
type FriendUserMultiError []error
FriendUserMultiError is an error wrapping multiple validation errors returned by FriendUser.ValidateAll() if the designated constraints aren't met.
func (FriendUserMultiError) AllErrors ¶
func (m FriendUserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FriendUserMultiError) Error ¶
func (m FriendUserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FriendUserValidationError ¶
type FriendUserValidationError struct {
// contains filtered or unexported fields
}
FriendUserValidationError is the validation error returned by FriendUser.Validate if the designated constraints aren't met.
func (FriendUserValidationError) Cause ¶
func (e FriendUserValidationError) Cause() error
Cause function returns cause value.
func (FriendUserValidationError) Error ¶
func (e FriendUserValidationError) Error() string
Error satisfies the builtin error interface
func (FriendUserValidationError) ErrorName ¶
func (e FriendUserValidationError) ErrorName() string
ErrorName returns error name.
func (FriendUserValidationError) Field ¶
func (e FriendUserValidationError) Field() string
Field function returns field value.
func (FriendUserValidationError) Key ¶
func (e FriendUserValidationError) Key() bool
Key function returns key value.
func (FriendUserValidationError) Reason ¶
func (e FriendUserValidationError) Reason() string
Reason function returns reason value.
type IsFollowReply ¶
type IsFollowReply struct { // true-已关注,false-未关注 IsFollow []bool `protobuf:"varint,1,rep,packed,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty"` // contains filtered or unexported fields }
func (*IsFollowReply) Descriptor
deprecated
func (*IsFollowReply) Descriptor() ([]byte, []int)
Deprecated: Use IsFollowReply.ProtoReflect.Descriptor instead.
func (*IsFollowReply) GetIsFollow ¶
func (x *IsFollowReply) GetIsFollow() []bool
func (*IsFollowReply) ProtoMessage ¶
func (*IsFollowReply) ProtoMessage()
func (*IsFollowReply) ProtoReflect ¶
func (x *IsFollowReply) ProtoReflect() protoreflect.Message
func (*IsFollowReply) Reset ¶
func (x *IsFollowReply) Reset()
func (*IsFollowReply) String ¶
func (x *IsFollowReply) String() string
func (*IsFollowReply) Validate ¶
func (m *IsFollowReply) Validate() error
Validate checks the field values on IsFollowReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*IsFollowReply) ValidateAll ¶
func (m *IsFollowReply) ValidateAll() error
ValidateAll checks the field values on IsFollowReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IsFollowReplyMultiError, or nil if none found.
type IsFollowReplyMultiError ¶
type IsFollowReplyMultiError []error
IsFollowReplyMultiError is an error wrapping multiple validation errors returned by IsFollowReply.ValidateAll() if the designated constraints aren't met.
func (IsFollowReplyMultiError) AllErrors ¶
func (m IsFollowReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IsFollowReplyMultiError) Error ¶
func (m IsFollowReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IsFollowReplyValidationError ¶
type IsFollowReplyValidationError struct {
// contains filtered or unexported fields
}
IsFollowReplyValidationError is the validation error returned by IsFollowReply.Validate if the designated constraints aren't met.
func (IsFollowReplyValidationError) Cause ¶
func (e IsFollowReplyValidationError) Cause() error
Cause function returns cause value.
func (IsFollowReplyValidationError) Error ¶
func (e IsFollowReplyValidationError) Error() string
Error satisfies the builtin error interface
func (IsFollowReplyValidationError) ErrorName ¶
func (e IsFollowReplyValidationError) ErrorName() string
ErrorName returns error name.
func (IsFollowReplyValidationError) Field ¶
func (e IsFollowReplyValidationError) Field() string
Field function returns field value.
func (IsFollowReplyValidationError) Key ¶
func (e IsFollowReplyValidationError) Key() bool
Key function returns key value.
func (IsFollowReplyValidationError) Reason ¶
func (e IsFollowReplyValidationError) Reason() string
Reason function returns reason value.
type IsFollowRequest ¶
type IsFollowRequest struct { // 用户id UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 对方用户id ToUserId []uint32 `protobuf:"varint,2,rep,packed,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // contains filtered or unexported fields }
func (*IsFollowRequest) Descriptor
deprecated
func (*IsFollowRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsFollowRequest.ProtoReflect.Descriptor instead.
func (*IsFollowRequest) GetToUserId ¶
func (x *IsFollowRequest) GetToUserId() []uint32
func (*IsFollowRequest) GetUserId ¶
func (x *IsFollowRequest) GetUserId() uint32
func (*IsFollowRequest) ProtoMessage ¶
func (*IsFollowRequest) ProtoMessage()
func (*IsFollowRequest) ProtoReflect ¶
func (x *IsFollowRequest) ProtoReflect() protoreflect.Message
func (*IsFollowRequest) Reset ¶
func (x *IsFollowRequest) Reset()
func (*IsFollowRequest) String ¶
func (x *IsFollowRequest) String() string
func (*IsFollowRequest) Validate ¶
func (m *IsFollowRequest) Validate() error
Validate checks the field values on IsFollowRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*IsFollowRequest) ValidateAll ¶
func (m *IsFollowRequest) ValidateAll() error
ValidateAll checks the field values on IsFollowRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IsFollowRequestMultiError, or nil if none found.
type IsFollowRequestMultiError ¶
type IsFollowRequestMultiError []error
IsFollowRequestMultiError is an error wrapping multiple validation errors returned by IsFollowRequest.ValidateAll() if the designated constraints aren't met.
func (IsFollowRequestMultiError) AllErrors ¶
func (m IsFollowRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IsFollowRequestMultiError) Error ¶
func (m IsFollowRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IsFollowRequestValidationError ¶
type IsFollowRequestValidationError struct {
// contains filtered or unexported fields
}
IsFollowRequestValidationError is the validation error returned by IsFollowRequest.Validate if the designated constraints aren't met.
func (IsFollowRequestValidationError) Cause ¶
func (e IsFollowRequestValidationError) Cause() error
Cause function returns cause value.
func (IsFollowRequestValidationError) Error ¶
func (e IsFollowRequestValidationError) Error() string
Error satisfies the builtin error interface
func (IsFollowRequestValidationError) ErrorName ¶
func (e IsFollowRequestValidationError) ErrorName() string
ErrorName returns error name.
func (IsFollowRequestValidationError) Field ¶
func (e IsFollowRequestValidationError) Field() string
Field function returns field value.
func (IsFollowRequestValidationError) Key ¶
func (e IsFollowRequestValidationError) Key() bool
Key function returns key value.
func (IsFollowRequestValidationError) Reason ¶
func (e IsFollowRequestValidationError) Reason() string
Reason function returns reason value.
type RelationActionReply ¶
type RelationActionReply struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"` // 返回状态描述 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"` // contains filtered or unexported fields }
func (*RelationActionReply) Descriptor
deprecated
func (*RelationActionReply) Descriptor() ([]byte, []int)
Deprecated: Use RelationActionReply.ProtoReflect.Descriptor instead.
func (*RelationActionReply) GetStatusCode ¶
func (x *RelationActionReply) GetStatusCode() int32
func (*RelationActionReply) GetStatusMsg ¶
func (x *RelationActionReply) GetStatusMsg() string
func (*RelationActionReply) ProtoMessage ¶
func (*RelationActionReply) ProtoMessage()
func (*RelationActionReply) ProtoReflect ¶
func (x *RelationActionReply) ProtoReflect() protoreflect.Message
func (*RelationActionReply) Reset ¶
func (x *RelationActionReply) Reset()
func (*RelationActionReply) String ¶
func (x *RelationActionReply) String() string
func (*RelationActionReply) Validate ¶
func (m *RelationActionReply) Validate() error
Validate checks the field values on RelationActionReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationActionReply) ValidateAll ¶
func (m *RelationActionReply) ValidateAll() error
ValidateAll checks the field values on RelationActionReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationActionReplyMultiError, or nil if none found.
type RelationActionReplyMultiError ¶
type RelationActionReplyMultiError []error
RelationActionReplyMultiError is an error wrapping multiple validation errors returned by RelationActionReply.ValidateAll() if the designated constraints aren't met.
func (RelationActionReplyMultiError) AllErrors ¶
func (m RelationActionReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationActionReplyMultiError) Error ¶
func (m RelationActionReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationActionReplyValidationError ¶
type RelationActionReplyValidationError struct {
// contains filtered or unexported fields
}
RelationActionReplyValidationError is the validation error returned by RelationActionReply.Validate if the designated constraints aren't met.
func (RelationActionReplyValidationError) Cause ¶
func (e RelationActionReplyValidationError) Cause() error
Cause function returns cause value.
func (RelationActionReplyValidationError) Error ¶
func (e RelationActionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RelationActionReplyValidationError) ErrorName ¶
func (e RelationActionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RelationActionReplyValidationError) Field ¶
func (e RelationActionReplyValidationError) Field() string
Field function returns field value.
func (RelationActionReplyValidationError) Key ¶
func (e RelationActionReplyValidationError) Key() bool
Key function returns key value.
func (RelationActionReplyValidationError) Reason ¶
func (e RelationActionReplyValidationError) Reason() string
Reason function returns reason value.
type RelationActionRequest ¶
type RelationActionRequest struct { // 用户鉴权token Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // 对方用户id ToUserId uint32 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // 1-关注,2-取消关注 ActionType uint32 `protobuf:"varint,3,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` // contains filtered or unexported fields }
func (*RelationActionRequest) Descriptor
deprecated
func (*RelationActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use RelationActionRequest.ProtoReflect.Descriptor instead.
func (*RelationActionRequest) GetActionType ¶
func (x *RelationActionRequest) GetActionType() uint32
func (*RelationActionRequest) GetToUserId ¶
func (x *RelationActionRequest) GetToUserId() uint32
func (*RelationActionRequest) GetToken ¶
func (x *RelationActionRequest) GetToken() string
func (*RelationActionRequest) ProtoMessage ¶
func (*RelationActionRequest) ProtoMessage()
func (*RelationActionRequest) ProtoReflect ¶
func (x *RelationActionRequest) ProtoReflect() protoreflect.Message
func (*RelationActionRequest) Reset ¶
func (x *RelationActionRequest) Reset()
func (*RelationActionRequest) String ¶
func (x *RelationActionRequest) String() string
func (*RelationActionRequest) Validate ¶
func (m *RelationActionRequest) Validate() error
Validate checks the field values on RelationActionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationActionRequest) ValidateAll ¶
func (m *RelationActionRequest) ValidateAll() error
ValidateAll checks the field values on RelationActionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationActionRequestMultiError, or nil if none found.
type RelationActionRequestMultiError ¶
type RelationActionRequestMultiError []error
RelationActionRequestMultiError is an error wrapping multiple validation errors returned by RelationActionRequest.ValidateAll() if the designated constraints aren't met.
func (RelationActionRequestMultiError) AllErrors ¶
func (m RelationActionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationActionRequestMultiError) Error ¶
func (m RelationActionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationActionRequestValidationError ¶
type RelationActionRequestValidationError struct {
// contains filtered or unexported fields
}
RelationActionRequestValidationError is the validation error returned by RelationActionRequest.Validate if the designated constraints aren't met.
func (RelationActionRequestValidationError) Cause ¶
func (e RelationActionRequestValidationError) Cause() error
Cause function returns cause value.
func (RelationActionRequestValidationError) Error ¶
func (e RelationActionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RelationActionRequestValidationError) ErrorName ¶
func (e RelationActionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RelationActionRequestValidationError) Field ¶
func (e RelationActionRequestValidationError) Field() string
Field function returns field value.
func (RelationActionRequestValidationError) Key ¶
func (e RelationActionRequestValidationError) Key() bool
Key function returns key value.
func (RelationActionRequestValidationError) Reason ¶
func (e RelationActionRequestValidationError) Reason() string
Reason function returns reason value.
type RelationFollowListReply ¶
type RelationFollowListReply struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"` // 返回状态描述 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"` // 用户信息列表 UserList []*User `protobuf:"bytes,3,rep,name=user_list,proto3" json:"user_list,omitempty"` // contains filtered or unexported fields }
func (*RelationFollowListReply) Descriptor
deprecated
func (*RelationFollowListReply) Descriptor() ([]byte, []int)
Deprecated: Use RelationFollowListReply.ProtoReflect.Descriptor instead.
func (*RelationFollowListReply) GetStatusCode ¶
func (x *RelationFollowListReply) GetStatusCode() int32
func (*RelationFollowListReply) GetStatusMsg ¶
func (x *RelationFollowListReply) GetStatusMsg() string
func (*RelationFollowListReply) GetUserList ¶
func (x *RelationFollowListReply) GetUserList() []*User
func (*RelationFollowListReply) ProtoMessage ¶
func (*RelationFollowListReply) ProtoMessage()
func (*RelationFollowListReply) ProtoReflect ¶
func (x *RelationFollowListReply) ProtoReflect() protoreflect.Message
func (*RelationFollowListReply) Reset ¶
func (x *RelationFollowListReply) Reset()
func (*RelationFollowListReply) String ¶
func (x *RelationFollowListReply) String() string
func (*RelationFollowListReply) Validate ¶
func (m *RelationFollowListReply) Validate() error
Validate checks the field values on RelationFollowListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationFollowListReply) ValidateAll ¶
func (m *RelationFollowListReply) ValidateAll() error
ValidateAll checks the field values on RelationFollowListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationFollowListReplyMultiError, or nil if none found.
type RelationFollowListReplyMultiError ¶
type RelationFollowListReplyMultiError []error
RelationFollowListReplyMultiError is an error wrapping multiple validation errors returned by RelationFollowListReply.ValidateAll() if the designated constraints aren't met.
func (RelationFollowListReplyMultiError) AllErrors ¶
func (m RelationFollowListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationFollowListReplyMultiError) Error ¶
func (m RelationFollowListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationFollowListReplyValidationError ¶
type RelationFollowListReplyValidationError struct {
// contains filtered or unexported fields
}
RelationFollowListReplyValidationError is the validation error returned by RelationFollowListReply.Validate if the designated constraints aren't met.
func (RelationFollowListReplyValidationError) Cause ¶
func (e RelationFollowListReplyValidationError) Cause() error
Cause function returns cause value.
func (RelationFollowListReplyValidationError) Error ¶
func (e RelationFollowListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RelationFollowListReplyValidationError) ErrorName ¶
func (e RelationFollowListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RelationFollowListReplyValidationError) Field ¶
func (e RelationFollowListReplyValidationError) Field() string
Field function returns field value.
func (RelationFollowListReplyValidationError) Key ¶
func (e RelationFollowListReplyValidationError) Key() bool
Key function returns key value.
func (RelationFollowListReplyValidationError) Reason ¶
func (e RelationFollowListReplyValidationError) Reason() string
Reason function returns reason value.
type RelationFollowListRequest ¶
type RelationFollowListRequest struct { // 用户id UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户鉴权token Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RelationFollowListRequest) Descriptor
deprecated
func (*RelationFollowListRequest) Descriptor() ([]byte, []int)
Deprecated: Use RelationFollowListRequest.ProtoReflect.Descriptor instead.
func (*RelationFollowListRequest) GetToken ¶
func (x *RelationFollowListRequest) GetToken() string
func (*RelationFollowListRequest) GetUserId ¶
func (x *RelationFollowListRequest) GetUserId() uint32
func (*RelationFollowListRequest) ProtoMessage ¶
func (*RelationFollowListRequest) ProtoMessage()
func (*RelationFollowListRequest) ProtoReflect ¶
func (x *RelationFollowListRequest) ProtoReflect() protoreflect.Message
func (*RelationFollowListRequest) Reset ¶
func (x *RelationFollowListRequest) Reset()
func (*RelationFollowListRequest) String ¶
func (x *RelationFollowListRequest) String() string
func (*RelationFollowListRequest) Validate ¶
func (m *RelationFollowListRequest) Validate() error
Validate checks the field values on RelationFollowListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationFollowListRequest) ValidateAll ¶
func (m *RelationFollowListRequest) ValidateAll() error
ValidateAll checks the field values on RelationFollowListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationFollowListRequestMultiError, or nil if none found.
type RelationFollowListRequestMultiError ¶
type RelationFollowListRequestMultiError []error
RelationFollowListRequestMultiError is an error wrapping multiple validation errors returned by RelationFollowListRequest.ValidateAll() if the designated constraints aren't met.
func (RelationFollowListRequestMultiError) AllErrors ¶
func (m RelationFollowListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationFollowListRequestMultiError) Error ¶
func (m RelationFollowListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationFollowListRequestValidationError ¶
type RelationFollowListRequestValidationError struct {
// contains filtered or unexported fields
}
RelationFollowListRequestValidationError is the validation error returned by RelationFollowListRequest.Validate if the designated constraints aren't met.
func (RelationFollowListRequestValidationError) Cause ¶
func (e RelationFollowListRequestValidationError) Cause() error
Cause function returns cause value.
func (RelationFollowListRequestValidationError) Error ¶
func (e RelationFollowListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RelationFollowListRequestValidationError) ErrorName ¶
func (e RelationFollowListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RelationFollowListRequestValidationError) Field ¶
func (e RelationFollowListRequestValidationError) Field() string
Field function returns field value.
func (RelationFollowListRequestValidationError) Key ¶
func (e RelationFollowListRequestValidationError) Key() bool
Key function returns key value.
func (RelationFollowListRequestValidationError) Reason ¶
func (e RelationFollowListRequestValidationError) Reason() string
Reason function returns reason value.
type RelationFollowerListReply ¶
type RelationFollowerListReply struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"` // 返回状态描述 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"` // 用户列表 UserList []*User `protobuf:"bytes,3,rep,name=user_list,proto3" json:"user_list,omitempty"` // contains filtered or unexported fields }
func (*RelationFollowerListReply) Descriptor
deprecated
func (*RelationFollowerListReply) Descriptor() ([]byte, []int)
Deprecated: Use RelationFollowerListReply.ProtoReflect.Descriptor instead.
func (*RelationFollowerListReply) GetStatusCode ¶
func (x *RelationFollowerListReply) GetStatusCode() int32
func (*RelationFollowerListReply) GetStatusMsg ¶
func (x *RelationFollowerListReply) GetStatusMsg() string
func (*RelationFollowerListReply) GetUserList ¶
func (x *RelationFollowerListReply) GetUserList() []*User
func (*RelationFollowerListReply) ProtoMessage ¶
func (*RelationFollowerListReply) ProtoMessage()
func (*RelationFollowerListReply) ProtoReflect ¶
func (x *RelationFollowerListReply) ProtoReflect() protoreflect.Message
func (*RelationFollowerListReply) Reset ¶
func (x *RelationFollowerListReply) Reset()
func (*RelationFollowerListReply) String ¶
func (x *RelationFollowerListReply) String() string
func (*RelationFollowerListReply) Validate ¶
func (m *RelationFollowerListReply) Validate() error
Validate checks the field values on RelationFollowerListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationFollowerListReply) ValidateAll ¶
func (m *RelationFollowerListReply) ValidateAll() error
ValidateAll checks the field values on RelationFollowerListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationFollowerListReplyMultiError, or nil if none found.
type RelationFollowerListReplyMultiError ¶
type RelationFollowerListReplyMultiError []error
RelationFollowerListReplyMultiError is an error wrapping multiple validation errors returned by RelationFollowerListReply.ValidateAll() if the designated constraints aren't met.
func (RelationFollowerListReplyMultiError) AllErrors ¶
func (m RelationFollowerListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationFollowerListReplyMultiError) Error ¶
func (m RelationFollowerListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationFollowerListReplyValidationError ¶
type RelationFollowerListReplyValidationError struct {
// contains filtered or unexported fields
}
RelationFollowerListReplyValidationError is the validation error returned by RelationFollowerListReply.Validate if the designated constraints aren't met.
func (RelationFollowerListReplyValidationError) Cause ¶
func (e RelationFollowerListReplyValidationError) Cause() error
Cause function returns cause value.
func (RelationFollowerListReplyValidationError) Error ¶
func (e RelationFollowerListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RelationFollowerListReplyValidationError) ErrorName ¶
func (e RelationFollowerListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RelationFollowerListReplyValidationError) Field ¶
func (e RelationFollowerListReplyValidationError) Field() string
Field function returns field value.
func (RelationFollowerListReplyValidationError) Key ¶
func (e RelationFollowerListReplyValidationError) Key() bool
Key function returns key value.
func (RelationFollowerListReplyValidationError) Reason ¶
func (e RelationFollowerListReplyValidationError) Reason() string
Reason function returns reason value.
type RelationFollowerListRequest ¶
type RelationFollowerListRequest struct { // 用户id UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户鉴权token Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RelationFollowerListRequest) Descriptor
deprecated
func (*RelationFollowerListRequest) Descriptor() ([]byte, []int)
Deprecated: Use RelationFollowerListRequest.ProtoReflect.Descriptor instead.
func (*RelationFollowerListRequest) GetToken ¶
func (x *RelationFollowerListRequest) GetToken() string
func (*RelationFollowerListRequest) GetUserId ¶
func (x *RelationFollowerListRequest) GetUserId() uint32
func (*RelationFollowerListRequest) ProtoMessage ¶
func (*RelationFollowerListRequest) ProtoMessage()
func (*RelationFollowerListRequest) ProtoReflect ¶
func (x *RelationFollowerListRequest) ProtoReflect() protoreflect.Message
func (*RelationFollowerListRequest) Reset ¶
func (x *RelationFollowerListRequest) Reset()
func (*RelationFollowerListRequest) String ¶
func (x *RelationFollowerListRequest) String() string
func (*RelationFollowerListRequest) Validate ¶
func (m *RelationFollowerListRequest) Validate() error
Validate checks the field values on RelationFollowerListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationFollowerListRequest) ValidateAll ¶
func (m *RelationFollowerListRequest) ValidateAll() error
ValidateAll checks the field values on RelationFollowerListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationFollowerListRequestMultiError, or nil if none found.
type RelationFollowerListRequestMultiError ¶
type RelationFollowerListRequestMultiError []error
RelationFollowerListRequestMultiError is an error wrapping multiple validation errors returned by RelationFollowerListRequest.ValidateAll() if the designated constraints aren't met.
func (RelationFollowerListRequestMultiError) AllErrors ¶
func (m RelationFollowerListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationFollowerListRequestMultiError) Error ¶
func (m RelationFollowerListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationFollowerListRequestValidationError ¶
type RelationFollowerListRequestValidationError struct {
// contains filtered or unexported fields
}
RelationFollowerListRequestValidationError is the validation error returned by RelationFollowerListRequest.Validate if the designated constraints aren't met.
func (RelationFollowerListRequestValidationError) Cause ¶
func (e RelationFollowerListRequestValidationError) Cause() error
Cause function returns cause value.
func (RelationFollowerListRequestValidationError) Error ¶
func (e RelationFollowerListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RelationFollowerListRequestValidationError) ErrorName ¶
func (e RelationFollowerListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RelationFollowerListRequestValidationError) Field ¶
func (e RelationFollowerListRequestValidationError) Field() string
Field function returns field value.
func (RelationFollowerListRequestValidationError) Key ¶
func (e RelationFollowerListRequestValidationError) Key() bool
Key function returns key value.
func (RelationFollowerListRequestValidationError) Reason ¶
func (e RelationFollowerListRequestValidationError) Reason() string
Reason function returns reason value.
type RelationFriendListReply ¶
type RelationFriendListReply struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"` // 返回状态描述 UserList []*FriendUser `protobuf:"bytes,3,rep,name=user_list,proto3" json:"user_list,omitempty"` // 用户列表 // contains filtered or unexported fields }
func (*RelationFriendListReply) Descriptor
deprecated
func (*RelationFriendListReply) Descriptor() ([]byte, []int)
Deprecated: Use RelationFriendListReply.ProtoReflect.Descriptor instead.
func (*RelationFriendListReply) GetStatusCode ¶
func (x *RelationFriendListReply) GetStatusCode() int32
func (*RelationFriendListReply) GetStatusMsg ¶
func (x *RelationFriendListReply) GetStatusMsg() string
func (*RelationFriendListReply) GetUserList ¶
func (x *RelationFriendListReply) GetUserList() []*FriendUser
func (*RelationFriendListReply) ProtoMessage ¶
func (*RelationFriendListReply) ProtoMessage()
func (*RelationFriendListReply) ProtoReflect ¶
func (x *RelationFriendListReply) ProtoReflect() protoreflect.Message
func (*RelationFriendListReply) Reset ¶
func (x *RelationFriendListReply) Reset()
func (*RelationFriendListReply) String ¶
func (x *RelationFriendListReply) String() string
func (*RelationFriendListReply) Validate ¶
func (m *RelationFriendListReply) Validate() error
Validate checks the field values on RelationFriendListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationFriendListReply) ValidateAll ¶
func (m *RelationFriendListReply) ValidateAll() error
ValidateAll checks the field values on RelationFriendListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationFriendListReplyMultiError, or nil if none found.
type RelationFriendListReplyMultiError ¶
type RelationFriendListReplyMultiError []error
RelationFriendListReplyMultiError is an error wrapping multiple validation errors returned by RelationFriendListReply.ValidateAll() if the designated constraints aren't met.
func (RelationFriendListReplyMultiError) AllErrors ¶
func (m RelationFriendListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationFriendListReplyMultiError) Error ¶
func (m RelationFriendListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationFriendListReplyValidationError ¶
type RelationFriendListReplyValidationError struct {
// contains filtered or unexported fields
}
RelationFriendListReplyValidationError is the validation error returned by RelationFriendListReply.Validate if the designated constraints aren't met.
func (RelationFriendListReplyValidationError) Cause ¶
func (e RelationFriendListReplyValidationError) Cause() error
Cause function returns cause value.
func (RelationFriendListReplyValidationError) Error ¶
func (e RelationFriendListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RelationFriendListReplyValidationError) ErrorName ¶
func (e RelationFriendListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RelationFriendListReplyValidationError) Field ¶
func (e RelationFriendListReplyValidationError) Field() string
Field function returns field value.
func (RelationFriendListReplyValidationError) Key ¶
func (e RelationFriendListReplyValidationError) Key() bool
Key function returns key value.
func (RelationFriendListReplyValidationError) Reason ¶
func (e RelationFriendListReplyValidationError) Reason() string
Reason function returns reason value.
type RelationFriendListRequest ¶
type RelationFriendListRequest struct { UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token // contains filtered or unexported fields }
func (*RelationFriendListRequest) Descriptor
deprecated
func (*RelationFriendListRequest) Descriptor() ([]byte, []int)
Deprecated: Use RelationFriendListRequest.ProtoReflect.Descriptor instead.
func (*RelationFriendListRequest) GetToken ¶
func (x *RelationFriendListRequest) GetToken() string
func (*RelationFriendListRequest) GetUserId ¶
func (x *RelationFriendListRequest) GetUserId() uint32
func (*RelationFriendListRequest) ProtoMessage ¶
func (*RelationFriendListRequest) ProtoMessage()
func (*RelationFriendListRequest) ProtoReflect ¶
func (x *RelationFriendListRequest) ProtoReflect() protoreflect.Message
func (*RelationFriendListRequest) Reset ¶
func (x *RelationFriendListRequest) Reset()
func (*RelationFriendListRequest) String ¶
func (x *RelationFriendListRequest) String() string
func (*RelationFriendListRequest) Validate ¶
func (m *RelationFriendListRequest) Validate() error
Validate checks the field values on RelationFriendListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RelationFriendListRequest) ValidateAll ¶
func (m *RelationFriendListRequest) ValidateAll() error
ValidateAll checks the field values on RelationFriendListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RelationFriendListRequestMultiError, or nil if none found.
type RelationFriendListRequestMultiError ¶
type RelationFriendListRequestMultiError []error
RelationFriendListRequestMultiError is an error wrapping multiple validation errors returned by RelationFriendListRequest.ValidateAll() if the designated constraints aren't met.
func (RelationFriendListRequestMultiError) AllErrors ¶
func (m RelationFriendListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RelationFriendListRequestMultiError) Error ¶
func (m RelationFriendListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RelationFriendListRequestValidationError ¶
type RelationFriendListRequestValidationError struct {
// contains filtered or unexported fields
}
RelationFriendListRequestValidationError is the validation error returned by RelationFriendListRequest.Validate if the designated constraints aren't met.
func (RelationFriendListRequestValidationError) Cause ¶
func (e RelationFriendListRequestValidationError) Cause() error
Cause function returns cause value.
func (RelationFriendListRequestValidationError) Error ¶
func (e RelationFriendListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RelationFriendListRequestValidationError) ErrorName ¶
func (e RelationFriendListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RelationFriendListRequestValidationError) Field ¶
func (e RelationFriendListRequestValidationError) Field() string
Field function returns field value.
func (RelationFriendListRequestValidationError) Key ¶
func (e RelationFriendListRequestValidationError) Key() bool
Key function returns key value.
func (RelationFriendListRequestValidationError) Reason ¶
func (e RelationFriendListRequestValidationError) Reason() string
Reason function returns reason value.
type RelationServiceClient ¶
type RelationServiceClient interface { // 获取粉丝列表(客户端) GetFollowerRelationList(ctx context.Context, in *RelationFollowerListRequest, opts ...grpc.CallOption) (*RelationFollowerListReply, error) // 获取关注列表(客户端) GetFollowRelationList(ctx context.Context, in *RelationFollowListRequest, opts ...grpc.CallOption) (*RelationFollowListReply, error) // 关注或取关用户(客户端) RelationAction(ctx context.Context, in *RelationActionRequest, opts ...grpc.CallOption) (*RelationActionReply, error) // 获取好友列表(客户端) GetFriendRelationList(ctx context.Context, in *RelationFriendListRequest, opts ...grpc.CallOption) (*RelationFriendListReply, error) // 根据userId和toUserId判断是否关注(user) IsFollow(ctx context.Context, in *IsFollowRequest, opts ...grpc.CallOption) (*IsFollowReply, error) }
RelationServiceClient is the client API for RelationService 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 NewRelationServiceClient ¶
func NewRelationServiceClient(cc grpc.ClientConnInterface) RelationServiceClient
type RelationServiceHTTPClient ¶
type RelationServiceHTTPClient interface { GetFollowRelationList(ctx context.Context, req *RelationFollowListRequest, opts ...http.CallOption) (rsp *RelationFollowListReply, err error) GetFollowerRelationList(ctx context.Context, req *RelationFollowerListRequest, opts ...http.CallOption) (rsp *RelationFollowerListReply, err error) GetFriendRelationList(ctx context.Context, req *RelationFriendListRequest, opts ...http.CallOption) (rsp *RelationFriendListReply, err error) RelationAction(ctx context.Context, req *RelationActionRequest, opts ...http.CallOption) (rsp *RelationActionReply, err error) }
func NewRelationServiceHTTPClient ¶
func NewRelationServiceHTTPClient(client *http.Client) RelationServiceHTTPClient
type RelationServiceHTTPClientImpl ¶
type RelationServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*RelationServiceHTTPClientImpl) GetFollowRelationList ¶
func (c *RelationServiceHTTPClientImpl) GetFollowRelationList(ctx context.Context, in *RelationFollowListRequest, opts ...http.CallOption) (*RelationFollowListReply, error)
func (*RelationServiceHTTPClientImpl) GetFollowerRelationList ¶
func (c *RelationServiceHTTPClientImpl) GetFollowerRelationList(ctx context.Context, in *RelationFollowerListRequest, opts ...http.CallOption) (*RelationFollowerListReply, error)
func (*RelationServiceHTTPClientImpl) GetFriendRelationList ¶
func (c *RelationServiceHTTPClientImpl) GetFriendRelationList(ctx context.Context, in *RelationFriendListRequest, opts ...http.CallOption) (*RelationFriendListReply, error)
func (*RelationServiceHTTPClientImpl) RelationAction ¶
func (c *RelationServiceHTTPClientImpl) RelationAction(ctx context.Context, in *RelationActionRequest, opts ...http.CallOption) (*RelationActionReply, error)
type RelationServiceHTTPServer ¶
type RelationServiceHTTPServer interface { // GetFollowRelationList 获取关注列表(客户端) GetFollowRelationList(context.Context, *RelationFollowListRequest) (*RelationFollowListReply, error) // GetFollowerRelationList 获取粉丝列表(客户端) GetFollowerRelationList(context.Context, *RelationFollowerListRequest) (*RelationFollowerListReply, error) // GetFriendRelationList 获取好友列表(客户端) GetFriendRelationList(context.Context, *RelationFriendListRequest) (*RelationFriendListReply, error) // RelationAction 关注或取关用户(客户端) RelationAction(context.Context, *RelationActionRequest) (*RelationActionReply, error) }
type RelationServiceServer ¶
type RelationServiceServer interface { // 获取粉丝列表(客户端) GetFollowerRelationList(context.Context, *RelationFollowerListRequest) (*RelationFollowerListReply, error) // 获取关注列表(客户端) GetFollowRelationList(context.Context, *RelationFollowListRequest) (*RelationFollowListReply, error) // 关注或取关用户(客户端) RelationAction(context.Context, *RelationActionRequest) (*RelationActionReply, error) // 获取好友列表(客户端) GetFriendRelationList(context.Context, *RelationFriendListRequest) (*RelationFriendListReply, error) // 根据userId和toUserId判断是否关注(user) IsFollow(context.Context, *IsFollowRequest) (*IsFollowReply, error) // contains filtered or unexported methods }
RelationServiceServer is the server API for RelationService service. All implementations must embed UnimplementedRelationServiceServer for forward compatibility
type UnimplementedRelationServiceServer ¶
type UnimplementedRelationServiceServer struct { }
UnimplementedRelationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRelationServiceServer) GetFollowRelationList ¶
func (UnimplementedRelationServiceServer) GetFollowRelationList(context.Context, *RelationFollowListRequest) (*RelationFollowListReply, error)
func (UnimplementedRelationServiceServer) GetFollowerRelationList ¶
func (UnimplementedRelationServiceServer) GetFollowerRelationList(context.Context, *RelationFollowerListRequest) (*RelationFollowerListReply, error)
func (UnimplementedRelationServiceServer) GetFriendRelationList ¶
func (UnimplementedRelationServiceServer) GetFriendRelationList(context.Context, *RelationFriendListRequest) (*RelationFriendListReply, error)
func (UnimplementedRelationServiceServer) IsFollow ¶
func (UnimplementedRelationServiceServer) IsFollow(context.Context, *IsFollowRequest) (*IsFollowReply, error)
func (UnimplementedRelationServiceServer) RelationAction ¶
func (UnimplementedRelationServiceServer) RelationAction(context.Context, *RelationActionRequest) (*RelationActionReply, error)
type UnsafeRelationServiceServer ¶
type UnsafeRelationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRelationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RelationServiceServer will result in compilation errors.
type User ¶
type User struct { // 用户id Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 关注总数 FollowCount uint32 `protobuf:"varint,3,opt,name=follow_count,proto3" json:"follow_count,omitempty"` // 粉丝总数 FollowerCount uint32 `protobuf:"varint,4,opt,name=follower_count,proto3" json:"follower_count,omitempty"` // true-已关注,false-未关注 IsFollow bool `protobuf:"varint,5,opt,name=is_follow,proto3" json:"is_follow,omitempty"` //用户头像 Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` //用户个人页顶部大图 BackgroundImage string `protobuf:"bytes,7,opt,name=background_image,proto3" json:"background_image,omitempty"` //个人简介 Signature string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` //获赞数量 TotalFavorited uint32 `protobuf:"varint,9,opt,name=total_favorited,proto3" json:"total_favorited,omitempty"` //作品数量 WorkCount uint32 `protobuf:"varint,10,opt,name=work_count,proto3" json:"work_count,omitempty"` //点赞数量 FavoriteCount uint32 `protobuf:"varint,11,opt,name=favorite_count,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
func (*User) Validate ¶
Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*User) ValidateAll ¶
ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.
type UserMultiError ¶
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.