v1

package
v0.0.0-...-7d1b39b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationRelationServiceGetFollowRelationList = "/relation.service.v1.RelationService/GetFollowRelationList"
View Source
const OperationRelationServiceGetFollowerRelationList = "/relation.service.v1.RelationService/GetFollowerRelationList"
View Source
const OperationRelationServiceGetFriendRelationList = "/relation.service.v1.RelationService/GetFriendRelationList"
View Source
const OperationRelationServiceRelationAction = "/relation.service.v1.RelationService/RelationAction"

Variables

View Source
var File_relation_service_v1_relation_proto protoreflect.FileDescriptor
View Source
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

Error satisfies the builtin error interface

func (FriendUserValidationError) ErrorName

func (e FriendUserValidationError) ErrorName() string

ErrorName returns error name.

func (FriendUserValidationError) Field

Field function returns field value.

func (FriendUserValidationError) Key

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

Cause function returns cause value.

func (IsFollowReplyValidationError) Error

Error satisfies the builtin error interface

func (IsFollowReplyValidationError) ErrorName

func (e IsFollowReplyValidationError) ErrorName() string

ErrorName returns error name.

func (IsFollowReplyValidationError) Field

Field function returns field value.

func (IsFollowReplyValidationError) Key

Key function returns key value.

func (IsFollowReplyValidationError) Reason

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

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

Cause function returns cause value.

func (IsFollowRequestValidationError) Error

Error satisfies the builtin error interface

func (IsFollowRequestValidationError) ErrorName

func (e IsFollowRequestValidationError) ErrorName() string

ErrorName returns error name.

func (IsFollowRequestValidationError) Field

Field function returns field value.

func (IsFollowRequestValidationError) Key

Key function returns key value.

func (IsFollowRequestValidationError) Reason

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

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

Cause function returns cause value.

func (RelationActionReplyValidationError) Error

Error satisfies the builtin error interface

func (RelationActionReplyValidationError) ErrorName

ErrorName returns error name.

func (RelationActionReplyValidationError) Field

Field function returns field value.

func (RelationActionReplyValidationError) Key

Key function returns key value.

func (RelationActionReplyValidationError) Reason

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

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

Cause function returns cause value.

func (RelationActionRequestValidationError) Error

Error satisfies the builtin error interface

func (RelationActionRequestValidationError) ErrorName

ErrorName returns error name.

func (RelationActionRequestValidationError) Field

Field function returns field value.

func (RelationActionRequestValidationError) Key

Key function returns key value.

func (RelationActionRequestValidationError) Reason

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

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

Cause function returns cause value.

func (RelationFollowListReplyValidationError) Error

Error satisfies the builtin error interface

func (RelationFollowListReplyValidationError) ErrorName

ErrorName returns error name.

func (RelationFollowListReplyValidationError) Field

Field function returns field value.

func (RelationFollowListReplyValidationError) Key

Key function returns key value.

func (RelationFollowListReplyValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (RelationFollowListRequestMultiError) Error

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

Cause function returns cause value.

func (RelationFollowListRequestValidationError) Error

Error satisfies the builtin error interface

func (RelationFollowListRequestValidationError) ErrorName

ErrorName returns error name.

func (RelationFollowListRequestValidationError) Field

Field function returns field value.

func (RelationFollowListRequestValidationError) Key

Key function returns key value.

func (RelationFollowListRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (RelationFollowerListReplyMultiError) Error

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

Cause function returns cause value.

func (RelationFollowerListReplyValidationError) Error

Error satisfies the builtin error interface

func (RelationFollowerListReplyValidationError) ErrorName

ErrorName returns error name.

func (RelationFollowerListReplyValidationError) Field

Field function returns field value.

func (RelationFollowerListReplyValidationError) Key

Key function returns key value.

func (RelationFollowerListReplyValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (RelationFollowerListRequestMultiError) Error

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

Cause function returns cause value.

func (RelationFollowerListRequestValidationError) Error

Error satisfies the builtin error interface

func (RelationFollowerListRequestValidationError) ErrorName

ErrorName returns error name.

func (RelationFollowerListRequestValidationError) Field

Field function returns field value.

func (RelationFollowerListRequestValidationError) Key

Key function returns key value.

func (RelationFollowerListRequestValidationError) Reason

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

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

Cause function returns cause value.

func (RelationFriendListReplyValidationError) Error

Error satisfies the builtin error interface

func (RelationFriendListReplyValidationError) ErrorName

ErrorName returns error name.

func (RelationFriendListReplyValidationError) Field

Field function returns field value.

func (RelationFriendListReplyValidationError) Key

Key function returns key value.

func (RelationFriendListReplyValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (RelationFriendListRequestMultiError) Error

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

Cause function returns cause value.

func (RelationFriendListRequestValidationError) Error

Error satisfies the builtin error interface

func (RelationFriendListRequestValidationError) ErrorName

ErrorName returns error name.

func (RelationFriendListRequestValidationError) Field

Field function returns field value.

func (RelationFriendListRequestValidationError) Key

Key function returns key value.

func (RelationFriendListRequestValidationError) Reason

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.

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 (*RelationServiceHTTPClientImpl) GetFollowerRelationList

func (*RelationServiceHTTPClientImpl) GetFriendRelationList

func (*RelationServiceHTTPClientImpl) RelationAction

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) GetFollowerRelationList

func (UnimplementedRelationServiceServer) GetFriendRelationList

func (UnimplementedRelationServiceServer) IsFollow

func (UnimplementedRelationServiceServer) RelationAction

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetBackgroundImage

func (x *User) GetBackgroundImage() string

func (*User) GetFavoriteCount

func (x *User) GetFavoriteCount() uint32

func (*User) GetFollowCount

func (x *User) GetFollowCount() uint32

func (*User) GetFollowerCount

func (x *User) GetFollowerCount() uint32

func (*User) GetId

func (x *User) GetId() uint32

func (*User) GetIsFollow

func (x *User) GetIsFollow() bool

func (*User) GetName

func (x *User) GetName() string

func (*User) GetSignature

func (x *User) GetSignature() string

func (*User) GetTotalFavorited

func (x *User) GetTotalFavorited() uint32

func (*User) GetWorkCount

func (x *User) GetWorkCount() uint32

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

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

func (m *User) ValidateAll() error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL