Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type CreateUserReply
- func (*CreateUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReply) GetId() uint32
- func (*CreateUserReply) ProtoMessage()
- func (x *CreateUserReply) ProtoReflect() protoreflect.Message
- func (x *CreateUserReply) Reset()
- func (x *CreateUserReply) String() string
- func (m *CreateUserReply) Validate() error
- func (m *CreateUserReply) ValidateAll() error
- type CreateUserReplyMultiError
- type CreateUserReplyValidationError
- func (e CreateUserReplyValidationError) Cause() error
- func (e CreateUserReplyValidationError) Error() string
- func (e CreateUserReplyValidationError) ErrorName() string
- func (e CreateUserReplyValidationError) Field() string
- func (e CreateUserReplyValidationError) Key() bool
- func (e CreateUserReplyValidationError) Reason() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetAvatar() string
- func (x *CreateUserRequest) GetInfos() map[string]string
- func (x *CreateUserRequest) GetNickname() string
- func (x *CreateUserRequest) GetUsername() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (m *CreateUserRequest) Validate() error
- func (m *CreateUserRequest) ValidateAll() error
- type CreateUserRequestMultiError
- type CreateUserRequestValidationError
- func (e CreateUserRequestValidationError) Cause() error
- func (e CreateUserRequestValidationError) Error() string
- func (e CreateUserRequestValidationError) ErrorName() string
- func (e CreateUserRequestValidationError) Field() string
- func (e CreateUserRequestValidationError) Key() bool
- func (e CreateUserRequestValidationError) Reason() string
- type DeleteUserReply
- func (*DeleteUserReply) Descriptor() ([]byte, []int)deprecated
- func (*DeleteUserReply) ProtoMessage()
- func (x *DeleteUserReply) ProtoReflect() protoreflect.Message
- func (x *DeleteUserReply) Reset()
- func (x *DeleteUserReply) String() string
- func (m *DeleteUserReply) Validate() error
- func (m *DeleteUserReply) ValidateAll() error
- type DeleteUserReplyMultiError
- type DeleteUserReplyValidationError
- func (e DeleteUserReplyValidationError) Cause() error
- func (e DeleteUserReplyValidationError) Error() string
- func (e DeleteUserReplyValidationError) ErrorName() string
- func (e DeleteUserReplyValidationError) Field() string
- func (e DeleteUserReplyValidationError) Key() bool
- func (e DeleteUserReplyValidationError) Reason() string
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRequest) GetId() uint32
- func (*DeleteUserRequest) ProtoMessage()
- func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRequest) Reset()
- func (x *DeleteUserRequest) String() string
- func (m *DeleteUserRequest) Validate() error
- func (m *DeleteUserRequest) ValidateAll() error
- type DeleteUserRequestMultiError
- type DeleteUserRequestValidationError
- func (e DeleteUserRequestValidationError) Cause() error
- func (e DeleteUserRequestValidationError) Error() string
- func (e DeleteUserRequestValidationError) ErrorName() string
- func (e DeleteUserRequestValidationError) Field() string
- func (e DeleteUserRequestValidationError) Key() bool
- func (e DeleteUserRequestValidationError) Reason() string
- type GetCurrentUserRequest
- func (*GetCurrentUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentUserRequest) GetApp() string
- func (*GetCurrentUserRequest) ProtoMessage()
- func (x *GetCurrentUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetCurrentUserRequest) Reset()
- func (x *GetCurrentUserRequest) String() string
- func (m *GetCurrentUserRequest) Validate() error
- func (m *GetCurrentUserRequest) ValidateAll() error
- type GetCurrentUserRequestMultiError
- type GetCurrentUserRequestValidationError
- func (e GetCurrentUserRequestValidationError) Cause() error
- func (e GetCurrentUserRequestValidationError) Error() string
- func (e GetCurrentUserRequestValidationError) ErrorName() string
- func (e GetCurrentUserRequestValidationError) Field() string
- func (e GetCurrentUserRequestValidationError) Key() bool
- func (e GetCurrentUserRequestValidationError) Reason() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetApp() string
- func (x *GetUserRequest) GetId() uint32
- func (x *GetUserRequest) GetUsername() string
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
- func (m *GetUserRequest) Validate() error
- func (m *GetUserRequest) ValidateAll() error
- type GetUserRequestMultiError
- type GetUserRequestValidationError
- func (e GetUserRequestValidationError) Cause() error
- func (e GetUserRequestValidationError) Error() string
- func (e GetUserRequestValidationError) ErrorName() string
- func (e GetUserRequestValidationError) Field() string
- func (e GetUserRequestValidationError) Key() bool
- func (e GetUserRequestValidationError) Reason() string
- type ListUserReply
- func (*ListUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserReply) GetList() []*UserObject
- func (x *ListUserReply) GetTotal() uint32
- func (*ListUserReply) ProtoMessage()
- func (x *ListUserReply) ProtoReflect() protoreflect.Message
- func (x *ListUserReply) Reset()
- func (x *ListUserReply) String() string
- func (m *ListUserReply) Validate() error
- func (m *ListUserReply) ValidateAll() error
- type ListUserReplyMultiError
- type ListUserReplyValidationError
- func (e ListUserReplyValidationError) Cause() error
- func (e ListUserReplyValidationError) Error() string
- func (e ListUserReplyValidationError) ErrorName() string
- func (e ListUserReplyValidationError) Field() string
- func (e ListUserReplyValidationError) Key() bool
- func (e ListUserReplyValidationError) Reason() string
- type ListUserRequest
- func (*ListUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserRequest) GetAppId() uint32
- func (x *ListUserRequest) GetCreatedAts() []int64
- func (x *ListUserRequest) GetDeptId() uint32
- func (x *ListUserRequest) GetInIds() []uint32
- func (x *ListUserRequest) GetJobId() uint32
- func (x *ListUserRequest) GetLoggedAts() []int64
- func (x *ListUserRequest) GetNotInIds() []uint32
- func (x *ListUserRequest) GetPage() uint32
- func (x *ListUserRequest) GetPageSize() uint32
- func (x *ListUserRequest) GetStatus() bool
- func (x *ListUserRequest) GetUsername() string
- func (*ListUserRequest) ProtoMessage()
- func (x *ListUserRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserRequest) Reset()
- func (x *ListUserRequest) String() string
- func (m *ListUserRequest) Validate() error
- func (m *ListUserRequest) ValidateAll() error
- type ListUserRequestMultiError
- type ListUserRequestValidationError
- func (e ListUserRequestValidationError) Cause() error
- func (e ListUserRequestValidationError) Error() string
- func (e ListUserRequestValidationError) ErrorName() string
- func (e ListUserRequestValidationError) Field() string
- func (e ListUserRequestValidationError) Key() bool
- func (e ListUserRequestValidationError) Reason() string
- type OfflineUserRequest
- func (*OfflineUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OfflineUserRequest) GetAppIds() []uint32
- func (x *OfflineUserRequest) GetUserId() uint32
- func (*OfflineUserRequest) ProtoMessage()
- func (x *OfflineUserRequest) ProtoReflect() protoreflect.Message
- func (x *OfflineUserRequest) Reset()
- func (x *OfflineUserRequest) String() string
- func (m *OfflineUserRequest) Validate() error
- func (m *OfflineUserRequest) ValidateAll() error
- type OfflineUserRequestMultiError
- type OfflineUserRequestValidationError
- func (e OfflineUserRequestValidationError) Cause() error
- func (e OfflineUserRequestValidationError) Error() string
- func (e OfflineUserRequestValidationError) ErrorName() string
- func (e OfflineUserRequestValidationError) Field() string
- func (e OfflineUserRequestValidationError) Key() bool
- func (e OfflineUserRequestValidationError) Reason() string
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetId() uint32
- func (*ResetPasswordRequest) ProtoMessage()
- func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordRequest) Reset()
- func (x *ResetPasswordRequest) String() string
- func (m *ResetPasswordRequest) Validate() error
- func (m *ResetPasswordRequest) ValidateAll() error
- type ResetPasswordRequestMultiError
- type ResetPasswordRequestValidationError
- func (e ResetPasswordRequestValidationError) Cause() error
- func (e ResetPasswordRequestValidationError) Error() string
- func (e ResetPasswordRequestValidationError) ErrorName() string
- func (e ResetPasswordRequestValidationError) Field() string
- func (e ResetPasswordRequestValidationError) Key() bool
- func (e ResetPasswordRequestValidationError) Reason() string
- type ResetUserPasswordRequest
- func (*ResetUserPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetUserPasswordRequest) GetId() uint32
- func (*ResetUserPasswordRequest) ProtoMessage()
- func (x *ResetUserPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetUserPasswordRequest) Reset()
- func (x *ResetUserPasswordRequest) String() string
- func (m *ResetUserPasswordRequest) Validate() error
- func (m *ResetUserPasswordRequest) ValidateAll() error
- type ResetUserPasswordRequestMultiError
- type ResetUserPasswordRequestValidationError
- func (e ResetUserPasswordRequestValidationError) Cause() error
- func (e ResetUserPasswordRequestValidationError) Error() string
- func (e ResetUserPasswordRequestValidationError) ErrorName() string
- func (e ResetUserPasswordRequestValidationError) Field() string
- func (e ResetUserPasswordRequestValidationError) Key() bool
- func (e ResetUserPasswordRequestValidationError) Reason() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
- func (UnimplementedUserServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error)
- func (UnimplementedUserServer) GetCurrentUser(context.Context, *GetCurrentUserRequest) (*UserObject, error)
- func (UnimplementedUserServer) GetUser(context.Context, *GetUserRequest) (*UserObject, error)
- func (UnimplementedUserServer) ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
- func (UnimplementedUserServer) OfflineUser(context.Context, *OfflineUserRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServer) ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServer) UpdateCurrentUser(context.Context, *UpdateCurrentUserRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServer) UpdateCurrentUserPassword(context.Context, *UpdateCurrentUserPasswordRequest) (*UpdateCurrentUserPasswordReply, error)
- func (UnimplementedUserServer) UpdateCurrentUserSetting(context.Context, *UpdateCurrentUserSettingRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
- func (UnimplementedUserServer) UpdateUserinfo(context.Context, *UpdateUserinfoRequest) (*UpdateUserinfoReply, error)
- type UnsafeUserServer
- type UpdateCurrentUserPasswordReply
- func (*UpdateCurrentUserPasswordReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateCurrentUserPasswordReply) ProtoMessage()
- func (x *UpdateCurrentUserPasswordReply) ProtoReflect() protoreflect.Message
- func (x *UpdateCurrentUserPasswordReply) Reset()
- func (x *UpdateCurrentUserPasswordReply) String() string
- func (m *UpdateCurrentUserPasswordReply) Validate() error
- func (m *UpdateCurrentUserPasswordReply) ValidateAll() error
- type UpdateCurrentUserPasswordReplyMultiError
- type UpdateCurrentUserPasswordReplyValidationError
- func (e UpdateCurrentUserPasswordReplyValidationError) Cause() error
- func (e UpdateCurrentUserPasswordReplyValidationError) Error() string
- func (e UpdateCurrentUserPasswordReplyValidationError) ErrorName() string
- func (e UpdateCurrentUserPasswordReplyValidationError) Field() string
- func (e UpdateCurrentUserPasswordReplyValidationError) Key() bool
- func (e UpdateCurrentUserPasswordReplyValidationError) Reason() string
- type UpdateCurrentUserPasswordRequest
- func (*UpdateCurrentUserPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCurrentUserPasswordRequest) GetOldPassword() string
- func (x *UpdateCurrentUserPasswordRequest) GetPassword() string
- func (*UpdateCurrentUserPasswordRequest) ProtoMessage()
- func (x *UpdateCurrentUserPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCurrentUserPasswordRequest) Reset()
- func (x *UpdateCurrentUserPasswordRequest) String() string
- func (m *UpdateCurrentUserPasswordRequest) Validate() error
- func (m *UpdateCurrentUserPasswordRequest) ValidateAll() error
- type UpdateCurrentUserPasswordRequestMultiError
- type UpdateCurrentUserPasswordRequestValidationError
- func (e UpdateCurrentUserPasswordRequestValidationError) Cause() error
- func (e UpdateCurrentUserPasswordRequestValidationError) Error() string
- func (e UpdateCurrentUserPasswordRequestValidationError) ErrorName() string
- func (e UpdateCurrentUserPasswordRequestValidationError) Field() string
- func (e UpdateCurrentUserPasswordRequestValidationError) Key() bool
- func (e UpdateCurrentUserPasswordRequestValidationError) Reason() string
- type UpdateCurrentUserReply
- func (*UpdateCurrentUserReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateCurrentUserReply) ProtoMessage()
- func (x *UpdateCurrentUserReply) ProtoReflect() protoreflect.Message
- func (x *UpdateCurrentUserReply) Reset()
- func (x *UpdateCurrentUserReply) String() string
- func (m *UpdateCurrentUserReply) Validate() error
- func (m *UpdateCurrentUserReply) ValidateAll() error
- type UpdateCurrentUserReplyMultiError
- type UpdateCurrentUserReplyValidationError
- func (e UpdateCurrentUserReplyValidationError) Cause() error
- func (e UpdateCurrentUserReplyValidationError) Error() string
- func (e UpdateCurrentUserReplyValidationError) ErrorName() string
- func (e UpdateCurrentUserReplyValidationError) Field() string
- func (e UpdateCurrentUserReplyValidationError) Key() bool
- func (e UpdateCurrentUserReplyValidationError) Reason() string
- type UpdateCurrentUserRequest
- func (*UpdateCurrentUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCurrentUserRequest) GetAvatar() string
- func (x *UpdateCurrentUserRequest) GetInfos() map[string]string
- func (x *UpdateCurrentUserRequest) GetNickname() string
- func (*UpdateCurrentUserRequest) ProtoMessage()
- func (x *UpdateCurrentUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCurrentUserRequest) Reset()
- func (x *UpdateCurrentUserRequest) String() string
- func (m *UpdateCurrentUserRequest) Validate() error
- func (m *UpdateCurrentUserRequest) ValidateAll() error
- type UpdateCurrentUserRequestMultiError
- type UpdateCurrentUserRequestValidationError
- func (e UpdateCurrentUserRequestValidationError) Cause() error
- func (e UpdateCurrentUserRequestValidationError) Error() string
- func (e UpdateCurrentUserRequestValidationError) ErrorName() string
- func (e UpdateCurrentUserRequestValidationError) Field() string
- func (e UpdateCurrentUserRequestValidationError) Key() bool
- func (e UpdateCurrentUserRequestValidationError) Reason() string
- type UpdateCurrentUserSettingRequest
- func (*UpdateCurrentUserSettingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCurrentUserSettingRequest) GetApp() string
- func (x *UpdateCurrentUserSettingRequest) GetSetting() string
- func (*UpdateCurrentUserSettingRequest) ProtoMessage()
- func (x *UpdateCurrentUserSettingRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCurrentUserSettingRequest) Reset()
- func (x *UpdateCurrentUserSettingRequest) String() string
- func (m *UpdateCurrentUserSettingRequest) Validate() error
- func (m *UpdateCurrentUserSettingRequest) ValidateAll() error
- type UpdateCurrentUserSettingRequestMultiError
- type UpdateCurrentUserSettingRequestValidationError
- func (e UpdateCurrentUserSettingRequestValidationError) Cause() error
- func (e UpdateCurrentUserSettingRequestValidationError) Error() string
- func (e UpdateCurrentUserSettingRequestValidationError) ErrorName() string
- func (e UpdateCurrentUserSettingRequestValidationError) Field() string
- func (e UpdateCurrentUserSettingRequestValidationError) Key() bool
- func (e UpdateCurrentUserSettingRequestValidationError) Reason() string
- type UpdateUserReply
- func (*UpdateUserReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateUserReply) ProtoMessage()
- func (x *UpdateUserReply) ProtoReflect() protoreflect.Message
- func (x *UpdateUserReply) Reset()
- func (x *UpdateUserReply) String() string
- func (m *UpdateUserReply) Validate() error
- func (m *UpdateUserReply) ValidateAll() error
- type UpdateUserReplyMultiError
- type UpdateUserReplyValidationError
- func (e UpdateUserReplyValidationError) Cause() error
- func (e UpdateUserReplyValidationError) Error() string
- func (e UpdateUserReplyValidationError) ErrorName() string
- func (e UpdateUserReplyValidationError) Field() string
- func (e UpdateUserReplyValidationError) Key() bool
- func (e UpdateUserReplyValidationError) Reason() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetAvatar() string
- func (x *UpdateUserRequest) GetId() uint32
- func (x *UpdateUserRequest) GetInfos() map[string]string
- func (x *UpdateUserRequest) GetNickname() string
- func (x *UpdateUserRequest) GetReason() string
- func (x *UpdateUserRequest) GetStatus() bool
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) Validate() error
- func (m *UpdateUserRequest) ValidateAll() error
- type UpdateUserRequestMultiError
- type UpdateUserRequestValidationError
- func (e UpdateUserRequestValidationError) Cause() error
- func (e UpdateUserRequestValidationError) Error() string
- func (e UpdateUserRequestValidationError) ErrorName() string
- func (e UpdateUserRequestValidationError) Field() string
- func (e UpdateUserRequestValidationError) Key() bool
- func (e UpdateUserRequestValidationError) Reason() string
- type UpdateUserinfoReply
- func (*UpdateUserinfoReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateUserinfoReply) ProtoMessage()
- func (x *UpdateUserinfoReply) ProtoReflect() protoreflect.Message
- func (x *UpdateUserinfoReply) Reset()
- func (x *UpdateUserinfoReply) String() string
- func (m *UpdateUserinfoReply) Validate() error
- func (m *UpdateUserinfoReply) ValidateAll() error
- type UpdateUserinfoReplyMultiError
- type UpdateUserinfoReplyValidationError
- func (e UpdateUserinfoReplyValidationError) Cause() error
- func (e UpdateUserinfoReplyValidationError) Error() string
- func (e UpdateUserinfoReplyValidationError) ErrorName() string
- func (e UpdateUserinfoReplyValidationError) Field() string
- func (e UpdateUserinfoReplyValidationError) Key() bool
- func (e UpdateUserinfoReplyValidationError) Reason() string
- type UpdateUserinfoRequest
- func (*UpdateUserinfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserinfoRequest) GetId() uint32
- func (*UpdateUserinfoRequest) ProtoMessage()
- func (x *UpdateUserinfoRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserinfoRequest) Reset()
- func (x *UpdateUserinfoRequest) String() string
- func (m *UpdateUserinfoRequest) Validate() error
- func (m *UpdateUserinfoRequest) ValidateAll() error
- type UpdateUserinfoRequestMultiError
- type UpdateUserinfoRequestValidationError
- func (e UpdateUserinfoRequestValidationError) Cause() error
- func (e UpdateUserinfoRequestValidationError) Error() string
- func (e UpdateUserinfoRequestValidationError) ErrorName() string
- func (e UpdateUserinfoRequestValidationError) Field() string
- func (e UpdateUserinfoRequestValidationError) Key() bool
- func (e UpdateUserinfoRequestValidationError) Reason() string
- type UpdateUserinfoRequest_Info
- func (*UpdateUserinfoRequest_Info) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserinfoRequest_Info) GetField() string
- func (x *UpdateUserinfoRequest_Info) GetValue() string
- func (*UpdateUserinfoRequest_Info) ProtoMessage()
- func (x *UpdateUserinfoRequest_Info) ProtoReflect() protoreflect.Message
- func (x *UpdateUserinfoRequest_Info) Reset()
- func (x *UpdateUserinfoRequest_Info) String() string
- func (m *UpdateUserinfoRequest_Info) Validate() error
- func (m *UpdateUserinfoRequest_Info) ValidateAll() error
- type UpdateUserinfoRequest_InfoMultiError
- type UpdateUserinfoRequest_InfoValidationError
- func (e UpdateUserinfoRequest_InfoValidationError) Cause() error
- func (e UpdateUserinfoRequest_InfoValidationError) Error() string
- func (e UpdateUserinfoRequest_InfoValidationError) ErrorName() string
- func (e UpdateUserinfoRequest_InfoValidationError) Field() string
- func (e UpdateUserinfoRequest_InfoValidationError) Key() bool
- func (e UpdateUserinfoRequest_InfoValidationError) Reason() string
- type UserClient
- type UserHTTPClient
- type UserHTTPClientImpl
- func (c *UserHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*CreateUserReply, error)
- func (c *UserHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*DeleteUserReply, error)
- func (c *UserHTTPClientImpl) GetCurrentUser(ctx context.Context, in *GetCurrentUserRequest, opts ...http.CallOption) (*UserObject, error)
- func (c *UserHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*UserObject, error)
- func (c *UserHTTPClientImpl) ListUser(ctx context.Context, in *ListUserRequest, opts ...http.CallOption) (*ListUserReply, error)
- func (c *UserHTTPClientImpl) OfflineUser(ctx context.Context, in *OfflineUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *UserHTTPClientImpl) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *UserHTTPClientImpl) UpdateCurrentUser(ctx context.Context, in *UpdateCurrentUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *UserHTTPClientImpl) UpdateCurrentUserPassword(ctx context.Context, in *UpdateCurrentUserPasswordRequest, ...) (*UpdateCurrentUserPasswordReply, error)
- func (c *UserHTTPClientImpl) UpdateCurrentUserSetting(ctx context.Context, in *UpdateCurrentUserSettingRequest, ...) (*emptypb.Empty, error)
- func (c *UserHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*UpdateUserReply, error)
- func (c *UserHTTPClientImpl) UpdateUserinfo(ctx context.Context, in *UpdateUserinfoRequest, opts ...http.CallOption) (*UpdateUserinfoReply, error)
- type UserHTTPServer
- type UserObject
- func (*UserObject) Descriptor() ([]byte, []int)deprecated
- func (x *UserObject) GetAvatar() string
- func (x *UserObject) GetCreatedAt() uint32
- func (x *UserObject) GetEmail() string
- func (x *UserObject) GetId() uint32
- func (x *UserObject) GetInfos() map[string]string
- func (x *UserObject) GetLoggedAt() uint32
- func (x *UserObject) GetNickname() string
- func (x *UserObject) GetPhone() string
- func (x *UserObject) GetSetting() string
- func (x *UserObject) GetStatus() bool
- func (x *UserObject) GetUpdatedAt() uint32
- func (x *UserObject) GetUserDepts() []*UserObject_UserDept
- func (x *UserObject) GetUsername() string
- func (*UserObject) ProtoMessage()
- func (x *UserObject) ProtoReflect() protoreflect.Message
- func (x *UserObject) Reset()
- func (x *UserObject) String() string
- func (m *UserObject) Validate() error
- func (m *UserObject) ValidateAll() error
- type UserObjectMultiError
- type UserObjectValidationError
- type UserObject_Dept
- func (*UserObject_Dept) Descriptor() ([]byte, []int)deprecated
- func (x *UserObject_Dept) GetId() uint32
- func (x *UserObject_Dept) GetLogo() string
- func (x *UserObject_Dept) GetMain() bool
- func (x *UserObject_Dept) GetName() string
- func (*UserObject_Dept) ProtoMessage()
- func (x *UserObject_Dept) ProtoReflect() protoreflect.Message
- func (x *UserObject_Dept) Reset()
- func (x *UserObject_Dept) String() string
- func (m *UserObject_Dept) Validate() error
- func (m *UserObject_Dept) ValidateAll() error
- type UserObject_DeptMultiError
- type UserObject_DeptValidationError
- func (e UserObject_DeptValidationError) Cause() error
- func (e UserObject_DeptValidationError) Error() string
- func (e UserObject_DeptValidationError) ErrorName() string
- func (e UserObject_DeptValidationError) Field() string
- func (e UserObject_DeptValidationError) Key() bool
- func (e UserObject_DeptValidationError) Reason() string
- type UserObject_Job
- func (*UserObject_Job) Descriptor() ([]byte, []int)deprecated
- func (x *UserObject_Job) GetId() uint32
- func (x *UserObject_Job) GetName() string
- func (*UserObject_Job) ProtoMessage()
- func (x *UserObject_Job) ProtoReflect() protoreflect.Message
- func (x *UserObject_Job) Reset()
- func (x *UserObject_Job) String() string
- func (m *UserObject_Job) Validate() error
- func (m *UserObject_Job) ValidateAll() error
- type UserObject_JobMultiError
- type UserObject_JobValidationError
- func (e UserObject_JobValidationError) Cause() error
- func (e UserObject_JobValidationError) Error() string
- func (e UserObject_JobValidationError) ErrorName() string
- func (e UserObject_JobValidationError) Field() string
- func (e UserObject_JobValidationError) Key() bool
- func (e UserObject_JobValidationError) Reason() string
- type UserObject_UserDept
- func (*UserObject_UserDept) Descriptor() ([]byte, []int)deprecated
- func (x *UserObject_UserDept) GetDept() *UserObject_Dept
- func (x *UserObject_UserDept) GetDeptId() uint32
- func (x *UserObject_UserDept) GetJob() *UserObject_Job
- func (x *UserObject_UserDept) GetJobId() uint32
- func (*UserObject_UserDept) ProtoMessage()
- func (x *UserObject_UserDept) ProtoReflect() protoreflect.Message
- func (x *UserObject_UserDept) Reset()
- func (x *UserObject_UserDept) String() string
- func (m *UserObject_UserDept) Validate() error
- func (m *UserObject_UserDept) ValidateAll() error
- type UserObject_UserDeptMultiError
- type UserObject_UserDeptValidationError
- func (e UserObject_UserDeptValidationError) Cause() error
- func (e UserObject_UserDeptValidationError) Error() string
- func (e UserObject_UserDeptValidationError) ErrorName() string
- func (e UserObject_UserDeptValidationError) Field() string
- func (e UserObject_UserDeptValidationError) Key() bool
- func (e UserObject_UserDeptValidationError) Reason() string
- type UserServer
Constants ¶
const ( User_GetCurrentUser_FullMethodName = "/manager.api.user.User/GetCurrentUser" User_UpdateCurrentUserPassword_FullMethodName = "/manager.api.user.User/UpdateCurrentUserPassword" User_UpdateCurrentUserSetting_FullMethodName = "/manager.api.user.User/UpdateCurrentUserSetting" User_UpdateCurrentUser_FullMethodName = "/manager.api.user.User/UpdateCurrentUser" User_GetUser_FullMethodName = "/manager.api.user.User/GetUser" User_ListUser_FullMethodName = "/manager.api.user.User/ListUser" User_CreateUser_FullMethodName = "/manager.api.user.User/CreateUser" User_ResetPassword_FullMethodName = "/manager.api.user.User/ResetPassword" User_UpdateUser_FullMethodName = "/manager.api.user.User/UpdateUser" User_DeleteUser_FullMethodName = "/manager.api.user.User/DeleteUser" User_UpdateUserinfo_FullMethodName = "/manager.api.user.User/UpdateUserinfo" User_OfflineUser_FullMethodName = "/manager.api.user.User/OfflineUser" )
const ( OperationUserCreateUser = "/manager.api.user.User/CreateUser" OperationUserDeleteUser = "/manager.api.user.User/DeleteUser" OperationUserGetCurrentUser = "/manager.api.user.User/GetCurrentUser" OperationUserGetUser = "/manager.api.user.User/GetUser" OperationUserListUser = "/manager.api.user.User/ListUser" OperationUserOfflineUser = "/manager.api.user.User/OfflineUser" OperationUserResetPassword = "/manager.api.user.User/ResetPassword" OperationUserUpdateCurrentUser = "/manager.api.user.User/UpdateCurrentUser" OperationUserUpdateCurrentUserPassword = "/manager.api.user.User/UpdateCurrentUserPassword" OperationUserUpdateCurrentUserSetting = "/manager.api.user.User/UpdateCurrentUserSetting" OperationUserUpdateUser = "/manager.api.user.User/UpdateUser" OperationUserUpdateUserinfo = "/manager.api.user.User/UpdateUserinfo" )
Variables ¶
var File_api_user_proto_user_proto protoreflect.FileDescriptor
var File_api_user_proto_user_service_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.api.user.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCurrentUser", Handler: _User_GetCurrentUser_Handler, }, { MethodName: "UpdateCurrentUserPassword", Handler: _User_UpdateCurrentUserPassword_Handler, }, { MethodName: "UpdateCurrentUserSetting", Handler: _User_UpdateCurrentUserSetting_Handler, }, { MethodName: "UpdateCurrentUser", Handler: _User_UpdateCurrentUser_Handler, }, { MethodName: "GetUser", Handler: _User_GetUser_Handler, }, { MethodName: "ListUser", Handler: _User_ListUser_Handler, }, { MethodName: "CreateUser", Handler: _User_CreateUser_Handler, }, { MethodName: "ResetPassword", Handler: _User_ResetPassword_Handler, }, { MethodName: "UpdateUser", Handler: _User_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _User_DeleteUser_Handler, }, { MethodName: "UpdateUserinfo", Handler: _User_UpdateUserinfo_Handler, }, { MethodName: "OfflineUser", Handler: _User_OfflineUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user/proto/user_service.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 RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type CreateUserReply ¶
type CreateUserReply struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateUserReply) Descriptor
deprecated
func (*CreateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReply.ProtoReflect.Descriptor instead.
func (*CreateUserReply) GetId ¶
func (x *CreateUserReply) GetId() uint32
func (*CreateUserReply) ProtoMessage ¶
func (*CreateUserReply) ProtoMessage()
func (*CreateUserReply) ProtoReflect ¶
func (x *CreateUserReply) ProtoReflect() protoreflect.Message
func (*CreateUserReply) Reset ¶
func (x *CreateUserReply) Reset()
func (*CreateUserReply) String ¶
func (x *CreateUserReply) String() string
func (*CreateUserReply) Validate ¶
func (m *CreateUserReply) Validate() error
Validate checks the field values on CreateUserReply 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 (*CreateUserReply) ValidateAll ¶
func (m *CreateUserReply) ValidateAll() error
ValidateAll checks the field values on CreateUserReply 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 CreateUserReplyMultiError, or nil if none found.
type CreateUserReplyMultiError ¶
type CreateUserReplyMultiError []error
CreateUserReplyMultiError is an error wrapping multiple validation errors returned by CreateUserReply.ValidateAll() if the designated constraints aren't met.
func (CreateUserReplyMultiError) AllErrors ¶
func (m CreateUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserReplyMultiError) Error ¶
func (m CreateUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserReplyValidationError ¶
type CreateUserReplyValidationError struct {
// contains filtered or unexported fields
}
CreateUserReplyValidationError is the validation error returned by CreateUserReply.Validate if the designated constraints aren't met.
func (CreateUserReplyValidationError) Cause ¶
func (e CreateUserReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateUserReplyValidationError) Error ¶
func (e CreateUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserReplyValidationError) ErrorName ¶
func (e CreateUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserReplyValidationError) Field ¶
func (e CreateUserReplyValidationError) Field() string
Field function returns field value.
func (CreateUserReplyValidationError) Key ¶
func (e CreateUserReplyValidationError) Key() bool
Key function returns key value.
func (CreateUserReplyValidationError) Reason ¶
func (e CreateUserReplyValidationError) Reason() string
Reason function returns reason value.
type CreateUserRequest ¶
type CreateUserRequest struct {
Avatar string `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"`
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
Infos map[string]string `` /* 151-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetAvatar ¶
func (x *CreateUserRequest) GetAvatar() string
func (*CreateUserRequest) GetInfos ¶
func (x *CreateUserRequest) GetInfos() map[string]string
func (*CreateUserRequest) GetNickname ¶
func (x *CreateUserRequest) GetNickname() string
func (*CreateUserRequest) GetUsername ¶
func (x *CreateUserRequest) GetUsername() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
func (*CreateUserRequest) Validate ¶
func (m *CreateUserRequest) Validate() error
Validate checks the field values on CreateUserRequest 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 (*CreateUserRequest) ValidateAll ¶
func (m *CreateUserRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserRequest 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 CreateUserRequestMultiError, or nil if none found.
type CreateUserRequestMultiError ¶
type CreateUserRequestMultiError []error
CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserRequestMultiError) AllErrors ¶
func (m CreateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserRequestMultiError) Error ¶
func (m CreateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserRequestValidationError ¶
type CreateUserRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.
func (CreateUserRequestValidationError) Cause ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteUserReply ¶
type DeleteUserReply struct {
// contains filtered or unexported fields
}
func (*DeleteUserReply) Descriptor
deprecated
func (*DeleteUserReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserReply.ProtoReflect.Descriptor instead.
func (*DeleteUserReply) ProtoMessage ¶
func (*DeleteUserReply) ProtoMessage()
func (*DeleteUserReply) ProtoReflect ¶
func (x *DeleteUserReply) ProtoReflect() protoreflect.Message
func (*DeleteUserReply) Reset ¶
func (x *DeleteUserReply) Reset()
func (*DeleteUserReply) String ¶
func (x *DeleteUserReply) String() string
func (*DeleteUserReply) Validate ¶
func (m *DeleteUserReply) Validate() error
Validate checks the field values on DeleteUserReply 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 (*DeleteUserReply) ValidateAll ¶
func (m *DeleteUserReply) ValidateAll() error
ValidateAll checks the field values on DeleteUserReply 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 DeleteUserReplyMultiError, or nil if none found.
type DeleteUserReplyMultiError ¶
type DeleteUserReplyMultiError []error
DeleteUserReplyMultiError is an error wrapping multiple validation errors returned by DeleteUserReply.ValidateAll() if the designated constraints aren't met.
func (DeleteUserReplyMultiError) AllErrors ¶
func (m DeleteUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserReplyMultiError) Error ¶
func (m DeleteUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserReplyValidationError ¶
type DeleteUserReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteUserReplyValidationError is the validation error returned by DeleteUserReply.Validate if the designated constraints aren't met.
func (DeleteUserReplyValidationError) Cause ¶
func (e DeleteUserReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserReplyValidationError) Error ¶
func (e DeleteUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserReplyValidationError) ErrorName ¶
func (e DeleteUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserReplyValidationError) Field ¶
func (e DeleteUserReplyValidationError) Field() string
Field function returns field value.
func (DeleteUserReplyValidationError) Key ¶
func (e DeleteUserReplyValidationError) Key() bool
Key function returns key value.
func (DeleteUserReplyValidationError) Reason ¶
func (e DeleteUserReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteUserRequest ¶
type DeleteUserRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetId ¶
func (x *DeleteUserRequest) GetId() uint32
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
func (*DeleteUserRequest) Validate ¶
func (m *DeleteUserRequest) Validate() error
Validate checks the field values on DeleteUserRequest 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 (*DeleteUserRequest) ValidateAll ¶
func (m *DeleteUserRequest) ValidateAll() error
ValidateAll checks the field values on DeleteUserRequest 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 DeleteUserRequestMultiError, or nil if none found.
type DeleteUserRequestMultiError ¶
type DeleteUserRequestMultiError []error
DeleteUserRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteUserRequestMultiError) AllErrors ¶
func (m DeleteUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserRequestMultiError) Error ¶
func (m DeleteUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserRequestValidationError ¶
type DeleteUserRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteUserRequestValidationError is the validation error returned by DeleteUserRequest.Validate if the designated constraints aren't met.
func (DeleteUserRequestValidationError) Cause ¶
func (e DeleteUserRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserRequestValidationError) Error ¶
func (e DeleteUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserRequestValidationError) ErrorName ¶
func (e DeleteUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserRequestValidationError) Field ¶
func (e DeleteUserRequestValidationError) Field() string
Field function returns field value.
func (DeleteUserRequestValidationError) Key ¶
func (e DeleteUserRequestValidationError) Key() bool
Key function returns key value.
func (DeleteUserRequestValidationError) Reason ¶
func (e DeleteUserRequestValidationError) Reason() string
Reason function returns reason value.
type GetCurrentUserRequest ¶
type GetCurrentUserRequest struct {
App *string `protobuf:"bytes,1,opt,name=app,proto3,oneof" json:"app,omitempty"`
// contains filtered or unexported fields
}
func (*GetCurrentUserRequest) Descriptor
deprecated
func (*GetCurrentUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentUserRequest.ProtoReflect.Descriptor instead.
func (*GetCurrentUserRequest) GetApp ¶
func (x *GetCurrentUserRequest) GetApp() string
func (*GetCurrentUserRequest) ProtoMessage ¶
func (*GetCurrentUserRequest) ProtoMessage()
func (*GetCurrentUserRequest) ProtoReflect ¶
func (x *GetCurrentUserRequest) ProtoReflect() protoreflect.Message
func (*GetCurrentUserRequest) Reset ¶
func (x *GetCurrentUserRequest) Reset()
func (*GetCurrentUserRequest) String ¶
func (x *GetCurrentUserRequest) String() string
func (*GetCurrentUserRequest) Validate ¶
func (m *GetCurrentUserRequest) Validate() error
Validate checks the field values on GetCurrentUserRequest 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 (*GetCurrentUserRequest) ValidateAll ¶
func (m *GetCurrentUserRequest) ValidateAll() error
ValidateAll checks the field values on GetCurrentUserRequest 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 GetCurrentUserRequestMultiError, or nil if none found.
type GetCurrentUserRequestMultiError ¶
type GetCurrentUserRequestMultiError []error
GetCurrentUserRequestMultiError is an error wrapping multiple validation errors returned by GetCurrentUserRequest.ValidateAll() if the designated constraints aren't met.
func (GetCurrentUserRequestMultiError) AllErrors ¶
func (m GetCurrentUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCurrentUserRequestMultiError) Error ¶
func (m GetCurrentUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCurrentUserRequestValidationError ¶
type GetCurrentUserRequestValidationError struct {
// contains filtered or unexported fields
}
GetCurrentUserRequestValidationError is the validation error returned by GetCurrentUserRequest.Validate if the designated constraints aren't met.
func (GetCurrentUserRequestValidationError) Cause ¶
func (e GetCurrentUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCurrentUserRequestValidationError) Error ¶
func (e GetCurrentUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCurrentUserRequestValidationError) ErrorName ¶
func (e GetCurrentUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCurrentUserRequestValidationError) Field ¶
func (e GetCurrentUserRequestValidationError) Field() string
Field function returns field value.
func (GetCurrentUserRequestValidationError) Key ¶
func (e GetCurrentUserRequestValidationError) Key() bool
Key function returns key value.
func (GetCurrentUserRequestValidationError) Reason ¶
func (e GetCurrentUserRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserRequest ¶
type GetUserRequest struct {
Id *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
Username *string `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"`
App *string `protobuf:"bytes,3,opt,name=app,proto3,oneof" json:"app,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetApp ¶
func (x *GetUserRequest) GetApp() string
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() uint32
func (*GetUserRequest) GetUsername ¶
func (x *GetUserRequest) GetUsername() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
func (*GetUserRequest) Validate ¶
func (m *GetUserRequest) Validate() error
Validate checks the field values on GetUserRequest 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 (*GetUserRequest) ValidateAll ¶
func (m *GetUserRequest) ValidateAll() error
ValidateAll checks the field values on GetUserRequest 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 GetUserRequestMultiError, or nil if none found.
type GetUserRequestMultiError ¶
type GetUserRequestMultiError []error
GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserRequestMultiError) AllErrors ¶
func (m GetUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserRequestMultiError) Error ¶
func (m GetUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserRequestValidationError ¶
type GetUserRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.
func (GetUserRequestValidationError) Cause ¶
func (e GetUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserRequestValidationError) Error ¶
func (e GetUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRequestValidationError) ErrorName ¶
func (e GetUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRequestValidationError) Field ¶
func (e GetUserRequestValidationError) Field() string
Field function returns field value.
func (GetUserRequestValidationError) Key ¶
func (e GetUserRequestValidationError) Key() bool
Key function returns key value.
func (GetUserRequestValidationError) Reason ¶
func (e GetUserRequestValidationError) Reason() string
Reason function returns reason value.
type ListUserReply ¶
type ListUserReply struct {
Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
List []*UserObject `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserReply) Descriptor
deprecated
func (*ListUserReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.
func (*ListUserReply) GetList ¶
func (x *ListUserReply) GetList() []*UserObject
func (*ListUserReply) GetTotal ¶
func (x *ListUserReply) GetTotal() uint32
func (*ListUserReply) ProtoMessage ¶
func (*ListUserReply) ProtoMessage()
func (*ListUserReply) ProtoReflect ¶
func (x *ListUserReply) ProtoReflect() protoreflect.Message
func (*ListUserReply) Reset ¶
func (x *ListUserReply) Reset()
func (*ListUserReply) String ¶
func (x *ListUserReply) String() string
func (*ListUserReply) Validate ¶
func (m *ListUserReply) Validate() error
Validate checks the field values on ListUserReply 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 (*ListUserReply) ValidateAll ¶
func (m *ListUserReply) ValidateAll() error
ValidateAll checks the field values on ListUserReply 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 ListUserReplyMultiError, or nil if none found.
type ListUserReplyMultiError ¶
type ListUserReplyMultiError []error
ListUserReplyMultiError is an error wrapping multiple validation errors returned by ListUserReply.ValidateAll() if the designated constraints aren't met.
func (ListUserReplyMultiError) AllErrors ¶
func (m ListUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserReplyMultiError) Error ¶
func (m ListUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserReplyValidationError ¶
type ListUserReplyValidationError struct {
// contains filtered or unexported fields
}
ListUserReplyValidationError is the validation error returned by ListUserReply.Validate if the designated constraints aren't met.
func (ListUserReplyValidationError) Cause ¶
func (e ListUserReplyValidationError) Cause() error
Cause function returns cause value.
func (ListUserReplyValidationError) Error ¶
func (e ListUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserReplyValidationError) ErrorName ¶
func (e ListUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserReplyValidationError) Field ¶
func (e ListUserReplyValidationError) Field() string
Field function returns field value.
func (ListUserReplyValidationError) Key ¶
func (e ListUserReplyValidationError) Key() bool
Key function returns key value.
func (ListUserReplyValidationError) Reason ¶
func (e ListUserReplyValidationError) Reason() string
Reason function returns reason value.
type ListUserRequest ¶
type ListUserRequest struct {
Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
AppId *uint32 `protobuf:"varint,3,opt,name=appId,proto3,oneof" json:"appId,omitempty"`
DeptId *uint32 `protobuf:"varint,4,opt,name=deptId,proto3,oneof" json:"deptId,omitempty"`
JobId *uint32 `protobuf:"varint,5,opt,name=jobId,proto3,oneof" json:"jobId,omitempty"`
Username *string `protobuf:"bytes,6,opt,name=username,proto3,oneof" json:"username,omitempty"`
Status *bool `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"`
LoggedAts []int64 `protobuf:"varint,8,rep,packed,name=loggedAts,proto3" json:"loggedAts,omitempty"`
CreatedAts []int64 `protobuf:"varint,9,rep,packed,name=createdAts,proto3" json:"createdAts,omitempty"`
InIds []uint32 `protobuf:"varint,10,rep,packed,name=inIds,proto3" json:"inIds,omitempty"`
NotInIds []uint32 `protobuf:"varint,11,rep,packed,name=notInIds,proto3" json:"notInIds,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserRequest) Descriptor
deprecated
func (*ListUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.
func (*ListUserRequest) GetAppId ¶
func (x *ListUserRequest) GetAppId() uint32
func (*ListUserRequest) GetCreatedAts ¶
func (x *ListUserRequest) GetCreatedAts() []int64
func (*ListUserRequest) GetDeptId ¶
func (x *ListUserRequest) GetDeptId() uint32
func (*ListUserRequest) GetInIds ¶
func (x *ListUserRequest) GetInIds() []uint32
func (*ListUserRequest) GetJobId ¶
func (x *ListUserRequest) GetJobId() uint32
func (*ListUserRequest) GetLoggedAts ¶
func (x *ListUserRequest) GetLoggedAts() []int64
func (*ListUserRequest) GetNotInIds ¶
func (x *ListUserRequest) GetNotInIds() []uint32
func (*ListUserRequest) GetPage ¶
func (x *ListUserRequest) GetPage() uint32
func (*ListUserRequest) GetPageSize ¶
func (x *ListUserRequest) GetPageSize() uint32
func (*ListUserRequest) GetStatus ¶
func (x *ListUserRequest) GetStatus() bool
func (*ListUserRequest) GetUsername ¶
func (x *ListUserRequest) GetUsername() string
func (*ListUserRequest) ProtoMessage ¶
func (*ListUserRequest) ProtoMessage()
func (*ListUserRequest) ProtoReflect ¶
func (x *ListUserRequest) ProtoReflect() protoreflect.Message
func (*ListUserRequest) Reset ¶
func (x *ListUserRequest) Reset()
func (*ListUserRequest) String ¶
func (x *ListUserRequest) String() string
func (*ListUserRequest) Validate ¶
func (m *ListUserRequest) Validate() error
Validate checks the field values on ListUserRequest 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 (*ListUserRequest) ValidateAll ¶
func (m *ListUserRequest) ValidateAll() error
ValidateAll checks the field values on ListUserRequest 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 ListUserRequestMultiError, or nil if none found.
type ListUserRequestMultiError ¶
type ListUserRequestMultiError []error
ListUserRequestMultiError is an error wrapping multiple validation errors returned by ListUserRequest.ValidateAll() if the designated constraints aren't met.
func (ListUserRequestMultiError) AllErrors ¶
func (m ListUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserRequestMultiError) Error ¶
func (m ListUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserRequestValidationError ¶
type ListUserRequestValidationError struct {
// contains filtered or unexported fields
}
ListUserRequestValidationError is the validation error returned by ListUserRequest.Validate if the designated constraints aren't met.
func (ListUserRequestValidationError) Cause ¶
func (e ListUserRequestValidationError) Cause() error
Cause function returns cause value.
func (ListUserRequestValidationError) Error ¶
func (e ListUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserRequestValidationError) ErrorName ¶
func (e ListUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserRequestValidationError) Field ¶
func (e ListUserRequestValidationError) Field() string
Field function returns field value.
func (ListUserRequestValidationError) Key ¶
func (e ListUserRequestValidationError) Key() bool
Key function returns key value.
func (ListUserRequestValidationError) Reason ¶
func (e ListUserRequestValidationError) Reason() string
Reason function returns reason value.
type OfflineUserRequest ¶
type OfflineUserRequest struct {
UserId uint32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
AppIds []uint32 `protobuf:"varint,2,rep,packed,name=appIds,proto3" json:"appIds,omitempty"`
// contains filtered or unexported fields
}
func (*OfflineUserRequest) Descriptor
deprecated
func (*OfflineUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use OfflineUserRequest.ProtoReflect.Descriptor instead.
func (*OfflineUserRequest) GetAppIds ¶
func (x *OfflineUserRequest) GetAppIds() []uint32
func (*OfflineUserRequest) GetUserId ¶
func (x *OfflineUserRequest) GetUserId() uint32
func (*OfflineUserRequest) ProtoMessage ¶
func (*OfflineUserRequest) ProtoMessage()
func (*OfflineUserRequest) ProtoReflect ¶
func (x *OfflineUserRequest) ProtoReflect() protoreflect.Message
func (*OfflineUserRequest) Reset ¶
func (x *OfflineUserRequest) Reset()
func (*OfflineUserRequest) String ¶
func (x *OfflineUserRequest) String() string
func (*OfflineUserRequest) Validate ¶
func (m *OfflineUserRequest) Validate() error
Validate checks the field values on OfflineUserRequest 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 (*OfflineUserRequest) ValidateAll ¶
func (m *OfflineUserRequest) ValidateAll() error
ValidateAll checks the field values on OfflineUserRequest 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 OfflineUserRequestMultiError, or nil if none found.
type OfflineUserRequestMultiError ¶
type OfflineUserRequestMultiError []error
OfflineUserRequestMultiError is an error wrapping multiple validation errors returned by OfflineUserRequest.ValidateAll() if the designated constraints aren't met.
func (OfflineUserRequestMultiError) AllErrors ¶
func (m OfflineUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OfflineUserRequestMultiError) Error ¶
func (m OfflineUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OfflineUserRequestValidationError ¶
type OfflineUserRequestValidationError struct {
// contains filtered or unexported fields
}
OfflineUserRequestValidationError is the validation error returned by OfflineUserRequest.Validate if the designated constraints aren't met.
func (OfflineUserRequestValidationError) Cause ¶
func (e OfflineUserRequestValidationError) Cause() error
Cause function returns cause value.
func (OfflineUserRequestValidationError) Error ¶
func (e OfflineUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (OfflineUserRequestValidationError) ErrorName ¶
func (e OfflineUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (OfflineUserRequestValidationError) Field ¶
func (e OfflineUserRequestValidationError) Field() string
Field function returns field value.
func (OfflineUserRequestValidationError) Key ¶
func (e OfflineUserRequestValidationError) Key() bool
Key function returns key value.
func (OfflineUserRequestValidationError) Reason ¶
func (e OfflineUserRequestValidationError) Reason() string
Reason function returns reason value.
type ResetPasswordRequest ¶
type ResetPasswordRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*ResetPasswordRequest) Descriptor
deprecated
func (*ResetPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) GetId ¶
func (x *ResetPasswordRequest) GetId() uint32
func (*ResetPasswordRequest) ProtoMessage ¶
func (*ResetPasswordRequest) ProtoMessage()
func (*ResetPasswordRequest) ProtoReflect ¶
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
func (*ResetPasswordRequest) Reset ¶
func (x *ResetPasswordRequest) Reset()
func (*ResetPasswordRequest) String ¶
func (x *ResetPasswordRequest) String() string
func (*ResetPasswordRequest) Validate ¶
func (m *ResetPasswordRequest) Validate() error
Validate checks the field values on ResetPasswordRequest 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 (*ResetPasswordRequest) ValidateAll ¶
func (m *ResetPasswordRequest) ValidateAll() error
ValidateAll checks the field values on ResetPasswordRequest 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 ResetPasswordRequestMultiError, or nil if none found.
type ResetPasswordRequestMultiError ¶
type ResetPasswordRequestMultiError []error
ResetPasswordRequestMultiError is an error wrapping multiple validation errors returned by ResetPasswordRequest.ValidateAll() if the designated constraints aren't met.
func (ResetPasswordRequestMultiError) AllErrors ¶
func (m ResetPasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResetPasswordRequestMultiError) Error ¶
func (m ResetPasswordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResetPasswordRequestValidationError ¶
type ResetPasswordRequestValidationError struct {
// contains filtered or unexported fields
}
ResetPasswordRequestValidationError is the validation error returned by ResetPasswordRequest.Validate if the designated constraints aren't met.
func (ResetPasswordRequestValidationError) Cause ¶
func (e ResetPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (ResetPasswordRequestValidationError) Error ¶
func (e ResetPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ResetPasswordRequestValidationError) ErrorName ¶
func (e ResetPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ResetPasswordRequestValidationError) Field ¶
func (e ResetPasswordRequestValidationError) Field() string
Field function returns field value.
func (ResetPasswordRequestValidationError) Key ¶
func (e ResetPasswordRequestValidationError) Key() bool
Key function returns key value.
func (ResetPasswordRequestValidationError) Reason ¶
func (e ResetPasswordRequestValidationError) Reason() string
Reason function returns reason value.
type ResetUserPasswordRequest ¶
type ResetUserPasswordRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*ResetUserPasswordRequest) Descriptor
deprecated
func (*ResetUserPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetUserPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetUserPasswordRequest) GetId ¶
func (x *ResetUserPasswordRequest) GetId() uint32
func (*ResetUserPasswordRequest) ProtoMessage ¶
func (*ResetUserPasswordRequest) ProtoMessage()
func (*ResetUserPasswordRequest) ProtoReflect ¶
func (x *ResetUserPasswordRequest) ProtoReflect() protoreflect.Message
func (*ResetUserPasswordRequest) Reset ¶
func (x *ResetUserPasswordRequest) Reset()
func (*ResetUserPasswordRequest) String ¶
func (x *ResetUserPasswordRequest) String() string
func (*ResetUserPasswordRequest) Validate ¶
func (m *ResetUserPasswordRequest) Validate() error
Validate checks the field values on ResetUserPasswordRequest 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 (*ResetUserPasswordRequest) ValidateAll ¶
func (m *ResetUserPasswordRequest) ValidateAll() error
ValidateAll checks the field values on ResetUserPasswordRequest 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 ResetUserPasswordRequestMultiError, or nil if none found.
type ResetUserPasswordRequestMultiError ¶
type ResetUserPasswordRequestMultiError []error
ResetUserPasswordRequestMultiError is an error wrapping multiple validation errors returned by ResetUserPasswordRequest.ValidateAll() if the designated constraints aren't met.
func (ResetUserPasswordRequestMultiError) AllErrors ¶
func (m ResetUserPasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResetUserPasswordRequestMultiError) Error ¶
func (m ResetUserPasswordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResetUserPasswordRequestValidationError ¶
type ResetUserPasswordRequestValidationError struct {
// contains filtered or unexported fields
}
ResetUserPasswordRequestValidationError is the validation error returned by ResetUserPasswordRequest.Validate if the designated constraints aren't met.
func (ResetUserPasswordRequestValidationError) Cause ¶
func (e ResetUserPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (ResetUserPasswordRequestValidationError) Error ¶
func (e ResetUserPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ResetUserPasswordRequestValidationError) ErrorName ¶
func (e ResetUserPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ResetUserPasswordRequestValidationError) Field ¶
func (e ResetUserPasswordRequestValidationError) Field() string
Field function returns field value.
func (ResetUserPasswordRequestValidationError) Key ¶
func (e ResetUserPasswordRequestValidationError) Key() bool
Key function returns key value.
func (ResetUserPasswordRequestValidationError) Reason ¶
func (e ResetUserPasswordRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedUserServer ¶
type UnimplementedUserServer struct{}
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) CreateUser ¶
func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
func (UnimplementedUserServer) DeleteUser ¶
func (UnimplementedUserServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error)
func (UnimplementedUserServer) GetCurrentUser ¶
func (UnimplementedUserServer) GetCurrentUser(context.Context, *GetCurrentUserRequest) (*UserObject, error)
func (UnimplementedUserServer) GetUser ¶
func (UnimplementedUserServer) GetUser(context.Context, *GetUserRequest) (*UserObject, error)
func (UnimplementedUserServer) ListUser ¶
func (UnimplementedUserServer) ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
func (UnimplementedUserServer) OfflineUser ¶
func (UnimplementedUserServer) OfflineUser(context.Context, *OfflineUserRequest) (*emptypb.Empty, error)
func (UnimplementedUserServer) ResetPassword ¶
func (UnimplementedUserServer) ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error)
func (UnimplementedUserServer) UpdateCurrentUser ¶
func (UnimplementedUserServer) UpdateCurrentUser(context.Context, *UpdateCurrentUserRequest) (*emptypb.Empty, error)
func (UnimplementedUserServer) UpdateCurrentUserPassword ¶
func (UnimplementedUserServer) UpdateCurrentUserPassword(context.Context, *UpdateCurrentUserPasswordRequest) (*UpdateCurrentUserPasswordReply, error)
func (UnimplementedUserServer) UpdateCurrentUserSetting ¶
func (UnimplementedUserServer) UpdateCurrentUserSetting(context.Context, *UpdateCurrentUserSettingRequest) (*emptypb.Empty, error)
func (UnimplementedUserServer) UpdateUser ¶
func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
func (UnimplementedUserServer) UpdateUserinfo ¶
func (UnimplementedUserServer) UpdateUserinfo(context.Context, *UpdateUserinfoRequest) (*UpdateUserinfoReply, error)
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 UpdateCurrentUserPasswordReply ¶
type UpdateCurrentUserPasswordReply struct {
// contains filtered or unexported fields
}
func (*UpdateCurrentUserPasswordReply) Descriptor
deprecated
func (*UpdateCurrentUserPasswordReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCurrentUserPasswordReply.ProtoReflect.Descriptor instead.
func (*UpdateCurrentUserPasswordReply) ProtoMessage ¶
func (*UpdateCurrentUserPasswordReply) ProtoMessage()
func (*UpdateCurrentUserPasswordReply) ProtoReflect ¶
func (x *UpdateCurrentUserPasswordReply) ProtoReflect() protoreflect.Message
func (*UpdateCurrentUserPasswordReply) Reset ¶
func (x *UpdateCurrentUserPasswordReply) Reset()
func (*UpdateCurrentUserPasswordReply) String ¶
func (x *UpdateCurrentUserPasswordReply) String() string
func (*UpdateCurrentUserPasswordReply) Validate ¶
func (m *UpdateCurrentUserPasswordReply) Validate() error
Validate checks the field values on UpdateCurrentUserPasswordReply 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 (*UpdateCurrentUserPasswordReply) ValidateAll ¶
func (m *UpdateCurrentUserPasswordReply) ValidateAll() error
ValidateAll checks the field values on UpdateCurrentUserPasswordReply 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 UpdateCurrentUserPasswordReplyMultiError, or nil if none found.
type UpdateCurrentUserPasswordReplyMultiError ¶
type UpdateCurrentUserPasswordReplyMultiError []error
UpdateCurrentUserPasswordReplyMultiError is an error wrapping multiple validation errors returned by UpdateCurrentUserPasswordReply.ValidateAll() if the designated constraints aren't met.
func (UpdateCurrentUserPasswordReplyMultiError) AllErrors ¶
func (m UpdateCurrentUserPasswordReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCurrentUserPasswordReplyMultiError) Error ¶
func (m UpdateCurrentUserPasswordReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCurrentUserPasswordReplyValidationError ¶
type UpdateCurrentUserPasswordReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateCurrentUserPasswordReplyValidationError is the validation error returned by UpdateCurrentUserPasswordReply.Validate if the designated constraints aren't met.
func (UpdateCurrentUserPasswordReplyValidationError) Cause ¶
func (e UpdateCurrentUserPasswordReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateCurrentUserPasswordReplyValidationError) Error ¶
func (e UpdateCurrentUserPasswordReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCurrentUserPasswordReplyValidationError) ErrorName ¶
func (e UpdateCurrentUserPasswordReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCurrentUserPasswordReplyValidationError) Field ¶
func (e UpdateCurrentUserPasswordReplyValidationError) Field() string
Field function returns field value.
func (UpdateCurrentUserPasswordReplyValidationError) Key ¶
func (e UpdateCurrentUserPasswordReplyValidationError) Key() bool
Key function returns key value.
func (UpdateCurrentUserPasswordReplyValidationError) Reason ¶
func (e UpdateCurrentUserPasswordReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateCurrentUserPasswordRequest ¶
type UpdateCurrentUserPasswordRequest struct {
OldPassword string `protobuf:"bytes,1,opt,name=oldPassword,proto3" json:"oldPassword,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateCurrentUserPasswordRequest) Descriptor
deprecated
func (*UpdateCurrentUserPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCurrentUserPasswordRequest.ProtoReflect.Descriptor instead.
func (*UpdateCurrentUserPasswordRequest) GetOldPassword ¶
func (x *UpdateCurrentUserPasswordRequest) GetOldPassword() string
func (*UpdateCurrentUserPasswordRequest) GetPassword ¶
func (x *UpdateCurrentUserPasswordRequest) GetPassword() string
func (*UpdateCurrentUserPasswordRequest) ProtoMessage ¶
func (*UpdateCurrentUserPasswordRequest) ProtoMessage()
func (*UpdateCurrentUserPasswordRequest) ProtoReflect ¶
func (x *UpdateCurrentUserPasswordRequest) ProtoReflect() protoreflect.Message
func (*UpdateCurrentUserPasswordRequest) Reset ¶
func (x *UpdateCurrentUserPasswordRequest) Reset()
func (*UpdateCurrentUserPasswordRequest) String ¶
func (x *UpdateCurrentUserPasswordRequest) String() string
func (*UpdateCurrentUserPasswordRequest) Validate ¶
func (m *UpdateCurrentUserPasswordRequest) Validate() error
Validate checks the field values on UpdateCurrentUserPasswordRequest 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 (*UpdateCurrentUserPasswordRequest) ValidateAll ¶
func (m *UpdateCurrentUserPasswordRequest) ValidateAll() error
ValidateAll checks the field values on UpdateCurrentUserPasswordRequest 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 UpdateCurrentUserPasswordRequestMultiError, or nil if none found.
type UpdateCurrentUserPasswordRequestMultiError ¶
type UpdateCurrentUserPasswordRequestMultiError []error
UpdateCurrentUserPasswordRequestMultiError is an error wrapping multiple validation errors returned by UpdateCurrentUserPasswordRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateCurrentUserPasswordRequestMultiError) AllErrors ¶
func (m UpdateCurrentUserPasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCurrentUserPasswordRequestMultiError) Error ¶
func (m UpdateCurrentUserPasswordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCurrentUserPasswordRequestValidationError ¶
type UpdateCurrentUserPasswordRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateCurrentUserPasswordRequestValidationError is the validation error returned by UpdateCurrentUserPasswordRequest.Validate if the designated constraints aren't met.
func (UpdateCurrentUserPasswordRequestValidationError) Cause ¶
func (e UpdateCurrentUserPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateCurrentUserPasswordRequestValidationError) Error ¶
func (e UpdateCurrentUserPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCurrentUserPasswordRequestValidationError) ErrorName ¶
func (e UpdateCurrentUserPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCurrentUserPasswordRequestValidationError) Field ¶
func (e UpdateCurrentUserPasswordRequestValidationError) Field() string
Field function returns field value.
func (UpdateCurrentUserPasswordRequestValidationError) Key ¶
func (e UpdateCurrentUserPasswordRequestValidationError) Key() bool
Key function returns key value.
func (UpdateCurrentUserPasswordRequestValidationError) Reason ¶
func (e UpdateCurrentUserPasswordRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateCurrentUserReply ¶
type UpdateCurrentUserReply struct {
// contains filtered or unexported fields
}
func (*UpdateCurrentUserReply) Descriptor
deprecated
func (*UpdateCurrentUserReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCurrentUserReply.ProtoReflect.Descriptor instead.
func (*UpdateCurrentUserReply) ProtoMessage ¶
func (*UpdateCurrentUserReply) ProtoMessage()
func (*UpdateCurrentUserReply) ProtoReflect ¶
func (x *UpdateCurrentUserReply) ProtoReflect() protoreflect.Message
func (*UpdateCurrentUserReply) Reset ¶
func (x *UpdateCurrentUserReply) Reset()
func (*UpdateCurrentUserReply) String ¶
func (x *UpdateCurrentUserReply) String() string
func (*UpdateCurrentUserReply) Validate ¶
func (m *UpdateCurrentUserReply) Validate() error
Validate checks the field values on UpdateCurrentUserReply 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 (*UpdateCurrentUserReply) ValidateAll ¶
func (m *UpdateCurrentUserReply) ValidateAll() error
ValidateAll checks the field values on UpdateCurrentUserReply 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 UpdateCurrentUserReplyMultiError, or nil if none found.
type UpdateCurrentUserReplyMultiError ¶
type UpdateCurrentUserReplyMultiError []error
UpdateCurrentUserReplyMultiError is an error wrapping multiple validation errors returned by UpdateCurrentUserReply.ValidateAll() if the designated constraints aren't met.
func (UpdateCurrentUserReplyMultiError) AllErrors ¶
func (m UpdateCurrentUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCurrentUserReplyMultiError) Error ¶
func (m UpdateCurrentUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCurrentUserReplyValidationError ¶
type UpdateCurrentUserReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateCurrentUserReplyValidationError is the validation error returned by UpdateCurrentUserReply.Validate if the designated constraints aren't met.
func (UpdateCurrentUserReplyValidationError) Cause ¶
func (e UpdateCurrentUserReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateCurrentUserReplyValidationError) Error ¶
func (e UpdateCurrentUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCurrentUserReplyValidationError) ErrorName ¶
func (e UpdateCurrentUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCurrentUserReplyValidationError) Field ¶
func (e UpdateCurrentUserReplyValidationError) Field() string
Field function returns field value.
func (UpdateCurrentUserReplyValidationError) Key ¶
func (e UpdateCurrentUserReplyValidationError) Key() bool
Key function returns key value.
func (UpdateCurrentUserReplyValidationError) Reason ¶
func (e UpdateCurrentUserReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateCurrentUserRequest ¶
type UpdateCurrentUserRequest struct {
Nickname *string `protobuf:"bytes,1,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"`
Avatar *string `protobuf:"bytes,2,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
Infos map[string]string `` /* 151-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*UpdateCurrentUserRequest) Descriptor
deprecated
func (*UpdateCurrentUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCurrentUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateCurrentUserRequest) GetAvatar ¶
func (x *UpdateCurrentUserRequest) GetAvatar() string
func (*UpdateCurrentUserRequest) GetInfos ¶
func (x *UpdateCurrentUserRequest) GetInfos() map[string]string
func (*UpdateCurrentUserRequest) GetNickname ¶
func (x *UpdateCurrentUserRequest) GetNickname() string
func (*UpdateCurrentUserRequest) ProtoMessage ¶
func (*UpdateCurrentUserRequest) ProtoMessage()
func (*UpdateCurrentUserRequest) ProtoReflect ¶
func (x *UpdateCurrentUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateCurrentUserRequest) Reset ¶
func (x *UpdateCurrentUserRequest) Reset()
func (*UpdateCurrentUserRequest) String ¶
func (x *UpdateCurrentUserRequest) String() string
func (*UpdateCurrentUserRequest) Validate ¶
func (m *UpdateCurrentUserRequest) Validate() error
Validate checks the field values on UpdateCurrentUserRequest 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 (*UpdateCurrentUserRequest) ValidateAll ¶
func (m *UpdateCurrentUserRequest) ValidateAll() error
ValidateAll checks the field values on UpdateCurrentUserRequest 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 UpdateCurrentUserRequestMultiError, or nil if none found.
type UpdateCurrentUserRequestMultiError ¶
type UpdateCurrentUserRequestMultiError []error
UpdateCurrentUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateCurrentUserRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateCurrentUserRequestMultiError) AllErrors ¶
func (m UpdateCurrentUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCurrentUserRequestMultiError) Error ¶
func (m UpdateCurrentUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCurrentUserRequestValidationError ¶
type UpdateCurrentUserRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateCurrentUserRequestValidationError is the validation error returned by UpdateCurrentUserRequest.Validate if the designated constraints aren't met.
func (UpdateCurrentUserRequestValidationError) Cause ¶
func (e UpdateCurrentUserRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateCurrentUserRequestValidationError) Error ¶
func (e UpdateCurrentUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCurrentUserRequestValidationError) ErrorName ¶
func (e UpdateCurrentUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCurrentUserRequestValidationError) Field ¶
func (e UpdateCurrentUserRequestValidationError) Field() string
Field function returns field value.
func (UpdateCurrentUserRequestValidationError) Key ¶
func (e UpdateCurrentUserRequestValidationError) Key() bool
Key function returns key value.
func (UpdateCurrentUserRequestValidationError) Reason ¶
func (e UpdateCurrentUserRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateCurrentUserSettingRequest ¶
type UpdateCurrentUserSettingRequest struct {
App string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
Setting string `protobuf:"bytes,2,opt,name=setting,proto3" json:"setting,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateCurrentUserSettingRequest) Descriptor
deprecated
func (*UpdateCurrentUserSettingRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCurrentUserSettingRequest.ProtoReflect.Descriptor instead.
func (*UpdateCurrentUserSettingRequest) GetApp ¶
func (x *UpdateCurrentUserSettingRequest) GetApp() string
func (*UpdateCurrentUserSettingRequest) GetSetting ¶
func (x *UpdateCurrentUserSettingRequest) GetSetting() string
func (*UpdateCurrentUserSettingRequest) ProtoMessage ¶
func (*UpdateCurrentUserSettingRequest) ProtoMessage()
func (*UpdateCurrentUserSettingRequest) ProtoReflect ¶
func (x *UpdateCurrentUserSettingRequest) ProtoReflect() protoreflect.Message
func (*UpdateCurrentUserSettingRequest) Reset ¶
func (x *UpdateCurrentUserSettingRequest) Reset()
func (*UpdateCurrentUserSettingRequest) String ¶
func (x *UpdateCurrentUserSettingRequest) String() string
func (*UpdateCurrentUserSettingRequest) Validate ¶
func (m *UpdateCurrentUserSettingRequest) Validate() error
Validate checks the field values on UpdateCurrentUserSettingRequest 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 (*UpdateCurrentUserSettingRequest) ValidateAll ¶
func (m *UpdateCurrentUserSettingRequest) ValidateAll() error
ValidateAll checks the field values on UpdateCurrentUserSettingRequest 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 UpdateCurrentUserSettingRequestMultiError, or nil if none found.
type UpdateCurrentUserSettingRequestMultiError ¶
type UpdateCurrentUserSettingRequestMultiError []error
UpdateCurrentUserSettingRequestMultiError is an error wrapping multiple validation errors returned by UpdateCurrentUserSettingRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateCurrentUserSettingRequestMultiError) AllErrors ¶
func (m UpdateCurrentUserSettingRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCurrentUserSettingRequestMultiError) Error ¶
func (m UpdateCurrentUserSettingRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCurrentUserSettingRequestValidationError ¶
type UpdateCurrentUserSettingRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateCurrentUserSettingRequestValidationError is the validation error returned by UpdateCurrentUserSettingRequest.Validate if the designated constraints aren't met.
func (UpdateCurrentUserSettingRequestValidationError) Cause ¶
func (e UpdateCurrentUserSettingRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateCurrentUserSettingRequestValidationError) Error ¶
func (e UpdateCurrentUserSettingRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCurrentUserSettingRequestValidationError) ErrorName ¶
func (e UpdateCurrentUserSettingRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCurrentUserSettingRequestValidationError) Field ¶
func (e UpdateCurrentUserSettingRequestValidationError) Field() string
Field function returns field value.
func (UpdateCurrentUserSettingRequestValidationError) Key ¶
func (e UpdateCurrentUserSettingRequestValidationError) Key() bool
Key function returns key value.
func (UpdateCurrentUserSettingRequestValidationError) Reason ¶
func (e UpdateCurrentUserSettingRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserReply ¶
type UpdateUserReply struct {
// contains filtered or unexported fields
}
func (*UpdateUserReply) Descriptor
deprecated
func (*UpdateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserReply.ProtoReflect.Descriptor instead.
func (*UpdateUserReply) ProtoMessage ¶
func (*UpdateUserReply) ProtoMessage()
func (*UpdateUserReply) ProtoReflect ¶
func (x *UpdateUserReply) ProtoReflect() protoreflect.Message
func (*UpdateUserReply) Reset ¶
func (x *UpdateUserReply) Reset()
func (*UpdateUserReply) String ¶
func (x *UpdateUserReply) String() string
func (*UpdateUserReply) Validate ¶
func (m *UpdateUserReply) Validate() error
Validate checks the field values on UpdateUserReply 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 (*UpdateUserReply) ValidateAll ¶
func (m *UpdateUserReply) ValidateAll() error
ValidateAll checks the field values on UpdateUserReply 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 UpdateUserReplyMultiError, or nil if none found.
type UpdateUserReplyMultiError ¶
type UpdateUserReplyMultiError []error
UpdateUserReplyMultiError is an error wrapping multiple validation errors returned by UpdateUserReply.ValidateAll() if the designated constraints aren't met.
func (UpdateUserReplyMultiError) AllErrors ¶
func (m UpdateUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserReplyMultiError) Error ¶
func (m UpdateUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserReplyValidationError ¶
type UpdateUserReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateUserReplyValidationError is the validation error returned by UpdateUserReply.Validate if the designated constraints aren't met.
func (UpdateUserReplyValidationError) Cause ¶
func (e UpdateUserReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserReplyValidationError) Error ¶
func (e UpdateUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserReplyValidationError) ErrorName ¶
func (e UpdateUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserReplyValidationError) Field ¶
func (e UpdateUserReplyValidationError) Field() string
Field function returns field value.
func (UpdateUserReplyValidationError) Key ¶
func (e UpdateUserReplyValidationError) Key() bool
Key function returns key value.
func (UpdateUserReplyValidationError) Reason ¶
func (e UpdateUserReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateUserRequest ¶
type UpdateUserRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Avatar *string `protobuf:"bytes,2,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
Nickname *string `protobuf:"bytes,3,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"`
Status *bool `protobuf:"varint,6,opt,name=status,proto3,oneof" json:"status,omitempty"`
Reason *string `protobuf:"bytes,7,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
Infos map[string]string `` /* 151-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetAvatar ¶
func (x *UpdateUserRequest) GetAvatar() string
func (*UpdateUserRequest) GetId ¶
func (x *UpdateUserRequest) GetId() uint32
func (*UpdateUserRequest) GetInfos ¶
func (x *UpdateUserRequest) GetInfos() map[string]string
func (*UpdateUserRequest) GetNickname ¶
func (x *UpdateUserRequest) GetNickname() string
func (*UpdateUserRequest) GetReason ¶
func (x *UpdateUserRequest) GetReason() string
func (*UpdateUserRequest) GetStatus ¶
func (x *UpdateUserRequest) GetStatus() bool
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
func (*UpdateUserRequest) Validate ¶
func (m *UpdateUserRequest) Validate() error
Validate checks the field values on UpdateUserRequest 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 (*UpdateUserRequest) ValidateAll ¶
func (m *UpdateUserRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserRequest 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 UpdateUserRequestMultiError, or nil if none found.
type UpdateUserRequestMultiError ¶
type UpdateUserRequestMultiError []error
UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserRequestMultiError) AllErrors ¶
func (m UpdateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserRequestMultiError) Error ¶
func (m UpdateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserRequestValidationError ¶
type UpdateUserRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.
func (UpdateUserRequestValidationError) Cause ¶
func (e UpdateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserRequestValidationError) Error ¶
func (e UpdateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserRequestValidationError) ErrorName ¶
func (e UpdateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserRequestValidationError) Field ¶
func (e UpdateUserRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserRequestValidationError) Key ¶
func (e UpdateUserRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserRequestValidationError) Reason ¶
func (e UpdateUserRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserinfoReply ¶
type UpdateUserinfoReply struct {
// contains filtered or unexported fields
}
func (*UpdateUserinfoReply) Descriptor
deprecated
func (*UpdateUserinfoReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserinfoReply.ProtoReflect.Descriptor instead.
func (*UpdateUserinfoReply) ProtoMessage ¶
func (*UpdateUserinfoReply) ProtoMessage()
func (*UpdateUserinfoReply) ProtoReflect ¶
func (x *UpdateUserinfoReply) ProtoReflect() protoreflect.Message
func (*UpdateUserinfoReply) Reset ¶
func (x *UpdateUserinfoReply) Reset()
func (*UpdateUserinfoReply) String ¶
func (x *UpdateUserinfoReply) String() string
func (*UpdateUserinfoReply) Validate ¶
func (m *UpdateUserinfoReply) Validate() error
Validate checks the field values on UpdateUserinfoReply 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 (*UpdateUserinfoReply) ValidateAll ¶
func (m *UpdateUserinfoReply) ValidateAll() error
ValidateAll checks the field values on UpdateUserinfoReply 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 UpdateUserinfoReplyMultiError, or nil if none found.
type UpdateUserinfoReplyMultiError ¶
type UpdateUserinfoReplyMultiError []error
UpdateUserinfoReplyMultiError is an error wrapping multiple validation errors returned by UpdateUserinfoReply.ValidateAll() if the designated constraints aren't met.
func (UpdateUserinfoReplyMultiError) AllErrors ¶
func (m UpdateUserinfoReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserinfoReplyMultiError) Error ¶
func (m UpdateUserinfoReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserinfoReplyValidationError ¶
type UpdateUserinfoReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateUserinfoReplyValidationError is the validation error returned by UpdateUserinfoReply.Validate if the designated constraints aren't met.
func (UpdateUserinfoReplyValidationError) Cause ¶
func (e UpdateUserinfoReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserinfoReplyValidationError) Error ¶
func (e UpdateUserinfoReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserinfoReplyValidationError) ErrorName ¶
func (e UpdateUserinfoReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserinfoReplyValidationError) Field ¶
func (e UpdateUserinfoReplyValidationError) Field() string
Field function returns field value.
func (UpdateUserinfoReplyValidationError) Key ¶
func (e UpdateUserinfoReplyValidationError) Key() bool
Key function returns key value.
func (UpdateUserinfoReplyValidationError) Reason ¶
func (e UpdateUserinfoReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateUserinfoRequest ¶
type UpdateUserinfoRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateUserinfoRequest) Descriptor
deprecated
func (*UpdateUserinfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserinfoRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserinfoRequest) GetId ¶
func (x *UpdateUserinfoRequest) GetId() uint32
func (*UpdateUserinfoRequest) ProtoMessage ¶
func (*UpdateUserinfoRequest) ProtoMessage()
func (*UpdateUserinfoRequest) ProtoReflect ¶
func (x *UpdateUserinfoRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserinfoRequest) Reset ¶
func (x *UpdateUserinfoRequest) Reset()
func (*UpdateUserinfoRequest) String ¶
func (x *UpdateUserinfoRequest) String() string
func (*UpdateUserinfoRequest) Validate ¶
func (m *UpdateUserinfoRequest) Validate() error
Validate checks the field values on UpdateUserinfoRequest 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 (*UpdateUserinfoRequest) ValidateAll ¶
func (m *UpdateUserinfoRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserinfoRequest 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 UpdateUserinfoRequestMultiError, or nil if none found.
type UpdateUserinfoRequestMultiError ¶
type UpdateUserinfoRequestMultiError []error
UpdateUserinfoRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserinfoRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserinfoRequestMultiError) AllErrors ¶
func (m UpdateUserinfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserinfoRequestMultiError) Error ¶
func (m UpdateUserinfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserinfoRequestValidationError ¶
type UpdateUserinfoRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserinfoRequestValidationError is the validation error returned by UpdateUserinfoRequest.Validate if the designated constraints aren't met.
func (UpdateUserinfoRequestValidationError) Cause ¶
func (e UpdateUserinfoRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserinfoRequestValidationError) Error ¶
func (e UpdateUserinfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserinfoRequestValidationError) ErrorName ¶
func (e UpdateUserinfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserinfoRequestValidationError) Field ¶
func (e UpdateUserinfoRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserinfoRequestValidationError) Key ¶
func (e UpdateUserinfoRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserinfoRequestValidationError) Reason ¶
func (e UpdateUserinfoRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserinfoRequest_Info ¶
type UpdateUserinfoRequest_Info struct {
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateUserinfoRequest_Info) Descriptor
deprecated
func (*UpdateUserinfoRequest_Info) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserinfoRequest_Info.ProtoReflect.Descriptor instead.
func (*UpdateUserinfoRequest_Info) GetField ¶
func (x *UpdateUserinfoRequest_Info) GetField() string
func (*UpdateUserinfoRequest_Info) GetValue ¶
func (x *UpdateUserinfoRequest_Info) GetValue() string
func (*UpdateUserinfoRequest_Info) ProtoMessage ¶
func (*UpdateUserinfoRequest_Info) ProtoMessage()
func (*UpdateUserinfoRequest_Info) ProtoReflect ¶
func (x *UpdateUserinfoRequest_Info) ProtoReflect() protoreflect.Message
func (*UpdateUserinfoRequest_Info) Reset ¶
func (x *UpdateUserinfoRequest_Info) Reset()
func (*UpdateUserinfoRequest_Info) String ¶
func (x *UpdateUserinfoRequest_Info) String() string
func (*UpdateUserinfoRequest_Info) Validate ¶
func (m *UpdateUserinfoRequest_Info) Validate() error
Validate checks the field values on UpdateUserinfoRequest_Info 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 (*UpdateUserinfoRequest_Info) ValidateAll ¶
func (m *UpdateUserinfoRequest_Info) ValidateAll() error
ValidateAll checks the field values on UpdateUserinfoRequest_Info 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 UpdateUserinfoRequest_InfoMultiError, or nil if none found.
type UpdateUserinfoRequest_InfoMultiError ¶
type UpdateUserinfoRequest_InfoMultiError []error
UpdateUserinfoRequest_InfoMultiError is an error wrapping multiple validation errors returned by UpdateUserinfoRequest_Info.ValidateAll() if the designated constraints aren't met.
func (UpdateUserinfoRequest_InfoMultiError) AllErrors ¶
func (m UpdateUserinfoRequest_InfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserinfoRequest_InfoMultiError) Error ¶
func (m UpdateUserinfoRequest_InfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserinfoRequest_InfoValidationError ¶
type UpdateUserinfoRequest_InfoValidationError struct {
// contains filtered or unexported fields
}
UpdateUserinfoRequest_InfoValidationError is the validation error returned by UpdateUserinfoRequest_Info.Validate if the designated constraints aren't met.
func (UpdateUserinfoRequest_InfoValidationError) Cause ¶
func (e UpdateUserinfoRequest_InfoValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserinfoRequest_InfoValidationError) Error ¶
func (e UpdateUserinfoRequest_InfoValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserinfoRequest_InfoValidationError) ErrorName ¶
func (e UpdateUserinfoRequest_InfoValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserinfoRequest_InfoValidationError) Field ¶
func (e UpdateUserinfoRequest_InfoValidationError) Field() string
Field function returns field value.
func (UpdateUserinfoRequest_InfoValidationError) Key ¶
func (e UpdateUserinfoRequest_InfoValidationError) Key() bool
Key function returns key value.
func (UpdateUserinfoRequest_InfoValidationError) Reason ¶
func (e UpdateUserinfoRequest_InfoValidationError) Reason() string
Reason function returns reason value.
type UserClient ¶
type UserClient interface {
// GetCurrentUser 获取当前用户信息
GetCurrentUser(ctx context.Context, in *GetCurrentUserRequest, opts ...grpc.CallOption) (*UserObject, error)
// UpdateCurrentUserPassword 更新当前用户密码
UpdateCurrentUserPassword(ctx context.Context, in *UpdateCurrentUserPasswordRequest, opts ...grpc.CallOption) (*UpdateCurrentUserPasswordReply, error)
// UpdateCurrentUserSetting 更新当前用户设置
UpdateCurrentUserSetting(ctx context.Context, in *UpdateCurrentUserSettingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// UpdateCurrentUserSetting 更新当前用户设置
UpdateCurrentUser(ctx context.Context, in *UpdateCurrentUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// GetUser 获取用户信息
GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserObject, error)
// ListUser 获取用户信息列表
ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserReply, error)
// CreateUser 创建用户信息
CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserReply, error)
// UpdateUser 更新用户信息
ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// UpdateUser 更新用户信息
UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error)
// DeleteUser 删除用户信息
DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserReply, error)
// UpdateUserinfo 更新用户信息
UpdateUserinfo(ctx context.Context, in *UpdateUserinfoRequest, opts ...grpc.CallOption) (*UpdateUserinfoReply, error)
// OfflineUser 下线用户信息
OfflineUser(ctx context.Context, in *OfflineUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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 UserHTTPClient ¶
type UserHTTPClient interface {
CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *CreateUserReply, err error)
DeleteUser(ctx context.Context, req *DeleteUserRequest, opts ...http.CallOption) (rsp *DeleteUserReply, err error)
GetCurrentUser(ctx context.Context, req *GetCurrentUserRequest, opts ...http.CallOption) (rsp *UserObject, err error)
GetUser(ctx context.Context, req *GetUserRequest, opts ...http.CallOption) (rsp *UserObject, err error)
ListUser(ctx context.Context, req *ListUserRequest, opts ...http.CallOption) (rsp *ListUserReply, err error)
OfflineUser(ctx context.Context, req *OfflineUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
ResetPassword(ctx context.Context, req *ResetPasswordRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
UpdateCurrentUser(ctx context.Context, req *UpdateCurrentUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
UpdateCurrentUserPassword(ctx context.Context, req *UpdateCurrentUserPasswordRequest, opts ...http.CallOption) (rsp *UpdateCurrentUserPasswordReply, err error)
UpdateCurrentUserSetting(ctx context.Context, req *UpdateCurrentUserSettingRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *UpdateUserReply, err error)
UpdateUserinfo(ctx context.Context, req *UpdateUserinfoRequest, opts ...http.CallOption) (rsp *UpdateUserinfoReply, err error)
}
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) CreateUser ¶
func (c *UserHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*CreateUserReply, error)
func (*UserHTTPClientImpl) DeleteUser ¶
func (c *UserHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*DeleteUserReply, error)
func (*UserHTTPClientImpl) GetCurrentUser ¶
func (c *UserHTTPClientImpl) GetCurrentUser(ctx context.Context, in *GetCurrentUserRequest, opts ...http.CallOption) (*UserObject, error)
func (*UserHTTPClientImpl) GetUser ¶
func (c *UserHTTPClientImpl) GetUser(ctx context.Context, in *GetUserRequest, opts ...http.CallOption) (*UserObject, error)
func (*UserHTTPClientImpl) ListUser ¶
func (c *UserHTTPClientImpl) ListUser(ctx context.Context, in *ListUserRequest, opts ...http.CallOption) (*ListUserReply, error)
func (*UserHTTPClientImpl) OfflineUser ¶
func (c *UserHTTPClientImpl) OfflineUser(ctx context.Context, in *OfflineUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserHTTPClientImpl) ResetPassword ¶
func (c *UserHTTPClientImpl) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserHTTPClientImpl) UpdateCurrentUser ¶
func (c *UserHTTPClientImpl) UpdateCurrentUser(ctx context.Context, in *UpdateCurrentUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserHTTPClientImpl) UpdateCurrentUserPassword ¶
func (c *UserHTTPClientImpl) UpdateCurrentUserPassword(ctx context.Context, in *UpdateCurrentUserPasswordRequest, opts ...http.CallOption) (*UpdateCurrentUserPasswordReply, error)
func (*UserHTTPClientImpl) UpdateCurrentUserSetting ¶
func (c *UserHTTPClientImpl) UpdateCurrentUserSetting(ctx context.Context, in *UpdateCurrentUserSettingRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*UserHTTPClientImpl) UpdateUser ¶
func (c *UserHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*UpdateUserReply, error)
func (*UserHTTPClientImpl) UpdateUserinfo ¶
func (c *UserHTTPClientImpl) UpdateUserinfo(ctx context.Context, in *UpdateUserinfoRequest, opts ...http.CallOption) (*UpdateUserinfoReply, error)
type UserHTTPServer ¶
type UserHTTPServer interface {
// CreateUser CreateUser 创建用户信息
CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
// DeleteUser DeleteUser 删除用户信息
DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error)
// GetCurrentUser GetCurrentUser 获取当前用户信息
GetCurrentUser(context.Context, *GetCurrentUserRequest) (*UserObject, error)
// GetUser GetUser 获取用户信息
GetUser(context.Context, *GetUserRequest) (*UserObject, error)
// ListUser ListUser 获取用户信息列表
ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
// OfflineUser OfflineUser 下线用户信息
OfflineUser(context.Context, *OfflineUserRequest) (*emptypb.Empty, error)
// ResetPassword UpdateUser 更新用户信息
ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error)
// UpdateCurrentUser UpdateCurrentUserSetting 更新当前用户设置
UpdateCurrentUser(context.Context, *UpdateCurrentUserRequest) (*emptypb.Empty, error)
// UpdateCurrentUserPassword UpdateCurrentUserPassword 更新当前用户密码
UpdateCurrentUserPassword(context.Context, *UpdateCurrentUserPasswordRequest) (*UpdateCurrentUserPasswordReply, error)
// UpdateCurrentUserSetting UpdateCurrentUserSetting 更新当前用户设置
UpdateCurrentUserSetting(context.Context, *UpdateCurrentUserSettingRequest) (*emptypb.Empty, error)
// UpdateUser UpdateUser 更新用户信息
UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
// UpdateUserinfo UpdateUserinfo 更新用户信息
UpdateUserinfo(context.Context, *UpdateUserinfoRequest) (*UpdateUserinfoReply, error)
}
type UserObject ¶
type UserObject struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
Phone string `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"`
Status *bool `protobuf:"varint,7,opt,name=status,proto3,oneof" json:"status,omitempty"`
LoggedAt uint32 `protobuf:"varint,8,opt,name=loggedAt,proto3" json:"loggedAt,omitempty"`
CreatedAt uint32 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
UpdatedAt uint32 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
Setting string `protobuf:"bytes,11,opt,name=setting,proto3" json:"setting,omitempty"`
Infos map[string]string `` /* 152-byte string literal not displayed */
UserDepts []*UserObject_UserDept `protobuf:"bytes,13,rep,name=userDepts,proto3" json:"userDepts,omitempty"`
// contains filtered or unexported fields
}
func (*UserObject) Descriptor
deprecated
func (*UserObject) Descriptor() ([]byte, []int)
Deprecated: Use UserObject.ProtoReflect.Descriptor instead.
func (*UserObject) GetAvatar ¶
func (x *UserObject) GetAvatar() string
func (*UserObject) GetCreatedAt ¶
func (x *UserObject) GetCreatedAt() uint32
func (*UserObject) GetEmail ¶
func (x *UserObject) GetEmail() string
func (*UserObject) GetId ¶
func (x *UserObject) GetId() uint32
func (*UserObject) GetInfos ¶
func (x *UserObject) GetInfos() map[string]string
func (*UserObject) GetLoggedAt ¶
func (x *UserObject) GetLoggedAt() uint32
func (*UserObject) GetNickname ¶
func (x *UserObject) GetNickname() string
func (*UserObject) GetPhone ¶
func (x *UserObject) GetPhone() string
func (*UserObject) GetSetting ¶
func (x *UserObject) GetSetting() string
func (*UserObject) GetStatus ¶
func (x *UserObject) GetStatus() bool
func (*UserObject) GetUpdatedAt ¶
func (x *UserObject) GetUpdatedAt() uint32
func (*UserObject) GetUserDepts ¶
func (x *UserObject) GetUserDepts() []*UserObject_UserDept
func (*UserObject) GetUsername ¶
func (x *UserObject) GetUsername() string
func (*UserObject) ProtoMessage ¶
func (*UserObject) ProtoMessage()
func (*UserObject) ProtoReflect ¶
func (x *UserObject) ProtoReflect() protoreflect.Message
func (*UserObject) Reset ¶
func (x *UserObject) Reset()
func (*UserObject) String ¶
func (x *UserObject) String() string
func (*UserObject) Validate ¶
func (m *UserObject) Validate() error
Validate checks the field values on UserObject 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 (*UserObject) ValidateAll ¶
func (m *UserObject) ValidateAll() error
ValidateAll checks the field values on UserObject 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 UserObjectMultiError, or nil if none found.
type UserObjectMultiError ¶
type UserObjectMultiError []error
UserObjectMultiError is an error wrapping multiple validation errors returned by UserObject.ValidateAll() if the designated constraints aren't met.
func (UserObjectMultiError) AllErrors ¶
func (m UserObjectMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserObjectMultiError) Error ¶
func (m UserObjectMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserObjectValidationError ¶
type UserObjectValidationError struct {
// contains filtered or unexported fields
}
UserObjectValidationError is the validation error returned by UserObject.Validate if the designated constraints aren't met.
func (UserObjectValidationError) Cause ¶
func (e UserObjectValidationError) Cause() error
Cause function returns cause value.
func (UserObjectValidationError) Error ¶
func (e UserObjectValidationError) Error() string
Error satisfies the builtin error interface
func (UserObjectValidationError) ErrorName ¶
func (e UserObjectValidationError) ErrorName() string
ErrorName returns error name.
func (UserObjectValidationError) Field ¶
func (e UserObjectValidationError) Field() string
Field function returns field value.
func (UserObjectValidationError) Key ¶
func (e UserObjectValidationError) Key() bool
Key function returns key value.
func (UserObjectValidationError) Reason ¶
func (e UserObjectValidationError) Reason() string
Reason function returns reason value.
type UserObject_Dept ¶
type UserObject_Dept struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Logo string `protobuf:"bytes,3,opt,name=logo,proto3" json:"logo,omitempty"`
Main bool `protobuf:"varint,4,opt,name=main,proto3" json:"main,omitempty"`
// contains filtered or unexported fields
}
func (*UserObject_Dept) Descriptor
deprecated
func (*UserObject_Dept) Descriptor() ([]byte, []int)
Deprecated: Use UserObject_Dept.ProtoReflect.Descriptor instead.
func (*UserObject_Dept) GetId ¶
func (x *UserObject_Dept) GetId() uint32
func (*UserObject_Dept) GetLogo ¶
func (x *UserObject_Dept) GetLogo() string
func (*UserObject_Dept) GetMain ¶
func (x *UserObject_Dept) GetMain() bool
func (*UserObject_Dept) GetName ¶
func (x *UserObject_Dept) GetName() string
func (*UserObject_Dept) ProtoMessage ¶
func (*UserObject_Dept) ProtoMessage()
func (*UserObject_Dept) ProtoReflect ¶
func (x *UserObject_Dept) ProtoReflect() protoreflect.Message
func (*UserObject_Dept) Reset ¶
func (x *UserObject_Dept) Reset()
func (*UserObject_Dept) String ¶
func (x *UserObject_Dept) String() string
func (*UserObject_Dept) Validate ¶
func (m *UserObject_Dept) Validate() error
Validate checks the field values on UserObject_Dept 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 (*UserObject_Dept) ValidateAll ¶
func (m *UserObject_Dept) ValidateAll() error
ValidateAll checks the field values on UserObject_Dept 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 UserObject_DeptMultiError, or nil if none found.
type UserObject_DeptMultiError ¶
type UserObject_DeptMultiError []error
UserObject_DeptMultiError is an error wrapping multiple validation errors returned by UserObject_Dept.ValidateAll() if the designated constraints aren't met.
func (UserObject_DeptMultiError) AllErrors ¶
func (m UserObject_DeptMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserObject_DeptMultiError) Error ¶
func (m UserObject_DeptMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserObject_DeptValidationError ¶
type UserObject_DeptValidationError struct {
// contains filtered or unexported fields
}
UserObject_DeptValidationError is the validation error returned by UserObject_Dept.Validate if the designated constraints aren't met.
func (UserObject_DeptValidationError) Cause ¶
func (e UserObject_DeptValidationError) Cause() error
Cause function returns cause value.
func (UserObject_DeptValidationError) Error ¶
func (e UserObject_DeptValidationError) Error() string
Error satisfies the builtin error interface
func (UserObject_DeptValidationError) ErrorName ¶
func (e UserObject_DeptValidationError) ErrorName() string
ErrorName returns error name.
func (UserObject_DeptValidationError) Field ¶
func (e UserObject_DeptValidationError) Field() string
Field function returns field value.
func (UserObject_DeptValidationError) Key ¶
func (e UserObject_DeptValidationError) Key() bool
Key function returns key value.
func (UserObject_DeptValidationError) Reason ¶
func (e UserObject_DeptValidationError) Reason() string
Reason function returns reason value.
type UserObject_Job ¶
type UserObject_Job struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*UserObject_Job) Descriptor
deprecated
func (*UserObject_Job) Descriptor() ([]byte, []int)
Deprecated: Use UserObject_Job.ProtoReflect.Descriptor instead.
func (*UserObject_Job) GetId ¶
func (x *UserObject_Job) GetId() uint32
func (*UserObject_Job) GetName ¶
func (x *UserObject_Job) GetName() string
func (*UserObject_Job) ProtoMessage ¶
func (*UserObject_Job) ProtoMessage()
func (*UserObject_Job) ProtoReflect ¶
func (x *UserObject_Job) ProtoReflect() protoreflect.Message
func (*UserObject_Job) Reset ¶
func (x *UserObject_Job) Reset()
func (*UserObject_Job) String ¶
func (x *UserObject_Job) String() string
func (*UserObject_Job) Validate ¶
func (m *UserObject_Job) Validate() error
Validate checks the field values on UserObject_Job 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 (*UserObject_Job) ValidateAll ¶
func (m *UserObject_Job) ValidateAll() error
ValidateAll checks the field values on UserObject_Job 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 UserObject_JobMultiError, or nil if none found.
type UserObject_JobMultiError ¶
type UserObject_JobMultiError []error
UserObject_JobMultiError is an error wrapping multiple validation errors returned by UserObject_Job.ValidateAll() if the designated constraints aren't met.
func (UserObject_JobMultiError) AllErrors ¶
func (m UserObject_JobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserObject_JobMultiError) Error ¶
func (m UserObject_JobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserObject_JobValidationError ¶
type UserObject_JobValidationError struct {
// contains filtered or unexported fields
}
UserObject_JobValidationError is the validation error returned by UserObject_Job.Validate if the designated constraints aren't met.
func (UserObject_JobValidationError) Cause ¶
func (e UserObject_JobValidationError) Cause() error
Cause function returns cause value.
func (UserObject_JobValidationError) Error ¶
func (e UserObject_JobValidationError) Error() string
Error satisfies the builtin error interface
func (UserObject_JobValidationError) ErrorName ¶
func (e UserObject_JobValidationError) ErrorName() string
ErrorName returns error name.
func (UserObject_JobValidationError) Field ¶
func (e UserObject_JobValidationError) Field() string
Field function returns field value.
func (UserObject_JobValidationError) Key ¶
func (e UserObject_JobValidationError) Key() bool
Key function returns key value.
func (UserObject_JobValidationError) Reason ¶
func (e UserObject_JobValidationError) Reason() string
Reason function returns reason value.
type UserObject_UserDept ¶
type UserObject_UserDept struct {
DeptId uint32 `protobuf:"varint,1,opt,name=deptId,proto3" json:"deptId,omitempty"`
JobId uint32 `protobuf:"varint,2,opt,name=jobId,proto3" json:"jobId,omitempty"`
Dept *UserObject_Dept `protobuf:"bytes,3,opt,name=dept,proto3" json:"dept,omitempty"`
Job *UserObject_Job `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"`
// contains filtered or unexported fields
}
func (*UserObject_UserDept) Descriptor
deprecated
func (*UserObject_UserDept) Descriptor() ([]byte, []int)
Deprecated: Use UserObject_UserDept.ProtoReflect.Descriptor instead.
func (*UserObject_UserDept) GetDept ¶
func (x *UserObject_UserDept) GetDept() *UserObject_Dept
func (*UserObject_UserDept) GetDeptId ¶
func (x *UserObject_UserDept) GetDeptId() uint32
func (*UserObject_UserDept) GetJob ¶
func (x *UserObject_UserDept) GetJob() *UserObject_Job
func (*UserObject_UserDept) GetJobId ¶
func (x *UserObject_UserDept) GetJobId() uint32
func (*UserObject_UserDept) ProtoMessage ¶
func (*UserObject_UserDept) ProtoMessage()
func (*UserObject_UserDept) ProtoReflect ¶
func (x *UserObject_UserDept) ProtoReflect() protoreflect.Message
func (*UserObject_UserDept) Reset ¶
func (x *UserObject_UserDept) Reset()
func (*UserObject_UserDept) String ¶
func (x *UserObject_UserDept) String() string
func (*UserObject_UserDept) Validate ¶
func (m *UserObject_UserDept) Validate() error
Validate checks the field values on UserObject_UserDept 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 (*UserObject_UserDept) ValidateAll ¶
func (m *UserObject_UserDept) ValidateAll() error
ValidateAll checks the field values on UserObject_UserDept 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 UserObject_UserDeptMultiError, or nil if none found.
type UserObject_UserDeptMultiError ¶
type UserObject_UserDeptMultiError []error
UserObject_UserDeptMultiError is an error wrapping multiple validation errors returned by UserObject_UserDept.ValidateAll() if the designated constraints aren't met.
func (UserObject_UserDeptMultiError) AllErrors ¶
func (m UserObject_UserDeptMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserObject_UserDeptMultiError) Error ¶
func (m UserObject_UserDeptMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserObject_UserDeptValidationError ¶
type UserObject_UserDeptValidationError struct {
// contains filtered or unexported fields
}
UserObject_UserDeptValidationError is the validation error returned by UserObject_UserDept.Validate if the designated constraints aren't met.
func (UserObject_UserDeptValidationError) Cause ¶
func (e UserObject_UserDeptValidationError) Cause() error
Cause function returns cause value.
func (UserObject_UserDeptValidationError) Error ¶
func (e UserObject_UserDeptValidationError) Error() string
Error satisfies the builtin error interface
func (UserObject_UserDeptValidationError) ErrorName ¶
func (e UserObject_UserDeptValidationError) ErrorName() string
ErrorName returns error name.
func (UserObject_UserDeptValidationError) Field ¶
func (e UserObject_UserDeptValidationError) Field() string
Field function returns field value.
func (UserObject_UserDeptValidationError) Key ¶
func (e UserObject_UserDeptValidationError) Key() bool
Key function returns key value.
func (UserObject_UserDeptValidationError) Reason ¶
func (e UserObject_UserDeptValidationError) Reason() string
Reason function returns reason value.
type UserServer ¶
type UserServer interface {
// GetCurrentUser 获取当前用户信息
GetCurrentUser(context.Context, *GetCurrentUserRequest) (*UserObject, error)
// UpdateCurrentUserPassword 更新当前用户密码
UpdateCurrentUserPassword(context.Context, *UpdateCurrentUserPasswordRequest) (*UpdateCurrentUserPasswordReply, error)
// UpdateCurrentUserSetting 更新当前用户设置
UpdateCurrentUserSetting(context.Context, *UpdateCurrentUserSettingRequest) (*emptypb.Empty, error)
// UpdateCurrentUserSetting 更新当前用户设置
UpdateCurrentUser(context.Context, *UpdateCurrentUserRequest) (*emptypb.Empty, error)
// GetUser 获取用户信息
GetUser(context.Context, *GetUserRequest) (*UserObject, error)
// ListUser 获取用户信息列表
ListUser(context.Context, *ListUserRequest) (*ListUserReply, error)
// CreateUser 创建用户信息
CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
// UpdateUser 更新用户信息
ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error)
// UpdateUser 更新用户信息
UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
// DeleteUser 删除用户信息
DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserReply, error)
// UpdateUserinfo 更新用户信息
UpdateUserinfo(context.Context, *UpdateUserinfoRequest) (*UpdateUserinfoReply, error)
// OfflineUser 下线用户信息
OfflineUser(context.Context, *OfflineUserRequest) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility