v2

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 24 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Profile_GetProfile_FullMethodName                 = "/api.im_cloud.user.v2.Profile/GetProfile"
	Profile_UpdateProfile_FullMethodName              = "/api.im_cloud.user.v2.Profile/UpdateProfile"
	Profile_SetOption_FullMethodName                  = "/api.im_cloud.user.v2.Profile/SetOption"
	Profile_GetOptionVal_FullMethodName               = "/api.im_cloud.user.v2.Profile/GetOptionVal"
	Profile_FindProfileByUserId_FullMethodName        = "/api.im_cloud.user.v2.Profile/FindProfileByUserId"
	Profile_FindFullProfileByUserId_FullMethodName    = "/api.im_cloud.user.v2.Profile/FindFullProfileByUserId"
	Profile_GetGlobalReceiveMessageOpt_FullMethodName = "/api.im_cloud.user.v2.Profile/GetGlobalReceiveMessageOpt"
	Profile_SearchProfile_FullMethodName              = "/api.im_cloud.user.v2.Profile/SearchProfile"
	Profile_GetAllUserID_FullMethodName               = "/api.im_cloud.user.v2.Profile/GetAllUserID"
)
View Source
const (
	User_GetUserLoginStatus_FullMethodName = "/api.im_cloud.user.v2.User/GetUserLoginStatus"
)

Variables

View Source
var (
	Switch_name = map[int32]string{
		0: "Close",
		1: "Open",
	}
	Switch_value = map[string]int32{
		"Close": 0,
		"Open":  1,
	}
)

Enum value maps for Switch.

View Source
var (
	UserOption_name = map[int32]string{
		0:  "notLoginStatus",
		1:  "isOpenMoments",
		2:  "qrCodeAdd",
		3:  "cardAdd",
		4:  "groupAdd",
		5:  "codeAdd",
		6:  "phoneAdd",
		7:  "showLastLogin",
		8:  "multipleDeviceLogin",
		9:  "isAdmin",
		10: "isOpenWallet",
		11: "appMangerLevel",
		12: "globalRecvMsgOpt",
		13: "isReal",
		14: "isCustomerService",
		15: "isTenant",
		16: "isSetPrivatePassword",
		17: "welcomeMessage",
	}
	UserOption_value = map[string]int32{
		"notLoginStatus":       0,
		"isOpenMoments":        1,
		"qrCodeAdd":            2,
		"cardAdd":              3,
		"groupAdd":             4,
		"codeAdd":              5,
		"phoneAdd":             6,
		"showLastLogin":        7,
		"multipleDeviceLogin":  8,
		"isAdmin":              9,
		"isOpenWallet":         10,
		"appMangerLevel":       11,
		"globalRecvMsgOpt":     12,
		"isReal":               13,
		"isCustomerService":    14,
		"isTenant":             15,
		"isSetPrivatePassword": 16,
		"welcomeMessage":       17,
	}
)

Enum value maps for UserOption.

View Source
var (
	ErrorProfileReason_name = map[int32]string{
		0:  "PROFILE_NOT_FOUND",
		2:  "GET_DATE",
		3:  "FAILED_TO_EDIT_PROFILE",
		4:  "PHONE_IS_NOT_EMPTY",
		5:  "SEARCH_PROFILE_ERR",
		6:  "CACHE_DATA_Not_Found",
		7:  "FAILED_DELETE_PROFILE",
		8:  "SET_PRIVACY_PASSWORD_FAIL",
		9:  "NOT_SET_PRIVACY_PASSWORD",
		10: "HISTORY_PRIVACY_PASSWORD_VERIFICATION_FAIL",
		11: "PARAMS_EMAIL_NOT_IS_USER_BIND",
		12: "PARAMS_PHONE_NOT_IS_USER_BIND",
		13: "USER_IS_NOT_CUSTOMER",
		14: "THIS_SHARE_CODE_IS_INVALID",
	}
	ErrorProfileReason_value = map[string]int32{
		"PROFILE_NOT_FOUND":                          0,
		"GET_DATE":                                   2,
		"FAILED_TO_EDIT_PROFILE":                     3,
		"PHONE_IS_NOT_EMPTY":                         4,
		"SEARCH_PROFILE_ERR":                         5,
		"CACHE_DATA_Not_Found":                       6,
		"FAILED_DELETE_PROFILE":                      7,
		"SET_PRIVACY_PASSWORD_FAIL":                  8,
		"NOT_SET_PRIVACY_PASSWORD":                   9,
		"HISTORY_PRIVACY_PASSWORD_VERIFICATION_FAIL": 10,
		"PARAMS_EMAIL_NOT_IS_USER_BIND":              11,
		"PARAMS_PHONE_NOT_IS_USER_BIND":              12,
		"USER_IS_NOT_CUSTOMER":                       13,
		"THIS_SHARE_CODE_IS_INVALID":                 14,
	}
)

Enum value maps for ErrorProfileReason.

View Source
var (
	ErrorUserReason_name = map[int32]string{
		0: "USER_NOT_FOUND",
		1: "FAILED_TO_CREATE_USER",
		2: "ACCOUNT_ALREADY_EXISTS",
		3: "FAILED_TO_EDIT_USER",
		4: "FAILED_UPDATE_USER_PASSWORD",
		5: "DELETE_USER_FAILED",
		6: "GET_USER_STATUS_FAILED",
	}
	ErrorUserReason_value = map[string]int32{
		"USER_NOT_FOUND":              0,
		"FAILED_TO_CREATE_USER":       1,
		"ACCOUNT_ALREADY_EXISTS":      2,
		"FAILED_TO_EDIT_USER":         3,
		"FAILED_UPDATE_USER_PASSWORD": 4,
		"DELETE_USER_FAILED":          5,
		"GET_USER_STATUS_FAILED":      6,
	}
)

Enum value maps for ErrorUserReason.

View Source
var File_api_im_cloud_user_v2_profile_error_proto protoreflect.FileDescriptor
View Source
var File_api_im_cloud_user_v2_user_error_proto protoreflect.FileDescriptor
View Source
var File_im_cloud_user_v2_profile_proto protoreflect.FileDescriptor
View Source
var File_im_cloud_user_v2_user_proto protoreflect.FileDescriptor
View Source
var Profile_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.im_cloud.user.v2.Profile",
	HandlerType: (*ProfileServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetProfile",
			Handler:    _Profile_GetProfile_Handler,
		},
		{
			MethodName: "UpdateProfile",
			Handler:    _Profile_UpdateProfile_Handler,
		},
		{
			MethodName: "SetOption",
			Handler:    _Profile_SetOption_Handler,
		},
		{
			MethodName: "GetOptionVal",
			Handler:    _Profile_GetOptionVal_Handler,
		},
		{
			MethodName: "FindProfileByUserId",
			Handler:    _Profile_FindProfileByUserId_Handler,
		},
		{
			MethodName: "FindFullProfileByUserId",
			Handler:    _Profile_FindFullProfileByUserId_Handler,
		},
		{
			MethodName: "GetGlobalReceiveMessageOpt",
			Handler:    _Profile_GetGlobalReceiveMessageOpt_Handler,
		},
		{
			MethodName: "SearchProfile",
			Handler:    _Profile_SearchProfile_Handler,
		},
		{
			MethodName: "GetAllUserID",
			Handler:    _Profile_GetAllUserID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "im_cloud/user/v2/profile.proto",
}

Profile_ServiceDesc is the grpc.ServiceDesc for Profile 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 User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.im_cloud.user.v2.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserLoginStatus",
			Handler:    _User_GetUserLoginStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "im_cloud/user/v2/user.proto",
}

User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func ErrorAccountAlreadyExists

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

创建用户错误

func ErrorCacheDataNotFound

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

缓存数据未找到

func ErrorDeleteUserFailed

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

删除用户错误

func ErrorFailedDeleteProfile

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

删除用户信息失败

func ErrorFailedToCreateUser

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

创建用户错误

func ErrorFailedToEditProfile

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

编辑用户异常

func ErrorFailedToEditUser

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

编辑用户异常

func ErrorFailedUpdateUserPassword

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

更新用户密码错误

func ErrorGetDate

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

获取数据失败

func ErrorGetUserStatusFailed

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

获取用户状态错误

func ErrorHistoryPrivacyPasswordVerificationFail

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

历史密码验证失败

func ErrorNotSetPrivacyPassword

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

未设置私密聊天密码

func ErrorParamsEmailNotIsUserBind

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

输入邮箱与用户绑定邮箱不一致

func ErrorParamsPhoneNotIsUserBind

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

输入手机与用户绑定手机不一致

func ErrorPhoneIsNotEmpty

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

手机号不能为空

func ErrorProfileNotFound

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

用户信息未找到

func ErrorSearchProfileErr

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

搜索用户错误

func ErrorSetPrivacyPasswordFail

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

设置私密聊天密码失败

func ErrorThisShareCodeIsInvalid

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

该推广码无效

func ErrorUserIsNotCustomer

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

用户非客户

