v1

package
v0.0.0-...-476383d Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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"
)
View Source
const OperationPartnerServiceAddTeam = "/partner.v1.PartnerService/AddTeam"
View Source
const OperationPartnerServiceDeleteTeam = "/partner.v1.PartnerService/DeleteTeam"
View Source
const OperationPartnerServiceGetTeam = "/partner.v1.PartnerService/GetTeam"
View Source
const OperationPartnerServiceGetTeamList = "/partner.v1.PartnerService/GetTeamList"
View Source
const OperationPartnerServiceJoinTeam = "/partner.v1.PartnerService/JoinTeam"
View Source
const OperationPartnerServiceQuitTeam = "/partner.v1.PartnerService/QuitTeam"
View Source
const OperationPartnerServiceUpdateTeam = "/partner.v1.PartnerService/UpdateTeam"
View Source
const OperationUserServiceDeleteUser = "/user.v1.UserService/DeleteUser"
View Source
const OperationUserServiceGetCurrentUser = "/user.v1.UserService/GetCurrentUser"
View Source
const OperationUserServiceSearchUsers = "/user.v1.UserService/SearchUsers"
View Source
const OperationUserServiceSearchUsersByTags = "/user.v1.UserService/SearchUsersByTags"
View Source
const OperationUserServiceUpdateUser = "/user.v1.UserService/UpdateUser"
View Source
const OperationUserServiceUserLogin = "/user.v1.UserService/UserLogin"
View Source
const OperationUserServiceUserLogout = "/user.v1.UserService/UserLogout"
View Source
const OperationUserServiceUserRegister = "/user.v1.UserService/UserRegister"
View Source
const OperationUserServiceUsersRecommend = "/user.v1.UserService/UsersRecommend"

Variables

View Source
var (
	GlobalErrorReason_name = map[int32]string{
		0: "PERMISSION_DENY",
	}
	GlobalErrorReason_value = map[string]int32{
		"PERMISSION_DENY": 0,
	}
)

Enum value maps for GlobalErrorReason.

View Source
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.

View Source
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.

View Source
var File_partner_service_v1_global_error_proto protoreflect.FileDescriptor
View Source
var File_partner_service_v1_partner_error_proto protoreflect.FileDescriptor
View Source
var File_partner_service_v1_partner_proto protoreflect.FileDescriptor
View Source
var File_partner_service_v1_user_error_proto protoreflect.FileDescriptor
View Source
var File_partner_service_v1_user_proto protoreflect.FileDescriptor
View Source
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)

View Source
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 ErrorAccountExist(format string, args ...interface{}) *errors.Error

func ErrorAccountIllegal

func ErrorAccountIllegal(format string, args ...interface{}) *errors.Error

func ErrorAddTeamFailed

func ErrorAddTeamFailed(format string, args ...interface{}) *errors.Error

Get_Account_Failed = 1 [(errors.code) = 401];

func ErrorAddUserTeamFailed

func ErrorAddUserTeamFailed(format string, args ...interface{}) *errors.Error

func ErrorDeleteTeamFailed

func ErrorDeleteTeamFailed(format string, args ...interface{}) *errors.Error

func ErrorGetTeamFailed

func ErrorGetTeamFailed(format string, args ...interface{}) *errors.Error

func ErrorGetTeamListFailed

func ErrorGetTeamListFailed(format string, args ...interface{}) *errors.Error

func ErrorJoinTeamFailed

func ErrorJoinTeamFailed(format string, args ...interface{}) *errors.Error

func ErrorLoginStateTimeout

func ErrorLoginStateTimeout(format string, args ...interface{}) *errors.Error

func ErrorPermissionDeny

func ErrorPermissionDeny(format string, args ...interface{}) *errors.Error

func ErrorQuitTeamFailed

func ErrorQuitTeamFailed(format string, args ...interface{}) *errors.Error

func ErrorUnknownError

func ErrorUnknownError(format string, args ...interface{}) *errors.Error

func ErrorUpdateTeamFailed

