Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddUserReply
- func (*AddUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserReply) GetId() uint32
- func (*AddUserReply) ProtoMessage()
- func (x *AddUserReply) ProtoReflect() protoreflect.Message
- func (x *AddUserReply) Reset()
- func (x *AddUserReply) String() string
- func (m *AddUserReply) Validate() error
- func (m *AddUserReply) ValidateAll() error
- type AddUserReplyMultiError
- type AddUserReplyValidationError
- func (e AddUserReplyValidationError) Cause() error
- func (e AddUserReplyValidationError) Error() string
- func (e AddUserReplyValidationError) ErrorName() string
- func (e AddUserReplyValidationError) Field() string
- func (e AddUserReplyValidationError) Key() bool
- func (e AddUserReplyValidationError) Reason() string
- type AddUserRequest
- func (*AddUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserRequest) GetDepartmentId() uint32
- func (x *AddUserRequest) GetEmail() string
- func (x *AddUserRequest) GetGender() string
- func (x *AddUserRequest) GetJobIds() []uint32
- func (x *AddUserRequest) GetName() string
- func (x *AddUserRequest) GetPhone() string
- func (x *AddUserRequest) GetRoleIds() []uint32
- func (x *AddUserRequest) GetStatus() bool
- func (*AddUserRequest) ProtoMessage()
- func (x *AddUserRequest) ProtoReflect() protoreflect.Message
- func (x *AddUserRequest) Reset()
- func (x *AddUserRequest) String() string
- func (m *AddUserRequest) Validate() error
- func (m *AddUserRequest) ValidateAll() error
- type AddUserRequestMultiError
- type AddUserRequestValidationError
- func (e AddUserRequestValidationError) Cause() error
- func (e AddUserRequestValidationError) Error() string
- func (e AddUserRequestValidationError) ErrorName() string
- func (e AddUserRequestValidationError) Field() string
- func (e AddUserRequestValidationError) Key() bool
- func (e AddUserRequestValidationError) Reason() string
- type CaptchaReply
- func (*CaptchaReply) Descriptor() ([]byte, []int)deprecated
- func (x *CaptchaReply) GetCaptcha() string
- func (x *CaptchaReply) GetExpire() uint32
- func (x *CaptchaReply) GetUuid() string
- func (*CaptchaReply) ProtoMessage()
- func (x *CaptchaReply) ProtoReflect() protoreflect.Message
- func (x *CaptchaReply) Reset()
- func (x *CaptchaReply) String() string
- func (m *CaptchaReply) Validate() error
- func (m *CaptchaReply) ValidateAll() error
- type CaptchaReplyMultiError
- type CaptchaReplyValidationError
- func (e CaptchaReplyValidationError) Cause() error
- func (e CaptchaReplyValidationError) Error() string
- func (e CaptchaReplyValidationError) ErrorName() string
- func (e CaptchaReplyValidationError) Field() string
- func (e CaptchaReplyValidationError) Key() bool
- func (e CaptchaReplyValidationError) Reason() string
- type ChangeUserPasswordRequest
- func (*ChangeUserPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeUserPasswordRequest) GetCaptcha() string
- func (x *ChangeUserPasswordRequest) GetCaptchaId() string
- func (x *ChangeUserPasswordRequest) GetPassword() string
- func (*ChangeUserPasswordRequest) ProtoMessage()
- func (x *ChangeUserPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeUserPasswordRequest) Reset()
- func (x *ChangeUserPasswordRequest) String() string
- func (m *ChangeUserPasswordRequest) Validate() error
- func (m *ChangeUserPasswordRequest) ValidateAll() error
- type ChangeUserPasswordRequestMultiError
- type ChangeUserPasswordRequestValidationError
- func (e ChangeUserPasswordRequestValidationError) Cause() error
- func (e ChangeUserPasswordRequestValidationError) Error() string
- func (e ChangeUserPasswordRequestValidationError) ErrorName() string
- func (e ChangeUserPasswordRequestValidationError) Field() string
- func (e ChangeUserPasswordRequestValidationError) Key() bool
- func (e ChangeUserPasswordRequestValidationError) 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 DisableUserRequest
- func (*DisableUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisableUserRequest) GetDesc() string
- func (x *DisableUserRequest) GetId() uint32
- func (*DisableUserRequest) ProtoMessage()
- func (x *DisableUserRequest) ProtoReflect() protoreflect.Message
- func (x *DisableUserRequest) Reset()
- func (x *DisableUserRequest) String() string
- func (m *DisableUserRequest) Validate() error
- func (m *DisableUserRequest) ValidateAll() error
- type DisableUserRequestMultiError
- type DisableUserRequestValidationError
- func (e DisableUserRequestValidationError) Cause() error
- func (e DisableUserRequestValidationError) Error() string
- func (e DisableUserRequestValidationError) ErrorName() string
- func (e DisableUserRequestValidationError) Field() string
- func (e DisableUserRequestValidationError) Key() bool
- func (e DisableUserRequestValidationError) Reason() string
- type EnableUserRequest
- func (*EnableUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnableUserRequest) GetId() uint32
- func (*EnableUserRequest) ProtoMessage()
- func (x *EnableUserRequest) ProtoReflect() protoreflect.Message
- func (x *EnableUserRequest) Reset()
- func (x *EnableUserRequest) String() string
- func (m *EnableUserRequest) Validate() error
- func (m *EnableUserRequest) ValidateAll() error
- type EnableUserRequestMultiError
- type EnableUserRequestValidationError
- func (e EnableUserRequestValidationError) Cause() error
- func (e EnableUserRequestValidationError) Error() string
- func (e EnableUserRequestValidationError) ErrorName() string
- func (e EnableUserRequestValidationError) Field() string
- func (e EnableUserRequestValidationError) Key() bool
- func (e EnableUserRequestValidationError) Reason() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetId() uint32
- 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 OfflineUserRequest
- func (*OfflineUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OfflineUserRequest) GetId() 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 PageUserReply
- func (*PageUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageUserReply) GetList() []*User
- func (x *PageUserReply) GetTotal() uint32
- func (*PageUserReply) ProtoMessage()
- func (x *PageUserReply) ProtoReflect() protoreflect.Message
- func (x *PageUserReply) Reset()
- func (x *PageUserReply) String() string
- func (m *PageUserReply) Validate() error
- func (m *PageUserReply) ValidateAll() error
- type PageUserReplyMultiError
- type PageUserReplyValidationError
- func (e PageUserReplyValidationError) Cause() error
- func (e PageUserReplyValidationError) Error() string
- func (e PageUserReplyValidationError) ErrorName() string
- func (e PageUserReplyValidationError) Field() string
- func (e PageUserReplyValidationError) Key() bool
- func (e PageUserReplyValidationError) Reason() string
- type PageUserRequest
- func (*PageUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageUserRequest) GetDepartmentId() uint32
- func (x *PageUserRequest) GetEndTime() uint32
- func (x *PageUserRequest) GetName() string
- func (x *PageUserRequest) GetPage() uint32
- func (x *PageUserRequest) GetPageSize() uint32
- func (x *PageUserRequest) GetRoleId() uint32
- func (x *PageUserRequest) GetStartTime() uint32
- func (x *PageUserRequest) GetStatus() bool
- func (x *PageUserRequest) GetUsername() string
- func (*PageUserRequest) ProtoMessage()
- func (x *PageUserRequest) ProtoReflect() protoreflect.Message
- func (x *PageUserRequest) Reset()
- func (x *PageUserRequest) String() string
- func (m *PageUserRequest) Validate() error
- func (m *PageUserRequest) ValidateAll() error
- type PageUserRequestMultiError
- type PageUserRequestValidationError
- func (e PageUserRequestValidationError) Cause() error
- func (e PageUserRequestValidationError) Error() string
- func (e PageUserRequestValidationError) ErrorName() string
- func (e PageUserRequestValidationError) Field() string
- func (e PageUserRequestValidationError) Key() bool
- func (e PageUserRequestValidationError) 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 ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddUser(ctx context.Context, in *AddUserRequest, opts ...http.CallOption) (*AddUserReply, error)
- func (c *ServiceHTTPClientImpl) ChangeUserPassword(ctx context.Context, in *ChangeUserPasswordRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) ChangeUserPasswordCaptcha(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*CaptchaReply, error)
- func (c *ServiceHTTPClientImpl) CurrentUser(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*User, error)
- func (c *ServiceHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) DisableUser(ctx context.Context, in *DisableUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) EnableUser(ctx context.Context, in *EnableUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) OfflineUser(ctx context.Context, in *OfflineUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) PageUser(ctx context.Context, in *PageUserRequest, opts ...http.CallOption) (*PageUserReply, error)
- func (c *ServiceHTTPClientImpl) ResetUserPassword(ctx context.Context, in *ResetUserPasswordRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) SwitchCurrentUserRole(ctx context.Context, in *SwitchCurrentUserRoleRequest, opts ...http.CallOption) (*SwitchCurrentUserRoleReply, error)
- func (c *ServiceHTTPClientImpl) UpdateCurrentUser(ctx context.Context, in *UpdateCurrentUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) UserLogin(ctx context.Context, in *UserLoginRequest, opts ...http.CallOption) (*UserLoginReply, error)
- func (c *ServiceHTTPClientImpl) UserLoginCaptcha(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*CaptchaReply, error)
- func (c *ServiceHTTPClientImpl) UserLogout(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) UserRefreshToken(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserRefreshTokenReply, error)
- type ServiceHTTPServer
- type ServiceServer
- type SwitchCurrentUserRoleReply
- func (*SwitchCurrentUserRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *SwitchCurrentUserRoleReply) GetToken() string
- func (*SwitchCurrentUserRoleReply) ProtoMessage()
- func (x *SwitchCurrentUserRoleReply) ProtoReflect() protoreflect.Message
- func (x *SwitchCurrentUserRoleReply) Reset()
- func (x *SwitchCurrentUserRoleReply) String() string
- func (m *SwitchCurrentUserRoleReply) Validate() error
- func (m *SwitchCurrentUserRoleReply) ValidateAll() error
- type SwitchCurrentUserRoleReplyMultiError
- type SwitchCurrentUserRoleReplyValidationError
- func (e SwitchCurrentUserRoleReplyValidationError) Cause() error
- func (e SwitchCurrentUserRoleReplyValidationError) Error() string
- func (e SwitchCurrentUserRoleReplyValidationError) ErrorName() string
- func (e SwitchCurrentUserRoleReplyValidationError) Field() string
- func (e SwitchCurrentUserRoleReplyValidationError) Key() bool
- func (e SwitchCurrentUserRoleReplyValidationError) Reason() string
- type SwitchCurrentUserRoleRequest
- func (*SwitchCurrentUserRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SwitchCurrentUserRoleRequest) GetRoleId() uint32
- func (*SwitchCurrentUserRoleRequest) ProtoMessage()
- func (x *SwitchCurrentUserRoleRequest) ProtoReflect() protoreflect.Message
- func (x *SwitchCurrentUserRoleRequest) Reset()
- func (x *SwitchCurrentUserRoleRequest) String() string
- func (m *SwitchCurrentUserRoleRequest) Validate() error
- func (m *SwitchCurrentUserRoleRequest) ValidateAll() error
- type SwitchCurrentUserRoleRequestMultiError
- type SwitchCurrentUserRoleRequestValidationError
- func (e SwitchCurrentUserRoleRequestValidationError) Cause() error
- func (e SwitchCurrentUserRoleRequestValidationError) Error() string
- func (e SwitchCurrentUserRoleRequestValidationError) ErrorName() string
- func (e SwitchCurrentUserRoleRequestValidationError) Field() string
- func (e SwitchCurrentUserRoleRequestValidationError) Key() bool
- func (e SwitchCurrentUserRoleRequestValidationError) Reason() string
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddUser(context.Context, *AddUserRequest) (*AddUserReply, error)
- func (UnimplementedServiceServer) ChangeUserPassword(context.Context, *ChangeUserPasswordRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) ChangeUserPasswordCaptcha(context.Context, *emptypb.Empty) (*CaptchaReply, error)
- func (UnimplementedServiceServer) CurrentUser(context.Context, *emptypb.Empty) (*User, error)
- func (UnimplementedServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) DisableUser(context.Context, *DisableUserRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) EnableUser(context.Context, *EnableUserRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) OfflineUser(context.Context, *OfflineUserRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) PageUser(context.Context, *PageUserRequest) (*PageUserReply, error)
- func (UnimplementedServiceServer) ResetUserPassword(context.Context, *ResetUserPasswordRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) SwitchCurrentUserRole(context.Context, *SwitchCurrentUserRoleRequest) (*SwitchCurrentUserRoleReply, error)
- func (UnimplementedServiceServer) UpdateCurrentUser(context.Context, *UpdateCurrentUserRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) UserLogin(context.Context, *UserLoginRequest) (*UserLoginReply, error)
- func (UnimplementedServiceServer) UserLoginCaptcha(context.Context, *emptypb.Empty) (*CaptchaReply, error)
- func (UnimplementedServiceServer) UserLogout(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) UserRefreshToken(context.Context, *emptypb.Empty) (*UserRefreshTokenReply, error)
- type UnsafeServiceServer
- type UpdateCurrentUserRequest
- func (*UpdateCurrentUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCurrentUserRequest) GetGender() 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 UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetDepartmentId() uint32
- func (x *UpdateUserRequest) GetEmail() string
- func (x *UpdateUserRequest) GetGender() string
- func (x *UpdateUserRequest) GetId() uint32
- func (x *UpdateUserRequest) GetJobIds() []uint32
- func (x *UpdateUserRequest) GetName() string
- func (x *UpdateUserRequest) GetPhone() string
- func (x *UpdateUserRequest) GetRoleIds() []uint32
- 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 User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() string
- func (x *User) GetCreatedAt() uint32
- func (x *User) GetDepartment() *User_Department
- func (x *User) GetDepartmentId() uint32
- func (x *User) GetDisabled() string
- func (x *User) GetEmail() string
- func (x *User) GetGender() string
- func (x *User) GetId() uint32
- func (x *User) GetJobs() []*User_Job
- func (x *User) GetLastLogin() uint32
- func (x *User) GetName() string
- func (x *User) GetNickname() string
- func (x *User) GetPhone() string
- func (x *User) GetRole() *User_Role
- func (x *User) GetRoleId() uint32
- func (x *User) GetRoles() []*User_Role
- func (x *User) GetStatus() bool
- func (x *User) GetUpdatedAt() uint32
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserLoginReply
- func (*UserLoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginReply) GetToken() string
- func (*UserLoginReply) ProtoMessage()
- func (x *UserLoginReply) ProtoReflect() protoreflect.Message
- func (x *UserLoginReply) Reset()
- func (x *UserLoginReply) String() string
- func (m *UserLoginReply) Validate() error
- func (m *UserLoginReply) ValidateAll() error
- type UserLoginReplyMultiError
- type UserLoginReplyValidationError
- func (e UserLoginReplyValidationError) Cause() error
- func (e UserLoginReplyValidationError) Error() string
- func (e UserLoginReplyValidationError) ErrorName() string
- func (e UserLoginReplyValidationError) Field() string
- func (e UserLoginReplyValidationError) Key() bool
- func (e UserLoginReplyValidationError) Reason() string
- type UserLoginRequest
- func (*UserLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginRequest) GetCaptcha() string
- func (x *UserLoginRequest) GetCaptchaId() string
- func (x *UserLoginRequest) GetPassword() string
- func (x *UserLoginRequest) GetUsername() string
- func (*UserLoginRequest) ProtoMessage()
- func (x *UserLoginRequest) ProtoReflect() protoreflect.Message
- func (x *UserLoginRequest) Reset()
- func (x *UserLoginRequest) String() string
- func (m *UserLoginRequest) Validate() error
- func (m *UserLoginRequest) ValidateAll() error
- type UserLoginRequestMultiError
- type UserLoginRequestValidationError
- func (e UserLoginRequestValidationError) Cause() error
- func (e UserLoginRequestValidationError) Error() string
- func (e UserLoginRequestValidationError) ErrorName() string
- func (e UserLoginRequestValidationError) Field() string
- func (e UserLoginRequestValidationError) Key() bool
- func (e UserLoginRequestValidationError) Reason() string
- type UserMultiError
- type UserRefreshTokenReply
- func (*UserRefreshTokenReply) Descriptor() ([]byte, []int)deprecated
- func (x *UserRefreshTokenReply) GetToken() string
- func (*UserRefreshTokenReply) ProtoMessage()
- func (x *UserRefreshTokenReply) ProtoReflect() protoreflect.Message
- func (x *UserRefreshTokenReply) Reset()
- func (x *UserRefreshTokenReply) String() string
- func (m *UserRefreshTokenReply) Validate() error
- func (m *UserRefreshTokenReply) ValidateAll() error
- type UserRefreshTokenReplyMultiError
- type UserRefreshTokenReplyValidationError
- func (e UserRefreshTokenReplyValidationError) Cause() error
- func (e UserRefreshTokenReplyValidationError) Error() string
- func (e UserRefreshTokenReplyValidationError) ErrorName() string
- func (e UserRefreshTokenReplyValidationError) Field() string
- func (e UserRefreshTokenReplyValidationError) Key() bool
- func (e UserRefreshTokenReplyValidationError) Reason() string
- type UserValidationError
- type User_Department
- func (*User_Department) Descriptor() ([]byte, []int)deprecated
- func (x *User_Department) GetId() uint32
- func (x *User_Department) GetKeyword() string
- func (x *User_Department) GetName() string
- func (*User_Department) ProtoMessage()
- func (x *User_Department) ProtoReflect() protoreflect.Message
- func (x *User_Department) Reset()
- func (x *User_Department) String() string
- func (m *User_Department) Validate() error
- func (m *User_Department) ValidateAll() error
- type User_DepartmentMultiError
- type User_DepartmentValidationError
- func (e User_DepartmentValidationError) Cause() error
- func (e User_DepartmentValidationError) Error() string
- func (e User_DepartmentValidationError) ErrorName() string
- func (e User_DepartmentValidationError) Field() string
- func (e User_DepartmentValidationError) Key() bool
- func (e User_DepartmentValidationError) Reason() string
- type User_Job
- func (*User_Job) Descriptor() ([]byte, []int)deprecated
- func (x *User_Job) GetId() uint32
- func (x *User_Job) GetKeyword() string
- func (x *User_Job) GetName() string
- func (*User_Job) ProtoMessage()
- func (x *User_Job) ProtoReflect() protoreflect.Message
- func (x *User_Job) Reset()
- func (x *User_Job) String() string
- func (m *User_Job) Validate() error
- func (m *User_Job) ValidateAll() error
- type User_JobMultiError
- type User_JobValidationError
- type User_Role
- func (*User_Role) Descriptor() ([]byte, []int)deprecated
- func (x *User_Role) GetId() uint32
- func (x *User_Role) GetKeyword() string
- func (x *User_Role) GetName() string
- func (*User_Role) ProtoMessage()
- func (x *User_Role) ProtoReflect() protoreflect.Message
- func (x *User_Role) Reset()
- func (x *User_Role) String() string
- func (m *User_Role) Validate() error
- func (m *User_Role) ValidateAll() error
- type User_RoleMultiError
- type User_RoleValidationError
Constants ¶
const ( Service_CurrentUser_FullMethodName = "/manager_user.Service/CurrentUser" Service_PageUser_FullMethodName = "/manager_user.Service/PageUser" Service_AddUser_FullMethodName = "/manager_user.Service/AddUser" Service_ChangeUserPasswordCaptcha_FullMethodName = "/manager_user.Service/ChangeUserPasswordCaptcha" Service_ResetUserPassword_FullMethodName = "/manager_user.Service/ResetUserPassword" Service_ChangeUserPassword_FullMethodName = "/manager_user.Service/ChangeUserPassword" Service_DisableUser_FullMethodName = "/manager_user.Service/DisableUser" Service_EnableUser_FullMethodName = "/manager_user.Service/EnableUser" Service_OfflineUser_FullMethodName = "/manager_user.Service/OfflineUser" Service_UpdateUser_FullMethodName = "/manager_user.Service/UpdateUser" Service_UpdateCurrentUser_FullMethodName = "/manager_user.Service/UpdateCurrentUser" Service_DeleteUser_FullMethodName = "/manager_user.Service/DeleteUser" Service_SwitchCurrentUserRole_FullMethodName = "/manager_user.Service/SwitchCurrentUserRole" Service_UserLogin_FullMethodName = "/manager_user.Service/UserLogin" Service_UserLoginCaptcha_FullMethodName = "/manager_user.Service/UserLoginCaptcha" Service_UserLogout_FullMethodName = "/manager_user.Service/UserLogout" Service_UserRefreshToken_FullMethodName = "/manager_user.Service/UserRefreshToken" )
const OperationServiceAddUser = "/manager_user.Service/AddUser"
const OperationServiceChangeUserPassword = "/manager_user.Service/ChangeUserPassword"
const OperationServiceChangeUserPasswordCaptcha = "/manager_user.Service/ChangeUserPasswordCaptcha"
const OperationServiceCurrentUser = "/manager_user.Service/CurrentUser"
const OperationServiceDeleteUser = "/manager_user.Service/DeleteUser"
const OperationServiceDisableUser = "/manager_user.Service/DisableUser"
const OperationServiceEnableUser = "/manager_user.Service/EnableUser"
const OperationServiceOfflineUser = "/manager_user.Service/OfflineUser"
const OperationServicePageUser = "/manager_user.Service/PageUser"
const OperationServiceResetUserPassword = "/manager_user.Service/ResetUserPassword"
const OperationServiceSwitchCurrentUserRole = "/manager_user.Service/SwitchCurrentUserRole"
const OperationServiceUpdateCurrentUser = "/manager_user.Service/UpdateCurrentUser"
const OperationServiceUpdateUser = "/manager_user.Service/UpdateUser"
const OperationServiceUserLogin = "/manager_user.Service/UserLogin"
const OperationServiceUserLoginCaptcha = "/manager_user.Service/UserLoginCaptcha"
const OperationServiceUserLogout = "/manager_user.Service/UserLogout"
const OperationServiceUserRefreshToken = "/manager_user.Service/UserRefreshToken"
Variables ¶
var File_manager_user_proto protoreflect.FileDescriptor
var File_manager_user_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager_user.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CurrentUser", Handler: _Service_CurrentUser_Handler, }, { MethodName: "PageUser", Handler: _Service_PageUser_Handler, }, { MethodName: "AddUser", Handler: _Service_AddUser_Handler, }, { MethodName: "ChangeUserPasswordCaptcha", Handler: _Service_ChangeUserPasswordCaptcha_Handler, }, { MethodName: "ResetUserPassword", Handler: _Service_ResetUserPassword_Handler, }, { MethodName: "ChangeUserPassword", Handler: _Service_ChangeUserPassword_Handler, }, { MethodName: "DisableUser", Handler: _Service_DisableUser_Handler, }, { MethodName: "EnableUser", Handler: _Service_EnableUser_Handler, }, { MethodName: "OfflineUser", Handler: _Service_OfflineUser_Handler, }, { MethodName: "UpdateUser", Handler: _Service_UpdateUser_Handler, }, { MethodName: "UpdateCurrentUser", Handler: _Service_UpdateCurrentUser_Handler, }, { MethodName: "DeleteUser", Handler: _Service_DeleteUser_Handler, }, { MethodName: "SwitchCurrentUserRole", Handler: _Service_SwitchCurrentUserRole_Handler, }, { MethodName: "UserLogin", Handler: _Service_UserLogin_Handler, }, { MethodName: "UserLoginCaptcha", Handler: _Service_UserLoginCaptcha_Handler, }, { MethodName: "UserLogout", Handler: _Service_UserLogout_Handler, }, { MethodName: "UserRefreshToken", Handler: _Service_UserRefreshToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "manager_user_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AddUserReply ¶
type AddUserReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddUserReply) Descriptor
deprecated
func (*AddUserReply) Descriptor() ([]byte, []int)
Deprecated: Use AddUserReply.ProtoReflect.Descriptor instead.
func (*AddUserReply) GetId ¶
func (x *AddUserReply) GetId() uint32
func (*AddUserReply) ProtoMessage ¶
func (*AddUserReply) ProtoMessage()
func (*AddUserReply) ProtoReflect ¶
func (x *AddUserReply) ProtoReflect() protoreflect.Message
func (*AddUserReply) Reset ¶
func (x *AddUserReply) Reset()
func (*AddUserReply) String ¶
func (x *AddUserReply) String() string
func (*AddUserReply) Validate ¶
func (m *AddUserReply) Validate() error
Validate checks the field values on AddUserReply 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 (*AddUserReply) ValidateAll ¶
func (m *AddUserReply) ValidateAll() error
ValidateAll checks the field values on AddUserReply 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 AddUserReplyMultiError, or nil if none found.
type AddUserReplyMultiError ¶
type AddUserReplyMultiError []error
AddUserReplyMultiError is an error wrapping multiple validation errors returned by AddUserReply.ValidateAll() if the designated constraints aren't met.
func (AddUserReplyMultiError) AllErrors ¶
func (m AddUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddUserReplyMultiError) Error ¶
func (m AddUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddUserReplyValidationError ¶
type AddUserReplyValidationError struct {
// contains filtered or unexported fields
}
AddUserReplyValidationError is the validation error returned by AddUserReply.Validate if the designated constraints aren't met.
func (AddUserReplyValidationError) Cause ¶
func (e AddUserReplyValidationError) Cause() error
Cause function returns cause value.
func (AddUserReplyValidationError) Error ¶
func (e AddUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddUserReplyValidationError) ErrorName ¶
func (e AddUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddUserReplyValidationError) Field ¶
func (e AddUserReplyValidationError) Field() string
Field function returns field value.
func (AddUserReplyValidationError) Key ¶
func (e AddUserReplyValidationError) Key() bool
Key function returns key value.
func (AddUserReplyValidationError) Reason ¶
func (e AddUserReplyValidationError) Reason() string
Reason function returns reason value.
type AddUserRequest ¶
type AddUserRequest struct { DepartmentId uint32 `protobuf:"varint,1,opt,name=department_id,json=departmentId,proto3" json:"department_id,omitempty"` RoleIds []uint32 `protobuf:"varint,2,rep,packed,name=role_ids,json=roleIds,proto3" json:"role_ids,omitempty"` JobIds []uint32 `protobuf:"varint,8,rep,packed,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Gender string `protobuf:"bytes,4,opt,name=gender,proto3" json:"gender,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` Status bool `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AddUserRequest) Descriptor
deprecated
func (*AddUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddUserRequest.ProtoReflect.Descriptor instead.
func (*AddUserRequest) GetDepartmentId ¶
func (x *AddUserRequest) GetDepartmentId() uint32
func (*AddUserRequest) GetEmail ¶
func (x *AddUserRequest) GetEmail() string
func (*AddUserRequest) GetGender ¶
func (x *AddUserRequest) GetGender() string
func (*AddUserRequest) GetJobIds ¶
func (x *AddUserRequest) GetJobIds() []uint32
func (*AddUserRequest) GetName ¶
func (x *AddUserRequest) GetName() string
func (*AddUserRequest) GetPhone ¶
func (x *AddUserRequest) GetPhone() string
func (*AddUserRequest) GetRoleIds ¶
func (x *AddUserRequest) GetRoleIds() []uint32
func (*AddUserRequest) GetStatus ¶
func (x *AddUserRequest) GetStatus() bool
func (*AddUserRequest) ProtoMessage ¶
func (*AddUserRequest) ProtoMessage()
func (*AddUserRequest) ProtoReflect ¶
func (x *AddUserRequest) ProtoReflect() protoreflect.Message
func (*AddUserRequest) Reset ¶
func (x *AddUserRequest) Reset()
func (*AddUserRequest) String ¶
func (x *AddUserRequest) String() string
func (*AddUserRequest) Validate ¶
func (m *AddUserRequest) Validate() error
Validate checks the field values on AddUserRequest 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 (*AddUserRequest) ValidateAll ¶
func (m *AddUserRequest) ValidateAll() error
ValidateAll checks the field values on AddUserRequest 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 AddUserRequestMultiError, or nil if none found.
type AddUserRequestMultiError ¶
type AddUserRequestMultiError []error
AddUserRequestMultiError is an error wrapping multiple validation errors returned by AddUserRequest.ValidateAll() if the designated constraints aren't met.
func (AddUserRequestMultiError) AllErrors ¶
func (m AddUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddUserRequestMultiError) Error ¶
func (m AddUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddUserRequestValidationError ¶
type AddUserRequestValidationError struct {
// contains filtered or unexported fields
}
AddUserRequestValidationError is the validation error returned by AddUserRequest.Validate if the designated constraints aren't met.
func (AddUserRequestValidationError) Cause ¶
func (e AddUserRequestValidationError) Cause() error
Cause function returns cause value.
func (AddUserRequestValidationError) Error ¶
func (e AddUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddUserRequestValidationError) ErrorName ¶
func (e AddUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddUserRequestValidationError) Field ¶
func (e AddUserRequestValidationError) Field() string
Field function returns field value.
func (AddUserRequestValidationError) Key ¶
func (e AddUserRequestValidationError) Key() bool
Key function returns key value.
func (AddUserRequestValidationError) Reason ¶
func (e AddUserRequestValidationError) Reason() string
Reason function returns reason value.
type CaptchaReply ¶
type CaptchaReply struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Captcha string `protobuf:"bytes,2,opt,name=captcha,proto3" json:"captcha,omitempty"` Expire uint32 `protobuf:"varint,3,opt,name=expire,proto3" json:"expire,omitempty"` // contains filtered or unexported fields }
func (*CaptchaReply) Descriptor
deprecated
func (*CaptchaReply) Descriptor() ([]byte, []int)
Deprecated: Use CaptchaReply.ProtoReflect.Descriptor instead.
func (*CaptchaReply) GetCaptcha ¶
func (x *CaptchaReply) GetCaptcha() string
func (*CaptchaReply) GetExpire ¶
func (x *CaptchaReply) GetExpire() uint32
func (*CaptchaReply) GetUuid ¶
func (x *CaptchaReply) GetUuid() string
func (*CaptchaReply) ProtoMessage ¶
func (*CaptchaReply) ProtoMessage()
func (*CaptchaReply) ProtoReflect ¶
func (x *CaptchaReply) ProtoReflect() protoreflect.Message
func (*CaptchaReply) Reset ¶
func (x *CaptchaReply) Reset()
func (*CaptchaReply) String ¶
func (x *CaptchaReply) String() string
func (*CaptchaReply) Validate ¶
func (m *CaptchaReply) Validate() error
Validate checks the field values on CaptchaReply 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 (*CaptchaReply) ValidateAll ¶
func (m *CaptchaReply) ValidateAll() error
ValidateAll checks the field values on CaptchaReply 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 CaptchaReplyMultiError, or nil if none found.
type CaptchaReplyMultiError ¶
type CaptchaReplyMultiError []error
CaptchaReplyMultiError is an error wrapping multiple validation errors returned by CaptchaReply.ValidateAll() if the designated constraints aren't met.
func (CaptchaReplyMultiError) AllErrors ¶
func (m CaptchaReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CaptchaReplyMultiError) Error ¶
func (m CaptchaReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CaptchaReplyValidationError ¶
type CaptchaReplyValidationError struct {
// contains filtered or unexported fields
}
CaptchaReplyValidationError is the validation error returned by CaptchaReply.Validate if the designated constraints aren't met.
func (CaptchaReplyValidationError) Cause ¶
func (e CaptchaReplyValidationError) Cause() error
Cause function returns cause value.
func (CaptchaReplyValidationError) Error ¶
func (e CaptchaReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CaptchaReplyValidationError) ErrorName ¶
func (e CaptchaReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CaptchaReplyValidationError) Field ¶
func (e CaptchaReplyValidationError) Field() string
Field function returns field value.
func (CaptchaReplyValidationError) Key ¶
func (e CaptchaReplyValidationError) Key() bool
Key function returns key value.
func (CaptchaReplyValidationError) Reason ¶
func (e CaptchaReplyValidationError) Reason() string
Reason function returns reason value.
type ChangeUserPasswordRequest ¶
type ChangeUserPasswordRequest struct { Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` CaptchaId string `protobuf:"bytes,2,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` Captcha string `protobuf:"bytes,3,opt,name=captcha,proto3" json:"captcha,omitempty"` // contains filtered or unexported fields }
func (*ChangeUserPasswordRequest) Descriptor
deprecated
func (*ChangeUserPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangeUserPasswordRequest.ProtoReflect.Descriptor instead.
func (*ChangeUserPasswordRequest) GetCaptcha ¶
func (x *ChangeUserPasswordRequest) GetCaptcha() string
func (*ChangeUserPasswordRequest) GetCaptchaId ¶
func (x *ChangeUserPasswordRequest) GetCaptchaId() string
func (*ChangeUserPasswordRequest) GetPassword ¶
func (x *ChangeUserPasswordRequest) GetPassword() string
func (*ChangeUserPasswordRequest) ProtoMessage ¶
func (*ChangeUserPasswordRequest) ProtoMessage()
func (*ChangeUserPasswordRequest) ProtoReflect ¶
func (x *ChangeUserPasswordRequest) ProtoReflect() protoreflect.Message
func (*ChangeUserPasswordRequest) Reset ¶
func (x *ChangeUserPasswordRequest) Reset()
func (*ChangeUserPasswordRequest) String ¶
func (x *ChangeUserPasswordRequest) String() string
func (*ChangeUserPasswordRequest) Validate ¶
func (m *ChangeUserPasswordRequest) Validate() error
Validate checks the field values on ChangeUserPasswordRequest 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 (*ChangeUserPasswordRequest) ValidateAll ¶
func (m *ChangeUserPasswordRequest) ValidateAll() error
ValidateAll checks the field values on ChangeUserPasswordRequest 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 ChangeUserPasswordRequestMultiError, or nil if none found.
type ChangeUserPasswordRequestMultiError ¶
type ChangeUserPasswordRequestMultiError []error
ChangeUserPasswordRequestMultiError is an error wrapping multiple validation errors returned by ChangeUserPasswordRequest.ValidateAll() if the designated constraints aren't met.
func (ChangeUserPasswordRequestMultiError) AllErrors ¶
func (m ChangeUserPasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ChangeUserPasswordRequestMultiError) Error ¶
func (m ChangeUserPasswordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ChangeUserPasswordRequestValidationError ¶
type ChangeUserPasswordRequestValidationError struct {
// contains filtered or unexported fields
}
ChangeUserPasswordRequestValidationError is the validation error returned by ChangeUserPasswordRequest.Validate if the designated constraints aren't met.
func (ChangeUserPasswordRequestValidationError) Cause ¶
func (e ChangeUserPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (ChangeUserPasswordRequestValidationError) Error ¶
func (e ChangeUserPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ChangeUserPasswordRequestValidationError) ErrorName ¶
func (e ChangeUserPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ChangeUserPasswordRequestValidationError) Field ¶
func (e ChangeUserPasswordRequestValidationError) Field() string
Field function returns field value.
func (ChangeUserPasswordRequestValidationError) Key ¶
func (e ChangeUserPasswordRequestValidationError) Key() bool
Key function returns key value.
func (ChangeUserPasswordRequestValidationError) Reason ¶
func (e ChangeUserPasswordRequestValidationError) 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 DisableUserRequest ¶
type DisableUserRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` // contains filtered or unexported fields }
func (*DisableUserRequest) Descriptor
deprecated
func (*DisableUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisableUserRequest.ProtoReflect.Descriptor instead.
func (*DisableUserRequest) GetDesc ¶
func (x *DisableUserRequest) GetDesc() string
func (*DisableUserRequest) GetId ¶
func (x *DisableUserRequest) GetId() uint32
func (*DisableUserRequest) ProtoMessage ¶
func (*DisableUserRequest) ProtoMessage()
func (*DisableUserRequest) ProtoReflect ¶
func (x *DisableUserRequest) ProtoReflect() protoreflect.Message
func (*DisableUserRequest) Reset ¶
func (x *DisableUserRequest) Reset()
func (*DisableUserRequest) String ¶
func (x *DisableUserRequest) String() string
func (*DisableUserRequest) Validate ¶
func (m *DisableUserRequest) Validate() error
Validate checks the field values on DisableUserRequest 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 (*DisableUserRequest) ValidateAll ¶
func (m *DisableUserRequest) ValidateAll() error
ValidateAll checks the field values on DisableUserRequest 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 DisableUserRequestMultiError, or nil if none found.
type DisableUserRequestMultiError ¶
type DisableUserRequestMultiError []error
DisableUserRequestMultiError is an error wrapping multiple validation errors returned by DisableUserRequest.ValidateAll() if the designated constraints aren't met.
func (DisableUserRequestMultiError) AllErrors ¶
func (m DisableUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DisableUserRequestMultiError) Error ¶
func (m DisableUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DisableUserRequestValidationError ¶
type DisableUserRequestValidationError struct {
// contains filtered or unexported fields
}
DisableUserRequestValidationError is the validation error returned by DisableUserRequest.Validate if the designated constraints aren't met.
func (DisableUserRequestValidationError) Cause ¶
func (e DisableUserRequestValidationError) Cause() error
Cause function returns cause value.
func (DisableUserRequestValidationError) Error ¶
func (e DisableUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DisableUserRequestValidationError) ErrorName ¶
func (e DisableUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DisableUserRequestValidationError) Field ¶
func (e DisableUserRequestValidationError) Field() string
Field function returns field value.
func (DisableUserRequestValidationError) Key ¶
func (e DisableUserRequestValidationError) Key() bool
Key function returns key value.
func (DisableUserRequestValidationError) Reason ¶
func (e DisableUserRequestValidationError) Reason() string
Reason function returns reason value.
type EnableUserRequest ¶
type EnableUserRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*EnableUserRequest) Descriptor
deprecated
func (*EnableUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnableUserRequest.ProtoReflect.Descriptor instead.
func (*EnableUserRequest) GetId ¶
func (x *EnableUserRequest) GetId() uint32
func (*EnableUserRequest) ProtoMessage ¶
func (*EnableUserRequest) ProtoMessage()
func (*EnableUserRequest) ProtoReflect ¶
func (x *EnableUserRequest) ProtoReflect() protoreflect.Message
func (*EnableUserRequest) Reset ¶
func (x *EnableUserRequest) Reset()
func (*EnableUserRequest) String ¶
func (x *EnableUserRequest) String() string
func (*EnableUserRequest) Validate ¶
func (m *EnableUserRequest) Validate() error
Validate checks the field values on EnableUserRequest 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 (*EnableUserRequest) ValidateAll ¶
func (m *EnableUserRequest) ValidateAll() error
ValidateAll checks the field values on EnableUserRequest 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 EnableUserRequestMultiError, or nil if none found.
type EnableUserRequestMultiError ¶
type EnableUserRequestMultiError []error
EnableUserRequestMultiError is an error wrapping multiple validation errors returned by EnableUserRequest.ValidateAll() if the designated constraints aren't met.
func (EnableUserRequestMultiError) AllErrors ¶
func (m EnableUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnableUserRequestMultiError) Error ¶
func (m EnableUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnableUserRequestValidationError ¶
type EnableUserRequestValidationError struct {
// contains filtered or unexported fields
}
EnableUserRequestValidationError is the validation error returned by EnableUserRequest.Validate if the designated constraints aren't met.
func (EnableUserRequestValidationError) Cause ¶
func (e EnableUserRequestValidationError) Cause() error
Cause function returns cause value.
func (EnableUserRequestValidationError) Error ¶
func (e EnableUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (EnableUserRequestValidationError) ErrorName ¶
func (e EnableUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (EnableUserRequestValidationError) Field ¶
func (e EnableUserRequestValidationError) Field() string
Field function returns field value.
func (EnableUserRequestValidationError) Key ¶
func (e EnableUserRequestValidationError) Key() bool
Key function returns key value.
func (EnableUserRequestValidationError) Reason ¶
func (e EnableUserRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserRequest ¶
type GetUserRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() uint32
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 OfflineUserRequest ¶
type OfflineUserRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*OfflineUserRequest) Descriptor
deprecated
func (*OfflineUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use OfflineUserRequest.ProtoReflect.Descriptor instead.
func (*OfflineUserRequest) GetId ¶
func (x *OfflineUserRequest) GetId() 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 PageUserReply ¶
type PageUserReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*User `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PageUserReply) Descriptor
deprecated
func (*PageUserReply) Descriptor() ([]byte, []int)
Deprecated: Use PageUserReply.ProtoReflect.Descriptor instead.
func (*PageUserReply) GetList ¶
func (x *PageUserReply) GetList() []*User
func (*PageUserReply) GetTotal ¶
func (x *PageUserReply) GetTotal() uint32
func (*PageUserReply) ProtoMessage ¶
func (*PageUserReply) ProtoMessage()
func (*PageUserReply) ProtoReflect ¶
func (x *PageUserReply) ProtoReflect() protoreflect.Message
func (*PageUserReply) Reset ¶
func (x *PageUserReply) Reset()
func (*PageUserReply) String ¶
func (x *PageUserReply) String() string
func (*PageUserReply) Validate ¶
func (m *PageUserReply) Validate() error
Validate checks the field values on PageUserReply 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 (*PageUserReply) ValidateAll ¶
func (m *PageUserReply) ValidateAll() error
ValidateAll checks the field values on PageUserReply 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 PageUserReplyMultiError, or nil if none found.
type PageUserReplyMultiError ¶
type PageUserReplyMultiError []error
PageUserReplyMultiError is an error wrapping multiple validation errors returned by PageUserReply.ValidateAll() if the designated constraints aren't met.
func (PageUserReplyMultiError) AllErrors ¶
func (m PageUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageUserReplyMultiError) Error ¶
func (m PageUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageUserReplyValidationError ¶
type PageUserReplyValidationError struct {
// contains filtered or unexported fields
}
PageUserReplyValidationError is the validation error returned by PageUserReply.Validate if the designated constraints aren't met.
func (PageUserReplyValidationError) Cause ¶
func (e PageUserReplyValidationError) Cause() error
Cause function returns cause value.
func (PageUserReplyValidationError) Error ¶
func (e PageUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageUserReplyValidationError) ErrorName ¶
func (e PageUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageUserReplyValidationError) Field ¶
func (e PageUserReplyValidationError) Field() string
Field function returns field value.
func (PageUserReplyValidationError) Key ¶
func (e PageUserReplyValidationError) Key() bool
Key function returns key value.
func (PageUserReplyValidationError) Reason ¶
func (e PageUserReplyValidationError) Reason() string
Reason function returns reason value.
type PageUserRequest ¶
type PageUserRequest struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Username *string `protobuf:"bytes,3,opt,name=username,proto3,oneof" json:"username,omitempty"` Status *bool `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"` RoleId *uint32 `protobuf:"varint,5,opt,name=role_id,json=roleId,proto3,oneof" json:"role_id,omitempty"` DepartmentId *uint32 `protobuf:"varint,6,opt,name=department_id,json=departmentId,proto3,oneof" json:"department_id,omitempty"` StartTime *uint32 `protobuf:"varint,7,opt,name=start_time,json=startTime,proto3,oneof" json:"start_time,omitempty"` EndTime *uint32 `protobuf:"varint,8,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` Name *string `protobuf:"bytes,9,opt,name=name,proto3,oneof" json:"name,omitempty"` // contains filtered or unexported fields }
func (*PageUserRequest) Descriptor
deprecated
func (*PageUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageUserRequest.ProtoReflect.Descriptor instead.
func (*PageUserRequest) GetDepartmentId ¶
func (x *PageUserRequest) GetDepartmentId() uint32
func (*PageUserRequest) GetEndTime ¶
func (x *PageUserRequest) GetEndTime() uint32
func (*PageUserRequest) GetName ¶
func (x *PageUserRequest) GetName() string
func (*PageUserRequest) GetPage ¶
func (x *PageUserRequest) GetPage() uint32
func (*PageUserRequest) GetPageSize ¶
func (x *PageUserRequest) GetPageSize() uint32
func (*PageUserRequest) GetRoleId ¶
func (x *PageUserRequest) GetRoleId() uint32
func (*PageUserRequest) GetStartTime ¶
func (x *PageUserRequest) GetStartTime() uint32
func (*PageUserRequest) GetStatus ¶
func (x *PageUserRequest) GetStatus() bool
func (*PageUserRequest) GetUsername ¶
func (x *PageUserRequest) GetUsername() string
func (*PageUserRequest) ProtoMessage ¶
func (*PageUserRequest) ProtoMessage()
func (*PageUserRequest) ProtoReflect ¶
func (x *PageUserRequest) ProtoReflect() protoreflect.Message
func (*PageUserRequest) Reset ¶
func (x *PageUserRequest) Reset()
func (*PageUserRequest) String ¶
func (x *PageUserRequest) String() string
func (*PageUserRequest) Validate ¶
func (m *PageUserRequest) Validate() error
Validate checks the field values on PageUserRequest 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 (*PageUserRequest) ValidateAll ¶
func (m *PageUserRequest) ValidateAll() error
ValidateAll checks the field values on PageUserRequest 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 PageUserRequestMultiError, or nil if none found.
type PageUserRequestMultiError ¶
type PageUserRequestMultiError []error
PageUserRequestMultiError is an error wrapping multiple validation errors returned by PageUserRequest.ValidateAll() if the designated constraints aren't met.
func (PageUserRequestMultiError) AllErrors ¶
func (m PageUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageUserRequestMultiError) Error ¶
func (m PageUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageUserRequestValidationError ¶
type PageUserRequestValidationError struct {
// contains filtered or unexported fields
}
PageUserRequestValidationError is the validation error returned by PageUserRequest.Validate if the designated constraints aren't met.
func (PageUserRequestValidationError) Cause ¶
func (e PageUserRequestValidationError) Cause() error
Cause function returns cause value.
func (PageUserRequestValidationError) Error ¶
func (e PageUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageUserRequestValidationError) ErrorName ¶
func (e PageUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageUserRequestValidationError) Field ¶
func (e PageUserRequestValidationError) Field() string
Field function returns field value.
func (PageUserRequestValidationError) Key ¶
func (e PageUserRequestValidationError) Key() bool
Key function returns key value.
func (PageUserRequestValidationError) Reason ¶
func (e PageUserRequestValidationError) 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 ServiceClient ¶
type ServiceClient interface { // CurrentUser 获取当前用户信息 CurrentUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*User, error) // PageUser 新增用户信息 PageUser(ctx context.Context, in *PageUserRequest, opts ...grpc.CallOption) (*PageUserReply, error) // AddUser 新增用户信息 AddUser(ctx context.Context, in *AddUserRequest, opts ...grpc.CallOption) (*AddUserReply, error) // ChangeUserPasswordCaptcha 用户修改密码验证码 ChangeUserPasswordCaptcha(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CaptchaReply, error) // ResetUserPassword 重置用户密码 ResetUserPassword(ctx context.Context, in *ResetUserPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // ChangeUserPassword 用户修改密码 ChangeUserPassword(ctx context.Context, in *ChangeUserPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DisableUser 禁用用户 DisableUser(ctx context.Context, in *DisableUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DisableUser 禁用用户 EnableUser(ctx context.Context, in *EnableUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DisableUser 禁用用户 OfflineUser(ctx context.Context, in *OfflineUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // UpdateUser 更新用户信息 UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // UpdateCurrentUser 更新用户基础信息 UpdateCurrentUser(ctx context.Context, in *UpdateCurrentUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteUser 删除用户信息 DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // SwitchCurrentUserRole 切换用户当前角色 SwitchCurrentUserRole(ctx context.Context, in *SwitchCurrentUserRoleRequest, opts ...grpc.CallOption) (*SwitchCurrentUserRoleReply, error) UserLogin(ctx context.Context, in *UserLoginRequest, opts ...grpc.CallOption) (*UserLoginReply, error) UserLoginCaptcha(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CaptchaReply, error) UserLogout(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) UserRefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserRefreshTokenReply, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface { AddUser(ctx context.Context, req *AddUserRequest, opts ...http.CallOption) (rsp *AddUserReply, err error) ChangeUserPassword(ctx context.Context, req *ChangeUserPasswordRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) ChangeUserPasswordCaptcha(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *CaptchaReply, err error) CurrentUser(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *User, err error) DeleteUser(ctx context.Context, req *DeleteUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DisableUser(ctx context.Context, req *DisableUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) EnableUser(ctx context.Context, req *EnableUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) OfflineUser(ctx context.Context, req *OfflineUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) PageUser(ctx context.Context, req *PageUserRequest, opts ...http.CallOption) (rsp *PageUserReply, err error) ResetUserPassword(ctx context.Context, req *ResetUserPasswordRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) SwitchCurrentUserRole(ctx context.Context, req *SwitchCurrentUserRoleRequest, opts ...http.CallOption) (rsp *SwitchCurrentUserRoleReply, err error) UpdateCurrentUser(ctx context.Context, req *UpdateCurrentUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UserLogin(ctx context.Context, req *UserLoginRequest, opts ...http.CallOption) (rsp *UserLoginReply, err error) UserLoginCaptcha(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *CaptchaReply, err error) UserLogout(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UserRefreshToken(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserRefreshTokenReply, err error) }
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) AddUser ¶
func (c *ServiceHTTPClientImpl) AddUser(ctx context.Context, in *AddUserRequest, opts ...http.CallOption) (*AddUserReply, error)
func (*ServiceHTTPClientImpl) ChangeUserPassword ¶
func (c *ServiceHTTPClientImpl) ChangeUserPassword(ctx context.Context, in *ChangeUserPasswordRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) ChangeUserPasswordCaptcha ¶
func (c *ServiceHTTPClientImpl) ChangeUserPasswordCaptcha(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*CaptchaReply, error)
func (*ServiceHTTPClientImpl) CurrentUser ¶
func (c *ServiceHTTPClientImpl) CurrentUser(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*User, error)
func (*ServiceHTTPClientImpl) DeleteUser ¶
func (c *ServiceHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) DisableUser ¶
func (c *ServiceHTTPClientImpl) DisableUser(ctx context.Context, in *DisableUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) EnableUser ¶
func (c *ServiceHTTPClientImpl) EnableUser(ctx context.Context, in *EnableUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) OfflineUser ¶
func (c *ServiceHTTPClientImpl) OfflineUser(ctx context.Context, in *OfflineUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) PageUser ¶
func (c *ServiceHTTPClientImpl) PageUser(ctx context.Context, in *PageUserRequest, opts ...http.CallOption) (*PageUserReply, error)
func (*ServiceHTTPClientImpl) ResetUserPassword ¶
func (c *ServiceHTTPClientImpl) ResetUserPassword(ctx context.Context, in *ResetUserPasswordRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) SwitchCurrentUserRole ¶
func (c *ServiceHTTPClientImpl) SwitchCurrentUserRole(ctx context.Context, in *SwitchCurrentUserRoleRequest, opts ...http.CallOption) (*SwitchCurrentUserRoleReply, error)
func (*ServiceHTTPClientImpl) UpdateCurrentUser ¶
func (c *ServiceHTTPClientImpl) UpdateCurrentUser(ctx context.Context, in *UpdateCurrentUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) UpdateUser ¶
func (c *ServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) UserLogin ¶
func (c *ServiceHTTPClientImpl) UserLogin(ctx context.Context, in *UserLoginRequest, opts ...http.CallOption) (*UserLoginReply, error)
func (*ServiceHTTPClientImpl) UserLoginCaptcha ¶
func (c *ServiceHTTPClientImpl) UserLoginCaptcha(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*CaptchaReply, error)
func (*ServiceHTTPClientImpl) UserLogout ¶
func (c *ServiceHTTPClientImpl) UserLogout(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) UserRefreshToken ¶
func (c *ServiceHTTPClientImpl) UserRefreshToken(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserRefreshTokenReply, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { // AddUser AddUser 新增用户信息 AddUser(context.Context, *AddUserRequest) (*AddUserReply, error) // ChangeUserPassword ChangeUserPassword 用户修改密码 ChangeUserPassword(context.Context, *ChangeUserPasswordRequest) (*emptypb.Empty, error) // ChangeUserPasswordCaptcha ChangeUserPasswordCaptcha 用户修改密码验证码 ChangeUserPasswordCaptcha(context.Context, *emptypb.Empty) (*CaptchaReply, error) // CurrentUser CurrentUser 获取当前用户信息 CurrentUser(context.Context, *emptypb.Empty) (*User, error) // DeleteUser DeleteUser 删除用户信息 DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) // DisableUser DisableUser 禁用用户 DisableUser(context.Context, *DisableUserRequest) (*emptypb.Empty, error) // EnableUser DisableUser 禁用用户 EnableUser(context.Context, *EnableUserRequest) (*emptypb.Empty, error) // OfflineUser DisableUser 禁用用户 OfflineUser(context.Context, *OfflineUserRequest) (*emptypb.Empty, error) // PageUser PageUser 新增用户信息 PageUser(context.Context, *PageUserRequest) (*PageUserReply, error) // ResetUserPassword ResetUserPassword 重置用户密码 ResetUserPassword(context.Context, *ResetUserPasswordRequest) (*emptypb.Empty, error) // SwitchCurrentUserRole SwitchCurrentUserRole 切换用户当前角色 SwitchCurrentUserRole(context.Context, *SwitchCurrentUserRoleRequest) (*SwitchCurrentUserRoleReply, error) // UpdateCurrentUser UpdateCurrentUser 更新用户基础信息 UpdateCurrentUser(context.Context, *UpdateCurrentUserRequest) (*emptypb.Empty, error) // UpdateUser UpdateUser 更新用户信息 UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) UserLogin(context.Context, *UserLoginRequest) (*UserLoginReply, error) UserLoginCaptcha(context.Context, *emptypb.Empty) (*CaptchaReply, error) UserLogout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) UserRefreshToken(context.Context, *emptypb.Empty) (*UserRefreshTokenReply, error) }
type ServiceServer ¶
type ServiceServer interface { // CurrentUser 获取当前用户信息 CurrentUser(context.Context, *emptypb.Empty) (*User, error) // PageUser 新增用户信息 PageUser(context.Context, *PageUserRequest) (*PageUserReply, error) // AddUser 新增用户信息 AddUser(context.Context, *AddUserRequest) (*AddUserReply, error) // ChangeUserPasswordCaptcha 用户修改密码验证码 ChangeUserPasswordCaptcha(context.Context, *emptypb.Empty) (*CaptchaReply, error) // ResetUserPassword 重置用户密码 ResetUserPassword(context.Context, *ResetUserPasswordRequest) (*emptypb.Empty, error) // ChangeUserPassword 用户修改密码 ChangeUserPassword(context.Context, *ChangeUserPasswordRequest) (*emptypb.Empty, error) // DisableUser 禁用用户 DisableUser(context.Context, *DisableUserRequest) (*emptypb.Empty, error) // DisableUser 禁用用户 EnableUser(context.Context, *EnableUserRequest) (*emptypb.Empty, error) // DisableUser 禁用用户 OfflineUser(context.Context, *OfflineUserRequest) (*emptypb.Empty, error) // UpdateUser 更新用户信息 UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) // UpdateCurrentUser 更新用户基础信息 UpdateCurrentUser(context.Context, *UpdateCurrentUserRequest) (*emptypb.Empty, error) // DeleteUser 删除用户信息 DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) // SwitchCurrentUserRole 切换用户当前角色 SwitchCurrentUserRole(context.Context, *SwitchCurrentUserRoleRequest) (*SwitchCurrentUserRoleReply, error) UserLogin(context.Context, *UserLoginRequest) (*UserLoginReply, error) UserLoginCaptcha(context.Context, *emptypb.Empty) (*CaptchaReply, error) UserLogout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) UserRefreshToken(context.Context, *emptypb.Empty) (*UserRefreshTokenReply, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type SwitchCurrentUserRoleReply ¶
type SwitchCurrentUserRoleReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SwitchCurrentUserRoleReply) Descriptor
deprecated
func (*SwitchCurrentUserRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use SwitchCurrentUserRoleReply.ProtoReflect.Descriptor instead.
func (*SwitchCurrentUserRoleReply) GetToken ¶
func (x *SwitchCurrentUserRoleReply) GetToken() string
func (*SwitchCurrentUserRoleReply) ProtoMessage ¶
func (*SwitchCurrentUserRoleReply) ProtoMessage()
func (*SwitchCurrentUserRoleReply) ProtoReflect ¶
func (x *SwitchCurrentUserRoleReply) ProtoReflect() protoreflect.Message
func (*SwitchCurrentUserRoleReply) Reset ¶
func (x *SwitchCurrentUserRoleReply) Reset()
func (*SwitchCurrentUserRoleReply) String ¶
func (x *SwitchCurrentUserRoleReply) String() string
func (*SwitchCurrentUserRoleReply) Validate ¶
func (m *SwitchCurrentUserRoleReply) Validate() error
Validate checks the field values on SwitchCurrentUserRoleReply 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 (*SwitchCurrentUserRoleReply) ValidateAll ¶
func (m *SwitchCurrentUserRoleReply) ValidateAll() error
ValidateAll checks the field values on SwitchCurrentUserRoleReply 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 SwitchCurrentUserRoleReplyMultiError, or nil if none found.
type SwitchCurrentUserRoleReplyMultiError ¶
type SwitchCurrentUserRoleReplyMultiError []error
SwitchCurrentUserRoleReplyMultiError is an error wrapping multiple validation errors returned by SwitchCurrentUserRoleReply.ValidateAll() if the designated constraints aren't met.
func (SwitchCurrentUserRoleReplyMultiError) AllErrors ¶
func (m SwitchCurrentUserRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SwitchCurrentUserRoleReplyMultiError) Error ¶
func (m SwitchCurrentUserRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SwitchCurrentUserRoleReplyValidationError ¶
type SwitchCurrentUserRoleReplyValidationError struct {
// contains filtered or unexported fields
}
SwitchCurrentUserRoleReplyValidationError is the validation error returned by SwitchCurrentUserRoleReply.Validate if the designated constraints aren't met.
func (SwitchCurrentUserRoleReplyValidationError) Cause ¶
func (e SwitchCurrentUserRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (SwitchCurrentUserRoleReplyValidationError) Error ¶
func (e SwitchCurrentUserRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (SwitchCurrentUserRoleReplyValidationError) ErrorName ¶
func (e SwitchCurrentUserRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (SwitchCurrentUserRoleReplyValidationError) Field ¶
func (e SwitchCurrentUserRoleReplyValidationError) Field() string
Field function returns field value.
func (SwitchCurrentUserRoleReplyValidationError) Key ¶
func (e SwitchCurrentUserRoleReplyValidationError) Key() bool
Key function returns key value.
func (SwitchCurrentUserRoleReplyValidationError) Reason ¶
func (e SwitchCurrentUserRoleReplyValidationError) Reason() string
Reason function returns reason value.
type SwitchCurrentUserRoleRequest ¶
type SwitchCurrentUserRoleRequest struct { RoleId uint32 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // contains filtered or unexported fields }
func (*SwitchCurrentUserRoleRequest) Descriptor
deprecated
func (*SwitchCurrentUserRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use SwitchCurrentUserRoleRequest.ProtoReflect.Descriptor instead.
func (*SwitchCurrentUserRoleRequest) GetRoleId ¶
func (x *SwitchCurrentUserRoleRequest) GetRoleId() uint32
func (*SwitchCurrentUserRoleRequest) ProtoMessage ¶
func (*SwitchCurrentUserRoleRequest) ProtoMessage()
func (*SwitchCurrentUserRoleRequest) ProtoReflect ¶
func (x *SwitchCurrentUserRoleRequest) ProtoReflect() protoreflect.Message
func (*SwitchCurrentUserRoleRequest) Reset ¶
func (x *SwitchCurrentUserRoleRequest) Reset()
func (*SwitchCurrentUserRoleRequest) String ¶
func (x *SwitchCurrentUserRoleRequest) String() string
func (*SwitchCurrentUserRoleRequest) Validate ¶
func (m *SwitchCurrentUserRoleRequest) Validate() error
Validate checks the field values on SwitchCurrentUserRoleRequest 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 (*SwitchCurrentUserRoleRequest) ValidateAll ¶
func (m *SwitchCurrentUserRoleRequest) ValidateAll() error
ValidateAll checks the field values on SwitchCurrentUserRoleRequest 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 SwitchCurrentUserRoleRequestMultiError, or nil if none found.
type SwitchCurrentUserRoleRequestMultiError ¶
type SwitchCurrentUserRoleRequestMultiError []error
SwitchCurrentUserRoleRequestMultiError is an error wrapping multiple validation errors returned by SwitchCurrentUserRoleRequest.ValidateAll() if the designated constraints aren't met.
func (SwitchCurrentUserRoleRequestMultiError) AllErrors ¶
func (m SwitchCurrentUserRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SwitchCurrentUserRoleRequestMultiError) Error ¶
func (m SwitchCurrentUserRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SwitchCurrentUserRoleRequestValidationError ¶
type SwitchCurrentUserRoleRequestValidationError struct {
// contains filtered or unexported fields
}
SwitchCurrentUserRoleRequestValidationError is the validation error returned by SwitchCurrentUserRoleRequest.Validate if the designated constraints aren't met.
func (SwitchCurrentUserRoleRequestValidationError) Cause ¶
func (e SwitchCurrentUserRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (SwitchCurrentUserRoleRequestValidationError) Error ¶
func (e SwitchCurrentUserRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SwitchCurrentUserRoleRequestValidationError) ErrorName ¶
func (e SwitchCurrentUserRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SwitchCurrentUserRoleRequestValidationError) Field ¶
func (e SwitchCurrentUserRoleRequestValidationError) Field() string
Field function returns field value.
func (SwitchCurrentUserRoleRequestValidationError) Key ¶
func (e SwitchCurrentUserRoleRequestValidationError) Key() bool
Key function returns key value.
func (SwitchCurrentUserRoleRequestValidationError) Reason ¶
func (e SwitchCurrentUserRoleRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddUser ¶
func (UnimplementedServiceServer) AddUser(context.Context, *AddUserRequest) (*AddUserReply, error)
func (UnimplementedServiceServer) ChangeUserPassword ¶
func (UnimplementedServiceServer) ChangeUserPassword(context.Context, *ChangeUserPasswordRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) ChangeUserPasswordCaptcha ¶
func (UnimplementedServiceServer) ChangeUserPasswordCaptcha(context.Context, *emptypb.Empty) (*CaptchaReply, error)
func (UnimplementedServiceServer) CurrentUser ¶
func (UnimplementedServiceServer) DeleteUser ¶
func (UnimplementedServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) DisableUser ¶
func (UnimplementedServiceServer) DisableUser(context.Context, *DisableUserRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) EnableUser ¶
func (UnimplementedServiceServer) EnableUser(context.Context, *EnableUserRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) OfflineUser ¶
func (UnimplementedServiceServer) OfflineUser(context.Context, *OfflineUserRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) PageUser ¶
func (UnimplementedServiceServer) PageUser(context.Context, *PageUserRequest) (*PageUserReply, error)
func (UnimplementedServiceServer) ResetUserPassword ¶
func (UnimplementedServiceServer) ResetUserPassword(context.Context, *ResetUserPasswordRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) SwitchCurrentUserRole ¶
func (UnimplementedServiceServer) SwitchCurrentUserRole(context.Context, *SwitchCurrentUserRoleRequest) (*SwitchCurrentUserRoleReply, error)
func (UnimplementedServiceServer) UpdateCurrentUser ¶
func (UnimplementedServiceServer) UpdateCurrentUser(context.Context, *UpdateCurrentUserRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) UpdateUser ¶
func (UnimplementedServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) UserLogin ¶
func (UnimplementedServiceServer) UserLogin(context.Context, *UserLoginRequest) (*UserLoginReply, error)
func (UnimplementedServiceServer) UserLoginCaptcha ¶
func (UnimplementedServiceServer) UserLoginCaptcha(context.Context, *emptypb.Empty) (*CaptchaReply, error)
func (UnimplementedServiceServer) UserLogout ¶
func (UnimplementedServiceServer) UserRefreshToken ¶
func (UnimplementedServiceServer) UserRefreshToken(context.Context, *emptypb.Empty) (*UserRefreshTokenReply, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UpdateCurrentUserRequest ¶
type UpdateCurrentUserRequest struct { Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` Gender string `protobuf:"bytes,2,opt,name=gender,proto3" json:"gender,omitempty"` // contains filtered or unexported fields }
func (*UpdateCurrentUserRequest) Descriptor
deprecated
func (*UpdateCurrentUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCurrentUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateCurrentUserRequest) GetGender ¶
func (x *UpdateCurrentUserRequest) GetGender() 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 UpdateUserRequest ¶
type UpdateUserRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` DepartmentId uint32 `protobuf:"varint,2,opt,name=department_id,json=departmentId,proto3" json:"department_id,omitempty"` JobIds []uint32 `protobuf:"varint,8,rep,packed,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` RoleIds []uint32 `protobuf:"varint,3,rep,packed,name=role_ids,json=roleIds,proto3" json:"role_ids,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Gender string `protobuf:"bytes,5,opt,name=gender,proto3" json:"gender,omitempty"` Phone string `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetDepartmentId ¶
func (x *UpdateUserRequest) GetDepartmentId() uint32
func (*UpdateUserRequest) GetEmail ¶
func (x *UpdateUserRequest) GetEmail() string
func (*UpdateUserRequest) GetGender ¶
func (x *UpdateUserRequest) GetGender() string
func (*UpdateUserRequest) GetId ¶
func (x *UpdateUserRequest) GetId() uint32
func (*UpdateUserRequest) GetJobIds ¶
func (x *UpdateUserRequest) GetJobIds() []uint32
func (*UpdateUserRequest) GetName ¶
func (x *UpdateUserRequest) GetName() string
func (*UpdateUserRequest) GetPhone ¶
func (x *UpdateUserRequest) GetPhone() string
func (*UpdateUserRequest) GetRoleIds ¶
func (x *UpdateUserRequest) GetRoleIds() []uint32
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 User ¶
type User struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` DepartmentId uint32 `protobuf:"varint,2,opt,name=department_id,json=departmentId,proto3" json:"department_id,omitempty"` RoleId uint32 `protobuf:"varint,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` Gender string `protobuf:"bytes,6,opt,name=gender,proto3" json:"gender,omitempty"` Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone,omitempty"` Avatar string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"` Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email,omitempty"` Status *bool `protobuf:"varint,10,opt,name=status,proto3,oneof" json:"status,omitempty"` Disabled *string `protobuf:"bytes,11,opt,name=disabled,proto3,oneof" json:"disabled,omitempty"` LastLogin *uint32 `protobuf:"varint,12,opt,name=last_login,json=lastLogin,proto3,oneof" json:"last_login,omitempty"` CreatedAt uint32 `protobuf:"varint,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt uint32 `protobuf:"varint,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Department *User_Department `protobuf:"bytes,15,opt,name=department,proto3" json:"department,omitempty"` Role *User_Role `protobuf:"bytes,16,opt,name=role,proto3" json:"role,omitempty"` Roles []*User_Role `protobuf:"bytes,17,rep,name=roles,proto3" json:"roles,omitempty"` Jobs []*User_Job `protobuf:"bytes,18,rep,name=jobs,proto3" json:"jobs,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (*User) GetDepartment ¶
func (x *User) GetDepartment() *User_Department
func (*User) GetDepartmentId ¶
func (*User) GetDisabled ¶
func (*User) GetLastLogin ¶
func (*User) GetNickname ¶
func (*User) GetUpdatedAt ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶
Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*User) ValidateAll ¶
ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.
type UserLoginReply ¶
type UserLoginReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*UserLoginReply) Descriptor
deprecated
func (*UserLoginReply) Descriptor() ([]byte, []int)
Deprecated: Use UserLoginReply.ProtoReflect.Descriptor instead.
func (*UserLoginReply) GetToken ¶
func (x *UserLoginReply) GetToken() string
func (*UserLoginReply) ProtoMessage ¶
func (*UserLoginReply) ProtoMessage()
func (*UserLoginReply) ProtoReflect ¶
func (x *UserLoginReply) ProtoReflect() protoreflect.Message
func (*UserLoginReply) Reset ¶
func (x *UserLoginReply) Reset()
func (*UserLoginReply) String ¶
func (x *UserLoginReply) String() string
func (*UserLoginReply) Validate ¶
func (m *UserLoginReply) Validate() error
Validate checks the field values on UserLoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserLoginReply) ValidateAll ¶
func (m *UserLoginReply) ValidateAll() error
ValidateAll checks the field values on UserLoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserLoginReplyMultiError, or nil if none found.
type UserLoginReplyMultiError ¶
type UserLoginReplyMultiError []error
UserLoginReplyMultiError is an error wrapping multiple validation errors returned by UserLoginReply.ValidateAll() if the designated constraints aren't met.
func (UserLoginReplyMultiError) AllErrors ¶
func (m UserLoginReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserLoginReplyMultiError) Error ¶
func (m UserLoginReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserLoginReplyValidationError ¶
type UserLoginReplyValidationError struct {
// contains filtered or unexported fields
}
UserLoginReplyValidationError is the validation error returned by UserLoginReply.Validate if the designated constraints aren't met.
func (UserLoginReplyValidationError) Cause ¶
func (e UserLoginReplyValidationError) Cause() error
Cause function returns cause value.
func (UserLoginReplyValidationError) Error ¶
func (e UserLoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UserLoginReplyValidationError) ErrorName ¶
func (e UserLoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UserLoginReplyValidationError) Field ¶
func (e UserLoginReplyValidationError) Field() string
Field function returns field value.
func (UserLoginReplyValidationError) Key ¶
func (e UserLoginReplyValidationError) Key() bool
Key function returns key value.
func (UserLoginReplyValidationError) Reason ¶
func (e UserLoginReplyValidationError) Reason() string
Reason function returns reason value.
type UserLoginRequest ¶
type UserLoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` CaptchaId string `protobuf:"bytes,3,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` Captcha string `protobuf:"bytes,4,opt,name=captcha,proto3" json:"captcha,omitempty"` // contains filtered or unexported fields }
UserLoginRequest 用户登录
func (*UserLoginRequest) Descriptor
deprecated
func (*UserLoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserLoginRequest.ProtoReflect.Descriptor instead.
func (*UserLoginRequest) GetCaptcha ¶
func (x *UserLoginRequest) GetCaptcha() string
func (*UserLoginRequest) GetCaptchaId ¶
func (x *UserLoginRequest) GetCaptchaId() string
func (*UserLoginRequest) GetPassword ¶
func (x *UserLoginRequest) GetPassword() string
func (*UserLoginRequest) GetUsername ¶
func (x *UserLoginRequest) GetUsername() string
func (*UserLoginRequest) ProtoMessage ¶
func (*UserLoginRequest) ProtoMessage()
func (*UserLoginRequest) ProtoReflect ¶
func (x *UserLoginRequest) ProtoReflect() protoreflect.Message
func (*UserLoginRequest) Reset ¶
func (x *UserLoginRequest) Reset()
func (*UserLoginRequest) String ¶
func (x *UserLoginRequest) String() string
func (*UserLoginRequest) Validate ¶
func (m *UserLoginRequest) Validate() error
Validate checks the field values on UserLoginRequest 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 (*UserLoginRequest) ValidateAll ¶
func (m *UserLoginRequest) ValidateAll() error
ValidateAll checks the field values on UserLoginRequest 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 UserLoginRequestMultiError, or nil if none found.
type UserLoginRequestMultiError ¶
type UserLoginRequestMultiError []error
UserLoginRequestMultiError is an error wrapping multiple validation errors returned by UserLoginRequest.ValidateAll() if the designated constraints aren't met.
func (UserLoginRequestMultiError) AllErrors ¶
func (m UserLoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserLoginRequestMultiError) Error ¶
func (m UserLoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserLoginRequestValidationError ¶
type UserLoginRequestValidationError struct {
// contains filtered or unexported fields
}
UserLoginRequestValidationError is the validation error returned by UserLoginRequest.Validate if the designated constraints aren't met.
func (UserLoginRequestValidationError) Cause ¶
func (e UserLoginRequestValidationError) Cause() error
Cause function returns cause value.
func (UserLoginRequestValidationError) Error ¶
func (e UserLoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserLoginRequestValidationError) ErrorName ¶
func (e UserLoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserLoginRequestValidationError) Field ¶
func (e UserLoginRequestValidationError) Field() string
Field function returns field value.
func (UserLoginRequestValidationError) Key ¶
func (e UserLoginRequestValidationError) Key() bool
Key function returns key value.
func (UserLoginRequestValidationError) Reason ¶
func (e UserLoginRequestValidationError) Reason() string
Reason function returns reason value.
type UserMultiError ¶
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserRefreshTokenReply ¶
type UserRefreshTokenReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*UserRefreshTokenReply) Descriptor
deprecated
func (*UserRefreshTokenReply) Descriptor() ([]byte, []int)
Deprecated: Use UserRefreshTokenReply.ProtoReflect.Descriptor instead.
func (*UserRefreshTokenReply) GetToken ¶
func (x *UserRefreshTokenReply) GetToken() string
func (*UserRefreshTokenReply) ProtoMessage ¶
func (*UserRefreshTokenReply) ProtoMessage()
func (*UserRefreshTokenReply) ProtoReflect ¶
func (x *UserRefreshTokenReply) ProtoReflect() protoreflect.Message
func (*UserRefreshTokenReply) Reset ¶
func (x *UserRefreshTokenReply) Reset()
func (*UserRefreshTokenReply) String ¶
func (x *UserRefreshTokenReply) String() string
func (*UserRefreshTokenReply) Validate ¶
func (m *UserRefreshTokenReply) Validate() error
Validate checks the field values on UserRefreshTokenReply 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 (*UserRefreshTokenReply) ValidateAll ¶
func (m *UserRefreshTokenReply) ValidateAll() error
ValidateAll checks the field values on UserRefreshTokenReply 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 UserRefreshTokenReplyMultiError, or nil if none found.
type UserRefreshTokenReplyMultiError ¶
type UserRefreshTokenReplyMultiError []error
UserRefreshTokenReplyMultiError is an error wrapping multiple validation errors returned by UserRefreshTokenReply.ValidateAll() if the designated constraints aren't met.
func (UserRefreshTokenReplyMultiError) AllErrors ¶
func (m UserRefreshTokenReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserRefreshTokenReplyMultiError) Error ¶
func (m UserRefreshTokenReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserRefreshTokenReplyValidationError ¶
type UserRefreshTokenReplyValidationError struct {
// contains filtered or unexported fields
}
UserRefreshTokenReplyValidationError is the validation error returned by UserRefreshTokenReply.Validate if the designated constraints aren't met.
func (UserRefreshTokenReplyValidationError) Cause ¶
func (e UserRefreshTokenReplyValidationError) Cause() error
Cause function returns cause value.
func (UserRefreshTokenReplyValidationError) Error ¶
func (e UserRefreshTokenReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UserRefreshTokenReplyValidationError) ErrorName ¶
func (e UserRefreshTokenReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UserRefreshTokenReplyValidationError) Field ¶
func (e UserRefreshTokenReplyValidationError) Field() string
Field function returns field value.
func (UserRefreshTokenReplyValidationError) Key ¶
func (e UserRefreshTokenReplyValidationError) Key() bool
Key function returns key value.
func (UserRefreshTokenReplyValidationError) Reason ¶
func (e UserRefreshTokenReplyValidationError) Reason() string
Reason function returns reason value.
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.
type User_Department ¶
type User_Department struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*User_Department) Descriptor
deprecated
func (*User_Department) Descriptor() ([]byte, []int)
Deprecated: Use User_Department.ProtoReflect.Descriptor instead.
func (*User_Department) GetId ¶
func (x *User_Department) GetId() uint32
func (*User_Department) GetKeyword ¶
func (x *User_Department) GetKeyword() string
func (*User_Department) GetName ¶
func (x *User_Department) GetName() string
func (*User_Department) ProtoMessage ¶
func (*User_Department) ProtoMessage()
func (*User_Department) ProtoReflect ¶
func (x *User_Department) ProtoReflect() protoreflect.Message
func (*User_Department) Reset ¶
func (x *User_Department) Reset()
func (*User_Department) String ¶
func (x *User_Department) String() string
func (*User_Department) Validate ¶
func (m *User_Department) Validate() error
Validate checks the field values on User_Department with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*User_Department) ValidateAll ¶
func (m *User_Department) ValidateAll() error
ValidateAll checks the field values on User_Department 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 User_DepartmentMultiError, or nil if none found.
type User_DepartmentMultiError ¶
type User_DepartmentMultiError []error
User_DepartmentMultiError is an error wrapping multiple validation errors returned by User_Department.ValidateAll() if the designated constraints aren't met.
func (User_DepartmentMultiError) AllErrors ¶
func (m User_DepartmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (User_DepartmentMultiError) Error ¶
func (m User_DepartmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type User_DepartmentValidationError ¶
type User_DepartmentValidationError struct {
// contains filtered or unexported fields
}
User_DepartmentValidationError is the validation error returned by User_Department.Validate if the designated constraints aren't met.
func (User_DepartmentValidationError) Cause ¶
func (e User_DepartmentValidationError) Cause() error
Cause function returns cause value.
func (User_DepartmentValidationError) Error ¶
func (e User_DepartmentValidationError) Error() string
Error satisfies the builtin error interface
func (User_DepartmentValidationError) ErrorName ¶
func (e User_DepartmentValidationError) ErrorName() string
ErrorName returns error name.
func (User_DepartmentValidationError) Field ¶
func (e User_DepartmentValidationError) Field() string
Field function returns field value.
func (User_DepartmentValidationError) Key ¶
func (e User_DepartmentValidationError) Key() bool
Key function returns key value.
func (User_DepartmentValidationError) Reason ¶
func (e User_DepartmentValidationError) Reason() string
Reason function returns reason value.
type User_Job ¶
type User_Job struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*User_Job) Descriptor
deprecated
func (*User_Job) GetKeyword ¶
func (*User_Job) ProtoMessage ¶
func (*User_Job) ProtoMessage()
func (*User_Job) ProtoReflect ¶
func (x *User_Job) ProtoReflect() protoreflect.Message
func (*User_Job) Validate ¶
Validate checks the field values on User_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 (*User_Job) ValidateAll ¶
ValidateAll checks the field values on User_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 User_JobMultiError, or nil if none found.
type User_JobMultiError ¶
type User_JobMultiError []error
User_JobMultiError is an error wrapping multiple validation errors returned by User_Job.ValidateAll() if the designated constraints aren't met.
func (User_JobMultiError) AllErrors ¶
func (m User_JobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (User_JobMultiError) Error ¶
func (m User_JobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type User_JobValidationError ¶
type User_JobValidationError struct {
// contains filtered or unexported fields
}
User_JobValidationError is the validation error returned by User_Job.Validate if the designated constraints aren't met.
func (User_JobValidationError) Cause ¶
func (e User_JobValidationError) Cause() error
Cause function returns cause value.
func (User_JobValidationError) Error ¶
func (e User_JobValidationError) Error() string
Error satisfies the builtin error interface
func (User_JobValidationError) ErrorName ¶
func (e User_JobValidationError) ErrorName() string
ErrorName returns error name.
func (User_JobValidationError) Field ¶
func (e User_JobValidationError) Field() string
Field function returns field value.
func (User_JobValidationError) Key ¶
func (e User_JobValidationError) Key() bool
Key function returns key value.
func (User_JobValidationError) Reason ¶
func (e User_JobValidationError) Reason() string
Reason function returns reason value.
type User_Role ¶
type User_Role struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*User_Role) Descriptor
deprecated
func (*User_Role) GetKeyword ¶
func (*User_Role) ProtoMessage ¶
func (*User_Role) ProtoMessage()
func (*User_Role) ProtoReflect ¶
func (x *User_Role) ProtoReflect() protoreflect.Message
func (*User_Role) Validate ¶
Validate checks the field values on User_Role with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*User_Role) ValidateAll ¶
ValidateAll checks the field values on User_Role 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 User_RoleMultiError, or nil if none found.
type User_RoleMultiError ¶
type User_RoleMultiError []error
User_RoleMultiError is an error wrapping multiple validation errors returned by User_Role.ValidateAll() if the designated constraints aren't met.
func (User_RoleMultiError) AllErrors ¶
func (m User_RoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (User_RoleMultiError) Error ¶
func (m User_RoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type User_RoleValidationError ¶
type User_RoleValidationError struct {
// contains filtered or unexported fields
}
User_RoleValidationError is the validation error returned by User_Role.Validate if the designated constraints aren't met.
func (User_RoleValidationError) Cause ¶
func (e User_RoleValidationError) Cause() error
Cause function returns cause value.
func (User_RoleValidationError) Error ¶
func (e User_RoleValidationError) Error() string
Error satisfies the builtin error interface
func (User_RoleValidationError) ErrorName ¶
func (e User_RoleValidationError) ErrorName() string
ErrorName returns error name.
func (User_RoleValidationError) Field ¶
func (e User_RoleValidationError) Field() string
Field function returns field value.
func (User_RoleValidationError) Key ¶
func (e User_RoleValidationError) Key() bool
Key function returns key value.
func (User_RoleValidationError) Reason ¶
func (e User_RoleValidationError) Reason() string
Reason function returns reason value.