func ErrorUserNotFound

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

用户未找到

func IsAccountAlreadyExists

func IsAccountAlreadyExists(err error) bool

创建用户错误

func IsCacheDataNotFound

func IsCacheDataNotFound(err error) bool

缓存数据未找到

func IsDeleteUserFailed

func IsDeleteUserFailed(err error) bool

删除用户错误

func IsFailedDeleteProfile

func IsFailedDeleteProfile(err error) bool

删除用户信息失败

func IsFailedToCreateUser

func IsFailedToCreateUser(err error) bool

创建用户错误

func IsFailedToEditProfile

func IsFailedToEditProfile(err error) bool

编辑用户异常

func IsFailedToEditUser

func IsFailedToEditUser(err error) bool

编辑用户异常

func IsFailedUpdateUserPassword

func IsFailedUpdateUserPassword(err error) bool

更新用户密码错误

func IsGetDate

func IsGetDate(err error) bool

获取数据失败

func IsGetUserStatusFailed

func IsGetUserStatusFailed(err error) bool

获取用户状态错误

func IsHistoryPrivacyPasswordVerificationFail

func IsHistoryPrivacyPasswordVerificationFail(err error) bool

历史密码验证失败

func IsNotSetPrivacyPassword

func IsNotSetPrivacyPassword(err error) bool

未设置私密聊天密码

func IsParamsEmailNotIsUserBind

func IsParamsEmailNotIsUserBind(err error) bool

输入邮箱与用户绑定邮箱不一致

func IsParamsPhoneNotIsUserBind

func IsParamsPhoneNotIsUserBind(err error) bool

输入手机与用户绑定手机不一致

func IsPhoneIsNotEmpty

func IsPhoneIsNotEmpty(err error) bool

手机号不能为空

func IsProfileNotFound

func IsProfileNotFound(err error) bool

用户信息未找到

func IsSearchProfileErr

func IsSearchProfileErr(err error) bool

搜索用户错误

func IsSetPrivacyPasswordFail

func IsSetPrivacyPasswordFail(err error) bool

设置私密聊天密码失败

func IsThisShareCodeIsInvalid

func IsThisShareCodeIsInvalid(err error) bool

该推广码无效

func IsUserIsNotCustomer

func IsUserIsNotCustomer(err error) bool

用户非客户

func IsUserNotFound

func IsUserNotFound(err error) bool

用户未找到

func RegisterProfileServer

func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type ErrorProfileReason

type ErrorProfileReason int32
const (
	// 用户信息未找到
	ErrorProfileReason_PROFILE_NOT_FOUND ErrorProfileReason = 0
	// 获取数据失败
	ErrorProfileReason_GET_DATE ErrorProfileReason = 2
	// 编辑用户异常
	ErrorProfileReason_FAILED_TO_EDIT_PROFILE ErrorProfileReason = 3
	// 手机号不能为空
	ErrorProfileReason_PHONE_IS_NOT_EMPTY ErrorProfileReason = 4
	// 搜索用户错误
	ErrorProfileReason_SEARCH_PROFILE_ERR ErrorProfileReason = 5
	// 缓存数据未找到
	ErrorProfileReason_CACHE_DATA_Not_Found ErrorProfileReason = 6
	// 删除用户信息失败
	ErrorProfileReason_FAILED_DELETE_PROFILE ErrorProfileReason = 7
	// 设置私密聊天密码失败
	ErrorProfileReason_SET_PRIVACY_PASSWORD_FAIL ErrorProfileReason = 8
	// 未设置私密聊天密码
	ErrorProfileReason_NOT_SET_PRIVACY_PASSWORD ErrorProfileReason = 9
	// 历史密码验证失败
	ErrorProfileReason_HISTORY_PRIVACY_PASSWORD_VERIFICATION_FAIL ErrorProfileReason = 10
	// 输入邮箱与用户绑定邮箱不一致
	ErrorProfileReason_PARAMS_EMAIL_NOT_IS_USER_BIND ErrorProfileReason = 11
	// 输入手机与用户绑定手机不一致
	ErrorProfileReason_PARAMS_PHONE_NOT_IS_USER_BIND ErrorProfileReason = 12
	// 用户非客户
	ErrorProfileReason_USER_IS_NOT_CUSTOMER ErrorProfileReason = 13
	// 该推广码无效
	ErrorProfileReason_THIS_SHARE_CODE_IS_INVALID ErrorProfileReason = 14
)

func (ErrorProfileReason) Descriptor

func (ErrorProfileReason) Enum