func ErrorUpdateTeamFailed(format string, args ...interface{}) *errors.Error

func ErrorUpdateUser

func ErrorUpdateUser(format string, args ...interface{}) *errors.Error

func ErrorUserDeleteFailed

func ErrorUserDeleteFailed(format string, args ...interface{}) *errors.Error

func ErrorUserLoginFailed

func ErrorUserLoginFailed(format string, args ...interface{}) *errors.Error

func ErrorUserLogoutFailed

func ErrorUserLogoutFailed(format string, args ...interface{}) *errors.Error

func ErrorUserRegisterFailed

func ErrorUserRegisterFailed(format string, args ...interface{}) *errors.Error

func ErrorUserSearchFailed

func ErrorUserSearchFailed(format string, args ...interface{}) *errors.Error

func ErrorUserTagsEmpty

func ErrorUserTagsEmpty(format string, args ...interface{}) *errors.Error

func ErrorUsersRecommendFailed

func ErrorUsersRecommendFailed(format string, args ...interface{}) *errors.Error

func ErrorValidateError

func ErrorValidateError(format string, args ...interface{}) *errors.Error

Get_Account_Failed = 1 [(errors.code) = 401];

func IsAccountExist

func IsAccountExist(err error) bool

func IsAccountIllegal

func IsAccountIllegal(err error) bool

func IsAddTeamFailed

func IsAddTeamFailed(err error) bool

Get_Account_Failed = 1 [(errors.code) = 401];

func IsAddUserTeamFailed

func IsAddUserTeamFailed(err error) bool

func IsDeleteTeamFailed

func IsDeleteTeamFailed(err error) bool

func IsGetTeamFailed

func IsGetTeamFailed(err error) bool

func IsGetTeamListFailed

func IsGetTeamListFailed(err error) bool

func IsJoinTeamFailed

func IsJoinTeamFailed(err error) bool

func IsLoginStateTimeout

func IsLoginStateTimeout(err error) bool

func IsPermissionDeny

func IsPermissionDeny(err error) bool

func IsQuitTeamFailed

func IsQuitTeamFailed(err error) bool

func IsUnknownError

func IsUnknownError(err error) bool

func IsUpdateTeamFailed

func IsUpdateTeamFailed(err error) bool

func IsUpdateUser

func IsUpdateUser(err error) bool

func IsUserDeleteFailed

func IsUserDeleteFailed(err error) bool

func IsUserLoginFailed

func IsUserLoginFailed(err error) bool

func IsUserLogoutFailed

func IsUserLogoutFailed(err error) bool

func IsUserRegisterFailed

func IsUserRegisterFailed(err error) bool

func IsUserSearchFailed

func IsUserSearchFailed(err error) bool

func IsUserTagsEmpty

func IsUserTagsEmpty(err error) bool

func IsUsersRecommendFailed

func IsUsersRecommendFailed(err error) bool

func IsValidateError

func IsValidateError(err error) bool

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

Cause function returns cause value.

func (DeleteTeamReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteTeamReqValidationError) ErrorName

func (e DeleteTeamReqValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteTeamReqValidationError) Field

Field function returns field value.

func (DeleteTeamReqValidationError) Key

Key function returns key value.

func (DeleteTeamReqValidationError) Reason

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

Cause function returns cause value.

func (DeleteUserReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserReqValidationError) ErrorName

func (e DeleteUserReqValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteUserReqValidationError) Field

Field function returns field value.

func (DeleteUserReqValidationError) Key

Key function returns key value.

func (DeleteUserReqValidationError) Reason

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

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

Cause function returns cause value.

func (GetCurrentReplyValidationError) Error

Error satisfies the builtin error interface

func (GetCurrentReplyValidationError) ErrorName

func (e GetCurrentReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetCurrentReplyValidationError) Field

Field function returns field value.

func (GetCurrentReplyValidationError) Key

Key function returns key value.

func (GetCurrentReplyValidationError) Reason

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

Cause function returns cause value.

func (GetTeamListReqValidationError) Error

Error satisfies the builtin error interface

