Documentation
¶
Index ¶
- Constants
- Variables
- func ErrorAccountExist(format string, args ...interface{}) *errors.Error
- func ErrorAccountIllegal(format string, args ...interface{}) *errors.Error
- func ErrorAddTeamFailed(format string, args ...interface{}) *errors.Error
- func ErrorAddUserTeamFailed(format string, args ...interface{}) *errors.Error
- func ErrorDeleteTeamFailed(format string, args ...interface{}) *errors.Error
- func ErrorGetTeamFailed(format string, args ...interface{}) *errors.Error
- func ErrorGetTeamListFailed(format string, args ...interface{}) *errors.Error
- func ErrorJoinTeamFailed(format string, args ...interface{}) *errors.Error
- func ErrorLoginStateTimeout(format string, args ...interface{}) *errors.Error
- func ErrorPermissionDeny(format string, args ...interface{}) *errors.Error
- func ErrorQuitTeamFailed(format string, args ...interface{}) *errors.Error
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func ErrorUpdateTeamFailed(format string, args ...interface{}) *errors.Error
- func ErrorUpdateUser(format string, args ...interface{}) *errors.Error
- func ErrorUserDeleteFailed(format string, args ...interface{}) *errors.Error
- func ErrorUserLoginFailed(format string, args ...interface{}) *errors.Error
- func ErrorUserLogoutFailed(format string, args ...interface{}) *errors.Error
- func ErrorUserRegisterFailed(format string, args ...interface{}) *errors.Error
- func ErrorUserSearchFailed(format string, args ...interface{}) *errors.Error
- func ErrorUserTagsEmpty(format string, args ...interface{}) *errors.Error
- func ErrorUsersRecommendFailed(format string, args ...interface{}) *errors.Error
- func ErrorValidateError(format string, args ...interface{}) *errors.Error
- func IsAccountExist(err error) bool
- func IsAccountIllegal(err error) bool
- func IsAddTeamFailed(err error) bool
- func IsAddUserTeamFailed(err error) bool
- func IsDeleteTeamFailed(err error) bool
- func IsGetTeamFailed(err error) bool
- func IsGetTeamListFailed(err error) bool
- func IsJoinTeamFailed(err error) bool
- func IsLoginStateTimeout(err error) bool
- func IsPermissionDeny(err error) bool
- func IsQuitTeamFailed(err error) bool
- func IsUnknownError(err error) bool
- func IsUpdateTeamFailed(err error) bool
- func IsUpdateUser(err error) bool
- func IsUserDeleteFailed(err error) bool
- func IsUserLoginFailed(err error) bool
- func IsUserLogoutFailed(err error) bool
- func IsUserRegisterFailed(err error) bool
- func IsUserSearchFailed(err error) bool
- func IsUserTagsEmpty(err error) bool
- func IsUsersRecommendFailed(err error) bool
- func IsValidateError(err error) bool
- func RegisterPartnerServiceHTTPServer(s *http.Server, srv PartnerServiceHTTPServer)
- func RegisterPartnerServiceServer(s grpc.ServiceRegistrar, srv PartnerServiceServer)
- func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type DeleteTeamReq
- func (*DeleteTeamReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTeamReq) GetId() int32
- func (*DeleteTeamReq) ProtoMessage()
- func (x *DeleteTeamReq) ProtoReflect() protoreflect.Message
- func (x *DeleteTeamReq) Reset()
- func (x *DeleteTeamReq) String() string
- func (m *DeleteTeamReq) Validate() error
- func (m *DeleteTeamReq) ValidateAll() error
- type DeleteTeamReqMultiError
- type DeleteTeamReqValidationError
- func (e DeleteTeamReqValidationError) Cause() error
- func (e DeleteTeamReqValidationError) Error() string
- func (e DeleteTeamReqValidationError) ErrorName() string
- func (e DeleteTeamReqValidationError) Field() string
- func (e DeleteTeamReqValidationError) Key() bool
- func (e DeleteTeamReqValidationError) Reason() string
- type DeleteUserReq
- func (*DeleteUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserReq) GetId() int32
- func (*DeleteUserReq) ProtoMessage()
- func (x *DeleteUserReq) ProtoReflect() protoreflect.Message
- func (x *DeleteUserReq) Reset()
- func (x *DeleteUserReq) String() string
- func (m *DeleteUserReq) Validate() error
- func (m *DeleteUserReq) ValidateAll() error
- type DeleteUserReqMultiError
- type DeleteUserReqValidationError
- func (e DeleteUserReqValidationError) Cause() error
- func (e DeleteUserReqValidationError) Error() string
- func (e DeleteUserReqValidationError) ErrorName() string
- func (e DeleteUserReqValidationError) Field() string
- func (e DeleteUserReqValidationError) Key() bool
- func (e DeleteUserReqValidationError) Reason() string
- type GetCurrentReply
- func (*GetCurrentReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentReply) GetData() *User
- func (*GetCurrentReply) ProtoMessage()
- func (x *GetCurrentReply) ProtoReflect() protoreflect.Message
- func (x *GetCurrentReply) Reset()
- func (x *GetCurrentReply) String() string
- func (m *GetCurrentReply) Validate() error
- func (m *GetCurrentReply) ValidateAll() error
- type GetCurrentReplyMultiError
- type GetCurrentReplyValidationError
- func (e GetCurrentReplyValidationError) Cause() error
- func (e GetCurrentReplyValidationError) Error() string
- func (e GetCurrentReplyValidationError) ErrorName() string
- func (e GetCurrentReplyValidationError) Field() string
- func (e GetCurrentReplyValidationError) Key() bool
- func (e GetCurrentReplyValidationError) Reason() string
- type GetTeamListReq
- func (*GetTeamListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetTeamListReq) GetPage() int32
- func (x *GetTeamListReq) GetPageSize() int32
- func (x *GetTeamListReq) GetQuery() *Team
- func (*GetTeamListReq) ProtoMessage()
- func (x *GetTeamListReq) ProtoReflect() protoreflect.Message
- func (x *GetTeamListReq) Reset()
- func (x *GetTeamListReq) String() string
- func (m *GetTeamListReq) Validate() error
- func (m *GetTeamListReq) ValidateAll() error
- type GetTeamListReqMultiError
- type GetTeamListReqValidationError
- func (e GetTeamListReqValidationError) Cause() error
- func (e GetTeamListReqValidationError) Error() string
- func (e GetTeamListReqValidationError) ErrorName() string
- func (e GetTeamListReqValidationError) Field() string
- func (e GetTeamListReqValidationError) Key() bool
- func (e GetTeamListReqValidationError) Reason() string
- type GetTeamListResponse
- func (*GetTeamListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTeamListResponse) GetData() []*GetTeamListResponse_TeamInfo
- func (*GetTeamListResponse) ProtoMessage()
- func (x *GetTeamListResponse) ProtoReflect() protoreflect.Message
- func (x *GetTeamListResponse) Reset()
- func (x *GetTeamListResponse) String() string
- func (m *GetTeamListResponse) Validate() error
- func (m *GetTeamListResponse) ValidateAll() error
- type GetTeamListResponseMultiError
- type GetTeamListResponseValidationError
- func (e GetTeamListResponseValidationError) Cause() error
- func (e GetTeamListResponseValidationError) Error() string
- func (e GetTeamListResponseValidationError) ErrorName() string
- func (e GetTeamListResponseValidationError) Field() string
- func (e GetTeamListResponseValidationError) Key() bool
- func (e GetTeamListResponseValidationError) Reason() string
- type GetTeamListResponse_TeamInfo
- func (*GetTeamListResponse_TeamInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GetTeamListResponse_TeamInfo) GetTeam() *Team
- func (x *GetTeamListResponse_TeamInfo) GetUserInfo() *User
- func (*GetTeamListResponse_TeamInfo) ProtoMessage()
- func (x *GetTeamListResponse_TeamInfo) ProtoReflect() protoreflect.Message
- func (x *GetTeamListResponse_TeamInfo) Reset()
- func (x *GetTeamListResponse_TeamInfo) String() string
- func (m *GetTeamListResponse_TeamInfo) Validate() error
- func (m *GetTeamListResponse_TeamInfo) ValidateAll() error
- type GetTeamListResponse_TeamInfoMultiError
- type GetTeamListResponse_TeamInfoValidationError
- func (e GetTeamListResponse_TeamInfoValidationError) Cause() error
- func (e GetTeamListResponse_TeamInfoValidationError) Error() string
- func (e GetTeamListResponse_TeamInfoValidationError) ErrorName() string
- func (e GetTeamListResponse_TeamInfoValidationError) Field() string
- func (e GetTeamListResponse_TeamInfoValidationError) Key() bool
- func (e GetTeamListResponse_TeamInfoValidationError) Reason() string
- type GetTeamReq
- func (*GetTeamReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetTeamReq) GetId() int32
- func (*GetTeamReq) ProtoMessage()
- func (x *GetTeamReq) ProtoReflect() protoreflect.Message
- func (x *GetTeamReq) Reset()
- func (x *GetTeamReq) String() string
- func (m *GetTeamReq) Validate() error
- func (m *GetTeamReq) ValidateAll() error
- type GetTeamReqMultiError
- type GetTeamReqValidationError
- type GetTeamResponse
- func (*GetTeamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTeamResponse) GetData() *Team
- func (*GetTeamResponse) ProtoMessage()
- func (x *GetTeamResponse) ProtoReflect() protoreflect.Message
- func (x *GetTeamResponse) Reset()
- func (x *GetTeamResponse) String() string
- func (m *GetTeamResponse) Validate() error
- func (m *GetTeamResponse) ValidateAll() error
- type GetTeamResponseMultiError
- type GetTeamResponseValidationError
- func (e GetTeamResponseValidationError) Cause() error
- func (e GetTeamResponseValidationError) Error() string
- func (e GetTeamResponseValidationError) ErrorName() string
- func (e GetTeamResponseValidationError) Field() string
- func (e GetTeamResponseValidationError) Key() bool
- func (e GetTeamResponseValidationError) Reason() string
- type GlobalErrorReason
- func (GlobalErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x GlobalErrorReason) Enum() *GlobalErrorReason
- func (GlobalErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x GlobalErrorReason) Number() protoreflect.EnumNumber
- func (x GlobalErrorReason) String() string
- func (GlobalErrorReason) Type() protoreflect.EnumType
- type JoinTeamReq
- func (*JoinTeamReq) Descriptor() ([]byte, []int)deprecated
- func (x *JoinTeamReq) GetId() int32
- func (x *JoinTeamReq) GetPassWord() string
- func (*JoinTeamReq) ProtoMessage()
- func (x *JoinTeamReq) ProtoReflect() protoreflect.Message
- func (x *JoinTeamReq) Reset()
- func (x *JoinTeamReq) String() string
- func (m *JoinTeamReq) Validate() error
- func (m *JoinTeamReq) ValidateAll() error
- type JoinTeamReqMultiError
- type JoinTeamReqValidationError
- func (e JoinTeamReqValidationError) Cause() error
- func (e JoinTeamReqValidationError) Error() string
- func (e JoinTeamReqValidationError) ErrorName() string
- func (e JoinTeamReqValidationError) Field() string
- func (e JoinTeamReqValidationError) Key() bool
- func (e JoinTeamReqValidationError) Reason() string
- type PartnerErrorReason
- func (PartnerErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x PartnerErrorReason) Enum() *PartnerErrorReason
- func (PartnerErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x PartnerErrorReason) Number() protoreflect.EnumNumber
- func (x PartnerErrorReason) String() string
- func (PartnerErrorReason) Type() protoreflect.EnumType
- type PartnerServiceClient
- type PartnerServiceHTTPClient
- type PartnerServiceHTTPClientImpl
- func (c *PartnerServiceHTTPClientImpl) AddTeam(ctx context.Context, in *Team, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *PartnerServiceHTTPClientImpl) DeleteTeam(ctx context.Context, in *DeleteTeamReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *PartnerServiceHTTPClientImpl) GetTeam(ctx context.Context, in *GetTeamReq, opts ...http.CallOption) (*GetTeamResponse, error)
- func (c *PartnerServiceHTTPClientImpl) GetTeamList(ctx context.Context, in *GetTeamListReq, opts ...http.CallOption) (*GetTeamListResponse, error)
- func (c *PartnerServiceHTTPClientImpl) JoinTeam(ctx context.Context, in *JoinTeamReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *PartnerServiceHTTPClientImpl) QuitTeam(ctx context.Context, in *QuitTeamReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *PartnerServiceHTTPClientImpl) UpdateTeam(ctx context.Context, in *UpdateTeamReq, opts ...http.CallOption) (*emptypb.Empty, error)
- type PartnerServiceHTTPServer
- type PartnerServiceServer
- type QuitTeamReq
- func (*QuitTeamReq) Descriptor() ([]byte, []int)deprecated
- func (x *QuitTeamReq) GetId() int32
- func (*QuitTeamReq) ProtoMessage()
- func (x *QuitTeamReq) ProtoReflect() protoreflect.Message
- func (x *QuitTeamReq) Reset()
- func (x *QuitTeamReq) String() string
- func (m *QuitTeamReq) Validate() error
- func (m *QuitTeamReq) ValidateAll() error
- type QuitTeamReqMultiError
- type QuitTeamReqValidationError
- func (e QuitTeamReqValidationError) Cause() error
- func (e QuitTeamReqValidationError) Error() string
- func (e QuitTeamReqValidationError) ErrorName() string
- func (e QuitTeamReqValidationError) Field() string
- func (e QuitTeamReqValidationError) Key() bool
- func (e QuitTeamReqValidationError) Reason() string
- type SearchUsersByTagsReq
- func (*SearchUsersByTagsReq) Descriptor() ([]byte, []int)deprecated
- func (x *SearchUsersByTagsReq) GetTagNameList() []string
- func (*SearchUsersByTagsReq) ProtoMessage()
- func (x *SearchUsersByTagsReq) ProtoReflect() protoreflect.Message
- func (x *SearchUsersByTagsReq) Reset()
- func (x *SearchUsersByTagsReq) String() string
- func (m *SearchUsersByTagsReq) Validate() error
- func (m *SearchUsersByTagsReq) ValidateAll() error
- type SearchUsersByTagsReqMultiError
- type SearchUsersByTagsReqValidationError
- func (e SearchUsersByTagsReqValidationError) Cause() error
- func (e SearchUsersByTagsReqValidationError) Error() string
- func (e SearchUsersByTagsReqValidationError) ErrorName() string
- func (e SearchUsersByTagsReqValidationError) Field() string
- func (e SearchUsersByTagsReqValidationError) Key() bool
- func (e SearchUsersByTagsReqValidationError) Reason() string
- type SearchUsersReply
- func (*SearchUsersReply) Descriptor() ([]byte, []int)deprecated
- func (x *SearchUsersReply) GetData() []*User
- func (*SearchUsersReply) ProtoMessage()
- func (x *SearchUsersReply) ProtoReflect() protoreflect.Message
- func (x *SearchUsersReply) Reset()
- func (x *SearchUsersReply) String() string
- func (m *SearchUsersReply) Validate() error
- func (m *SearchUsersReply) ValidateAll() error
- type SearchUsersReplyMultiError
- type SearchUsersReplyValidationError
- func (e SearchUsersReplyValidationError) Cause() error
- func (e SearchUsersReplyValidationError) Error() string
- func (e SearchUsersReplyValidationError) ErrorName() string
- func (e SearchUsersReplyValidationError) Field() string
- func (e SearchUsersReplyValidationError) Key() bool
- func (e SearchUsersReplyValidationError) Reason() string
- type SearchUsersReq
- func (*SearchUsersReq) Descriptor() ([]byte, []int)deprecated
- func (x *SearchUsersReq) GetUserName() string
- func (*SearchUsersReq) ProtoMessage()
- func (x *SearchUsersReq) ProtoReflect() protoreflect.Message
- func (x *SearchUsersReq) Reset()
- func (x *SearchUsersReq) String() string
- func (m *SearchUsersReq) Validate() error
- func (m *SearchUsersReq) ValidateAll() error
- type SearchUsersReqMultiError
- type SearchUsersReqValidationError
- func (e SearchUsersReqValidationError) Cause() error
- func (e SearchUsersReqValidationError) Error() string
- func (e SearchUsersReqValidationError) ErrorName() string
- func (e SearchUsersReqValidationError) Field() string
- func (e SearchUsersReqValidationError) Key() bool
- func (e SearchUsersReqValidationError) Reason() string
- type Team
- func (*Team) Descriptor() ([]byte, []int)deprecated
- func (x *Team) GetDescription() string
- func (x *Team) GetExpireTime() string
- func (x *Team) GetId() int32
- func (x *Team) GetMaxNum() int32
- func (x *Team) GetName() string
- func (x *Team) GetPassword() string
- func (x *Team) GetStatus() int32
- func (x *Team) GetUserId() int32
- func (*Team) ProtoMessage()
- func (x *Team) ProtoReflect() protoreflect.Message
- func (x *Team) Reset()
- func (x *Team) String() string
- func (m *Team) Validate() error
- func (m *Team) ValidateAll() error
- type TeamMultiError
- type TeamValidationError
- type UnimplementedPartnerServiceServer
- func (UnimplementedPartnerServiceServer) AddTeam(context.Context, *Team) (*emptypb.Empty, error)
- func (UnimplementedPartnerServiceServer) DeleteTeam(context.Context, *DeleteTeamReq) (*emptypb.Empty, error)
- func (UnimplementedPartnerServiceServer) GetTeam(context.Context, *GetTeamReq) (*GetTeamResponse, error)
- func (UnimplementedPartnerServiceServer) GetTeamList(context.Context, *GetTeamListReq) (*GetTeamListResponse, error)
- func (UnimplementedPartnerServiceServer) JoinTeam(context.Context, *JoinTeamReq) (*emptypb.Empty, error)
- func (UnimplementedPartnerServiceServer) QuitTeam(context.Context, *QuitTeamReq) (*emptypb.Empty, error)
- func (UnimplementedPartnerServiceServer) UpdateTeam(context.Context, *UpdateTeamReq) (*emptypb.Empty, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserReq) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) GetCurrentUser(context.Context, *emptypb.Empty) (*GetCurrentReply, error)
- func (UnimplementedUserServiceServer) SearchUsers(context.Context, *SearchUsersReq) (*SearchUsersReply, error)
- func (UnimplementedUserServiceServer) SearchUsersByTags(context.Context, *SearchUsersByTagsReq) (*SearchUsersReply, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserReq) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) UserLogin(context.Context, *UserLoginReq) (*UserLoginReply, error)
- func (UnimplementedUserServiceServer) UserLogout(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) UserRegister(context.Context, *UserRegisterReq) (*UserRegisterReply, error)
- func (UnimplementedUserServiceServer) UsersRecommend(context.Context, *UsersRecommendReq) (*UsersRecommendReply, error)
- type UnsafePartnerServiceServer
- type UnsafeUserServiceServer
- type UpdateTeamReq
- func (*UpdateTeamReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTeamReq) GetDescription() string
- func (x *UpdateTeamReq) GetExpireTime() string
- func (x *UpdateTeamReq) GetName() string
- func (x *UpdateTeamReq) GetPassword() string
- func (x *UpdateTeamReq) GetStatus() int32
- func (*UpdateTeamReq) ProtoMessage()
- func (x *UpdateTeamReq) ProtoReflect() protoreflect.Message
- func (x *UpdateTeamReq) Reset()
- func (x *UpdateTeamReq) String() string
- func (m *UpdateTeamReq) Validate() error
- func (m *UpdateTeamReq) ValidateAll() error
- type UpdateTeamReqMultiError
- type UpdateTeamReqValidationError
- func (e UpdateTeamReqValidationError) Cause() error
- func (e UpdateTeamReqValidationError) Error() string
- func (e UpdateTeamReqValidationError) ErrorName() string
- func (e UpdateTeamReqValidationError) Field() string
- func (e UpdateTeamReqValidationError) Key() bool
- func (e UpdateTeamReqValidationError) Reason() string
- type UpdateUserReq
- func (*UpdateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserReq) GetData() *User
- func (*UpdateUserReq) ProtoMessage()
- func (x *UpdateUserReq) ProtoReflect() protoreflect.Message
- func (x *UpdateUserReq) Reset()
- func (x *UpdateUserReq) String() string
- func (m *UpdateUserReq) Validate() error
- func (m *UpdateUserReq) ValidateAll() error
- type UpdateUserReqMultiError
- type UpdateUserReqValidationError
- func (e UpdateUserReqValidationError) Cause() error
- func (e UpdateUserReqValidationError) Error() string
- func (e UpdateUserReqValidationError) ErrorName() string
- func (e UpdateUserReqValidationError) Field() string
- func (e UpdateUserReqValidationError) Key() bool
- func (e UpdateUserReqValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatarUrl() string
- func (x *User) GetCreateTime() string
- func (x *User) GetEmail() string
- func (x *User) GetEmpty() bool
- func (x *User) GetGender() int32
- func (x *User) GetId() int32
- func (x *User) GetPhone() string
- func (x *User) GetProfile() string
- func (x *User) GetTags() string
- func (x *User) GetUserAccount() string
- func (x *User) GetUserName() string
- func (x *User) GetUserRole() int32
- func (x *User) GetUserStatus() int32
- 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 UserErrorReason
- func (UserErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x UserErrorReason) Enum() *UserErrorReason
- func (UserErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserErrorReason) Number() protoreflect.EnumNumber
- func (x UserErrorReason) String() string
- func (UserErrorReason) Type() protoreflect.EnumType
- type UserLoginReply
- func (*UserLoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginReply) GetData() *User
- func (*UserLoginReply) ProtoMessage()
- func (x *UserLoginReply) ProtoReflect() protoreflect.Message
- func (x *UserLoginReply) Reset()
- func (x *UserLoginReply) String() string
- func (m *UserLoginReply) Validate() error
- func (m *UserLoginReply) ValidateAll() error
- type UserLoginReplyMultiError
- type UserLoginReplyValidationError
- func (e UserLoginReplyValidationError) Cause() error
- func (e UserLoginReplyValidationError) Error() string
- func (e UserLoginReplyValidationError) ErrorName() string
- func (e UserLoginReplyValidationError) Field() string
- func (e UserLoginReplyValidationError) Key() bool
- func (e UserLoginReplyValidationError) Reason() string
- type UserLoginReq
- func (*UserLoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginReq) GetUserAccount() string
- func (x *UserLoginReq) GetUserPassword() string
- func (*UserLoginReq) ProtoMessage()
- func (x *UserLoginReq) ProtoReflect() protoreflect.Message
- func (x *UserLoginReq) Reset()
- func (x *UserLoginReq) String() string
- func (m *UserLoginReq) Validate() error
- func (m *UserLoginReq) ValidateAll() error
- type UserLoginReqMultiError
- type UserLoginReqValidationError
- func (e UserLoginReqValidationError) Cause() error
- func (e UserLoginReqValidationError) Error() string
- func (e UserLoginReqValidationError) ErrorName() string
- func (e UserLoginReqValidationError) Field() string
- func (e UserLoginReqValidationError) Key() bool
- func (e UserLoginReqValidationError) Reason() string
- type UserMultiError
- type UserRegisterReply
- func (*UserRegisterReply) Descriptor() ([]byte, []int)deprecated
- func (x *UserRegisterReply) GetData() *User
- func (*UserRegisterReply) ProtoMessage()
- func (x *UserRegisterReply) ProtoReflect() protoreflect.Message
- func (x *UserRegisterReply) Reset()
- func (x *UserRegisterReply) String() string
- func (m *UserRegisterReply) Validate() error
- func (m *UserRegisterReply) ValidateAll() error
- type UserRegisterReplyMultiError
- type UserRegisterReplyValidationError
- func (e UserRegisterReplyValidationError) Cause() error
- func (e UserRegisterReplyValidationError) Error() string
- func (e UserRegisterReplyValidationError) ErrorName() string
- func (e UserRegisterReplyValidationError) Field() string
- func (e UserRegisterReplyValidationError) Key() bool
- func (e UserRegisterReplyValidationError) Reason() string
- type UserRegisterReq
- func (*UserRegisterReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserRegisterReq) GetCheckPassword() string
- func (x *UserRegisterReq) GetUserAccount() string
- func (x *UserRegisterReq) GetUserPassword() string
- func (*UserRegisterReq) ProtoMessage()
- func (x *UserRegisterReq) ProtoReflect() protoreflect.Message
- func (x *UserRegisterReq) Reset()
- func (x *UserRegisterReq) String() string
- func (m *UserRegisterReq) Validate() error
- func (m *UserRegisterReq) ValidateAll() error
- type UserRegisterReqMultiError
- type UserRegisterReqValidationError
- func (e UserRegisterReqValidationError) Cause() error
- func (e UserRegisterReqValidationError) Error() string
- func (e UserRegisterReqValidationError) ErrorName() string
- func (e UserRegisterReqValidationError) Field() string
- func (e UserRegisterReqValidationError) Key() bool
- func (e UserRegisterReqValidationError) Reason() string
- type UserServiceClient
- type UserServiceHTTPClient
- type UserServiceHTTPClientImpl
- func (c *UserServiceHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *UserServiceHTTPClientImpl) GetCurrentUser(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetCurrentReply, error)
- func (c *UserServiceHTTPClientImpl) SearchUsers(ctx context.Context, in *SearchUsersReq, opts ...http.CallOption) (*SearchUsersReply, error)
- func (c *UserServiceHTTPClientImpl) SearchUsersByTags(ctx context.Context, in *SearchUsersByTagsReq, opts ...http.CallOption) (*SearchUsersReply, error)
- func (c *UserServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *UserServiceHTTPClientImpl) UserLogin(ctx context.Context, in *UserLoginReq, opts ...http.CallOption) (*UserLoginReply, error)
- func (c *UserServiceHTTPClientImpl) UserLogout(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *UserServiceHTTPClientImpl) UserRegister(ctx context.Context, in *UserRegisterReq, opts ...http.CallOption) (*UserRegisterReply, error)
- func (c *UserServiceHTTPClientImpl) UsersRecommend(ctx context.Context, in *UsersRecommendReq, opts ...http.CallOption) (*UsersRecommendReply, error)
- type UserServiceHTTPServer
- type UserServiceServer
- type UserValidationError
- type UsersRecommendReply
- func (*UsersRecommendReply) Descriptor() ([]byte, []int)deprecated
- func (x *UsersRecommendReply) GetData() []*User
- func (*UsersRecommendReply) ProtoMessage()
- func (x *UsersRecommendReply) ProtoReflect() protoreflect.Message
- func (x *UsersRecommendReply) Reset()
- func (x *UsersRecommendReply) String() string
- func (m *UsersRecommendReply) Validate() error
- func (m *UsersRecommendReply) ValidateAll() error
- type UsersRecommendReplyMultiError
- type UsersRecommendReplyValidationError
- func (e UsersRecommendReplyValidationError) Cause() error
- func (e UsersRecommendReplyValidationError) Error() string
- func (e UsersRecommendReplyValidationError) ErrorName() string
- func (e UsersRecommendReplyValidationError) Field() string
- func (e UsersRecommendReplyValidationError) Key() bool
- func (e UsersRecommendReplyValidationError) Reason() string
- type UsersRecommendReq
- func (*UsersRecommendReq) Descriptor() ([]byte, []int)deprecated
- func (x *UsersRecommendReq) GetPageNum() int32
- func (x *UsersRecommendReq) GetPageSize() int32
- func (*UsersRecommendReq) ProtoMessage()
- func (x *UsersRecommendReq) ProtoReflect() protoreflect.Message
- func (x *UsersRecommendReq) Reset()
- func (x *UsersRecommendReq) String() string
- func (m *UsersRecommendReq) Validate() error
- func (m *UsersRecommendReq) ValidateAll() error
- type UsersRecommendReqMultiError
- type UsersRecommendReqValidationError
- func (e UsersRecommendReqValidationError) Cause() error
- func (e UsersRecommendReqValidationError) Error() string
- func (e UsersRecommendReqValidationError) ErrorName() string
- func (e UsersRecommendReqValidationError) Field() string
- func (e UsersRecommendReqValidationError) Key() bool
- func (e UsersRecommendReqValidationError) Reason() string
Constants ¶
const ( PartnerService_AddTeam_FullMethodName = "/partner.v1.PartnerService/AddTeam" PartnerService_DeleteTeam_FullMethodName = "/partner.v1.PartnerService/DeleteTeam" PartnerService_UpdateTeam_FullMethodName = "/partner.v1.PartnerService/UpdateTeam" PartnerService_GetTeam_FullMethodName = "/partner.v1.PartnerService/GetTeam" PartnerService_GetTeamList_FullMethodName = "/partner.v1.PartnerService/GetTeamList" PartnerService_JoinTeam_FullMethodName = "/partner.v1.PartnerService/JoinTeam" PartnerService_QuitTeam_FullMethodName = "/partner.v1.PartnerService/QuitTeam" )
const ( UserService_UserRegister_FullMethodName = "/user.v1.UserService/UserRegister" UserService_UserLogin_FullMethodName = "/user.v1.UserService/UserLogin" UserService_SearchUsers_FullMethodName = "/user.v1.UserService/SearchUsers" UserService_SearchUsersByTags_FullMethodName = "/user.v1.UserService/SearchUsersByTags" UserService_DeleteUser_FullMethodName = "/user.v1.UserService/DeleteUser" UserService_GetCurrentUser_FullMethodName = "/user.v1.UserService/GetCurrentUser" UserService_UserLogout_FullMethodName = "/user.v1.UserService/UserLogout" UserService_UpdateUser_FullMethodName = "/user.v1.UserService/UpdateUser" UserService_UsersRecommend_FullMethodName = "/user.v1.UserService/UsersRecommend" )
const OperationPartnerServiceAddTeam = "/partner.v1.PartnerService/AddTeam"
const OperationPartnerServiceDeleteTeam = "/partner.v1.PartnerService/DeleteTeam"
const OperationPartnerServiceGetTeam = "/partner.v1.PartnerService/GetTeam"
const OperationPartnerServiceGetTeamList = "/partner.v1.PartnerService/GetTeamList"
const OperationPartnerServiceJoinTeam = "/partner.v1.PartnerService/JoinTeam"
const OperationPartnerServiceQuitTeam = "/partner.v1.PartnerService/QuitTeam"
const OperationPartnerServiceUpdateTeam = "/partner.v1.PartnerService/UpdateTeam"
const OperationUserServiceDeleteUser = "/user.v1.UserService/DeleteUser"
const OperationUserServiceGetCurrentUser = "/user.v1.UserService/GetCurrentUser"
const OperationUserServiceSearchUsers = "/user.v1.UserService/SearchUsers"
const OperationUserServiceSearchUsersByTags = "/user.v1.UserService/SearchUsersByTags"
const OperationUserServiceUpdateUser = "/user.v1.UserService/UpdateUser"
const OperationUserServiceUserLogin = "/user.v1.UserService/UserLogin"
const OperationUserServiceUserLogout = "/user.v1.UserService/UserLogout"
const OperationUserServiceUserRegister = "/user.v1.UserService/UserRegister"
const OperationUserServiceUsersRecommend = "/user.v1.UserService/UsersRecommend"
Variables ¶
var ( GlobalErrorReason_name = map[int32]string{ 0: "PERMISSION_DENY", } GlobalErrorReason_value = map[string]int32{ "PERMISSION_DENY": 0, } )
Enum value maps for GlobalErrorReason.
var ( PartnerErrorReason_name = map[int32]string{ 0: "ADD_TEAM_FAILED", 1: "DELETE_TEAM_FAILED", 2: "UPDATE_TEAM_FAILED", 3: "GET_TEAM_FAILED", 4: "GET_TEAM_LIST_FAILED", 5: "ADD_USER_TEAM_FAILED", 6: "JOIN_TEAM_FAILED", 7: "Quit_TEAM_FAILED", } PartnerErrorReason_value = map[string]int32{ "ADD_TEAM_FAILED": 0, "DELETE_TEAM_FAILED": 1, "UPDATE_TEAM_FAILED": 2, "GET_TEAM_FAILED": 3, "GET_TEAM_LIST_FAILED": 4, "ADD_USER_TEAM_FAILED": 5, "JOIN_TEAM_FAILED": 6, "Quit_TEAM_FAILED": 7, } )
Enum value maps for PartnerErrorReason.
var ( UserErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", 1: "VALIDATE_ERROR", 2: "ACCOUNT_EXIST", 3: "ACCOUNT_ILLEGAL", 4: "USER_REGISTER_FAILED", 5: "USER_LOGIN_FAILED", 6: "USER_SEARCH_FAILED", 7: "USER_DELETE_FAILED", 9: "LOGIN_STATE_TIMEOUT", 10: "USER_LOGOUT_FAILED", 11: "USER_TAGS_EMPTY", 12: "UPDATE_USER", 13: "USERS_RECOMMEND_FAILED", } UserErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, "VALIDATE_ERROR": 1, "ACCOUNT_EXIST": 2, "ACCOUNT_ILLEGAL": 3, "USER_REGISTER_FAILED": 4, "USER_LOGIN_FAILED": 5, "USER_SEARCH_FAILED": 6, "USER_DELETE_FAILED": 7, "LOGIN_STATE_TIMEOUT": 9, "USER_LOGOUT_FAILED": 10, "USER_TAGS_EMPTY": 11, "UPDATE_USER": 12, "USERS_RECOMMEND_FAILED": 13, } )
Enum value maps for UserErrorReason.
var File_partner_service_v1_global_error_proto protoreflect.FileDescriptor
var File_partner_service_v1_partner_error_proto protoreflect.FileDescriptor
var File_partner_service_v1_partner_proto protoreflect.FileDescriptor
var File_partner_service_v1_user_error_proto protoreflect.FileDescriptor
var File_partner_service_v1_user_proto protoreflect.FileDescriptor
var PartnerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "partner.v1.PartnerService", HandlerType: (*PartnerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddTeam", Handler: _PartnerService_AddTeam_Handler, }, { MethodName: "DeleteTeam", Handler: _PartnerService_DeleteTeam_Handler, }, { MethodName: "UpdateTeam", Handler: _PartnerService_UpdateTeam_Handler, }, { MethodName: "GetTeam", Handler: _PartnerService_GetTeam_Handler, }, { MethodName: "GetTeamList", Handler: _PartnerService_GetTeamList_Handler, }, { MethodName: "JoinTeam", Handler: _PartnerService_JoinTeam_Handler, }, { MethodName: "QuitTeam", Handler: _PartnerService_QuitTeam_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "partner/service/v1/partner.proto", }
PartnerService_ServiceDesc is the grpc.ServiceDesc for PartnerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UserRegister", Handler: _UserService_UserRegister_Handler, }, { MethodName: "UserLogin", Handler: _UserService_UserLogin_Handler, }, { MethodName: "SearchUsers", Handler: _UserService_SearchUsers_Handler, }, { MethodName: "SearchUsersByTags", Handler: _UserService_SearchUsersByTags_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "GetCurrentUser", Handler: _UserService_GetCurrentUser_Handler, }, { MethodName: "UserLogout", Handler: _UserService_UserLogout_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "UsersRecommend", Handler: _UserService_UsersRecommend_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "partner/service/v1/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorAccountExist ¶
func ErrorAccountIllegal ¶
func ErrorAddTeamFailed ¶
Get_Account_Failed = 1 [(errors.code) = 401];
func ErrorAddUserTeamFailed ¶
func ErrorDeleteTeamFailed ¶
func ErrorGetTeamFailed ¶
func ErrorGetTeamListFailed ¶
func ErrorJoinTeamFailed ¶
func ErrorLoginStateTimeout ¶
func ErrorPermissionDeny ¶
func ErrorQuitTeamFailed ¶
func ErrorUnknownError ¶
func ErrorUpdateTeamFailed ¶
func ErrorUpdateUser ¶
func ErrorUserDeleteFailed ¶
func ErrorUserLoginFailed ¶
func ErrorUserLogoutFailed ¶
func ErrorUserRegisterFailed ¶
func ErrorUserSearchFailed ¶
func ErrorUserTagsEmpty ¶
func ErrorValidateError ¶
Get_Account_Failed = 1 [(errors.code) = 401];
func IsAccountExist ¶
func IsAccountIllegal ¶
func IsAddTeamFailed ¶
Get_Account_Failed = 1 [(errors.code) = 401];
func IsAddUserTeamFailed ¶
func IsDeleteTeamFailed ¶
func IsGetTeamFailed ¶
func IsGetTeamListFailed ¶
func IsJoinTeamFailed ¶
func IsLoginStateTimeout ¶
func IsPermissionDeny ¶
func IsQuitTeamFailed ¶
func IsUnknownError ¶
func IsUpdateTeamFailed ¶
func IsUpdateUser ¶
func IsUserDeleteFailed ¶
func IsUserLoginFailed ¶
func IsUserLogoutFailed ¶
func IsUserRegisterFailed ¶
func IsUserSearchFailed ¶
func IsUserTagsEmpty ¶
func IsUsersRecommendFailed ¶
func IsValidateError ¶
Get_Account_Failed = 1 [(errors.code) = 401];
func RegisterPartnerServiceHTTPServer ¶
func RegisterPartnerServiceHTTPServer(s *http.Server, srv PartnerServiceHTTPServer)
func RegisterPartnerServiceServer ¶
func RegisterPartnerServiceServer(s grpc.ServiceRegistrar, srv PartnerServiceServer)
func RegisterUserServiceHTTPServer ¶
func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type DeleteTeamReq ¶
type DeleteTeamReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTeamReq) Descriptor
deprecated
func (*DeleteTeamReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTeamReq.ProtoReflect.Descriptor instead.
func (*DeleteTeamReq) GetId ¶
func (x *DeleteTeamReq) GetId() int32
func (*DeleteTeamReq) ProtoMessage ¶
func (*DeleteTeamReq) ProtoMessage()
func (*DeleteTeamReq) ProtoReflect ¶
func (x *DeleteTeamReq) ProtoReflect() protoreflect.Message
func (*DeleteTeamReq) Reset ¶
func (x *DeleteTeamReq) Reset()
func (*DeleteTeamReq) String ¶
func (x *DeleteTeamReq) String() string
func (*DeleteTeamReq) Validate ¶
func (m *DeleteTeamReq) Validate() error
Validate checks the field values on DeleteTeamReq 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 (*DeleteTeamReq) ValidateAll ¶
func (m *DeleteTeamReq) ValidateAll() error
ValidateAll checks the field values on DeleteTeamReq 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 DeleteTeamReqMultiError, or nil if none found.
type DeleteTeamReqMultiError ¶
type DeleteTeamReqMultiError []error
DeleteTeamReqMultiError is an error wrapping multiple validation errors returned by DeleteTeamReq.ValidateAll() if the designated constraints aren't met.
func (DeleteTeamReqMultiError) AllErrors ¶
func (m DeleteTeamReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteTeamReqMultiError) Error ¶
func (m DeleteTeamReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteTeamReqValidationError ¶
type DeleteTeamReqValidationError struct {
// contains filtered or unexported fields
}
DeleteTeamReqValidationError is the validation error returned by DeleteTeamReq.Validate if the designated constraints aren't met.
func (DeleteTeamReqValidationError) Cause ¶
func (e DeleteTeamReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteTeamReqValidationError) Error ¶
func (e DeleteTeamReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTeamReqValidationError) ErrorName ¶
func (e DeleteTeamReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTeamReqValidationError) Field ¶
func (e DeleteTeamReqValidationError) Field() string
Field function returns field value.
func (DeleteTeamReqValidationError) Key ¶
func (e DeleteTeamReqValidationError) Key() bool
Key function returns key value.
func (DeleteTeamReqValidationError) Reason ¶
func (e DeleteTeamReqValidationError) Reason() string
Reason function returns reason value.
type DeleteUserReq ¶
type DeleteUserReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserReq) Descriptor
deprecated
func (*DeleteUserReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserReq.ProtoReflect.Descriptor instead.
func (*DeleteUserReq) GetId ¶
func (x *DeleteUserReq) GetId() int32
func (*DeleteUserReq) ProtoMessage ¶
func (*DeleteUserReq) ProtoMessage()
func (*DeleteUserReq) ProtoReflect ¶
func (x *DeleteUserReq) ProtoReflect() protoreflect.Message
func (*DeleteUserReq) Reset ¶
func (x *DeleteUserReq) Reset()
func (*DeleteUserReq) String ¶
func (x *DeleteUserReq) String() string
func (*DeleteUserReq) Validate ¶
func (m *DeleteUserReq) Validate() error
Validate checks the field values on DeleteUserReq 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 (*DeleteUserReq) ValidateAll ¶
func (m *DeleteUserReq) ValidateAll() error
ValidateAll checks the field values on DeleteUserReq 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 DeleteUserReqMultiError, or nil if none found.
type DeleteUserReqMultiError ¶
type DeleteUserReqMultiError []error
DeleteUserReqMultiError is an error wrapping multiple validation errors returned by DeleteUserReq.ValidateAll() if the designated constraints aren't met.
func (DeleteUserReqMultiError) AllErrors ¶
func (m DeleteUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserReqMultiError) Error ¶
func (m DeleteUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserReqValidationError ¶
type DeleteUserReqValidationError struct {
// contains filtered or unexported fields
}
DeleteUserReqValidationError is the validation error returned by DeleteUserReq.Validate if the designated constraints aren't met.
func (DeleteUserReqValidationError) Cause ¶
func (e DeleteUserReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserReqValidationError) Error ¶
func (e DeleteUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserReqValidationError) ErrorName ¶
func (e DeleteUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserReqValidationError) Field ¶
func (e DeleteUserReqValidationError) Field() string
Field function returns field value.
func (DeleteUserReqValidationError) Key ¶
func (e DeleteUserReqValidationError) Key() bool
Key function returns key value.
func (DeleteUserReqValidationError) Reason ¶
func (e DeleteUserReqValidationError) Reason() string
Reason function returns reason value.
type GetCurrentReply ¶
type GetCurrentReply struct { Data *User `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetCurrentReply) Descriptor
deprecated
func (*GetCurrentReply) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentReply.ProtoReflect.Descriptor instead.
func (*GetCurrentReply) GetData ¶
func (x *GetCurrentReply) GetData() *User
func (*GetCurrentReply) ProtoMessage ¶
func (*GetCurrentReply) ProtoMessage()
func (*GetCurrentReply) ProtoReflect ¶
func (x *GetCurrentReply) ProtoReflect() protoreflect.Message
func (*GetCurrentReply) Reset ¶
func (x *GetCurrentReply) Reset()
func (*GetCurrentReply) String ¶
func (x *GetCurrentReply) String() string
func (*GetCurrentReply) Validate ¶
func (m *GetCurrentReply) Validate() error
Validate checks the field values on GetCurrentReply 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 (*GetCurrentReply) ValidateAll ¶
func (m *GetCurrentReply) ValidateAll() error
ValidateAll checks the field values on GetCurrentReply 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 GetCurrentReplyMultiError, or nil if none found.
type GetCurrentReplyMultiError ¶
type GetCurrentReplyMultiError []error
GetCurrentReplyMultiError is an error wrapping multiple validation errors returned by GetCurrentReply.ValidateAll() if the designated constraints aren't met.
func (GetCurrentReplyMultiError) AllErrors ¶
func (m GetCurrentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCurrentReplyMultiError) Error ¶
func (m GetCurrentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCurrentReplyValidationError ¶
type GetCurrentReplyValidationError struct {
// contains filtered or unexported fields
}
GetCurrentReplyValidationError is the validation error returned by GetCurrentReply.Validate if the designated constraints aren't met.
func (GetCurrentReplyValidationError) Cause ¶
func (e GetCurrentReplyValidationError) Cause() error
Cause function returns cause value.
func (GetCurrentReplyValidationError) Error ¶
func (e GetCurrentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetCurrentReplyValidationError) ErrorName ¶
func (e GetCurrentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetCurrentReplyValidationError) Field ¶
func (e GetCurrentReplyValidationError) Field() string
Field function returns field value.
func (GetCurrentReplyValidationError) Key ¶
func (e GetCurrentReplyValidationError) Key() bool
Key function returns key value.
func (GetCurrentReplyValidationError) Reason ¶
func (e GetCurrentReplyValidationError) Reason() string
Reason function returns reason value.
type GetTeamListReq ¶
type GetTeamListReq struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Query *Team `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*GetTeamListReq) Descriptor
deprecated
func (*GetTeamListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetTeamListReq.ProtoReflect.Descriptor instead.
func (*GetTeamListReq) GetPage ¶
func (x *GetTeamListReq) GetPage() int32
func (*GetTeamListReq) GetPageSize ¶
func (x *GetTeamListReq) GetPageSize() int32
func (*GetTeamListReq) GetQuery ¶
func (x *GetTeamListReq) GetQuery() *Team
func (*GetTeamListReq) ProtoMessage ¶
func (*GetTeamListReq) ProtoMessage()
func (*GetTeamListReq) ProtoReflect ¶
func (x *GetTeamListReq) ProtoReflect() protoreflect.Message
func (*GetTeamListReq) Reset ¶
func (x *GetTeamListReq) Reset()
func (*GetTeamListReq) String ¶
func (x *GetTeamListReq) String() string
func (*GetTeamListReq) Validate ¶
func (m *GetTeamListReq) Validate() error
Validate checks the field values on GetTeamListReq 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 (*GetTeamListReq) ValidateAll ¶
func (m *GetTeamListReq) ValidateAll() error
ValidateAll checks the field values on GetTeamListReq 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 GetTeamListReqMultiError, or nil if none found.
type GetTeamListReqMultiError ¶
type GetTeamListReqMultiError []error
GetTeamListReqMultiError is an error wrapping multiple validation errors returned by GetTeamListReq.ValidateAll() if the designated constraints aren't met.
func (GetTeamListReqMultiError) AllErrors ¶
func (m GetTeamListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTeamListReqMultiError) Error ¶
func (m GetTeamListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTeamListReqValidationError ¶
type GetTeamListReqValidationError struct {
// contains filtered or unexported fields
}
GetTeamListReqValidationError is the validation error returned by GetTeamListReq.Validate if the designated constraints aren't met.
func (GetTeamListReqValidationError) Cause ¶
func (e GetTeamListReqValidationError) Cause() error
Cause function returns cause value.
func (GetTeamListReqValidationError) Error ¶
func (e GetTeamListReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetTeamListReqValidationError) ErrorName ¶
func (e GetTeamListReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetTeamListReqValidationError) Field ¶
func (e GetTeamListReqValidationError) Field() string
Field function returns field value.
func (GetTeamListReqValidationError) Key ¶
func (e GetTeamListReqValidationError) Key() bool
Key function returns key value.
func (GetTeamListReqValidationError) Reason ¶
func (e GetTeamListReqValidationError) Reason() string
Reason function returns reason value.
type GetTeamListResponse ¶
type GetTeamListResponse struct { Data []*GetTeamListResponse_TeamInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetTeamListResponse) Descriptor
deprecated
func (*GetTeamListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTeamListResponse.ProtoReflect.Descriptor instead.
func (*GetTeamListResponse) GetData ¶
func (x *GetTeamListResponse) GetData() []*GetTeamListResponse_TeamInfo
func (*GetTeamListResponse) ProtoMessage ¶
func (*GetTeamListResponse) ProtoMessage()
func (*GetTeamListResponse) ProtoReflect ¶
func (x *GetTeamListResponse) ProtoReflect() protoreflect.Message
func (*GetTeamListResponse) Reset ¶
func (x *GetTeamListResponse) Reset()
func (*GetTeamListResponse) String ¶
func (x *GetTeamListResponse) String() string
func (*GetTeamListResponse) Validate ¶
func (m *GetTeamListResponse) Validate() error
Validate checks the field values on GetTeamListResponse 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 (*GetTeamListResponse) ValidateAll ¶
func (m *GetTeamListResponse) ValidateAll() error
ValidateAll checks the field values on GetTeamListResponse 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 GetTeamListResponseMultiError, or nil if none found.
type GetTeamListResponseMultiError ¶
type GetTeamListResponseMultiError []error
GetTeamListResponseMultiError is an error wrapping multiple validation errors returned by GetTeamListResponse.ValidateAll() if the designated constraints aren't met.
func (GetTeamListResponseMultiError) AllErrors ¶
func (m GetTeamListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTeamListResponseMultiError) Error ¶
func (m GetTeamListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTeamListResponseValidationError ¶
type GetTeamListResponseValidationError struct {
// contains filtered or unexported fields
}
GetTeamListResponseValidationError is the validation error returned by GetTeamListResponse.Validate if the designated constraints aren't met.
func (GetTeamListResponseValidationError) Cause ¶
func (e GetTeamListResponseValidationError) Cause() error
Cause function returns cause value.
func (GetTeamListResponseValidationError) Error ¶
func (e GetTeamListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetTeamListResponseValidationError) ErrorName ¶
func (e GetTeamListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetTeamListResponseValidationError) Field ¶
func (e GetTeamListResponseValidationError) Field() string
Field function returns field value.
func (GetTeamListResponseValidationError) Key ¶
func (e GetTeamListResponseValidationError) Key() bool
Key function returns key value.
func (GetTeamListResponseValidationError) Reason ¶
func (e GetTeamListResponseValidationError) Reason() string
Reason function returns reason value.
type GetTeamListResponse_TeamInfo ¶
type GetTeamListResponse_TeamInfo struct { Team *Team `protobuf:"bytes,1,opt,name=team,proto3" json:"team,omitempty"` UserInfo *User `protobuf:"bytes,2,opt,name=userInfo,proto3" json:"userInfo,omitempty"` // contains filtered or unexported fields }
func (*GetTeamListResponse_TeamInfo) Descriptor
deprecated
func (*GetTeamListResponse_TeamInfo) Descriptor() ([]byte, []int)
Deprecated: Use GetTeamListResponse_TeamInfo.ProtoReflect.Descriptor instead.
func (*GetTeamListResponse_TeamInfo) GetTeam ¶
func (x *GetTeamListResponse_TeamInfo) GetTeam() *Team
func (*GetTeamListResponse_TeamInfo) GetUserInfo ¶
func (x *GetTeamListResponse_TeamInfo) GetUserInfo() *User
func (*GetTeamListResponse_TeamInfo) ProtoMessage ¶
func (*GetTeamListResponse_TeamInfo) ProtoMessage()
func (*GetTeamListResponse_TeamInfo) ProtoReflect ¶
func (x *GetTeamListResponse_TeamInfo) ProtoReflect() protoreflect.Message
func (*GetTeamListResponse_TeamInfo) Reset ¶
func (x *GetTeamListResponse_TeamInfo) Reset()
func (*GetTeamListResponse_TeamInfo) String ¶
func (x *GetTeamListResponse_TeamInfo) String() string
func (*GetTeamListResponse_TeamInfo) Validate ¶
func (m *GetTeamListResponse_TeamInfo) Validate() error
Validate checks the field values on GetTeamListResponse_TeamInfo 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 (*GetTeamListResponse_TeamInfo) ValidateAll ¶
func (m *GetTeamListResponse_TeamInfo) ValidateAll() error
ValidateAll checks the field values on GetTeamListResponse_TeamInfo 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 GetTeamListResponse_TeamInfoMultiError, or nil if none found.
type GetTeamListResponse_TeamInfoMultiError ¶
type GetTeamListResponse_TeamInfoMultiError []error
GetTeamListResponse_TeamInfoMultiError is an error wrapping multiple validation errors returned by GetTeamListResponse_TeamInfo.ValidateAll() if the designated constraints aren't met.
func (GetTeamListResponse_TeamInfoMultiError) AllErrors ¶
func (m GetTeamListResponse_TeamInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTeamListResponse_TeamInfoMultiError) Error ¶
func (m GetTeamListResponse_TeamInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTeamListResponse_TeamInfoValidationError ¶
type GetTeamListResponse_TeamInfoValidationError struct {
// contains filtered or unexported fields
}
GetTeamListResponse_TeamInfoValidationError is the validation error returned by GetTeamListResponse_TeamInfo.Validate if the designated constraints aren't met.
func (GetTeamListResponse_TeamInfoValidationError) Cause ¶
func (e GetTeamListResponse_TeamInfoValidationError) Cause() error
Cause function returns cause value.
func (GetTeamListResponse_TeamInfoValidationError) Error ¶
func (e GetTeamListResponse_TeamInfoValidationError) Error() string
Error satisfies the builtin error interface
func (GetTeamListResponse_TeamInfoValidationError) ErrorName ¶
func (e GetTeamListResponse_TeamInfoValidationError) ErrorName() string
ErrorName returns error name.
func (GetTeamListResponse_TeamInfoValidationError) Field ¶
func (e GetTeamListResponse_TeamInfoValidationError) Field() string
Field function returns field value.
func (GetTeamListResponse_TeamInfoValidationError) Key ¶
func (e GetTeamListResponse_TeamInfoValidationError) Key() bool
Key function returns key value.
func (GetTeamListResponse_TeamInfoValidationError) Reason ¶
func (e GetTeamListResponse_TeamInfoValidationError) Reason() string
Reason function returns reason value.
type GetTeamReq ¶
type GetTeamReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetTeamReq) Descriptor
deprecated
func (*GetTeamReq) Descriptor() ([]byte, []int)
Deprecated: Use GetTeamReq.ProtoReflect.Descriptor instead.
func (*GetTeamReq) GetId ¶
func (x *GetTeamReq) GetId() int32
func (*GetTeamReq) ProtoMessage ¶
func (*GetTeamReq) ProtoMessage()
func (*GetTeamReq) ProtoReflect ¶
func (x *GetTeamReq) ProtoReflect() protoreflect.Message
func (*GetTeamReq) Reset ¶
func (x *GetTeamReq) Reset()
func (*GetTeamReq) String ¶
func (x *GetTeamReq) String() string
func (*GetTeamReq) Validate ¶
func (m *GetTeamReq) Validate() error
Validate checks the field values on GetTeamReq 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 (*GetTeamReq) ValidateAll ¶
func (m *GetTeamReq) ValidateAll() error
ValidateAll checks the field values on GetTeamReq 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 GetTeamReqMultiError, or nil if none found.
type GetTeamReqMultiError ¶
type GetTeamReqMultiError []error
GetTeamReqMultiError is an error wrapping multiple validation errors returned by GetTeamReq.ValidateAll() if the designated constraints aren't met.
func (GetTeamReqMultiError) AllErrors ¶
func (m GetTeamReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTeamReqMultiError) Error ¶
func (m GetTeamReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTeamReqValidationError ¶
type GetTeamReqValidationError struct {
// contains filtered or unexported fields
}
GetTeamReqValidationError is the validation error returned by GetTeamReq.Validate if the designated constraints aren't met.
func (GetTeamReqValidationError) Cause ¶
func (e GetTeamReqValidationError) Cause() error
Cause function returns cause value.
func (GetTeamReqValidationError) Error ¶
func (e GetTeamReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetTeamReqValidationError) ErrorName ¶
func (e GetTeamReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetTeamReqValidationError) Field ¶
func (e GetTeamReqValidationError) Field() string
Field function returns field value.
func (GetTeamReqValidationError) Key ¶
func (e GetTeamReqValidationError) Key() bool
Key function returns key value.
func (GetTeamReqValidationError) Reason ¶
func (e GetTeamReqValidationError) Reason() string
Reason function returns reason value.
type GetTeamResponse ¶
type GetTeamResponse struct { Data *Team `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetTeamResponse) Descriptor
deprecated
func (*GetTeamResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTeamResponse.ProtoReflect.Descriptor instead.
func (*GetTeamResponse) GetData ¶
func (x *GetTeamResponse) GetData() *Team
func (*GetTeamResponse) ProtoMessage ¶
func (*GetTeamResponse) ProtoMessage()
func (*GetTeamResponse) ProtoReflect ¶
func (x *GetTeamResponse) ProtoReflect() protoreflect.Message
func (*GetTeamResponse) Reset ¶
func (x *GetTeamResponse) Reset()
func (*GetTeamResponse) String ¶
func (x *GetTeamResponse) String() string
func (*GetTeamResponse) Validate ¶
func (m *GetTeamResponse) Validate() error
Validate checks the field values on GetTeamResponse 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 (*GetTeamResponse) ValidateAll ¶
func (m *GetTeamResponse) ValidateAll() error
ValidateAll checks the field values on GetTeamResponse 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 GetTeamResponseMultiError, or nil if none found.
type GetTeamResponseMultiError ¶
type GetTeamResponseMultiError []error
GetTeamResponseMultiError is an error wrapping multiple validation errors returned by GetTeamResponse.ValidateAll() if the designated constraints aren't met.
func (GetTeamResponseMultiError) AllErrors ¶
func (m GetTeamResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTeamResponseMultiError) Error ¶
func (m GetTeamResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTeamResponseValidationError ¶
type GetTeamResponseValidationError struct {
// contains filtered or unexported fields
}
GetTeamResponseValidationError is the validation error returned by GetTeamResponse.Validate if the designated constraints aren't met.
func (GetTeamResponseValidationError) Cause ¶
func (e GetTeamResponseValidationError) Cause() error
Cause function returns cause value.
func (GetTeamResponseValidationError) Error ¶
func (e GetTeamResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetTeamResponseValidationError) ErrorName ¶
func (e GetTeamResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetTeamResponseValidationError) Field ¶
func (e GetTeamResponseValidationError) Field() string
Field function returns field value.
func (GetTeamResponseValidationError) Key ¶
func (e GetTeamResponseValidationError) Key() bool
Key function returns key value.
func (GetTeamResponseValidationError) Reason ¶
func (e GetTeamResponseValidationError) Reason() string
Reason function returns reason value.
type GlobalErrorReason ¶
type GlobalErrorReason int32
const (
GlobalErrorReason_PERMISSION_DENY GlobalErrorReason = 0
)
func (GlobalErrorReason) Descriptor ¶
func (GlobalErrorReason) Descriptor() protoreflect.EnumDescriptor
func (GlobalErrorReason) Enum ¶
func (x GlobalErrorReason) Enum() *GlobalErrorReason
func (GlobalErrorReason) EnumDescriptor
deprecated
func (GlobalErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use GlobalErrorReason.Descriptor instead.
func (GlobalErrorReason) Number ¶
func (x GlobalErrorReason) Number() protoreflect.EnumNumber
func (GlobalErrorReason) String ¶
func (x GlobalErrorReason) String() string
func (GlobalErrorReason) Type ¶
func (GlobalErrorReason) Type() protoreflect.EnumType
type JoinTeamReq ¶
type JoinTeamReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PassWord string `protobuf:"bytes,2,opt,name=passWord,proto3" json:"passWord,omitempty"` // contains filtered or unexported fields }
func (*JoinTeamReq) Descriptor
deprecated
func (*JoinTeamReq) Descriptor() ([]byte, []int)
Deprecated: Use JoinTeamReq.ProtoReflect.Descriptor instead.
func (*JoinTeamReq) GetId ¶
func (x *JoinTeamReq) GetId() int32
func (*JoinTeamReq) GetPassWord ¶
func (x *JoinTeamReq) GetPassWord() string
func (*JoinTeamReq) ProtoMessage ¶
func (*JoinTeamReq) ProtoMessage()
func (*JoinTeamReq) ProtoReflect ¶
func (x *JoinTeamReq) ProtoReflect() protoreflect.Message
func (*JoinTeamReq) Reset ¶
func (x *JoinTeamReq) Reset()
func (*JoinTeamReq) String ¶
func (x *JoinTeamReq) String() string
func (*JoinTeamReq) Validate ¶
func (m *JoinTeamReq) Validate() error
Validate checks the field values on JoinTeamReq 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 (*JoinTeamReq) ValidateAll ¶
func (m *JoinTeamReq) ValidateAll() error
ValidateAll checks the field values on JoinTeamReq 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 JoinTeamReqMultiError, or nil if none found.
type JoinTeamReqMultiError ¶
type JoinTeamReqMultiError []error
JoinTeamReqMultiError is an error wrapping multiple validation errors returned by JoinTeamReq.ValidateAll() if the designated constraints aren't met.
func (JoinTeamReqMultiError) AllErrors ¶
func (m JoinTeamReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JoinTeamReqMultiError) Error ¶
func (m JoinTeamReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JoinTeamReqValidationError ¶
type JoinTeamReqValidationError struct {
// contains filtered or unexported fields
}
JoinTeamReqValidationError is the validation error returned by JoinTeamReq.Validate if the designated constraints aren't met.
func (JoinTeamReqValidationError) Cause ¶
func (e JoinTeamReqValidationError) Cause() error
Cause function returns cause value.
func (JoinTeamReqValidationError) Error ¶
func (e JoinTeamReqValidationError) Error() string
Error satisfies the builtin error interface
func (JoinTeamReqValidationError) ErrorName ¶
func (e JoinTeamReqValidationError) ErrorName() string
ErrorName returns error name.
func (JoinTeamReqValidationError) Field ¶
func (e JoinTeamReqValidationError) Field() string
Field function returns field value.
func (JoinTeamReqValidationError) Key ¶
func (e JoinTeamReqValidationError) Key() bool
Key function returns key value.
func (JoinTeamReqValidationError) Reason ¶
func (e JoinTeamReqValidationError) Reason() string
Reason function returns reason value.
type PartnerErrorReason ¶
type PartnerErrorReason int32
const ( // Get_Account_Failed = 1 [(errors.code) = 401]; PartnerErrorReason_ADD_TEAM_FAILED PartnerErrorReason = 0 PartnerErrorReason_DELETE_TEAM_FAILED PartnerErrorReason = 1 PartnerErrorReason_UPDATE_TEAM_FAILED PartnerErrorReason = 2 PartnerErrorReason_GET_TEAM_FAILED PartnerErrorReason = 3 PartnerErrorReason_GET_TEAM_LIST_FAILED PartnerErrorReason = 4 PartnerErrorReason_ADD_USER_TEAM_FAILED PartnerErrorReason = 5 PartnerErrorReason_JOIN_TEAM_FAILED PartnerErrorReason = 6 PartnerErrorReason_Quit_TEAM_FAILED PartnerErrorReason = 7 )
func (PartnerErrorReason) Descriptor ¶
func (PartnerErrorReason) Descriptor() protoreflect.EnumDescriptor
func (PartnerErrorReason) Enum ¶
func (x PartnerErrorReason) Enum() *PartnerErrorReason
func (PartnerErrorReason) EnumDescriptor
deprecated
func (PartnerErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use PartnerErrorReason.Descriptor instead.
func (PartnerErrorReason) Number ¶
func (x PartnerErrorReason) Number() protoreflect.EnumNumber
func (PartnerErrorReason) String ¶
func (x PartnerErrorReason) String() string
func (PartnerErrorReason) Type ¶
func (PartnerErrorReason) Type() protoreflect.EnumType
type PartnerServiceClient ¶
type PartnerServiceClient interface { AddTeam(ctx context.Context, in *Team, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteTeam(ctx context.Context, in *DeleteTeamReq, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateTeam(ctx context.Context, in *UpdateTeamReq, opts ...grpc.CallOption) (*emptypb.Empty, error) GetTeam(ctx context.Context, in *GetTeamReq, opts ...grpc.CallOption) (*GetTeamResponse, error) GetTeamList(ctx context.Context, in *GetTeamListReq, opts ...grpc.CallOption) (*GetTeamListResponse, error) JoinTeam(ctx context.Context, in *JoinTeamReq, opts ...grpc.CallOption) (*emptypb.Empty, error) QuitTeam(ctx context.Context, in *QuitTeamReq, opts ...grpc.CallOption) (*emptypb.Empty, error) }
PartnerServiceClient is the client API for PartnerService 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 NewPartnerServiceClient ¶
func NewPartnerServiceClient(cc grpc.ClientConnInterface) PartnerServiceClient
type PartnerServiceHTTPClient ¶
type PartnerServiceHTTPClient interface { AddTeam(ctx context.Context, req *Team, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteTeam(ctx context.Context, req *DeleteTeamReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetTeam(ctx context.Context, req *GetTeamReq, opts ...http.CallOption) (rsp *GetTeamResponse, err error) GetTeamList(ctx context.Context, req *GetTeamListReq, opts ...http.CallOption) (rsp *GetTeamListResponse, err error) JoinTeam(ctx context.Context, req *JoinTeamReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) QuitTeam(ctx context.Context, req *QuitTeamReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateTeam(ctx context.Context, req *UpdateTeamReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewPartnerServiceHTTPClient ¶
func NewPartnerServiceHTTPClient(client *http.Client) PartnerServiceHTTPClient
type PartnerServiceHTTPClientImpl ¶
type PartnerServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*PartnerServiceHTTPClientImpl) AddTeam ¶
func (c *PartnerServiceHTTPClientImpl) AddTeam(ctx context.Context, in *Team, opts ...http.CallOption) (*emptypb.Empty, error)
func (*PartnerServiceHTTPClientImpl) DeleteTeam ¶
func (c *PartnerServiceHTTPClientImpl) DeleteTeam(ctx context.Context, in *DeleteTeamReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*PartnerServiceHTTPClientImpl) GetTeam ¶
func (c *PartnerServiceHTTPClientImpl) GetTeam(ctx context.Context, in *GetTeamReq, opts ...http.CallOption) (*GetTeamResponse, error)
func (*PartnerServiceHTTPClientImpl) GetTeamList ¶
func (c *PartnerServiceHTTPClientImpl) GetTeamList(ctx context.Context, in *GetTeamListReq, opts ...http.CallOption) (*GetTeamListResponse, error)
func (*PartnerServiceHTTPClientImpl) JoinTeam ¶
func (c *PartnerServiceHTTPClientImpl) JoinTeam(ctx context.Context, in *JoinTeamReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*PartnerServiceHTTPClientImpl) QuitTeam ¶
func (c *PartnerServiceHTTPClientImpl) QuitTeam(ctx context.Context, in *QuitTeamReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*PartnerServiceHTTPClientImpl) UpdateTeam ¶
func (c *PartnerServiceHTTPClientImpl) UpdateTeam(ctx context.Context, in *UpdateTeamReq, opts ...http.CallOption) (*emptypb.Empty, error)
type PartnerServiceHTTPServer ¶
type PartnerServiceHTTPServer interface { AddTeam(context.Context, *Team) (*emptypb.Empty, error) DeleteTeam(context.Context, *DeleteTeamReq) (*emptypb.Empty, error) GetTeam(context.Context, *GetTeamReq) (*GetTeamResponse, error) GetTeamList(context.Context, *GetTeamListReq) (*GetTeamListResponse, error) JoinTeam(context.Context, *JoinTeamReq) (*emptypb.Empty, error) QuitTeam(context.Context, *QuitTeamReq) (*emptypb.Empty, error) UpdateTeam(context.Context, *UpdateTeamReq) (*emptypb.Empty, error) }
type PartnerServiceServer ¶
type PartnerServiceServer interface { AddTeam(context.Context, *Team) (*emptypb.Empty, error) DeleteTeam(context.Context, *DeleteTeamReq) (*emptypb.Empty, error) UpdateTeam(context.Context, *UpdateTeamReq) (*emptypb.Empty, error) GetTeam(context.Context, *GetTeamReq) (*GetTeamResponse, error) GetTeamList(context.Context, *GetTeamListReq) (*GetTeamListResponse, error) JoinTeam(context.Context, *JoinTeamReq) (*emptypb.Empty, error) QuitTeam(context.Context, *QuitTeamReq) (*emptypb.Empty, error) // contains filtered or unexported methods }
PartnerServiceServer is the server API for PartnerService service. All implementations must embed UnimplementedPartnerServiceServer for forward compatibility
type QuitTeamReq ¶
type QuitTeamReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*QuitTeamReq) Descriptor
deprecated
func (*QuitTeamReq) Descriptor() ([]byte, []int)
Deprecated: Use QuitTeamReq.ProtoReflect.Descriptor instead.
func (*QuitTeamReq) GetId ¶
func (x *QuitTeamReq) GetId() int32
func (*QuitTeamReq) ProtoMessage ¶
func (*QuitTeamReq) ProtoMessage()
func (*QuitTeamReq) ProtoReflect ¶
func (x *QuitTeamReq) ProtoReflect() protoreflect.Message
func (*QuitTeamReq) Reset ¶
func (x *QuitTeamReq) Reset()
func (*QuitTeamReq) String ¶
func (x *QuitTeamReq) String() string
func (*QuitTeamReq) Validate ¶
func (m *QuitTeamReq) Validate() error
Validate checks the field values on QuitTeamReq 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 (*QuitTeamReq) ValidateAll ¶
func (m *QuitTeamReq) ValidateAll() error
ValidateAll checks the field values on QuitTeamReq 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 QuitTeamReqMultiError, or nil if none found.
type QuitTeamReqMultiError ¶
type QuitTeamReqMultiError []error
QuitTeamReqMultiError is an error wrapping multiple validation errors returned by QuitTeamReq.ValidateAll() if the designated constraints aren't met.
func (QuitTeamReqMultiError) AllErrors ¶
func (m QuitTeamReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QuitTeamReqMultiError) Error ¶
func (m QuitTeamReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QuitTeamReqValidationError ¶
type QuitTeamReqValidationError struct {
// contains filtered or unexported fields
}
QuitTeamReqValidationError is the validation error returned by QuitTeamReq.Validate if the designated constraints aren't met.
func (QuitTeamReqValidationError) Cause ¶
func (e QuitTeamReqValidationError) Cause() error
Cause function returns cause value.
func (QuitTeamReqValidationError) Error ¶
func (e QuitTeamReqValidationError) Error() string
Error satisfies the builtin error interface
func (QuitTeamReqValidationError) ErrorName ¶
func (e QuitTeamReqValidationError) ErrorName() string
ErrorName returns error name.
func (QuitTeamReqValidationError) Field ¶
func (e QuitTeamReqValidationError) Field() string
Field function returns field value.
func (QuitTeamReqValidationError) Key ¶
func (e QuitTeamReqValidationError) Key() bool
Key function returns key value.
func (QuitTeamReqValidationError) Reason ¶
func (e QuitTeamReqValidationError) Reason() string
Reason function returns reason value.
type SearchUsersByTagsReq ¶
type SearchUsersByTagsReq struct { TagNameList []string `protobuf:"bytes,1,rep,name=tagNameList,proto3" json:"tagNameList,omitempty"` // contains filtered or unexported fields }
func (*SearchUsersByTagsReq) Descriptor
deprecated
func (*SearchUsersByTagsReq) Descriptor() ([]byte, []int)
Deprecated: Use SearchUsersByTagsReq.ProtoReflect.Descriptor instead.
func (*SearchUsersByTagsReq) GetTagNameList ¶
func (x *SearchUsersByTagsReq) GetTagNameList() []string
func (*SearchUsersByTagsReq) ProtoMessage ¶
func (*SearchUsersByTagsReq) ProtoMessage()
func (*SearchUsersByTagsReq) ProtoReflect ¶
func (x *SearchUsersByTagsReq) ProtoReflect() protoreflect.Message
func (*SearchUsersByTagsReq) Reset ¶
func (x *SearchUsersByTagsReq) Reset()
func (*SearchUsersByTagsReq) String ¶
func (x *SearchUsersByTagsReq) String() string
func (*SearchUsersByTagsReq) Validate ¶
func (m *SearchUsersByTagsReq) Validate() error
Validate checks the field values on SearchUsersByTagsReq 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 (*SearchUsersByTagsReq) ValidateAll ¶
func (m *SearchUsersByTagsReq) ValidateAll() error
ValidateAll checks the field values on SearchUsersByTagsReq 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 SearchUsersByTagsReqMultiError, or nil if none found.
type SearchUsersByTagsReqMultiError ¶
type SearchUsersByTagsReqMultiError []error
SearchUsersByTagsReqMultiError is an error wrapping multiple validation errors returned by SearchUsersByTagsReq.ValidateAll() if the designated constraints aren't met.
func (SearchUsersByTagsReqMultiError) AllErrors ¶
func (m SearchUsersByTagsReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SearchUsersByTagsReqMultiError) Error ¶
func (m SearchUsersByTagsReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SearchUsersByTagsReqValidationError ¶
type SearchUsersByTagsReqValidationError struct {
// contains filtered or unexported fields
}
SearchUsersByTagsReqValidationError is the validation error returned by SearchUsersByTagsReq.Validate if the designated constraints aren't met.
func (SearchUsersByTagsReqValidationError) Cause ¶
func (e SearchUsersByTagsReqValidationError) Cause() error
Cause function returns cause value.
func (SearchUsersByTagsReqValidationError) Error ¶
func (e SearchUsersByTagsReqValidationError) Error() string
Error satisfies the builtin error interface
func (SearchUsersByTagsReqValidationError) ErrorName ¶
func (e SearchUsersByTagsReqValidationError) ErrorName() string
ErrorName returns error name.
func (SearchUsersByTagsReqValidationError) Field ¶
func (e SearchUsersByTagsReqValidationError) Field() string
Field function returns field value.
func (SearchUsersByTagsReqValidationError) Key ¶
func (e SearchUsersByTagsReqValidationError) Key() bool
Key function returns key value.
func (SearchUsersByTagsReqValidationError) Reason ¶
func (e SearchUsersByTagsReqValidationError) Reason() string
Reason function returns reason value.
type SearchUsersReply ¶
type SearchUsersReply struct { Data []*User `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SearchUsersReply) Descriptor
deprecated
func (*SearchUsersReply) Descriptor() ([]byte, []int)
Deprecated: Use SearchUsersReply.ProtoReflect.Descriptor instead.
func (*SearchUsersReply) GetData ¶
func (x *SearchUsersReply) GetData() []*User
func (*SearchUsersReply) ProtoMessage ¶
func (*SearchUsersReply) ProtoMessage()
func (*SearchUsersReply) ProtoReflect ¶
func (x *SearchUsersReply) ProtoReflect() protoreflect.Message
func (*SearchUsersReply) Reset ¶
func (x *SearchUsersReply) Reset()
func (*SearchUsersReply) String ¶
func (x *SearchUsersReply) String() string
func (*SearchUsersReply) Validate ¶
func (m *SearchUsersReply) Validate() error
Validate checks the field values on SearchUsersReply 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 (*SearchUsersReply) ValidateAll ¶
func (m *SearchUsersReply) ValidateAll() error
ValidateAll checks the field values on SearchUsersReply 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 SearchUsersReplyMultiError, or nil if none found.
type SearchUsersReplyMultiError ¶
type SearchUsersReplyMultiError []error
SearchUsersReplyMultiError is an error wrapping multiple validation errors returned by SearchUsersReply.ValidateAll() if the designated constraints aren't met.
func (SearchUsersReplyMultiError) AllErrors ¶
func (m SearchUsersReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SearchUsersReplyMultiError) Error ¶
func (m SearchUsersReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SearchUsersReplyValidationError ¶
type SearchUsersReplyValidationError struct {
// contains filtered or unexported fields
}
SearchUsersReplyValidationError is the validation error returned by SearchUsersReply.Validate if the designated constraints aren't met.
func (SearchUsersReplyValidationError) Cause ¶
func (e SearchUsersReplyValidationError) Cause() error
Cause function returns cause value.
func (SearchUsersReplyValidationError) Error ¶
func (e SearchUsersReplyValidationError) Error() string
Error satisfies the builtin error interface
func (SearchUsersReplyValidationError) ErrorName ¶
func (e SearchUsersReplyValidationError) ErrorName() string
ErrorName returns error name.
func (SearchUsersReplyValidationError) Field ¶
func (e SearchUsersReplyValidationError) Field() string
Field function returns field value.
func (SearchUsersReplyValidationError) Key ¶
func (e SearchUsersReplyValidationError) Key() bool
Key function returns key value.
func (SearchUsersReplyValidationError) Reason ¶
func (e SearchUsersReplyValidationError) Reason() string
Reason function returns reason value.
type SearchUsersReq ¶
type SearchUsersReq struct { UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"` // contains filtered or unexported fields }
func (*SearchUsersReq) Descriptor
deprecated
func (*SearchUsersReq) Descriptor() ([]byte, []int)
Deprecated: Use SearchUsersReq.ProtoReflect.Descriptor instead.
func (*SearchUsersReq) GetUserName ¶
func (x *SearchUsersReq) GetUserName() string
func (*SearchUsersReq) ProtoMessage ¶
func (*SearchUsersReq) ProtoMessage()
func (*SearchUsersReq) ProtoReflect ¶
func (x *SearchUsersReq) ProtoReflect() protoreflect.Message
func (*SearchUsersReq) Reset ¶
func (x *SearchUsersReq) Reset()
func (*SearchUsersReq) String ¶
func (x *SearchUsersReq) String() string
func (*SearchUsersReq) Validate ¶
func (m *SearchUsersReq) Validate() error
Validate checks the field values on SearchUsersReq 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 (*SearchUsersReq) ValidateAll ¶
func (m *SearchUsersReq) ValidateAll() error
ValidateAll checks the field values on SearchUsersReq 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 SearchUsersReqMultiError, or nil if none found.
type SearchUsersReqMultiError ¶
type SearchUsersReqMultiError []error
SearchUsersReqMultiError is an error wrapping multiple validation errors returned by SearchUsersReq.ValidateAll() if the designated constraints aren't met.
func (SearchUsersReqMultiError) AllErrors ¶
func (m SearchUsersReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SearchUsersReqMultiError) Error ¶
func (m SearchUsersReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SearchUsersReqValidationError ¶
type SearchUsersReqValidationError struct {
// contains filtered or unexported fields
}
SearchUsersReqValidationError is the validation error returned by SearchUsersReq.Validate if the designated constraints aren't met.
func (SearchUsersReqValidationError) Cause ¶
func (e SearchUsersReqValidationError) Cause() error
Cause function returns cause value.
func (SearchUsersReqValidationError) Error ¶
func (e SearchUsersReqValidationError) Error() string
Error satisfies the builtin error interface
func (SearchUsersReqValidationError) ErrorName ¶
func (e SearchUsersReqValidationError) ErrorName() string
ErrorName returns error name.
func (SearchUsersReqValidationError) Field ¶
func (e SearchUsersReqValidationError) Field() string
Field function returns field value.
func (SearchUsersReqValidationError) Key ¶
func (e SearchUsersReqValidationError) Key() bool
Key function returns key value.
func (SearchUsersReqValidationError) Reason ¶
func (e SearchUsersReqValidationError) Reason() string
Reason function returns reason value.
type Team ¶
type Team struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` MaxNum int32 `protobuf:"varint,3,opt,name=maxNum,proto3" json:"maxNum,omitempty"` ExpireTime string `protobuf:"bytes,4,opt,name=expireTime,proto3" json:"expireTime,omitempty"` UserId int32 `protobuf:"varint,5,opt,name=userId,proto3" json:"userId,omitempty"` Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` Password string `protobuf:"bytes,7,opt,name=password,proto3" json:"password,omitempty"` Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Team) Descriptor
deprecated
func (*Team) GetDescription ¶
func (*Team) GetExpireTime ¶
func (*Team) GetPassword ¶
func (*Team) ProtoMessage ¶
func (*Team) ProtoMessage()
func (*Team) ProtoReflect ¶
func (x *Team) ProtoReflect() protoreflect.Message
func (*Team) Validate ¶
Validate checks the field values on Team 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 (*Team) ValidateAll ¶
ValidateAll checks the field values on Team 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 TeamMultiError, or nil if none found.
type TeamMultiError ¶
type TeamMultiError []error
TeamMultiError is an error wrapping multiple validation errors returned by Team.ValidateAll() if the designated constraints aren't met.
func (TeamMultiError) AllErrors ¶
func (m TeamMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TeamMultiError) Error ¶
func (m TeamMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TeamValidationError ¶
type TeamValidationError struct {
// contains filtered or unexported fields
}
TeamValidationError is the validation error returned by Team.Validate if the designated constraints aren't met.
func (TeamValidationError) Cause ¶
func (e TeamValidationError) Cause() error
Cause function returns cause value.
func (TeamValidationError) Error ¶
func (e TeamValidationError) Error() string
Error satisfies the builtin error interface
func (TeamValidationError) ErrorName ¶
func (e TeamValidationError) ErrorName() string
ErrorName returns error name.
func (TeamValidationError) Field ¶
func (e TeamValidationError) Field() string
Field function returns field value.
func (TeamValidationError) Key ¶
func (e TeamValidationError) Key() bool
Key function returns key value.
func (TeamValidationError) Reason ¶
func (e TeamValidationError) Reason() string
Reason function returns reason value.
type UnimplementedPartnerServiceServer ¶
type UnimplementedPartnerServiceServer struct { }
UnimplementedPartnerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPartnerServiceServer) DeleteTeam ¶
func (UnimplementedPartnerServiceServer) DeleteTeam(context.Context, *DeleteTeamReq) (*emptypb.Empty, error)
func (UnimplementedPartnerServiceServer) GetTeam ¶
func (UnimplementedPartnerServiceServer) GetTeam(context.Context, *GetTeamReq) (*GetTeamResponse, error)
func (UnimplementedPartnerServiceServer) GetTeamList ¶
func (UnimplementedPartnerServiceServer) GetTeamList(context.Context, *GetTeamListReq) (*GetTeamListResponse, error)
func (UnimplementedPartnerServiceServer) JoinTeam ¶
func (UnimplementedPartnerServiceServer) JoinTeam(context.Context, *JoinTeamReq) (*emptypb.Empty, error)
func (UnimplementedPartnerServiceServer) QuitTeam ¶
func (UnimplementedPartnerServiceServer) QuitTeam(context.Context, *QuitTeamReq) (*emptypb.Empty, error)
func (UnimplementedPartnerServiceServer) UpdateTeam ¶
func (UnimplementedPartnerServiceServer) UpdateTeam(context.Context, *UpdateTeamReq) (*emptypb.Empty, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserReq) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) GetCurrentUser ¶
func (UnimplementedUserServiceServer) GetCurrentUser(context.Context, *emptypb.Empty) (*GetCurrentReply, error)
func (UnimplementedUserServiceServer) SearchUsers ¶
func (UnimplementedUserServiceServer) SearchUsers(context.Context, *SearchUsersReq) (*SearchUsersReply, error)
func (UnimplementedUserServiceServer) SearchUsersByTags ¶
func (UnimplementedUserServiceServer) SearchUsersByTags(context.Context, *SearchUsersByTagsReq) (*SearchUsersReply, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserReq) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) UserLogin ¶
func (UnimplementedUserServiceServer) UserLogin(context.Context, *UserLoginReq) (*UserLoginReply, error)
func (UnimplementedUserServiceServer) UserLogout ¶
func (UnimplementedUserServiceServer) UserRegister ¶
func (UnimplementedUserServiceServer) UserRegister(context.Context, *UserRegisterReq) (*UserRegisterReply, error)
func (UnimplementedUserServiceServer) UsersRecommend ¶
func (UnimplementedUserServiceServer) UsersRecommend(context.Context, *UsersRecommendReq) (*UsersRecommendReply, error)
type UnsafePartnerServiceServer ¶
type UnsafePartnerServiceServer interface {
// contains filtered or unexported methods
}
UnsafePartnerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PartnerServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdateTeamReq ¶
type UpdateTeamReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ExpireTime string `protobuf:"bytes,2,opt,name=expireTime,proto3" json:"expireTime,omitempty"` Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*UpdateTeamReq) Descriptor
deprecated
func (*UpdateTeamReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTeamReq.ProtoReflect.Descriptor instead.
func (*UpdateTeamReq) GetDescription ¶
func (x *UpdateTeamReq) GetDescription() string
func (*UpdateTeamReq) GetExpireTime ¶
func (x *UpdateTeamReq) GetExpireTime() string
func (*UpdateTeamReq) GetName ¶
func (x *UpdateTeamReq) GetName() string
func (*UpdateTeamReq) GetPassword ¶
func (x *UpdateTeamReq) GetPassword() string
func (*UpdateTeamReq) GetStatus ¶
func (x *UpdateTeamReq) GetStatus() int32
func (*UpdateTeamReq) ProtoMessage ¶
func (*UpdateTeamReq) ProtoMessage()
func (*UpdateTeamReq) ProtoReflect ¶
func (x *UpdateTeamReq) ProtoReflect() protoreflect.Message
func (*UpdateTeamReq) Reset ¶
func (x *UpdateTeamReq) Reset()
func (*UpdateTeamReq) String ¶
func (x *UpdateTeamReq) String() string
func (*UpdateTeamReq) Validate ¶
func (m *UpdateTeamReq) Validate() error
Validate checks the field values on UpdateTeamReq 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 (*UpdateTeamReq) ValidateAll ¶
func (m *UpdateTeamReq) ValidateAll() error
ValidateAll checks the field values on UpdateTeamReq 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 UpdateTeamReqMultiError, or nil if none found.
type UpdateTeamReqMultiError ¶
type UpdateTeamReqMultiError []error
UpdateTeamReqMultiError is an error wrapping multiple validation errors returned by UpdateTeamReq.ValidateAll() if the designated constraints aren't met.
func (UpdateTeamReqMultiError) AllErrors ¶
func (m UpdateTeamReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateTeamReqMultiError) Error ¶
func (m UpdateTeamReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateTeamReqValidationError ¶
type UpdateTeamReqValidationError struct {
// contains filtered or unexported fields
}
UpdateTeamReqValidationError is the validation error returned by UpdateTeamReq.Validate if the designated constraints aren't met.
func (UpdateTeamReqValidationError) Cause ¶
func (e UpdateTeamReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateTeamReqValidationError) Error ¶
func (e UpdateTeamReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateTeamReqValidationError) ErrorName ¶
func (e UpdateTeamReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateTeamReqValidationError) Field ¶
func (e UpdateTeamReqValidationError) Field() string
Field function returns field value.
func (UpdateTeamReqValidationError) Key ¶
func (e UpdateTeamReqValidationError) Key() bool
Key function returns key value.
func (UpdateTeamReqValidationError) Reason ¶
func (e UpdateTeamReqValidationError) Reason() string
Reason function returns reason value.
type UpdateUserReq ¶
type UpdateUserReq struct { Data *User `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserReq) Descriptor
deprecated
func (*UpdateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.
func (*UpdateUserReq) GetData ¶
func (x *UpdateUserReq) GetData() *User
func (*UpdateUserReq) ProtoMessage ¶
func (*UpdateUserReq) ProtoMessage()
func (*UpdateUserReq) ProtoReflect ¶
func (x *UpdateUserReq) ProtoReflect() protoreflect.Message
func (*UpdateUserReq) Reset ¶
func (x *UpdateUserReq) Reset()
func (*UpdateUserReq) String ¶
func (x *UpdateUserReq) String() string
func (*UpdateUserReq) Validate ¶
func (m *UpdateUserReq) Validate() error
Validate checks the field values on UpdateUserReq 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 (*UpdateUserReq) ValidateAll ¶
func (m *UpdateUserReq) ValidateAll() error
ValidateAll checks the field values on UpdateUserReq 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 UpdateUserReqMultiError, or nil if none found.
type UpdateUserReqMultiError ¶
type UpdateUserReqMultiError []error
UpdateUserReqMultiError is an error wrapping multiple validation errors returned by UpdateUserReq.ValidateAll() if the designated constraints aren't met.
func (UpdateUserReqMultiError) AllErrors ¶
func (m UpdateUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserReqMultiError) Error ¶
func (m UpdateUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserReqValidationError ¶
type UpdateUserReqValidationError struct {
// contains filtered or unexported fields
}
UpdateUserReqValidationError is the validation error returned by UpdateUserReq.Validate if the designated constraints aren't met.
func (UpdateUserReqValidationError) Cause ¶
func (e UpdateUserReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserReqValidationError) Error ¶
func (e UpdateUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserReqValidationError) ErrorName ¶
func (e UpdateUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserReqValidationError) Field ¶
func (e UpdateUserReqValidationError) Field() string
Field function returns field value.
func (UpdateUserReqValidationError) Key ¶
func (e UpdateUserReqValidationError) Key() bool
Key function returns key value.
func (UpdateUserReqValidationError) Reason ¶
func (e UpdateUserReqValidationError) Reason() string
Reason function returns reason value.
type User ¶
type User struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` UserAccount string `protobuf:"bytes,3,opt,name=userAccount,proto3" json:"userAccount,omitempty"` AvatarUrl string `protobuf:"bytes,4,opt,name=avatarUrl,proto3" json:"avatarUrl,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` UserStatus int32 `protobuf:"varint,7,opt,name=userStatus,proto3" json:"userStatus,omitempty"` Gender int32 `protobuf:"varint,8,opt,name=gender,proto3" json:"gender,omitempty"` Empty bool `protobuf:"varint,9,opt,name=empty,proto3" json:"empty,omitempty"` UserRole int32 `protobuf:"varint,10,opt,name=userRole,proto3" json:"userRole,omitempty"` CreateTime string `protobuf:"bytes,11,opt,name=createTime,proto3" json:"createTime,omitempty"` Tags string `protobuf:"bytes,12,opt,name=tags,proto3" json:"tags,omitempty"` Profile string `protobuf:"bytes,13,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAvatarUrl ¶
func (*User) GetCreateTime ¶
func (*User) GetProfile ¶
func (*User) GetUserAccount ¶
func (*User) GetUserName ¶
func (*User) GetUserRole ¶
func (*User) GetUserStatus ¶
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 UserErrorReason ¶
type UserErrorReason int32
const ( UserErrorReason_UNKNOWN_ERROR UserErrorReason = 0 // Get_Account_Failed = 1 [(errors.code) = 401]; UserErrorReason_VALIDATE_ERROR UserErrorReason = 1 UserErrorReason_ACCOUNT_EXIST UserErrorReason = 2 UserErrorReason_ACCOUNT_ILLEGAL UserErrorReason = 3 UserErrorReason_USER_REGISTER_FAILED UserErrorReason = 4 UserErrorReason_USER_LOGIN_FAILED UserErrorReason = 5 UserErrorReason_USER_SEARCH_FAILED UserErrorReason = 6 UserErrorReason_USER_DELETE_FAILED UserErrorReason = 7 UserErrorReason_LOGIN_STATE_TIMEOUT UserErrorReason = 9 UserErrorReason_USER_LOGOUT_FAILED UserErrorReason = 10 UserErrorReason_USER_TAGS_EMPTY UserErrorReason = 11 UserErrorReason_UPDATE_USER UserErrorReason = 12 UserErrorReason_USERS_RECOMMEND_FAILED UserErrorReason = 13 )
func (UserErrorReason) Descriptor ¶
func (UserErrorReason) Descriptor() protoreflect.EnumDescriptor
func (UserErrorReason) Enum ¶
func (x UserErrorReason) Enum() *UserErrorReason
func (UserErrorReason) EnumDescriptor
deprecated
func (UserErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserErrorReason.Descriptor instead.
func (UserErrorReason) Number ¶
func (x UserErrorReason) Number() protoreflect.EnumNumber
func (UserErrorReason) String ¶
func (x UserErrorReason) String() string
func (UserErrorReason) Type ¶
func (UserErrorReason) Type() protoreflect.EnumType
type UserLoginReply ¶
type UserLoginReply struct { Data *User `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*UserLoginReply) Descriptor
deprecated
func (*UserLoginReply) Descriptor() ([]byte, []int)
Deprecated: Use UserLoginReply.ProtoReflect.Descriptor instead.
func (*UserLoginReply) GetData ¶
func (x *UserLoginReply) GetData() *User
func (*UserLoginReply) ProtoMessage ¶
func (*UserLoginReply) ProtoMessage()
func (*UserLoginReply) ProtoReflect ¶
func (x *UserLoginReply) ProtoReflect() protoreflect.Message
func (*UserLoginReply) Reset ¶
func (x *UserLoginReply) Reset()
func (*UserLoginReply) String ¶
func (x *UserLoginReply) String() string
func (*UserLoginReply) Validate ¶
func (m *UserLoginReply) Validate() error
Validate checks the field values on UserLoginReply 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 (*UserLoginReply) ValidateAll ¶
func (m *UserLoginReply) ValidateAll() error
ValidateAll checks the field values on UserLoginReply 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 UserLoginReplyMultiError, or nil if none found.
type UserLoginReplyMultiError ¶
type UserLoginReplyMultiError []error
UserLoginReplyMultiError is an error wrapping multiple validation errors returned by UserLoginReply.ValidateAll() if the designated constraints aren't met.
func (UserLoginReplyMultiError) AllErrors ¶
func (m UserLoginReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserLoginReplyMultiError) Error ¶
func (m UserLoginReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserLoginReplyValidationError ¶
type UserLoginReplyValidationError struct {
// contains filtered or unexported fields
}
UserLoginReplyValidationError is the validation error returned by UserLoginReply.Validate if the designated constraints aren't met.
func (UserLoginReplyValidationError) Cause ¶
func (e UserLoginReplyValidationError) Cause() error
Cause function returns cause value.
func (UserLoginReplyValidationError) Error ¶
func (e UserLoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UserLoginReplyValidationError) ErrorName ¶
func (e UserLoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UserLoginReplyValidationError) Field ¶
func (e UserLoginReplyValidationError) Field() string
Field function returns field value.
func (UserLoginReplyValidationError) Key ¶
func (e UserLoginReplyValidationError) Key() bool
Key function returns key value.
func (UserLoginReplyValidationError) Reason ¶
func (e UserLoginReplyValidationError) Reason() string
Reason function returns reason value.
type UserLoginReq ¶
type UserLoginReq struct { UserAccount string `protobuf:"bytes,1,opt,name=userAccount,proto3" json:"userAccount,omitempty"` UserPassword string `protobuf:"bytes,2,opt,name=userPassword,proto3" json:"userPassword,omitempty"` // contains filtered or unexported fields }
func (*UserLoginReq) Descriptor
deprecated
func (*UserLoginReq) Descriptor() ([]byte, []int)
Deprecated: Use UserLoginReq.ProtoReflect.Descriptor instead.
func (*UserLoginReq) GetUserAccount ¶
func (x *UserLoginReq) GetUserAccount() string
func (*UserLoginReq) GetUserPassword ¶
func (x *UserLoginReq) GetUserPassword() string
func (*UserLoginReq) ProtoMessage ¶
func (*UserLoginReq) ProtoMessage()
func (*UserLoginReq) ProtoReflect ¶
func (x *UserLoginReq) ProtoReflect() protoreflect.Message
func (*UserLoginReq) Reset ¶
func (x *UserLoginReq) Reset()
func (*UserLoginReq) String ¶
func (x *UserLoginReq) String() string
func (*UserLoginReq) Validate ¶
func (m *UserLoginReq) Validate() error
Validate checks the field values on UserLoginReq 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 (*UserLoginReq) ValidateAll ¶
func (m *UserLoginReq) ValidateAll() error
ValidateAll checks the field values on UserLoginReq 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 UserLoginReqMultiError, or nil if none found.
type UserLoginReqMultiError ¶
type UserLoginReqMultiError []error
UserLoginReqMultiError is an error wrapping multiple validation errors returned by UserLoginReq.ValidateAll() if the designated constraints aren't met.
func (UserLoginReqMultiError) AllErrors ¶
func (m UserLoginReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserLoginReqMultiError) Error ¶
func (m UserLoginReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserLoginReqValidationError ¶
type UserLoginReqValidationError struct {
// contains filtered or unexported fields
}
UserLoginReqValidationError is the validation error returned by UserLoginReq.Validate if the designated constraints aren't met.
func (UserLoginReqValidationError) Cause ¶
func (e UserLoginReqValidationError) Cause() error
Cause function returns cause value.
func (UserLoginReqValidationError) Error ¶
func (e UserLoginReqValidationError) Error() string
Error satisfies the builtin error interface
func (UserLoginReqValidationError) ErrorName ¶
func (e UserLoginReqValidationError) ErrorName() string
ErrorName returns error name.
func (UserLoginReqValidationError) Field ¶
func (e UserLoginReqValidationError) Field() string
Field function returns field value.
func (UserLoginReqValidationError) Key ¶
func (e UserLoginReqValidationError) Key() bool
Key function returns key value.
func (UserLoginReqValidationError) Reason ¶
func (e UserLoginReqValidationError) Reason() string
Reason function returns reason value.
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 UserRegisterReply ¶
type UserRegisterReply struct { Data *User `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*UserRegisterReply) Descriptor
deprecated
func (*UserRegisterReply) Descriptor() ([]byte, []int)
Deprecated: Use UserRegisterReply.ProtoReflect.Descriptor instead.
func (*UserRegisterReply) GetData ¶
func (x *UserRegisterReply) GetData() *User
func (*UserRegisterReply) ProtoMessage ¶
func (*UserRegisterReply) ProtoMessage()
func (*UserRegisterReply) ProtoReflect ¶
func (x *UserRegisterReply) ProtoReflect() protoreflect.Message
func (*UserRegisterReply) Reset ¶
func (x *UserRegisterReply) Reset()
func (*UserRegisterReply) String ¶
func (x *UserRegisterReply) String() string
func (*UserRegisterReply) Validate ¶
func (m *UserRegisterReply) Validate() error
Validate checks the field values on UserRegisterReply 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 (*UserRegisterReply) ValidateAll ¶
func (m *UserRegisterReply) ValidateAll() error
ValidateAll checks the field values on UserRegisterReply 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 UserRegisterReplyMultiError, or nil if none found.
type UserRegisterReplyMultiError ¶
type UserRegisterReplyMultiError []error
UserRegisterReplyMultiError is an error wrapping multiple validation errors returned by UserRegisterReply.ValidateAll() if the designated constraints aren't met.
func (UserRegisterReplyMultiError) AllErrors ¶
func (m UserRegisterReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserRegisterReplyMultiError) Error ¶
func (m UserRegisterReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserRegisterReplyValidationError ¶
type UserRegisterReplyValidationError struct {
// contains filtered or unexported fields
}
UserRegisterReplyValidationError is the validation error returned by UserRegisterReply.Validate if the designated constraints aren't met.
func (UserRegisterReplyValidationError) Cause ¶
func (e UserRegisterReplyValidationError) Cause() error
Cause function returns cause value.
func (UserRegisterReplyValidationError) Error ¶
func (e UserRegisterReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UserRegisterReplyValidationError) ErrorName ¶
func (e UserRegisterReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UserRegisterReplyValidationError) Field ¶
func (e UserRegisterReplyValidationError) Field() string
Field function returns field value.
func (UserRegisterReplyValidationError) Key ¶
func (e UserRegisterReplyValidationError) Key() bool
Key function returns key value.
func (UserRegisterReplyValidationError) Reason ¶
func (e UserRegisterReplyValidationError) Reason() string
Reason function returns reason value.
type UserRegisterReq ¶
type UserRegisterReq struct { UserAccount string `protobuf:"bytes,1,opt,name=userAccount,proto3" json:"userAccount,omitempty"` UserPassword string `protobuf:"bytes,2,opt,name=userPassword,proto3" json:"userPassword,omitempty"` CheckPassword string `protobuf:"bytes,3,opt,name=checkPassword,proto3" json:"checkPassword,omitempty"` // contains filtered or unexported fields }
func (*UserRegisterReq) Descriptor
deprecated
func (*UserRegisterReq) Descriptor() ([]byte, []int)
Deprecated: Use UserRegisterReq.ProtoReflect.Descriptor instead.
func (*UserRegisterReq) GetCheckPassword ¶
func (x *UserRegisterReq) GetCheckPassword() string
func (*UserRegisterReq) GetUserAccount ¶
func (x *UserRegisterReq) GetUserAccount() string
func (*UserRegisterReq) GetUserPassword ¶
func (x *UserRegisterReq) GetUserPassword() string
func (*UserRegisterReq) ProtoMessage ¶
func (*UserRegisterReq) ProtoMessage()
func (*UserRegisterReq) ProtoReflect ¶
func (x *UserRegisterReq) ProtoReflect() protoreflect.Message
func (*UserRegisterReq) Reset ¶
func (x *UserRegisterReq) Reset()
func (*UserRegisterReq) String ¶
func (x *UserRegisterReq) String() string
func (*UserRegisterReq) Validate ¶
func (m *UserRegisterReq) Validate() error
Validate checks the field values on UserRegisterReq 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 (*UserRegisterReq) ValidateAll ¶
func (m *UserRegisterReq) ValidateAll() error
ValidateAll checks the field values on UserRegisterReq 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 UserRegisterReqMultiError, or nil if none found.
type UserRegisterReqMultiError ¶
type UserRegisterReqMultiError []error
UserRegisterReqMultiError is an error wrapping multiple validation errors returned by UserRegisterReq.ValidateAll() if the designated constraints aren't met.
func (UserRegisterReqMultiError) AllErrors ¶
func (m UserRegisterReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserRegisterReqMultiError) Error ¶
func (m UserRegisterReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserRegisterReqValidationError ¶
type UserRegisterReqValidationError struct {
// contains filtered or unexported fields
}
UserRegisterReqValidationError is the validation error returned by UserRegisterReq.Validate if the designated constraints aren't met.
func (UserRegisterReqValidationError) Cause ¶
func (e UserRegisterReqValidationError) Cause() error
Cause function returns cause value.
func (UserRegisterReqValidationError) Error ¶
func (e UserRegisterReqValidationError) Error() string
Error satisfies the builtin error interface
func (UserRegisterReqValidationError) ErrorName ¶
func (e UserRegisterReqValidationError) ErrorName() string
ErrorName returns error name.
func (UserRegisterReqValidationError) Field ¶
func (e UserRegisterReqValidationError) Field() string
Field function returns field value.
func (UserRegisterReqValidationError) Key ¶
func (e UserRegisterReqValidationError) Key() bool
Key function returns key value.
func (UserRegisterReqValidationError) Reason ¶
func (e UserRegisterReqValidationError) Reason() string
Reason function returns reason value.
type UserServiceClient ¶
type UserServiceClient interface { //用户注册 UserRegister(ctx context.Context, in *UserRegisterReq, opts ...grpc.CallOption) (*UserRegisterReply, error) //用户登录 UserLogin(ctx context.Context, in *UserLoginReq, opts ...grpc.CallOption) (*UserLoginReply, error) //用户搜索 SearchUsers(ctx context.Context, in *SearchUsersReq, opts ...grpc.CallOption) (*SearchUsersReply, error) //根据标签搜索用户 SearchUsersByTags(ctx context.Context, in *SearchUsersByTagsReq, opts ...grpc.CallOption) (*SearchUsersReply, error) //用户删除 DeleteUser(ctx context.Context, in *DeleteUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) //获取当前登录用户信息 GetCurrentUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCurrentReply, error) //用户退出 UserLogout(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) //用户更新 UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) //用户推荐 UsersRecommend(ctx context.Context, in *UsersRecommendReq, opts ...grpc.CallOption) (*UsersRecommendReply, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceHTTPClient ¶
type UserServiceHTTPClient interface { DeleteUser(ctx context.Context, req *DeleteUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetCurrentUser(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetCurrentReply, err error) SearchUsers(ctx context.Context, req *SearchUsersReq, opts ...http.CallOption) (rsp *SearchUsersReply, err error) SearchUsersByTags(ctx context.Context, req *SearchUsersByTagsReq, opts ...http.CallOption) (rsp *SearchUsersReply, err error) UpdateUser(ctx context.Context, req *UpdateUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UserLogin(ctx context.Context, req *UserLoginReq, opts ...http.CallOption) (rsp *UserLoginReply, err error) UserLogout(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UserRegister(ctx context.Context, req *UserRegisterReq, opts ...http.CallOption) (rsp *UserRegisterReply, err error) UsersRecommend(ctx context.Context, req *UsersRecommendReq, opts ...http.CallOption) (rsp *UsersRecommendReply, err error) }
func NewUserServiceHTTPClient ¶
func NewUserServiceHTTPClient(client *http.Client) UserServiceHTTPClient
type UserServiceHTTPClientImpl ¶
type UserServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserServiceHTTPClientImpl) DeleteUser ¶
func (c *UserServiceHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserServiceHTTPClientImpl) GetCurrentUser ¶
func (c *UserServiceHTTPClientImpl) GetCurrentUser(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetCurrentReply, error)
func (*UserServiceHTTPClientImpl) SearchUsers ¶
func (c *UserServiceHTTPClientImpl) SearchUsers(ctx context.Context, in *SearchUsersReq, opts ...http.CallOption) (*SearchUsersReply, error)
func (*UserServiceHTTPClientImpl) SearchUsersByTags ¶
func (c *UserServiceHTTPClientImpl) SearchUsersByTags(ctx context.Context, in *SearchUsersByTagsReq, opts ...http.CallOption) (*SearchUsersReply, error)
func (*UserServiceHTTPClientImpl) UpdateUser ¶
func (c *UserServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserServiceHTTPClientImpl) UserLogin ¶
func (c *UserServiceHTTPClientImpl) UserLogin(ctx context.Context, in *UserLoginReq, opts ...http.CallOption) (*UserLoginReply, error)
func (*UserServiceHTTPClientImpl) UserLogout ¶
func (c *UserServiceHTTPClientImpl) UserLogout(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserServiceHTTPClientImpl) UserRegister ¶
func (c *UserServiceHTTPClientImpl) UserRegister(ctx context.Context, in *UserRegisterReq, opts ...http.CallOption) (*UserRegisterReply, error)
func (*UserServiceHTTPClientImpl) UsersRecommend ¶
func (c *UserServiceHTTPClientImpl) UsersRecommend(ctx context.Context, in *UsersRecommendReq, opts ...http.CallOption) (*UsersRecommendReply, error)
type UserServiceHTTPServer ¶
type UserServiceHTTPServer interface { // DeleteUser用户删除 DeleteUser(context.Context, *DeleteUserReq) (*emptypb.Empty, error) // GetCurrentUser获取当前登录用户信息 GetCurrentUser(context.Context, *emptypb.Empty) (*GetCurrentReply, error) // SearchUsers用户搜索 SearchUsers(context.Context, *SearchUsersReq) (*SearchUsersReply, error) // SearchUsersByTags根据标签搜索用户 SearchUsersByTags(context.Context, *SearchUsersByTagsReq) (*SearchUsersReply, error) // UpdateUser用户更新 UpdateUser(context.Context, *UpdateUserReq) (*emptypb.Empty, error) // UserLogin用户登录 UserLogin(context.Context, *UserLoginReq) (*UserLoginReply, error) // UserLogout用户退出 UserLogout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // UserRegister用户注册 UserRegister(context.Context, *UserRegisterReq) (*UserRegisterReply, error) // UsersRecommend用户推荐 UsersRecommend(context.Context, *UsersRecommendReq) (*UsersRecommendReply, error) }
type UserServiceServer ¶
type UserServiceServer interface { //用户注册 UserRegister(context.Context, *UserRegisterReq) (*UserRegisterReply, error) //用户登录 UserLogin(context.Context, *UserLoginReq) (*UserLoginReply, error) //用户搜索 SearchUsers(context.Context, *SearchUsersReq) (*SearchUsersReply, error) //根据标签搜索用户 SearchUsersByTags(context.Context, *SearchUsersByTagsReq) (*SearchUsersReply, error) //用户删除 DeleteUser(context.Context, *DeleteUserReq) (*emptypb.Empty, error) //获取当前登录用户信息 GetCurrentUser(context.Context, *emptypb.Empty) (*GetCurrentReply, error) //用户退出 UserLogout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) //用户更新 UpdateUser(context.Context, *UpdateUserReq) (*emptypb.Empty, error) //用户推荐 UsersRecommend(context.Context, *UsersRecommendReq) (*UsersRecommendReply, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
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.
type UsersRecommendReply ¶
type UsersRecommendReply struct { Data []*User `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*UsersRecommendReply) Descriptor
deprecated
func (*UsersRecommendReply) Descriptor() ([]byte, []int)
Deprecated: Use UsersRecommendReply.ProtoReflect.Descriptor instead.
func (*UsersRecommendReply) GetData ¶
func (x *UsersRecommendReply) GetData() []*User
func (*UsersRecommendReply) ProtoMessage ¶
func (*UsersRecommendReply) ProtoMessage()
func (*UsersRecommendReply) ProtoReflect ¶
func (x *UsersRecommendReply) ProtoReflect() protoreflect.Message
func (*UsersRecommendReply) Reset ¶
func (x *UsersRecommendReply) Reset()
func (*UsersRecommendReply) String ¶
func (x *UsersRecommendReply) String() string
func (*UsersRecommendReply) Validate ¶
func (m *UsersRecommendReply) Validate() error
Validate checks the field values on UsersRecommendReply 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 (*UsersRecommendReply) ValidateAll ¶
func (m *UsersRecommendReply) ValidateAll() error
ValidateAll checks the field values on UsersRecommendReply 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 UsersRecommendReplyMultiError, or nil if none found.
type UsersRecommendReplyMultiError ¶
type UsersRecommendReplyMultiError []error
UsersRecommendReplyMultiError is an error wrapping multiple validation errors returned by UsersRecommendReply.ValidateAll() if the designated constraints aren't met.
func (UsersRecommendReplyMultiError) AllErrors ¶
func (m UsersRecommendReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UsersRecommendReplyMultiError) Error ¶
func (m UsersRecommendReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UsersRecommendReplyValidationError ¶
type UsersRecommendReplyValidationError struct {
// contains filtered or unexported fields
}
UsersRecommendReplyValidationError is the validation error returned by UsersRecommendReply.Validate if the designated constraints aren't met.
func (UsersRecommendReplyValidationError) Cause ¶
func (e UsersRecommendReplyValidationError) Cause() error
Cause function returns cause value.
func (UsersRecommendReplyValidationError) Error ¶
func (e UsersRecommendReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UsersRecommendReplyValidationError) ErrorName ¶
func (e UsersRecommendReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UsersRecommendReplyValidationError) Field ¶
func (e UsersRecommendReplyValidationError) Field() string
Field function returns field value.
func (UsersRecommendReplyValidationError) Key ¶
func (e UsersRecommendReplyValidationError) Key() bool
Key function returns key value.
func (UsersRecommendReplyValidationError) Reason ¶
func (e UsersRecommendReplyValidationError) Reason() string
Reason function returns reason value.
type UsersRecommendReq ¶
type UsersRecommendReq struct { PageNum int32 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*UsersRecommendReq) Descriptor
deprecated
func (*UsersRecommendReq) Descriptor() ([]byte, []int)
Deprecated: Use UsersRecommendReq.ProtoReflect.Descriptor instead.
func (*UsersRecommendReq) GetPageNum ¶
func (x *UsersRecommendReq) GetPageNum() int32
func (*UsersRecommendReq) GetPageSize ¶
func (x *UsersRecommendReq) GetPageSize() int32
func (*UsersRecommendReq) ProtoMessage ¶
func (*UsersRecommendReq) ProtoMessage()
func (*UsersRecommendReq) ProtoReflect ¶
func (x *UsersRecommendReq) ProtoReflect() protoreflect.Message
func (*UsersRecommendReq) Reset ¶
func (x *UsersRecommendReq) Reset()
func (*UsersRecommendReq) String ¶
func (x *UsersRecommendReq) String() string
func (*UsersRecommendReq) Validate ¶
func (m *UsersRecommendReq) Validate() error
Validate checks the field values on UsersRecommendReq 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 (*UsersRecommendReq) ValidateAll ¶
func (m *UsersRecommendReq) ValidateAll() error
ValidateAll checks the field values on UsersRecommendReq 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 UsersRecommendReqMultiError, or nil if none found.
type UsersRecommendReqMultiError ¶
type UsersRecommendReqMultiError []error
UsersRecommendReqMultiError is an error wrapping multiple validation errors returned by UsersRecommendReq.ValidateAll() if the designated constraints aren't met.
func (UsersRecommendReqMultiError) AllErrors ¶
func (m UsersRecommendReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UsersRecommendReqMultiError) Error ¶
func (m UsersRecommendReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UsersRecommendReqValidationError ¶
type UsersRecommendReqValidationError struct {
// contains filtered or unexported fields
}
UsersRecommendReqValidationError is the validation error returned by UsersRecommendReq.Validate if the designated constraints aren't met.
func (UsersRecommendReqValidationError) Cause ¶
func (e UsersRecommendReqValidationError) Cause() error
Cause function returns cause value.
func (UsersRecommendReqValidationError) Error ¶
func (e UsersRecommendReqValidationError) Error() string
Error satisfies the builtin error interface
func (UsersRecommendReqValidationError) ErrorName ¶
func (e UsersRecommendReqValidationError) ErrorName() string
ErrorName returns error name.
func (UsersRecommendReqValidationError) Field ¶
func (e UsersRecommendReqValidationError) Field() string
Field function returns field value.
func (UsersRecommendReqValidationError) Key ¶
func (e UsersRecommendReqValidationError) Key() bool
Key function returns key value.
func (UsersRecommendReqValidationError) Reason ¶
func (e UsersRecommendReqValidationError) Reason() string
Reason function returns reason value.
Source Files
¶
- global_error.pb.go
- global_error.pb.validate.go
- global_error_errors.pb.go
- partner.pb.go
- partner.pb.validate.go
- partner_error.pb.go
- partner_error.pb.validate.go
- partner_error_errors.pb.go
- partner_grpc.pb.go
- partner_http.pb.go
- user.pb.go
- user.pb.validate.go
- user_error.pb.go
- user_error.pb.validate.go
- user_error_errors.pb.go
- user_grpc.pb.go
- user_http.pb.go