func (ErrorProfileReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorProfileReason.Descriptor instead.

func (ErrorProfileReason) Number

func (ErrorProfileReason) String

func (x ErrorProfileReason) String() string

func (ErrorProfileReason) Type

type ErrorUserReason

type ErrorUserReason int32
const (
	// 用户未找到
	ErrorUserReason_USER_NOT_FOUND ErrorUserReason = 0
	// 创建用户错误
	ErrorUserReason_FAILED_TO_CREATE_USER ErrorUserReason = 1
	// 创建用户错误
	ErrorUserReason_ACCOUNT_ALREADY_EXISTS ErrorUserReason = 2
	// 编辑用户异常
	ErrorUserReason_FAILED_TO_EDIT_USER ErrorUserReason = 3
	// 更新用户密码错误
	ErrorUserReason_FAILED_UPDATE_USER_PASSWORD ErrorUserReason = 4
	// 删除用户错误
	ErrorUserReason_DELETE_USER_FAILED ErrorUserReason = 5
	// 获取用户状态错误
	ErrorUserReason_GET_USER_STATUS_FAILED ErrorUserReason = 6
)

func (ErrorUserReason) Descriptor

func (ErrorUserReason) Enum

func (x ErrorUserReason) Enum() *ErrorUserReason

func (ErrorUserReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorUserReason.Descriptor instead.

func (ErrorUserReason) Number

func (ErrorUserReason) String

func (x ErrorUserReason) String() string

func (ErrorUserReason) Type

type FindFullProfileByUserIdReply

type FindFullProfileByUserIdReply struct {
	List []*v2.UserProfile `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // 用户信息列表
	// contains filtered or unexported fields
}

func (*FindFullProfileByUserIdReply) Descriptor deprecated

func (*FindFullProfileByUserIdReply) Descriptor() ([]byte, []int)

Deprecated: Use FindFullProfileByUserIdReply.ProtoReflect.Descriptor instead.

func (*FindFullProfileByUserIdReply) GetList

func (*FindFullProfileByUserIdReply) ProtoMessage

func (*FindFullProfileByUserIdReply) ProtoMessage()

func (*FindFullProfileByUserIdReply) ProtoReflect

func (*FindFullProfileByUserIdReply) Reset

func (x *FindFullProfileByUserIdReply) Reset()

func (*FindFullProfileByUserIdReply) String

func (*FindFullProfileByUserIdReply) Validate

func (m *FindFullProfileByUserIdReply) Validate() error

Validate checks the field values on FindFullProfileByUserIdReply 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 (*FindFullProfileByUserIdReply) ValidateAll

func (m *FindFullProfileByUserIdReply) ValidateAll() error

ValidateAll checks the field values on FindFullProfileByUserIdReply 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 FindFullProfileByUserIdReplyMultiError, or nil if none found.

type FindFullProfileByUserIdReplyMultiError

type FindFullProfileByUserIdReplyMultiError []error

FindFullProfileByUserIdReplyMultiError is an error wrapping multiple validation errors returned by FindFullProfileByUserIdReply.ValidateAll() if the designated constraints aren't met.

func (FindFullProfileByUserIdReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (FindFullProfileByUserIdReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindFullProfileByUserIdReplyValidationError

type FindFullProfileByUserIdReplyValidationError struct {
	// contains filtered or unexported fields
}

FindFullProfileByUserIdReplyValidationError is the validation error returned by FindFullProfileByUserIdReply.Validate if the designated constraints aren't met.

func (FindFullProfileByUserIdReplyValidationError) Cause

Cause function returns cause value.

func (FindFullProfileByUserIdReplyValidationError) Error

Error satisfies the builtin error interface

func (FindFullProfileByUserIdReplyValidationError) ErrorName

ErrorName returns error name.

func (FindFullProfileByUserIdReplyValidationError) Field

Field function returns field value.

func (FindFullProfileByUserIdReplyValidationError) Key

Key function returns key value.

func (FindFullProfileByUserIdReplyValidationError) Reason

Reason function returns reason value.

type FindFullProfileByUserIdReq

type FindFullProfileByUserIdReq struct {
	UserIds []string `protobuf:"bytes,1,rep,name=userIds,proto3" json:"userIds,omitempty"` // 用户 id 数组
	// contains filtered or unexported fields
}

根据ids获取完整的用户信息不过过滤删除和和租户 存在 -------------------------------------------

func (*FindFullProfileByUserIdReq) Descriptor deprecated

func (*FindFullProfileByUserIdReq) Descriptor() ([]byte, []int)

Deprecated: Use FindFullProfileByUserIdReq.ProtoReflect.Descriptor instead.

func (*FindFullProfileByUserIdReq) GetUserIds

func (x *FindFullProfileByUserIdReq) GetUserIds() []string

func (*FindFullProfileByUserIdReq) ProtoMessage

func (*FindFullProfileByUserIdReq) ProtoMessage()

func (*FindFullProfileByUserIdReq) ProtoReflect

func (*FindFullProfileByUserIdReq) Reset

func (x *FindFullProfileByUserIdReq) Reset()

func (*FindFullProfileByUserIdReq) String

func (x *FindFullProfileByUserIdReq) String() string

func (*FindFullProfileByUserIdReq) Validate

func (m *FindFullProfileByUserIdReq) Validate() error

Validate checks the field values on FindFullProfileByUserIdReq 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 (*FindFullProfileByUserIdReq) ValidateAll

func (m *FindFullProfileByUserIdReq) ValidateAll() error

ValidateAll checks the field values on FindFullProfileByUserIdReq 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 FindFullProfileByUserIdReqMultiError, or nil if none found.

type FindFullProfileByUserIdReqMultiError

type FindFullProfileByUserIdReqMultiError []error

FindFullProfileByUserIdReqMultiError is an error wrapping multiple validation errors returned by FindFullProfileByUserIdReq.ValidateAll() if the designated constraints aren't met.

func (FindFullProfileByUserIdReqMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (FindFullProfileByUserIdReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindFullProfileByUserIdReqValidationError

type FindFullProfileByUserIdReqValidationError struct {
	// contains filtered or unexported fields
}

FindFullProfileByUserIdReqValidationError is the validation error returned by FindFullProfileByUserIdReq.Validate if the designated constraints aren't met.

func (FindFullProfileByUserIdReqValidationError) Cause

Cause function returns cause value.

func (FindFullProfileByUserIdReqValidationError) Error

Error satisfies the builtin error interface

func (FindFullProfileByUserIdReqValidationError) ErrorName

ErrorName returns error name.

func (FindFullProfileByUserIdReqValidationError) Field

Field function returns field value.

func (FindFullProfileByUserIdReqValidationError) Key

Key function returns key value.

func (FindFullProfileByUserIdReqValidationError) Reason

Reason function returns reason value.

type FindProfileByUserReply

type FindProfileByUserReply struct {
	List []*v2.UserProfile `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // 用户信息列表
	// contains filtered or unexported fields
}

func (*FindProfileByUserReply) Descriptor deprecated

func (*FindProfileByUserReply) Descriptor() ([]byte, []int)

Deprecated: Use FindProfileByUserReply.ProtoReflect.Descriptor instead.

func (*FindProfileByUserReply) GetList

func (x *FindProfileByUserReply) GetList() []*v2.UserProfile

func (*FindProfileByUserReply) ProtoMessage

func (*FindProfileByUserReply) ProtoMessage()

func (*FindProfileByUserReply) ProtoReflect

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

func (*FindProfileByUserReply) Reset

func (x *FindProfileByUserReply) Reset()

func (*FindProfileByUserReply) String

func (x *FindProfileByUserReply) String() string

func (*FindProfileByUserReply) Validate

func (m *FindProfileByUserReply) Validate() error

Validate checks the field values on FindProfileByUserReply 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 (*FindProfileByUserReply) ValidateAll

func (m *FindProfileByUserReply) ValidateAll() error

ValidateAll checks the field values on FindProfileByUserReply 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 FindProfileByUserReplyMultiError, or nil if none found.

type FindProfileByUserReplyMultiError

type FindProfileByUserReplyMultiError []error

FindProfileByUserReplyMultiError is an error wrapping multiple validation errors returned by FindProfileByUserReply.ValidateAll() if the designated constraints aren't met.

func (FindProfileByUserReplyMultiError) AllErrors

func (m FindProfileByUserReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindProfileByUserReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindProfileByUserReplyValidationError

type FindProfileByUserReplyValidationError struct {
	// contains filtered or unexported fields
}

FindProfileByUserReplyValidationError is the validation error returned by FindProfileByUserReply.Validate if the designated constraints aren't met.

func (FindProfileByUserReplyValidationError) Cause

Cause function returns cause value.

func (FindProfileByUserReplyValidationError) Error

Error satisfies the builtin error interface

func (FindProfileByUserReplyValidationError) ErrorName

ErrorName returns error name.

func (FindProfileByUserReplyValidationError) Field

Field function returns field value.

func (FindProfileByUserReplyValidationError) Key

Key function returns key value.

func (FindProfileByUserReplyValidationError) Reason

Reason function returns reason value.

type FindProfileByUserReq

type FindProfileByUserReq struct {
	UserIds []string `protobuf:"bytes,1,rep,name=userIds,proto3" json:"userIds,omitempty"` // 用户 id 数组
	// contains filtered or unexported fields
}

根据id获取用户信息 存在 -------------------------------------------

func (*FindProfileByUserReq) Descriptor deprecated

func (*FindProfileByUserReq) Descriptor() ([]byte, []int)

Deprecated: Use FindProfileByUserReq.ProtoReflect.Descriptor instead.

func (*FindProfileByUserReq) GetUserIds

func (x *FindProfileByUserReq) GetUserIds() []string

func (*FindProfileByUserReq) ProtoMessage

func (*FindProfileByUserReq) ProtoMessage()

func (*FindProfileByUserReq) ProtoReflect

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

func (*FindProfileByUserReq) Reset

func (x *FindProfileByUserReq) Reset()

func (*FindProfileByUserReq) String

func (x *FindProfileByUserReq) String() string

func (*FindProfileByUserReq) Validate

func (m *FindProfileByUserReq) Validate() error

Validate checks the field values on FindProfileByUserReq 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 (*FindProfileByUserReq) ValidateAll

func (m *FindProfileByUserReq) ValidateAll() error

ValidateAll checks the field values on FindProfileByUserReq 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 FindProfileByUserReqMultiError, or nil if none found.

type FindProfileByUserReqMultiError

type FindProfileByUserReqMultiError []error

FindProfileByUserReqMultiError is an error wrapping multiple validation errors returned by FindProfileByUserReq.ValidateAll() if the designated constraints aren't met.

func (FindProfileByUserReqMultiError) AllErrors

func (m FindProfileByUserReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FindProfileByUserReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type FindProfileByUserReqValidationError

type FindProfileByUserReqValidationError struct {
	// contains filtered or unexported fields
}

FindProfileByUserReqValidationError is the validation error returned by FindProfileByUserReq.Validate if the designated constraints aren't met.

func (FindProfileByUserReqValidationError) Cause

Cause function returns cause value.

func (FindProfileByUserReqValidationError) Error

Error satisfies the builtin error interface

func (FindProfileByUserReqValidationError) ErrorName

ErrorName returns error name.

func (FindProfileByUserReqValidationError) Field

Field function returns field value.

func (FindProfileByUserReqValidationError) Key

Key function returns key value.

func (FindProfileByUserReqValidationError) Reason

Reason function returns reason value.

type GetAllUserIDReply

type GetAllUserIDReply struct {
	UserIds []string `protobuf:"bytes,1,rep,name=userIds,proto3" json:"userIds,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllUserIDReply) Descriptor deprecated

func (*GetAllUserIDReply) Descriptor() ([]byte, []int)

Deprecated: Use GetAllUserIDReply.ProtoReflect.Descriptor instead.

func (*GetAllUserIDReply) GetUserIds

func (x *GetAllUserIDReply) GetUserIds() []string

func (*GetAllUserIDReply) ProtoMessage

func (*GetAllUserIDReply) ProtoMessage()

func (*GetAllUserIDReply) ProtoReflect

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

func (*GetAllUserIDReply) Reset

func (x *GetAllUserIDReply) Reset()

func (*GetAllUserIDReply) String

func (x *GetAllUserIDReply) String() string

func (*GetAllUserIDReply) Validate

func (m *GetAllUserIDReply) Validate() error

Validate checks the field values on GetAllUserIDReply 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 (*GetAllUserIDReply) ValidateAll

func (m *GetAllUserIDReply) ValidateAll() error

ValidateAll checks the field values on GetAllUserIDReply 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 GetAllUserIDReplyMultiError, or nil if none found.

type GetAllUserIDReplyMultiError

type GetAllUserIDReplyMultiError []error

GetAllUserIDReplyMultiError is an error wrapping multiple validation errors returned by GetAllUserIDReply.ValidateAll() if the designated constraints aren't met.

func (GetAllUserIDReplyMultiError) AllErrors

func (m GetAllUserIDReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAllUserIDReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAllUserIDReplyValidationError

type GetAllUserIDReplyValidationError struct {
	// contains filtered or unexported fields
}

GetAllUserIDReplyValidationError is the validation error returned by GetAllUserIDReply.Validate if the designated constraints aren't met.

func (GetAllUserIDReplyValidationError) Cause

Cause function returns cause value.

func (GetAllUserIDReplyValidationError) Error

Error satisfies the builtin error interface

func (GetAllUserIDReplyValidationError) ErrorName

ErrorName returns error name.

func (GetAllUserIDReplyValidationError) Field

Field function returns field value.

func (GetAllUserIDReplyValidationError) Key

Key function returns key value.

func (GetAllUserIDReplyValidationError) Reason

Reason function returns reason value.

type GetAllUserIDReq

type GetAllUserIDReq struct {
	// contains filtered or unexported fields
}

获取用户列表 存在 -------------------------------------------

func (*GetAllUserIDReq) Descriptor deprecated

func (*GetAllUserIDReq) Descriptor() ([]byte, []int)

Deprecated: Use GetAllUserIDReq.ProtoReflect.Descriptor instead.

func (*GetAllUserIDReq) ProtoMessage

func (*GetAllUserIDReq) ProtoMessage()

func (*GetAllUserIDReq) ProtoReflect

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

func (*GetAllUserIDReq) Reset

func (x *GetAllUserIDReq) Reset()

func (*GetAllUserIDReq) String

func (x *GetAllUserIDReq) String() string

func (*GetAllUserIDReq) Validate

func (m *GetAllUserIDReq) Validate() error

Validate checks the field values on GetAllUserIDReq 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 (*GetAllUserIDReq) ValidateAll

func (m *GetAllUserIDReq) ValidateAll() error

ValidateAll checks the field values on GetAllUserIDReq 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 GetAllUserIDReqMultiError, or nil if none found.

type GetAllUserIDReqMultiError

type GetAllUserIDReqMultiError []error

GetAllUserIDReqMultiError is an error wrapping multiple validation errors returned by GetAllUserIDReq.ValidateAll() if the designated constraints aren't met.

func (GetAllUserIDReqMultiError) AllErrors

func (m GetAllUserIDReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAllUserIDReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAllUserIDReqValidationError

type GetAllUserIDReqValidationError struct {
	// contains filtered or unexported fields
}

GetAllUserIDReqValidationError is the validation error returned by GetAllUserIDReq.Validate if the designated constraints aren't met.

func (GetAllUserIDReqValidationError) Cause

Cause function returns cause value.

func (GetAllUserIDReqValidationError) Error

Error satisfies the builtin error interface

func (GetAllUserIDReqValidationError) ErrorName

func (e GetAllUserIDReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetAllUserIDReqValidationError) Field

Field function returns field value.

func (GetAllUserIDReqValidationError) Key

Key function returns key value.

func (GetAllUserIDReqValidationError) Reason

Reason function returns reason value.

type GetGlobalReceiveMessageOptReply

type GetGlobalReceiveMessageOptReply struct {
	GlobalRecvMsgOpt int32 `protobuf:"varint,1,opt,name=globalRecvMsgOpt,proto3" json:"globalRecvMsgOpt,omitempty"` // 0:正常;1:不接受消息;2:接受在线消息不接受离线消息;
	// contains filtered or unexported fields
}

func (*GetGlobalReceiveMessageOptReply) Descriptor deprecated

func (*GetGlobalReceiveMessageOptReply) Descriptor() ([]byte, []int)

Deprecated: Use GetGlobalReceiveMessageOptReply.ProtoReflect.Descriptor instead.

func (*GetGlobalReceiveMessageOptReply) GetGlobalRecvMsgOpt

func (x *GetGlobalReceiveMessageOptReply) GetGlobalRecvMsgOpt() int32

func (*GetGlobalReceiveMessageOptReply) ProtoMessage

func (*GetGlobalReceiveMessageOptReply) ProtoMessage()

func (*GetGlobalReceiveMessageOptReply) ProtoReflect

func (*GetGlobalReceiveMessageOptReply) Reset

func (*GetGlobalReceiveMessageOptReply) String

func (*GetGlobalReceiveMessageOptReply) Validate

func (m *GetGlobalReceiveMessageOptReply) Validate() error

Validate checks the field values on GetGlobalReceiveMessageOptReply 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 (*GetGlobalReceiveMessageOptReply) ValidateAll

func (m *GetGlobalReceiveMessageOptReply) ValidateAll() error

ValidateAll checks the field values on GetGlobalReceiveMessageOptReply 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 GetGlobalReceiveMessageOptReplyMultiError, or nil if none found.

type GetGlobalReceiveMessageOptReplyMultiError

type GetGlobalReceiveMessageOptReplyMultiError []error

GetGlobalReceiveMessageOptReplyMultiError is an error wrapping multiple validation errors returned by GetGlobalReceiveMessageOptReply.ValidateAll() if the designated constraints aren't met.

func (GetGlobalReceiveMessageOptReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetGlobalReceiveMessageOptReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetGlobalReceiveMessageOptReplyValidationError

type GetGlobalReceiveMessageOptReplyValidationError struct {
	// contains filtered or unexported fields
}

GetGlobalReceiveMessageOptReplyValidationError is the validation error returned by GetGlobalReceiveMessageOptReply.Validate if the designated constraints aren't met.

func (GetGlobalReceiveMessageOptReplyValidationError) Cause

Cause function returns cause value.

func (GetGlobalReceiveMessageOptReplyValidationError) Error

Error satisfies the builtin error interface

func (GetGlobalReceiveMessageOptReplyValidationError) ErrorName

ErrorName returns error name.

func (GetGlobalReceiveMessageOptReplyValidationError) Field

Field function returns field value.

func (GetGlobalReceiveMessageOptReplyValidationError) Key

Key function returns key value.

func (GetGlobalReceiveMessageOptReplyValidationError) Reason

Reason function returns reason value.

type GetGlobalReceiveMessageOptReq

type GetGlobalReceiveMessageOptReq struct {
	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户 id
	// contains filtered or unexported fields
}

获取用户全局消息配置项 存在 -------------------------------------------

func (*GetGlobalReceiveMessageOptReq) Descriptor deprecated

func (*GetGlobalReceiveMessageOptReq) Descriptor() ([]byte, []int)

Deprecated: Use GetGlobalReceiveMessageOptReq.ProtoReflect.Descriptor instead.

func (*GetGlobalReceiveMessageOptReq) GetUserId

func (x *GetGlobalReceiveMessageOptReq) GetUserId() string

func (*GetGlobalReceiveMessageOptReq) ProtoMessage

func (*GetGlobalReceiveMessageOptReq) ProtoMessage()

func (*GetGlobalReceiveMessageOptReq) ProtoReflect

func (*GetGlobalReceiveMessageOptReq) Reset

func (x *GetGlobalReceiveMessageOptReq) Reset()

func (*GetGlobalReceiveMessageOptReq) String

func (*GetGlobalReceiveMessageOptReq) Validate

func (m *GetGlobalReceiveMessageOptReq) Validate() error

Validate checks the field values on GetGlobalReceiveMessageOptReq 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 (*GetGlobalReceiveMessageOptReq) ValidateAll

func (m *GetGlobalReceiveMessageOptReq) ValidateAll() error

ValidateAll checks the field values on GetGlobalReceiveMessageOptReq 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 GetGlobalReceiveMessageOptReqMultiError, or nil if none found.

type GetGlobalReceiveMessageOptReqMultiError

type GetGlobalReceiveMessageOptReqMultiError []error

GetGlobalReceiveMessageOptReqMultiError is an error wrapping multiple validation errors returned by GetGlobalReceiveMessageOptReq.ValidateAll() if the designated constraints aren't met.

func (GetGlobalReceiveMessageOptReqMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetGlobalReceiveMessageOptReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetGlobalReceiveMessageOptReqValidationError

type GetGlobalReceiveMessageOptReqValidationError struct {
	// contains filtered or unexported fields
}

GetGlobalReceiveMessageOptReqValidationError is the validation error returned by GetGlobalReceiveMessageOptReq.Validate if the designated constraints aren't met.

func (GetGlobalReceiveMessageOptReqValidationError) Cause

Cause function returns cause value.

func (GetGlobalReceiveMessageOptReqValidationError) Error

Error satisfies the builtin error interface

func (GetGlobalReceiveMessageOptReqValidationError) ErrorName

ErrorName returns error name.

func (GetGlobalReceiveMessageOptReqValidationError) Field

Field function returns field value.

func (GetGlobalReceiveMessageOptReqValidationError) Key

Key function returns key value.

func (GetGlobalReceiveMessageOptReqValidationError) Reason

Reason function returns reason value.

type GetOptionValReply

type GetOptionValReply struct {
	Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // 开启/关闭
	// contains filtered or unexported fields
}

func (*GetOptionValReply) Descriptor deprecated

func (*GetOptionValReply) Descriptor() ([]byte, []int)

Deprecated: Use GetOptionValReply.ProtoReflect.Descriptor instead.

func (*GetOptionValReply) GetValue

func (x *GetOptionValReply) GetValue() int32

func (*GetOptionValReply) ProtoMessage

func (*GetOptionValReply) ProtoMessage()

func (*GetOptionValReply) ProtoReflect

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

func (*GetOptionValReply) Reset

func (x *GetOptionValReply) Reset()

func (*GetOptionValReply) String

func (x *GetOptionValReply) String() string

func (*GetOptionValReply) Validate

func (m *GetOptionValReply) Validate() error

Validate checks the field values on GetOptionValReply 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 (*GetOptionValReply) ValidateAll

func (m *GetOptionValReply) ValidateAll() error

ValidateAll checks the field values on GetOptionValReply 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 GetOptionValReplyMultiError, or nil if none found.

type GetOptionValReplyMultiError

type GetOptionValReplyMultiError []error

GetOptionValReplyMultiError is an error wrapping multiple validation errors returned by GetOptionValReply.ValidateAll() if the designated constraints aren't met.

func (GetOptionValReplyMultiError) AllErrors

func (m GetOptionValReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetOptionValReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetOptionValReplyValidationError

type GetOptionValReplyValidationError struct {
	// contains filtered or unexported fields
}

GetOptionValReplyValidationError is the validation error returned by GetOptionValReply.Validate if the designated constraints aren't met.

func (GetOptionValReplyValidationError) Cause

Cause function returns cause value.

func (GetOptionValReplyValidationError) Error

Error satisfies the builtin error interface

func (GetOptionValReplyValidationError) ErrorName

ErrorName returns error name.

func (GetOptionValReplyValidationError) Field

Field function returns field value.

func (GetOptionValReplyValidationError) Key

Key function returns key value.

func (GetOptionValReplyValidationError) Reason

Reason function returns reason value.

type GetOptionValReq

type GetOptionValReq struct {
	UserId string     `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`                                       // 用户 id
	Option UserOption `protobuf:"varint,2,opt,name=option,proto3,enum=api.im_cloud.user.v2.UserOption" json:"option,omitempty"` // 配置项类型
	// contains filtered or unexported fields
}

查询用户配置项的值 存在 -------------------------------------------

func (*GetOptionValReq) Descriptor deprecated

func (*GetOptionValReq) Descriptor() ([]byte, []int)

Deprecated: Use GetOptionValReq.ProtoReflect.Descriptor instead.

func (*GetOptionValReq) GetOption

func (x *GetOptionValReq) GetOption() UserOption

func (*GetOptionValReq) GetUserId

func (x *GetOptionValReq) GetUserId() string

func (*GetOptionValReq) ProtoMessage

func (*GetOptionValReq) ProtoMessage()

func (*GetOptionValReq) ProtoReflect

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

func (*GetOptionValReq) Reset

func (x *GetOptionValReq) Reset()

func (*GetOptionValReq) String

func (x *GetOptionValReq) String() string

func (*GetOptionValReq) Validate

func (m *GetOptionValReq) Validate() error

Validate checks the field values on GetOptionValReq 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 (*GetOptionValReq) ValidateAll

func (m *GetOptionValReq) ValidateAll() error

ValidateAll checks the field values on GetOptionValReq 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 GetOptionValReqMultiError, or nil if none found.

type GetOptionValReqMultiError

type GetOptionValReqMultiError []error

GetOptionValReqMultiError is an error wrapping multiple validation errors returned by GetOptionValReq.ValidateAll() if the designated constraints aren't met.

func (GetOptionValReqMultiError) AllErrors

func (m GetOptionValReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetOptionValReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetOptionValReqValidationError

type GetOptionValReqValidationError struct {
	// contains filtered or unexported fields
}

GetOptionValReqValidationError is the validation error returned by GetOptionValReq.Validate if the designated constraints aren't met.

func (GetOptionValReqValidationError) Cause

Cause function returns cause value.

func (GetOptionValReqValidationError) Error

Error satisfies the builtin error interface

func (GetOptionValReqValidationError) ErrorName

func (e GetOptionValReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetOptionValReqValidationError) Field

Field function returns field value.

func (GetOptionValReqValidationError) Key

Key function returns key value.

func (GetOptionValReqValidationError) Reason

Reason function returns reason value.

type GetProfileReply

type GetProfileReply struct {
	Profile *v2.UserProfile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileReply) Descriptor deprecated

func (*GetProfileReply) Descriptor() ([]byte, []int)

Deprecated: Use GetProfileReply.ProtoReflect.Descriptor instead.

func (*GetProfileReply) GetProfile

func (x *GetProfileReply) GetProfile() *v2.UserProfile

func (*GetProfileReply) ProtoMessage

func (*GetProfileReply) ProtoMessage()

func (*GetProfileReply) ProtoReflect

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

func (*GetProfileReply) Reset

func (x *GetProfileReply) Reset()

func (*GetProfileReply) String

func (x *GetProfileReply) String() string

func (*GetProfileReply) Validate

func (m *GetProfileReply) Validate() error

Validate checks the field values on GetProfileReply 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 (*GetProfileReply) ValidateAll

func (m *GetProfileReply) ValidateAll() error

ValidateAll checks the field values on GetProfileReply 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 GetProfileReplyMultiError, or nil if none found.

type GetProfileReplyMultiError

type GetProfileReplyMultiError []error

GetProfileReplyMultiError is an error wrapping multiple validation errors returned by GetProfileReply.ValidateAll() if the designated constraints aren't met.

func (GetProfileReplyMultiError) AllErrors

func (m GetProfileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetProfileReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetProfileReplyValidationError

type GetProfileReplyValidationError struct {
	// contains filtered or unexported fields
}

GetProfileReplyValidationError is the validation error returned by GetProfileReply.Validate if the designated constraints aren't met.

func (GetProfileReplyValidationError) Cause

Cause function returns cause value.

func (GetProfileReplyValidationError) Error

Error satisfies the builtin error interface

func (GetProfileReplyValidationError) ErrorName

func (e GetProfileReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetProfileReplyValidationError) Field

Field function returns field value.

func (GetProfileReplyValidationError) Key

Key function returns key value.

func (GetProfileReplyValidationError) Reason

Reason function returns reason value.

type GetProfileReq

type GetProfileReq struct {
	UserId  string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`   // 用户id
	Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` // 账号
	Code    string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`       // 编码
	Phone   string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`     // 手机号或账号
	Emil    string `protobuf:"bytes,5,opt,name=emil,proto3" json:"emil,omitempty"`       // 用户邮箱
	// contains filtered or unexported fields
}

获取用户信息 存在 -------------------------------------------

func (*GetProfileReq) Descriptor deprecated

func (*GetProfileReq) Descriptor() ([]byte, []int)

Deprecated: Use GetProfileReq.ProtoReflect.Descriptor instead.

func (*GetProfileReq) GetAccount

func (x *GetProfileReq) GetAccount() string

func (*GetProfileReq) GetCode

func (x *GetProfileReq) GetCode() string

func (*GetProfileReq) GetEmil

func (x *GetProfileReq) GetEmil() string

func (*GetProfileReq) GetPhone

func (x *GetProfileReq) GetPhone() string

func (*GetProfileReq) GetUserId

func (x *GetProfileReq) GetUserId() string

func (*GetProfileReq) ProtoMessage

func (*GetProfileReq) ProtoMessage()

func (*GetProfileReq) ProtoReflect

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

func (*GetProfileReq) Reset

func (x *GetProfileReq) Reset()

func (*GetProfileReq) String

func (x *GetProfileReq) String() string

func (*GetProfileReq) Validate

func (m *GetProfileReq) Validate() error

Validate checks the field values on GetProfileReq 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 (*GetProfileReq) ValidateAll

func (m *GetProfileReq) ValidateAll() error

ValidateAll checks the field values on GetProfileReq 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 GetProfileReqMultiError, or nil if none found.

type GetProfileReqMultiError

type GetProfileReqMultiError []error

GetProfileReqMultiError is an error wrapping multiple validation errors returned by GetProfileReq.ValidateAll() if the designated constraints aren't met.

func (GetProfileReqMultiError) AllErrors

func (m GetProfileReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetProfileReqMultiError) Error

func (m GetProfileReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetProfileReqValidationError

type GetProfileReqValidationError struct {
	// contains filtered or unexported fields
}

GetProfileReqValidationError is the validation error returned by GetProfileReq.Validate if the designated constraints aren't met.

func (GetProfileReqValidationError) Cause

Cause function returns cause value.

func (GetProfileReqValidationError) Error

Error satisfies the builtin error interface

func (GetProfileReqValidationError) ErrorName

func (e GetProfileReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetProfileReqValidationError) Field

Field function returns field value.

func (GetProfileReqValidationError) Key

Key function returns key value.

func (GetProfileReqValidationError) Reason

Reason function returns reason value.

type GetUserLoginStatusReply

type GetUserLoginStatusReply struct {
	Data *v2.OnlineStatus `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserLoginStatusReply) Descriptor deprecated

func (*GetUserLoginStatusReply) Descriptor() ([]byte, []int)

Deprecated: Use GetUserLoginStatusReply.ProtoReflect.Descriptor instead.

func (*GetUserLoginStatusReply) GetData

func (x *GetUserLoginStatusReply) GetData() *v2.OnlineStatus

func (*GetUserLoginStatusReply) ProtoMessage

func (*GetUserLoginStatusReply) ProtoMessage()

func (*GetUserLoginStatusReply) ProtoReflect

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

func (*GetUserLoginStatusReply) Reset

func (x *GetUserLoginStatusReply) Reset()

func (*GetUserLoginStatusReply) String

func (x *GetUserLoginStatusReply) String() string

func (*GetUserLoginStatusReply) Validate

func (m *GetUserLoginStatusReply) Validate() error

Validate checks the field values on GetUserLoginStatusReply 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 (*GetUserLoginStatusReply) ValidateAll

func (m *GetUserLoginStatusReply) ValidateAll() error

ValidateAll checks the field values on GetUserLoginStatusReply 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 GetUserLoginStatusReplyMultiError, or nil if none found.

type GetUserLoginStatusReplyMultiError

type GetUserLoginStatusReplyMultiError []error

GetUserLoginStatusReplyMultiError is an error wrapping multiple validation errors returned by GetUserLoginStatusReply.ValidateAll() if the designated constraints aren't met.

func (GetUserLoginStatusReplyMultiError) AllErrors

func (m GetUserLoginStatusReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserLoginStatusReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserLoginStatusReplyValidationError

type GetUserLoginStatusReplyValidationError struct {
	// contains filtered or unexported fields
}

GetUserLoginStatusReplyValidationError is the validation error returned by GetUserLoginStatusReply.Validate if the designated constraints aren't met.

func (GetUserLoginStatusReplyValidationError) Cause

Cause function returns cause value.

func (GetUserLoginStatusReplyValidationError) Error

Error satisfies the builtin error interface

func (GetUserLoginStatusReplyValidationError) ErrorName

ErrorName returns error name.

func (GetUserLoginStatusReplyValidationError) Field

Field function returns field value.

func (GetUserLoginStatusReplyValidationError) Key

Key function returns key value.

func (GetUserLoginStatusReplyValidationError) Reason

Reason function returns reason value.

type GetUserLoginStatusReq

type GetUserLoginStatusReq struct {
	UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserLoginStatusReq) Descriptor deprecated

func (*GetUserLoginStatusReq) Descriptor() ([]byte, []int)

Deprecated: Use GetUserLoginStatusReq.ProtoReflect.Descriptor instead.

func (*GetUserLoginStatusReq) GetUserID

func (x *GetUserLoginStatusReq) GetUserID() string

func (*GetUserLoginStatusReq) ProtoMessage

func (*GetUserLoginStatusReq) ProtoMessage()

func (*GetUserLoginStatusReq) ProtoReflect

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

func (*GetUserLoginStatusReq) Reset

func (x *GetUserLoginStatusReq) Reset()

func (*GetUserLoginStatusReq) String

func (x *GetUserLoginStatusReq) String() string

func (*GetUserLoginStatusReq) Validate

func (m *GetUserLoginStatusReq) Validate() error

Validate checks the field values on GetUserLoginStatusReq 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 (*GetUserLoginStatusReq) ValidateAll

func (m *GetUserLoginStatusReq) ValidateAll() error

ValidateAll checks the field values on GetUserLoginStatusReq 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 GetUserLoginStatusReqMultiError, or nil if none found.

type GetUserLoginStatusReqMultiError

type GetUserLoginStatusReqMultiError []error

GetUserLoginStatusReqMultiError is an error wrapping multiple validation errors returned by GetUserLoginStatusReq.ValidateAll() if the designated constraints aren't met.

func (GetUserLoginStatusReqMultiError) AllErrors

func (m GetUserLoginStatusReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserLoginStatusReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetUserLoginStatusReqValidationError

type GetUserLoginStatusReqValidationError struct {
	// contains filtered or unexported fields
}

GetUserLoginStatusReqValidationError is the validation error returned by GetUserLoginStatusReq.Validate if the designated constraints aren't met.

func (GetUserLoginStatusReqValidationError) Cause

Cause function returns cause value.

func (GetUserLoginStatusReqValidationError) Error

Error satisfies the builtin error interface

func (GetUserLoginStatusReqValidationError) ErrorName

ErrorName returns error name.

func (GetUserLoginStatusReqValidationError) Field

Field function returns field value.

func (GetUserLoginStatusReqValidationError) Key

Key function returns key value.

func (GetUserLoginStatusReqValidationError) Reason

Reason function returns reason value.

type ProfileClient

type ProfileClient interface {
	// 获取用户信息 存在
	GetProfile(ctx context.Context, in *GetProfileReq, opts ...grpc.CallOption) (*GetProfileReply, error)
	// 更新用户新 存在
	UpdateProfile(ctx context.Context, in *UpdateProfileReq, opts ...grpc.CallOption) (*UpdateProfileReply, error)
	// 用户配置项 存在
	SetOption(ctx context.Context, in *SetOptionReq, opts ...grpc.CallOption) (*SetOptionReply, error)
	// 获取配置项的值 存在
	GetOptionVal(ctx context.Context, in *GetOptionValReq, opts ...grpc.CallOption) (*GetOptionValReply, error)
	// 根据ids获取用户信息 存在
	FindProfileByUserId(ctx context.Context, in *FindProfileByUserReq, opts ...grpc.CallOption) (*FindProfileByUserReply, error)
	// 根据ids获取完整的用户信息不过过滤删除和和租户 存在
	FindFullProfileByUserId(ctx context.Context, in *FindFullProfileByUserIdReq, opts ...grpc.CallOption) (*FindFullProfileByUserIdReply, error)
	// 获取用户全局消息配置项 存在
	GetGlobalReceiveMessageOpt(ctx context.Context, in *GetGlobalReceiveMessageOptReq, opts ...grpc.CallOption) (*GetGlobalReceiveMessageOptReply, error)
	// 搜索用户 存在
	SearchProfile(ctx context.Context, in *SearchProfileReq, opts ...grpc.CallOption) (*SearchProfileReply, error)
	// 获取所有的用户id 存在
	GetAllUserID(ctx context.Context, in *GetAllUserIDReq, opts ...grpc.CallOption) (*GetAllUserIDReply, error)
}

ProfileClient is the client API for Profile 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 NewProfileClient

func NewProfileClient(cc grpc.ClientConnInterface) ProfileClient

type ProfileServer

type ProfileServer interface {
	// 获取用户信息 存在
	GetProfile(context.Context, *GetProfileReq) (*GetProfileReply, error)
	// 更新用户新 存在
	UpdateProfile(context.Context, *UpdateProfileReq) (*UpdateProfileReply, error)
	// 用户配置项 存在
	SetOption(context.Context, *SetOptionReq) (*SetOptionReply, error)
	// 获取配置项的值 存在
	GetOptionVal(context.Context, *GetOptionValReq) (*GetOptionValReply, error)
	// 根据ids获取用户信息 存在
	FindProfileByUserId(context.Context, *FindProfileByUserReq) (*FindProfileByUserReply, error)
	// 根据ids获取完整的用户信息不过过滤删除和和租户 存在
	FindFullProfileByUserId(context.Context, *FindFullProfileByUserIdReq) (*FindFullProfileByUserIdReply, error)
	// 获取用户全局消息配置项 存在
	GetGlobalReceiveMessageOpt(context.Context, *GetGlobalReceiveMessageOptReq) (*GetGlobalReceiveMessageOptReply, error)
	// 搜索用户 存在
	SearchProfile(context.Context, *SearchProfileReq) (*SearchProfileReply, error)
	// 获取所有的用户id 存在
	GetAllUserID(context.Context, *GetAllUserIDReq) (*GetAllUserIDReply, error)
	// contains filtered or unexported methods
}

ProfileServer is the server API for Profile service. All implementations must embed UnimplementedProfileServer for forward compatibility

type SearchProfileReply

type SearchProfileReply struct {
	Data *v2.UserProfile `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 用户信息
	// contains filtered or unexported fields
}

func (*SearchProfileReply) Descriptor deprecated

func (*SearchProfileReply) Descriptor() ([]byte, []int)

Deprecated: Use SearchProfileReply.ProtoReflect.Descriptor instead.

func (*SearchProfileReply) GetData

func (x *SearchProfileReply) GetData() *v2.UserProfile

func (*SearchProfileReply) ProtoMessage

func (*SearchProfileReply) ProtoMessage()

func (*SearchProfileReply) ProtoReflect

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

func (*SearchProfileReply) Reset

func (x *SearchProfileReply) Reset()

func (*SearchProfileReply) String

func (x *SearchProfileReply) String() string

func (*SearchProfileReply) Validate

func (m *SearchProfileReply) Validate() error

Validate checks the field values on SearchProfileReply 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 (*SearchProfileReply) ValidateAll

func (m *SearchProfileReply) ValidateAll() error

ValidateAll checks the field values on SearchProfileReply 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 SearchProfileReplyMultiError, or nil if none found.

type SearchProfileReplyMultiError

type SearchProfileReplyMultiError []error

SearchProfileReplyMultiError is an error wrapping multiple validation errors returned by SearchProfileReply.ValidateAll() if the designated constraints aren't met.

func (SearchProfileReplyMultiError) AllErrors

func (m SearchProfileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchProfileReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SearchProfileReplyValidationError

type SearchProfileReplyValidationError struct {
	// contains filtered or unexported fields
}

SearchProfileReplyValidationError is the validation error returned by SearchProfileReply.Validate if the designated constraints aren't met.

func (SearchProfileReplyValidationError) Cause

Cause function returns cause value.

func (SearchProfileReplyValidationError) Error

Error satisfies the builtin error interface

func (SearchProfileReplyValidationError) ErrorName

ErrorName returns error name.

func (SearchProfileReplyValidationError) Field

Field function returns field value.

func (SearchProfileReplyValidationError) Key

Key function returns key value.

func (SearchProfileReplyValidationError) Reason

Reason function returns reason value.

type SearchProfileReq

type SearchProfileReq struct {
	SearchValue string `protobuf:"bytes,1,opt,name=search_value,json=searchValue,proto3" json:"search_value,omitempty"` // 手机号或者用户ID
	Type        int32  `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`                                 // 1-手机 2-用户ID 3-扫码 4-身份证号 5-邮箱
	// contains filtered or unexported fields
}

搜索用户 存在 -------------------------------------------

func (*SearchProfileReq) Descriptor deprecated

func (*SearchProfileReq) Descriptor() ([]byte, []int)

Deprecated: Use SearchProfileReq.ProtoReflect.Descriptor instead.

func (*SearchProfileReq) GetSearchValue

func (x *SearchProfileReq) GetSearchValue() string

func (*SearchProfileReq) GetType

func (x *SearchProfileReq) GetType() int32

func (*SearchProfileReq) ProtoMessage

func (*SearchProfileReq) ProtoMessage()

func (*SearchProfileReq) ProtoReflect

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

func (*SearchProfileReq) Reset

func (x *SearchProfileReq) Reset()

func (*SearchProfileReq) String

func (x *SearchProfileReq) String() string

func (*SearchProfileReq) Validate

func (m *SearchProfileReq) Validate() error

Validate checks the field values on SearchProfileReq 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 (*SearchProfileReq) ValidateAll

func (m *SearchProfileReq) ValidateAll() error

ValidateAll checks the field values on SearchProfileReq 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 SearchProfileReqMultiError, or nil if none found.

type SearchProfileReqMultiError

type SearchProfileReqMultiError []error

SearchProfileReqMultiError is an error wrapping multiple validation errors returned by SearchProfileReq.ValidateAll() if the designated constraints aren't met.

func (SearchProfileReqMultiError) AllErrors

func (m SearchProfileReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SearchProfileReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SearchProfileReqValidationError

type SearchProfileReqValidationError struct {
	// contains filtered or unexported fields
}

SearchProfileReqValidationError is the validation error returned by SearchProfileReq.Validate if the designated constraints aren't met.

func (SearchProfileReqValidationError) Cause

Cause function returns cause value.

func (SearchProfileReqValidationError) Error

Error satisfies the builtin error interface

func (SearchProfileReqValidationError) ErrorName

ErrorName returns error name.

func (SearchProfileReqValidationError) Field

Field function returns field value.

func (SearchProfileReqValidationError) Key

Key function returns key value.

func (SearchProfileReqValidationError) Reason

Reason function returns reason value.

type SetOptionReply

type SetOptionReply struct {
	// contains filtered or unexported fields
}

func (*SetOptionReply) Descriptor deprecated

func (*SetOptionReply) Descriptor() ([]byte, []int)

Deprecated: Use SetOptionReply.ProtoReflect.Descriptor instead.

func (*SetOptionReply) ProtoMessage

func (*SetOptionReply) ProtoMessage()

func (*SetOptionReply) ProtoReflect

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

func (*SetOptionReply) Reset

func (x *SetOptionReply) Reset()

func (*SetOptionReply) String

func (x *SetOptionReply) String() string

func (*SetOptionReply) Validate

func (m *SetOptionReply) Validate() error

Validate checks the field values on SetOptionReply 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 (*SetOptionReply) ValidateAll

func (m *SetOptionReply) ValidateAll() error

ValidateAll checks the field values on SetOptionReply 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 SetOptionReplyMultiError, or nil if none found.

type SetOptionReplyMultiError

type SetOptionReplyMultiError []error

SetOptionReplyMultiError is an error wrapping multiple validation errors returned by SetOptionReply.ValidateAll() if the designated constraints aren't met.

func (SetOptionReplyMultiError) AllErrors

func (m SetOptionReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetOptionReplyMultiError) Error

func (m SetOptionReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SetOptionReplyValidationError

type SetOptionReplyValidationError struct {
	// contains filtered or unexported fields
}

SetOptionReplyValidationError is the validation error returned by SetOptionReply.Validate if the designated constraints aren't met.

func (SetOptionReplyValidationError) Cause

Cause function returns cause value.

func (SetOptionReplyValidationError) Error

Error satisfies the builtin error interface

func (SetOptionReplyValidationError) ErrorName

func (e SetOptionReplyValidationError) ErrorName() string

ErrorName returns error name.

func (SetOptionReplyValidationError) Field

Field function returns field value.

func (SetOptionReplyValidationError) Key

Key function returns key value.

func (SetOptionReplyValidationError) Reason

Reason function returns reason value.

type SetOptionReq

type SetOptionReq struct {
	UserId string     `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`                                       // 用户 id
	Option UserOption `protobuf:"varint,2,opt,name=option,proto3,enum=api.im_cloud.user.v2.UserOption" json:"option,omitempty"` // 配置项类型
	Value  int32      `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`                                        // 值
	// contains filtered or unexported fields
}

用户配置项 存在 -------------------------------------------

func (*SetOptionReq) Descriptor deprecated

func (*SetOptionReq) Descriptor() ([]byte, []int)

Deprecated: Use SetOptionReq.ProtoReflect.Descriptor instead.

func (*SetOptionReq) GetOption

func (x *SetOptionReq) GetOption() UserOption

func (*SetOptionReq) GetUserId

func (x *SetOptionReq) GetUserId() string

func (*SetOptionReq) GetValue

func (x *SetOptionReq) GetValue() int32

func (*SetOptionReq) ProtoMessage

func (*SetOptionReq) ProtoMessage()

func (*SetOptionReq) ProtoReflect

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

func (*SetOptionReq) Reset

func (x *SetOptionReq) Reset()

func (*SetOptionReq) String

func (x *SetOptionReq) String() string

func (*SetOptionReq) Validate

func (m *SetOptionReq) Validate() error

Validate checks the field values on SetOptionReq 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 (*SetOptionReq) ValidateAll

func (m *SetOptionReq) ValidateAll() error

ValidateAll checks the field values on SetOptionReq 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 SetOptionReqMultiError, or nil if none found.

type SetOptionReqMultiError

type SetOptionReqMultiError []error

SetOptionReqMultiError is an error wrapping multiple validation errors returned by SetOptionReq.ValidateAll() if the designated constraints aren't met.

func (SetOptionReqMultiError) AllErrors

func (m SetOptionReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetOptionReqMultiError) Error

func (m SetOptionReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SetOptionReqValidationError

type SetOptionReqValidationError struct {
	// contains filtered or unexported fields
}

SetOptionReqValidationError is the validation error returned by SetOptionReq.Validate if the designated constraints aren't met.

func (SetOptionReqValidationError) Cause

Cause function returns cause value.

func (SetOptionReqValidationError) Error

Error satisfies the builtin error interface

func (SetOptionReqValidationError) ErrorName

func (e SetOptionReqValidationError) ErrorName() string

ErrorName returns error name.

func (SetOptionReqValidationError) Field

Field function returns field value.

func (SetOptionReqValidationError) Key

Key function returns key value.

func (SetOptionReqValidationError) Reason

Reason function returns reason value.

type Switch

type Switch int32
const (
	Switch_Close Switch = 0 //关闭
	Switch_Open  Switch = 1 //开启
)

func (Switch) Descriptor

func (Switch) Descriptor() protoreflect.EnumDescriptor

func (Switch) Enum

func (x Switch) Enum() *Switch

func (Switch) EnumDescriptor deprecated

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

Deprecated: Use Switch.Descriptor instead.

func (Switch) Number

func (x Switch) Number() protoreflect.EnumNumber

func (Switch) String

func (x Switch) String() string

func (Switch) Type

func (Switch) Type() protoreflect.EnumType

type UnimplementedProfileServer

type UnimplementedProfileServer struct {
}

UnimplementedProfileServer must be embedded to have forward compatible implementations.

func (UnimplementedProfileServer) FindProfileByUserId

func (UnimplementedProfileServer) GetAllUserID

func (UnimplementedProfileServer) GetOptionVal

func (UnimplementedProfileServer) GetProfile

func (UnimplementedProfileServer) SearchProfile

func (UnimplementedProfileServer) SetOption

func (UnimplementedProfileServer) UpdateProfile

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) GetUserLoginStatus

type UnsafeProfileServer

type UnsafeProfileServer interface {
	// contains filtered or unexported methods
}

UnsafeProfileServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServer will result in compilation errors.

type UnsafeUserServer

type UnsafeUserServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.

type UpdateProfileReply

type UpdateProfileReply struct {
	Profile *v2.UserProfile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileReply) Descriptor deprecated

func (*UpdateProfileReply) Descriptor() ([]byte, []int)

Deprecated: Use UpdateProfileReply.ProtoReflect.Descriptor instead.

func (*UpdateProfileReply) GetProfile

func (x *UpdateProfileReply) GetProfile() *v2.UserProfile

func (*UpdateProfileReply) ProtoMessage

func (*UpdateProfileReply) ProtoMessage()

func (*UpdateProfileReply) ProtoReflect

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

func (*UpdateProfileReply) Reset

func (x *UpdateProfileReply) Reset()

func (*UpdateProfileReply) String

func (x *UpdateProfileReply) String() string

func (*UpdateProfileReply) Validate

func (m *UpdateProfileReply) Validate() error

Validate checks the field values on UpdateProfileReply 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 (*UpdateProfileReply) ValidateAll

func (m *UpdateProfileReply) ValidateAll() error

ValidateAll checks the field values on UpdateProfileReply 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 UpdateProfileReplyMultiError, or nil if none found.

type UpdateProfileReplyMultiError

type UpdateProfileReplyMultiError []error

UpdateProfileReplyMultiError is an error wrapping multiple validation errors returned by UpdateProfileReply.ValidateAll() if the designated constraints aren't met.

func (UpdateProfileReplyMultiError) AllErrors

func (m UpdateProfileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateProfileReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateProfileReplyValidationError

type UpdateProfileReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdateProfileReplyValidationError is the validation error returned by UpdateProfileReply.Validate if the designated constraints aren't met.

func (UpdateProfileReplyValidationError) Cause

Cause function returns cause value.

func (UpdateProfileReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateProfileReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateProfileReplyValidationError) Field

Field function returns field value.

func (UpdateProfileReplyValidationError) Key

Key function returns key value.

func (UpdateProfileReplyValidationError) Reason

Reason function returns reason value.

type UpdateProfileReq

type UpdateProfileReq struct {
	UserId        string  `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`                       // 用户 id
	FaceURL       *string `protobuf:"bytes,2,opt,name=faceURL,proto3,oneof" json:"faceURL,omitempty"`               // 头像
	Nickname      *string `protobuf:"bytes,3,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"`             // 昵称
	Gender        *int32  `protobuf:"varint,4,opt,name=gender,proto3,oneof" json:"gender,omitempty"`                // 性别 1:女 2:男
	Message       *string `protobuf:"bytes,5,opt,name=message,proto3,oneof" json:"message,omitempty"`               // 简介
	Phone         *string `protobuf:"bytes,6,opt,name=phone,proto3,oneof" json:"phone,omitempty"`                   //  电话
	Email         *string `protobuf:"bytes,7,opt,name=email,proto3,oneof" json:"email,omitempty"`                   // 邮箱
	Birth         *int64  `protobuf:"varint,9,opt,name=birth,proto3,oneof" json:"birth,omitempty"`                  // 生日
	IsOpenMoments *uint32 `protobuf:"varint,10,opt,name=IsOpenMoments,proto3,oneof" json:"IsOpenMoments,omitempty"` // 是否公开朋友圈 1公开 2不公开
	// contains filtered or unexported fields
}

更新用户信息 存在 -------------------------------------------

func (*UpdateProfileReq) Descriptor deprecated

func (*UpdateProfileReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateProfileReq.ProtoReflect.Descriptor instead.

func (*UpdateProfileReq) GetBirth

func (x *UpdateProfileReq) GetBirth() int64

func (*UpdateProfileReq) GetEmail

func (x *UpdateProfileReq) GetEmail() string

func (*UpdateProfileReq) GetFaceURL

func (x *UpdateProfileReq) GetFaceURL() string

func (*UpdateProfileReq) GetGender

func (x *UpdateProfileReq) GetGender() int32

func (*UpdateProfileReq) GetIsOpenMoments

func (x *UpdateProfileReq) GetIsOpenMoments() uint32

func (*UpdateProfileReq) GetMessage

func (x *UpdateProfileReq) GetMessage() string

func (*UpdateProfileReq) GetNickname

func (x *UpdateProfileReq) GetNickname() string

func (*UpdateProfileReq) GetPhone

func (x *UpdateProfileReq) GetPhone() string

func (*UpdateProfileReq) GetUserId

func (x *UpdateProfileReq) GetUserId() string

func (*UpdateProfileReq) ProtoMessage

func (*UpdateProfileReq) ProtoMessage()

func (*UpdateProfileReq) ProtoReflect

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

func (*UpdateProfileReq) Reset

func (x *UpdateProfileReq) Reset()

func (*UpdateProfileReq) String

func (x *UpdateProfileReq) String() string

func (*UpdateProfileReq) Validate

func (m *UpdateProfileReq) Validate() error

Validate checks the field values on UpdateProfileReq 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 (*UpdateProfileReq) ValidateAll

func (m *UpdateProfileReq) ValidateAll() error

ValidateAll checks the field values on UpdateProfileReq 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 UpdateProfileReqMultiError, or nil if none found.

type UpdateProfileReqMultiError

type UpdateProfileReqMultiError []error

UpdateProfileReqMultiError is an error wrapping multiple validation errors returned by UpdateProfileReq.ValidateAll() if the designated constraints aren't met.

func (UpdateProfileReqMultiError) AllErrors

func (m UpdateProfileReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateProfileReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateProfileReqValidationError

type UpdateProfileReqValidationError struct {
	// contains filtered or unexported fields
}

UpdateProfileReqValidationError is the validation error returned by UpdateProfileReq.Validate if the designated constraints aren't met.

func (UpdateProfileReqValidationError) Cause

Cause function returns cause value.

func (UpdateProfileReqValidationError) Error

Error satisfies the builtin error interface

func (UpdateProfileReqValidationError) ErrorName

ErrorName returns error name.

func (UpdateProfileReqValidationError) Field

Field function returns field value.

func (UpdateProfileReqValidationError) Key

Key function returns key value.

func (UpdateProfileReqValidationError) Reason

Reason function returns reason value.

type UserClient

type UserClient interface {
	// 获取用户登录状态
	GetUserLoginStatus(ctx context.Context, in *GetUserLoginStatusReq, opts ...grpc.CallOption) (*GetUserLoginStatusReply, error)
}

UserClient is the client API for User 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 NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserOption

type UserOption int32
const (
	UserOption_notLoginStatus       UserOption = 0  // 禁止登录
	UserOption_isOpenMoments        UserOption = 1  //是否公开朋友圈
	UserOption_qrCodeAdd            UserOption = 2  //是否开启二维码
	UserOption_cardAdd              UserOption = 3  //是否开启名片
	UserOption_groupAdd             UserOption = 4  //是否开启群添加
	UserOption_codeAdd              UserOption = 5  //开启code
	UserOption_phoneAdd             UserOption = 6  //开启手机号
	UserOption_showLastLogin        UserOption = 7  //好友是否可见我的上线时间
	UserOption_multipleDeviceLogin  UserOption = 8  //是否允许多设备登陆
	UserOption_isAdmin              UserOption = 9  //是否管理员账号
	UserOption_isOpenWallet         UserOption = 10 // 是否开启钱包
	UserOption_appMangerLevel       UserOption = 11 // 应用管理等级
	UserOption_globalRecvMsgOpt     UserOption = 12 // 0:正常;1:不接受消息;2:接受在线消息不接受离线消息;
	UserOption_isReal               UserOption = 13 //是否实名
	UserOption_isCustomerService    UserOption = 14 // 是否客服账号
	UserOption_isTenant             UserOption = 15 // 是否租户
	UserOption_isSetPrivatePassword UserOption = 16 //是否设置私密对话密码,1-是 0-否
	UserOption_welcomeMessage       UserOption = 17 //客服配置的欢迎语
)

func (UserOption) Descriptor

func (UserOption) Descriptor() protoreflect.EnumDescriptor

func (UserOption) Enum

func (x UserOption) Enum() *UserOption

func (UserOption) EnumDescriptor deprecated

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

Deprecated: Use UserOption.Descriptor instead.

func (UserOption) Number

func (x UserOption) Number() protoreflect.EnumNumber

func (UserOption) String

func (x UserOption) String() string

func (UserOption) Type

type UserServer

type UserServer interface {
	// 获取用户登录状态
	GetUserLoginStatus(context.Context, *GetUserLoginStatusReq) (*GetUserLoginStatusReply, error)
	// contains filtered or unexported methods
}

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility

Jump to

Keyboard shortcuts

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