func (GetTeamListReqValidationError) ErrorName

func (e GetTeamListReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetTeamListReqValidationError) Field

Field function returns field value.

func (GetTeamListReqValidationError) Key

Key function returns key value.

func (GetTeamListReqValidationError) Reason

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

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

Cause function returns cause value.

func (GetTeamListResponseValidationError) Error

Error satisfies the builtin error interface

func (GetTeamListResponseValidationError) ErrorName

ErrorName returns error name.

func (GetTeamListResponseValidationError) Field

Field function returns field value.

func (GetTeamListResponseValidationError) Key

Key function returns key value.

func (GetTeamListResponseValidationError) Reason

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 (*GetTeamListResponse_TeamInfo) Reset

func (x *GetTeamListResponse_TeamInfo) Reset()

func (*GetTeamListResponse_TeamInfo) 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

AllErrors returns a list of validation violation errors.

func (GetTeamListResponse_TeamInfoMultiError) Error

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

Cause function returns cause value.

func (GetTeamListResponse_TeamInfoValidationError) Error

Error satisfies the builtin error interface

func (GetTeamListResponse_TeamInfoValidationError) ErrorName

ErrorName returns error name.

func (GetTeamListResponse_TeamInfoValidationError) Field

Field function returns field value.

func (GetTeamListResponse_TeamInfoValidationError) Key

Key function returns key value.

func (GetTeamListResponse_TeamInfoValidationError) Reason

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

Error satisfies the builtin error interface

func (GetTeamReqValidationError) ErrorName

func (e GetTeamReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetTeamReqValidationError) Field

Field function returns field value.

func (GetTeamReqValidationError) Key

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

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

Cause function returns cause value.

func (GetTeamResponseValidationError) Error

Error satisfies the builtin error interface

func (GetTeamResponseValidationError) ErrorName

func (e GetTeamResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetTeamResponseValidationError) Field

Field function returns field value.

func (GetTeamResponseValidationError) Key

Key function returns key value.

func (GetTeamResponseValidationError) Reason

Reason function returns reason value.

type GlobalErrorReason

type GlobalErrorReason int32
const (
	GlobalErrorReason_PERMISSION_DENY GlobalErrorReason = 0
)

func (GlobalErrorReason) Descriptor

func (GlobalErrorReason) Enum

func (GlobalErrorReason) EnumDescriptor deprecated

func (GlobalErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use GlobalErrorReason.Descriptor instead.

func (GlobalErrorReason) Number

func (GlobalErrorReason) String

func (x GlobalErrorReason) String() string

func (GlobalErrorReason) Type

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

Cause function returns cause value.

func (JoinTeamReqValidationError) Error

Error satisfies the builtin error interface

func (JoinTeamReqValidationError) ErrorName

func (e JoinTeamReqValidationError) ErrorName() string

ErrorName returns error name.

func (JoinTeamReqValidationError) Field

Field function returns field value.

func (JoinTeamReqValidationError) Key

Key function returns key value.

func (JoinTeamReqValidationError) Reason

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

func (PartnerErrorReason) EnumDescriptor deprecated

func (PartnerErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use PartnerErrorReason.Descriptor instead.

func (PartnerErrorReason) Number

func (PartnerErrorReason) String

func (x PartnerErrorReason) String() string

func (PartnerErrorReason) Type

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.

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 (*PartnerServiceHTTPClientImpl) DeleteTeam

func (*PartnerServiceHTTPClientImpl) GetTeam

func (*PartnerServiceHTTPClientImpl) GetTeamList

func (*PartnerServiceHTTPClientImpl) JoinTeam

func (*PartnerServiceHTTPClientImpl) QuitTeam

func (*PartnerServiceHTTPClientImpl) UpdateTeam

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

Cause function returns cause value.

func (QuitTeamReqValidationError) Error

Error satisfies the builtin error interface

func (QuitTeamReqValidationError) ErrorName

func (e QuitTeamReqValidationError) ErrorName() string

ErrorName returns error name.

func (QuitTeamReqValidationError) Field

Field function returns field value.

func (QuitTeamReqValidationError) Key

Key function returns key value.

func (QuitTeamReqValidationError) Reason

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

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

Cause function returns cause value.

func (SearchUsersByTagsReqValidationError) Error

Error satisfies the builtin error interface

func (SearchUsersByTagsReqValidationError) ErrorName

ErrorName returns error name.

func (SearchUsersByTagsReqValidationError) Field

Field function returns field value.

func (SearchUsersByTagsReqValidationError) Key

Key function returns key value.

func (SearchUsersByTagsReqValidationError) Reason

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

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

Cause function returns cause value.

func (SearchUsersReplyValidationError) Error

Error satisfies the builtin error interface

func (SearchUsersReplyValidationError) ErrorName

ErrorName returns error name.

func (SearchUsersReplyValidationError) Field

Field function returns field value.

func (SearchUsersReplyValidationError) Key

Key function returns key value.

func (SearchUsersReplyValidationError) Reason

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

Cause function returns cause value.

func (SearchUsersReqValidationError) Error

Error satisfies the builtin error interface

func (SearchUsersReqValidationError) ErrorName

func (e SearchUsersReqValidationError) ErrorName() string

ErrorName returns error name.

func (SearchUsersReqValidationError) Field

Field function returns field value.

func (SearchUsersReqValidationError) Key

Key function returns key value.

func (SearchUsersReqValidationError) Reason

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

Deprecated: Use Team.ProtoReflect.Descriptor instead.

func (*Team) GetDescription

func (x *Team) GetDescription() string

func (*Team) GetExpireTime

func (x *Team) GetExpireTime() string

func (*Team) GetId

func (x *Team) GetId() int32

func (*Team) GetMaxNum

func (x *Team) GetMaxNum() int32

func (*Team) GetName

func (x *Team) GetName() string

func (*Team) GetPassword

func (x *Team) GetPassword() string

func (*Team) GetStatus

func (x *Team) GetStatus() int32

func (*Team) GetUserId

func (x *Team) GetUserId() int32

func (*Team) ProtoMessage

func (*Team) ProtoMessage()

func (*Team) ProtoReflect

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

func (*Team) Reset

func (x *Team) Reset()

func (*Team) String

func (x *Team) String() string

func (*Team) Validate

func (m *Team) Validate() error

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

func (m *Team) ValidateAll() error

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

func (UnimplementedPartnerServiceServer) DeleteTeam

func (UnimplementedPartnerServiceServer) GetTeam

func (UnimplementedPartnerServiceServer) GetTeamList

func (UnimplementedPartnerServiceServer) JoinTeam

func (UnimplementedPartnerServiceServer) QuitTeam

func (UnimplementedPartnerServiceServer) UpdateTeam

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetCurrentUser

func (UnimplementedUserServiceServer) SearchUsers

func (UnimplementedUserServiceServer) SearchUsersByTags

func (UnimplementedUserServiceServer) UpdateUser

func (UnimplementedUserServiceServer) UserLogin

func (UnimplementedUserServiceServer) UserLogout

func (UnimplementedUserServiceServer) UserRegister

func (UnimplementedUserServiceServer) UsersRecommend

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

Cause function returns cause value.

func (UpdateTeamReqValidationError) Error

Error satisfies the builtin error interface

func (UpdateTeamReqValidationError) ErrorName

func (e UpdateTeamReqValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateTeamReqValidationError) Field

Field function returns field value.

func (UpdateTeamReqValidationError) Key

Key function returns key value.

func (UpdateTeamReqValidationError) Reason

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

Cause function returns cause value.

func (UpdateUserReqValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserReqValidationError) ErrorName

func (e UpdateUserReqValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateUserReqValidationError) Field

Field function returns field value.

func (UpdateUserReqValidationError) Key

Key function returns key value.

func (UpdateUserReqValidationError) Reason

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatarUrl

func (x *User) GetAvatarUrl() string

func (*User) GetCreateTime

func (x *User) GetCreateTime() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetEmpty

func (x *User) GetEmpty() bool

func (*User) GetGender

func (x *User) GetGender() int32

func (*User) GetId

func (x *User) GetId() int32

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetProfile

func (x *User) GetProfile() string

func (*User) GetTags

func (x *User) GetTags() string

func (*User) GetUserAccount

func (x *User) GetUserAccount() string

func (*User) GetUserName

func (x *User) GetUserName() string

func (*User) GetUserRole

func (x *User) GetUserRole() int32

func (*User) GetUserStatus

func (x *User) GetUserStatus() int32

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type 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) Enum

func (x UserErrorReason) Enum() *UserErrorReason

func (UserErrorReason) EnumDescriptor deprecated

func (UserErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserErrorReason.Descriptor instead.

func (UserErrorReason) Number

func (UserErrorReason) String

func (x UserErrorReason) String() string

func (UserErrorReason) Type

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

Cause function returns cause value.

func (UserLoginReplyValidationError) Error

Error satisfies the builtin error interface

func (UserLoginReplyValidationError) ErrorName

func (e UserLoginReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UserLoginReplyValidationError) Field

Field function returns field value.

func (UserLoginReplyValidationError) Key

Key function returns key value.

func (UserLoginReplyValidationError) Reason

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

Cause function returns cause value.

func (UserLoginReqValidationError) Error

Error satisfies the builtin error interface

func (UserLoginReqValidationError) ErrorName

func (e UserLoginReqValidationError) ErrorName() string

ErrorName returns error name.

func (UserLoginReqValidationError) Field

Field function returns field value.

func (UserLoginReqValidationError) Key

Key function returns key value.

func (UserLoginReqValidationError) Reason

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

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

Cause function returns cause value.

func (UserRegisterReplyValidationError) Error

Error satisfies the builtin error interface

func (UserRegisterReplyValidationError) ErrorName

ErrorName returns error name.

func (UserRegisterReplyValidationError) Field

Field function returns field value.

func (UserRegisterReplyValidationError) Key

Key function returns key value.

func (UserRegisterReplyValidationError) Reason

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

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

Cause function returns cause value.

func (UserRegisterReqValidationError) Error

Error satisfies the builtin error interface

func (UserRegisterReqValidationError) ErrorName

func (e UserRegisterReqValidationError) ErrorName() string

ErrorName returns error name.

func (UserRegisterReqValidationError) Field

Field function returns field value.

func (UserRegisterReqValidationError) Key

Key function returns key value.

func (UserRegisterReqValidationError) Reason

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.

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 (*UserServiceHTTPClientImpl) GetCurrentUser

func (c *UserServiceHTTPClientImpl) GetCurrentUser(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetCurrentReply, error)

func (*UserServiceHTTPClientImpl) SearchUsers

func (*UserServiceHTTPClientImpl) SearchUsersByTags

func (*UserServiceHTTPClientImpl) UpdateUser

func (*UserServiceHTTPClientImpl) UserLogin

func (*UserServiceHTTPClientImpl) UserLogout

func (c *UserServiceHTTPClientImpl) UserLogout(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)

func (*UserServiceHTTPClientImpl) UserRegister

func (*UserServiceHTTPClientImpl) UsersRecommend

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

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

Cause function returns cause value.

func (UsersRecommendReplyValidationError) Error

Error satisfies the builtin error interface

func (UsersRecommendReplyValidationError) ErrorName

ErrorName returns error name.

func (UsersRecommendReplyValidationError) Field

Field function returns field value.

func (UsersRecommendReplyValidationError) Key

Key function returns key value.

func (UsersRecommendReplyValidationError) Reason

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

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

Cause function returns cause value.

func (UsersRecommendReqValidationError) Error

Error satisfies the builtin error interface

func (UsersRecommendReqValidationError) ErrorName

ErrorName returns error name.

func (UsersRecommendReqValidationError) Field

Field function returns field value.

func (UsersRecommendReqValidationError) Key

Key function returns key value.

func (UsersRecommendReqValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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