Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type CreatePermissionRequest
- func (*CreatePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePermissionRequest) GetMemo() string
- func (x *CreatePermissionRequest) GetMethod() string
- func (x *CreatePermissionRequest) GetName() string
- func (x *CreatePermissionRequest) GetParentId() uint64
- func (x *CreatePermissionRequest) GetPath() string
- func (*CreatePermissionRequest) ProtoMessage()
- func (x *CreatePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePermissionRequest) Reset()
- func (x *CreatePermissionRequest) String() string
- func (m *CreatePermissionRequest) Validate() error
- func (m *CreatePermissionRequest) ValidateAll() error
- type CreatePermissionRequestMultiError
- type CreatePermissionRequestValidationError
- func (e CreatePermissionRequestValidationError) Cause() error
- func (e CreatePermissionRequestValidationError) Error() string
- func (e CreatePermissionRequestValidationError) ErrorName() string
- func (e CreatePermissionRequestValidationError) Field() string
- func (e CreatePermissionRequestValidationError) Key() bool
- func (e CreatePermissionRequestValidationError) Reason() string
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetMemo() string
- func (x *CreateRoleRequest) GetName() string
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- func (m *CreateRoleRequest) Validate() error
- func (m *CreateRoleRequest) ValidateAll() error
- type CreateRoleRequestMultiError
- type CreateRoleRequestValidationError
- func (e CreateRoleRequestValidationError) Cause() error
- func (e CreateRoleRequestValidationError) Error() string
- func (e CreateRoleRequestValidationError) ErrorName() string
- func (e CreateRoleRequestValidationError) Field() string
- func (e CreateRoleRequestValidationError) Key() bool
- func (e CreateRoleRequestValidationError) Reason() string
- type CreateTokenRequest
- func (*CreateTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenRequest) GetEmail() string
- func (x *CreateTokenRequest) GetPassword() string
- func (*CreateTokenRequest) ProtoMessage()
- func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTokenRequest) Reset()
- func (x *CreateTokenRequest) String() string
- func (m *CreateTokenRequest) Validate() error
- func (m *CreateTokenRequest) ValidateAll() error
- type CreateTokenRequestMultiError
- type CreateTokenRequestValidationError
- func (e CreateTokenRequestValidationError) Cause() error
- func (e CreateTokenRequestValidationError) Error() string
- func (e CreateTokenRequestValidationError) ErrorName() string
- func (e CreateTokenRequestValidationError) Field() string
- func (e CreateTokenRequestValidationError) Key() bool
- func (e CreateTokenRequestValidationError) Reason() string
- type CreateTokenResponse
- func (*CreateTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenResponse) GetToken() string
- func (*CreateTokenResponse) ProtoMessage()
- func (x *CreateTokenResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTokenResponse) Reset()
- func (x *CreateTokenResponse) String() string
- func (m *CreateTokenResponse) Validate() error
- func (m *CreateTokenResponse) ValidateAll() error
- type CreateTokenResponseMultiError
- type CreateTokenResponseValidationError
- func (e CreateTokenResponseValidationError) Cause() error
- func (e CreateTokenResponseValidationError) Error() string
- func (e CreateTokenResponseValidationError) ErrorName() string
- func (e CreateTokenResponseValidationError) Field() string
- func (e CreateTokenResponseValidationError) Key() bool
- func (e CreateTokenResponseValidationError) Reason() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetEmail() string
- func (x *CreateUserRequest) GetName() string
- func (x *CreateUserRequest) GetPassword() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (m *CreateUserRequest) Validate() error
- func (m *CreateUserRequest) ValidateAll() error
- type CreateUserRequestMultiError
- type CreateUserRequestValidationError
- func (e CreateUserRequestValidationError) Cause() error
- func (e CreateUserRequestValidationError) Error() string
- func (e CreateUserRequestValidationError) ErrorName() string
- func (e CreateUserRequestValidationError) Field() string
- func (e CreateUserRequestValidationError) Key() bool
- func (e CreateUserRequestValidationError) Reason() string
- type DeletePermissionRequest
- func (*DeletePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePermissionRequest) GetId() uint64
- func (*DeletePermissionRequest) ProtoMessage()
- func (x *DeletePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePermissionRequest) Reset()
- func (x *DeletePermissionRequest) String() string
- func (m *DeletePermissionRequest) Validate() error
- func (m *DeletePermissionRequest) ValidateAll() error
- type DeletePermissionRequestMultiError
- type DeletePermissionRequestValidationError
- func (e DeletePermissionRequestValidationError) Cause() error
- func (e DeletePermissionRequestValidationError) Error() string
- func (e DeletePermissionRequestValidationError) ErrorName() string
- func (e DeletePermissionRequestValidationError) Field() string
- func (e DeletePermissionRequestValidationError) Key() bool
- func (e DeletePermissionRequestValidationError) Reason() string
- type DeleteRoleRequest
- func (*DeleteRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleRequest) GetId() uint64
- func (*DeleteRoleRequest) ProtoMessage()
- func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleRequest) Reset()
- func (x *DeleteRoleRequest) String() string
- func (m *DeleteRoleRequest) Validate() error
- func (m *DeleteRoleRequest) ValidateAll() error
- type DeleteRoleRequestMultiError
- type DeleteRoleRequestValidationError
- func (e DeleteRoleRequestValidationError) Cause() error
- func (e DeleteRoleRequestValidationError) Error() string
- func (e DeleteRoleRequestValidationError) ErrorName() string
- func (e DeleteRoleRequestValidationError) Field() string
- func (e DeleteRoleRequestValidationError) Key() bool
- func (e DeleteRoleRequestValidationError) Reason() string
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRequest) GetId() uint64
- 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 DeleteUserRoleRequest
- func (*DeleteUserRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRoleRequest) GetRoleIds() []uint64
- func (x *DeleteUserRoleRequest) GetUserId() uint64
- func (*DeleteUserRoleRequest) ProtoMessage()
- func (x *DeleteUserRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRoleRequest) Reset()
- func (x *DeleteUserRoleRequest) String() string
- func (m *DeleteUserRoleRequest) Validate() error
- func (m *DeleteUserRoleRequest) ValidateAll() error
- type DeleteUserRoleRequestMultiError
- type DeleteUserRoleRequestValidationError
- func (e DeleteUserRoleRequestValidationError) Cause() error
- func (e DeleteUserRoleRequestValidationError) Error() string
- func (e DeleteUserRoleRequestValidationError) ErrorName() string
- func (e DeleteUserRoleRequestValidationError) Field() string
- func (e DeleteUserRoleRequestValidationError) Key() bool
- func (e DeleteUserRoleRequestValidationError) Reason() string
- type DeleteUserRoleResponse
- func (*DeleteUserRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRoleResponse) GetOk() bool
- func (*DeleteUserRoleResponse) ProtoMessage()
- func (x *DeleteUserRoleResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRoleResponse) Reset()
- func (x *DeleteUserRoleResponse) String() string
- func (m *DeleteUserRoleResponse) Validate() error
- func (m *DeleteUserRoleResponse) ValidateAll() error
- type DeleteUserRoleResponseMultiError
- type DeleteUserRoleResponseValidationError
- func (e DeleteUserRoleResponseValidationError) Cause() error
- func (e DeleteUserRoleResponseValidationError) Error() string
- func (e DeleteUserRoleResponseValidationError) ErrorName() string
- func (e DeleteUserRoleResponseValidationError) Field() string
- func (e DeleteUserRoleResponseValidationError) Key() bool
- func (e DeleteUserRoleResponseValidationError) Reason() string
- type GetPermissionRequest
- func (*GetPermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPermissionRequest) GetId() uint64
- func (*GetPermissionRequest) ProtoMessage()
- func (x *GetPermissionRequest) ProtoReflect() protoreflect.Message
- func (x *GetPermissionRequest) Reset()
- func (x *GetPermissionRequest) String() string
- func (m *GetPermissionRequest) Validate() error
- func (m *GetPermissionRequest) ValidateAll() error
- type GetPermissionRequestMultiError
- type GetPermissionRequestValidationError
- func (e GetPermissionRequestValidationError) Cause() error
- func (e GetPermissionRequestValidationError) Error() string
- func (e GetPermissionRequestValidationError) ErrorName() string
- func (e GetPermissionRequestValidationError) Field() string
- func (e GetPermissionRequestValidationError) Key() bool
- func (e GetPermissionRequestValidationError) Reason() string
- type GetRoleRequest
- func (*GetRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleRequest) GetId() uint64
- func (*GetRoleRequest) ProtoMessage()
- func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetRoleRequest) Reset()
- func (x *GetRoleRequest) String() string
- func (m *GetRoleRequest) Validate() error
- func (m *GetRoleRequest) ValidateAll() error
- type GetRoleRequestMultiError
- type GetRoleRequestValidationError
- func (e GetRoleRequestValidationError) Cause() error
- func (e GetRoleRequestValidationError) Error() string
- func (e GetRoleRequestValidationError) ErrorName() string
- func (e GetRoleRequestValidationError) Field() string
- func (e GetRoleRequestValidationError) Key() bool
- func (e GetRoleRequestValidationError) Reason() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetId() uint64
- 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 GetUserRoleRequest
- func (*GetUserRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRoleRequest) GetUserId() uint64
- func (*GetUserRoleRequest) ProtoMessage()
- func (x *GetUserRoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRoleRequest) Reset()
- func (x *GetUserRoleRequest) String() string
- func (m *GetUserRoleRequest) Validate() error
- func (m *GetUserRoleRequest) ValidateAll() error
- type GetUserRoleRequestMultiError
- type GetUserRoleRequestValidationError
- func (e GetUserRoleRequestValidationError) Cause() error
- func (e GetUserRoleRequestValidationError) Error() string
- func (e GetUserRoleRequestValidationError) ErrorName() string
- func (e GetUserRoleRequestValidationError) Field() string
- func (e GetUserRoleRequestValidationError) Key() bool
- func (e GetUserRoleRequestValidationError) Reason() string
- type ListPermissionRequest
- func (*ListPermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPermissionRequest) GetPage() int64
- func (x *ListPermissionRequest) GetPageSize() int64
- func (*ListPermissionRequest) ProtoMessage()
- func (x *ListPermissionRequest) ProtoReflect() protoreflect.Message
- func (x *ListPermissionRequest) Reset()
- func (x *ListPermissionRequest) String() string
- func (m *ListPermissionRequest) Validate() error
- func (m *ListPermissionRequest) ValidateAll() error
- type ListPermissionRequestMultiError
- type ListPermissionRequestValidationError
- func (e ListPermissionRequestValidationError) Cause() error
- func (e ListPermissionRequestValidationError) Error() string
- func (e ListPermissionRequestValidationError) ErrorName() string
- func (e ListPermissionRequestValidationError) Field() string
- func (e ListPermissionRequestValidationError) Key() bool
- func (e ListPermissionRequestValidationError) Reason() string
- type ListPermissionResponse
- func (*ListPermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPermissionResponse) GetPermissions() []*PermissionInfoResponse
- func (x *ListPermissionResponse) GetTotal() int64
- func (*ListPermissionResponse) ProtoMessage()
- func (x *ListPermissionResponse) ProtoReflect() protoreflect.Message
- func (x *ListPermissionResponse) Reset()
- func (x *ListPermissionResponse) String() string
- func (m *ListPermissionResponse) Validate() error
- func (m *ListPermissionResponse) ValidateAll() error
- type ListPermissionResponseMultiError
- type ListPermissionResponseValidationError
- func (e ListPermissionResponseValidationError) Cause() error
- func (e ListPermissionResponseValidationError) Error() string
- func (e ListPermissionResponseValidationError) ErrorName() string
- func (e ListPermissionResponseValidationError) Field() string
- func (e ListPermissionResponseValidationError) Key() bool
- func (e ListPermissionResponseValidationError) Reason() string
- type ListRoleRequest
- func (*ListRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleRequest) GetPage() int64
- func (x *ListRoleRequest) GetPageSize() int64
- func (*ListRoleRequest) ProtoMessage()
- func (x *ListRoleRequest) ProtoReflect() protoreflect.Message
- func (x *ListRoleRequest) Reset()
- func (x *ListRoleRequest) String() string
- func (m *ListRoleRequest) Validate() error
- func (m *ListRoleRequest) ValidateAll() error
- type ListRoleRequestMultiError
- type ListRoleRequestValidationError
- func (e ListRoleRequestValidationError) Cause() error
- func (e ListRoleRequestValidationError) Error() string
- func (e ListRoleRequestValidationError) ErrorName() string
- func (e ListRoleRequestValidationError) Field() string
- func (e ListRoleRequestValidationError) Key() bool
- func (e ListRoleRequestValidationError) Reason() string
- type ListRoleResponse
- func (*ListRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleResponse) GetRoles() []*RoleInfoResponse
- func (x *ListRoleResponse) GetTotal() int64
- func (*ListRoleResponse) ProtoMessage()
- func (x *ListRoleResponse) ProtoReflect() protoreflect.Message
- func (x *ListRoleResponse) Reset()
- func (x *ListRoleResponse) String() string
- func (m *ListRoleResponse) Validate() error
- func (m *ListRoleResponse) ValidateAll() error
- type ListRoleResponseMultiError
- type ListRoleResponseValidationError
- func (e ListRoleResponseValidationError) Cause() error
- func (e ListRoleResponseValidationError) Error() string
- func (e ListRoleResponseValidationError) ErrorName() string
- func (e ListRoleResponseValidationError) Field() string
- func (e ListRoleResponseValidationError) Key() bool
- func (e ListRoleResponseValidationError) Reason() string
- type ListUserRequest
- func (*ListUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserRequest) GetPage() int64
- func (x *ListUserRequest) GetPageSize() int64
- func (*ListUserRequest) ProtoMessage()
- func (x *ListUserRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserRequest) Reset()
- func (x *ListUserRequest) String() string
- func (m *ListUserRequest) Validate() error
- func (m *ListUserRequest) ValidateAll() error
- type ListUserRequestMultiError
- type ListUserRequestValidationError
- func (e ListUserRequestValidationError) Cause() error
- func (e ListUserRequestValidationError) Error() string
- func (e ListUserRequestValidationError) ErrorName() string
- func (e ListUserRequestValidationError) Field() string
- func (e ListUserRequestValidationError) Key() bool
- func (e ListUserRequestValidationError) Reason() string
- type ListUserResponse
- func (*ListUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserResponse) GetTotal() int64
- func (x *ListUserResponse) GetUsers() []*UserInfoResponse
- func (*ListUserResponse) ProtoMessage()
- func (x *ListUserResponse) ProtoReflect() protoreflect.Message
- func (x *ListUserResponse) Reset()
- func (x *ListUserResponse) String() string
- func (m *ListUserResponse) Validate() error
- func (m *ListUserResponse) ValidateAll() error
- type ListUserResponseMultiError
- type ListUserResponseValidationError
- func (e ListUserResponseValidationError) Cause() error
- func (e ListUserResponseValidationError) Error() string
- func (e ListUserResponseValidationError) ErrorName() string
- func (e ListUserResponseValidationError) Field() string
- func (e ListUserResponseValidationError) Key() bool
- func (e ListUserResponseValidationError) Reason() string
- type PermissionInfoResponse
- func (*PermissionInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionInfoResponse) GetCreatedAt() string
- func (x *PermissionInfoResponse) GetId() uint64
- func (x *PermissionInfoResponse) GetMemo() string
- func (x *PermissionInfoResponse) GetMethod() string
- func (x *PermissionInfoResponse) GetName() string
- func (x *PermissionInfoResponse) GetParentId() uint64
- func (x *PermissionInfoResponse) GetParentIds() string
- func (x *PermissionInfoResponse) GetPath() string
- func (x *PermissionInfoResponse) GetUpdatedAt() string
- func (*PermissionInfoResponse) ProtoMessage()
- func (x *PermissionInfoResponse) ProtoReflect() protoreflect.Message
- func (x *PermissionInfoResponse) Reset()
- func (x *PermissionInfoResponse) String() string
- func (m *PermissionInfoResponse) Validate() error
- func (m *PermissionInfoResponse) ValidateAll() error
- type PermissionInfoResponseMultiError
- type PermissionInfoResponseValidationError
- func (e PermissionInfoResponseValidationError) Cause() error
- func (e PermissionInfoResponseValidationError) Error() string
- func (e PermissionInfoResponseValidationError) ErrorName() string
- func (e PermissionInfoResponseValidationError) Field() string
- func (e PermissionInfoResponseValidationError) Key() bool
- func (e PermissionInfoResponseValidationError) Reason() string
- type RoleInfoResponse
- func (*RoleInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RoleInfoResponse) GetCreatedAt() string
- func (x *RoleInfoResponse) GetId() uint64
- func (x *RoleInfoResponse) GetMemo() string
- func (x *RoleInfoResponse) GetName() string
- func (x *RoleInfoResponse) GetUpdatedAt() string
- func (*RoleInfoResponse) ProtoMessage()
- func (x *RoleInfoResponse) ProtoReflect() protoreflect.Message
- func (x *RoleInfoResponse) Reset()
- func (x *RoleInfoResponse) String() string
- func (m *RoleInfoResponse) Validate() error
- func (m *RoleInfoResponse) ValidateAll() error
- type RoleInfoResponseMultiError
- type RoleInfoResponseValidationError
- func (e RoleInfoResponseValidationError) Cause() error
- func (e RoleInfoResponseValidationError) Error() string
- func (e RoleInfoResponseValidationError) ErrorName() string
- func (e RoleInfoResponseValidationError) Field() string
- func (e RoleInfoResponseValidationError) Key() bool
- func (e RoleInfoResponseValidationError) Reason() string
- type SetUserRoleRequest
- func (*SetUserRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetUserRoleRequest) GetRoleIds() []uint64
- func (x *SetUserRoleRequest) GetUserId() uint64
- func (*SetUserRoleRequest) ProtoMessage()
- func (x *SetUserRoleRequest) ProtoReflect() protoreflect.Message
- func (x *SetUserRoleRequest) Reset()
- func (x *SetUserRoleRequest) String() string
- func (m *SetUserRoleRequest) Validate() error
- func (m *SetUserRoleRequest) ValidateAll() error
- type SetUserRoleRequestMultiError
- type SetUserRoleRequestValidationError
- func (e SetUserRoleRequestValidationError) Cause() error
- func (e SetUserRoleRequestValidationError) Error() string
- func (e SetUserRoleRequestValidationError) ErrorName() string
- func (e SetUserRoleRequestValidationError) Field() string
- func (e SetUserRoleRequestValidationError) Key() bool
- func (e SetUserRoleRequestValidationError) Reason() string
- type SetUserRoleResponse
- func (*SetUserRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetUserRoleResponse) GetOk() bool
- func (*SetUserRoleResponse) ProtoMessage()
- func (x *SetUserRoleResponse) ProtoReflect() protoreflect.Message
- func (x *SetUserRoleResponse) Reset()
- func (x *SetUserRoleResponse) String() string
- func (m *SetUserRoleResponse) Validate() error
- func (m *SetUserRoleResponse) ValidateAll() error
- type SetUserRoleResponseMultiError
- type SetUserRoleResponseValidationError
- func (e SetUserRoleResponseValidationError) Cause() error
- func (e SetUserRoleResponseValidationError) Error() string
- func (e SetUserRoleResponseValidationError) ErrorName() string
- func (e SetUserRoleResponseValidationError) Field() string
- func (e SetUserRoleResponseValidationError) Key() bool
- func (e SetUserRoleResponseValidationError) Reason() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) CreatePermission(context.Context, *CreatePermissionRequest) (*PermissionInfoResponse, error)
- func (UnimplementedUserServer) CreateRole(context.Context, *CreateRoleRequest) (*RoleInfoResponse, error)
- func (UnimplementedUserServer) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
- func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserRequest) (*UserInfoResponse, error)
- func (UnimplementedUserServer) DeletePermission(context.Context, *DeletePermissionRequest) (*PermissionInfoResponse, error)
- func (UnimplementedUserServer) DeleteRole(context.Context, *DeleteRoleRequest) (*RoleInfoResponse, error)
- func (UnimplementedUserServer) DeleteUser(context.Context, *DeleteUserRequest) (*UserInfoResponse, error)
- func (UnimplementedUserServer) DeleteUserRole(context.Context, *DeleteUserRoleRequest) (*DeleteUserRoleResponse, error)
- func (UnimplementedUserServer) GetPermission(context.Context, *GetPermissionRequest) (*PermissionInfoResponse, error)
- func (UnimplementedUserServer) GetRole(context.Context, *GetRoleRequest) (*RoleInfoResponse, error)
- func (UnimplementedUserServer) GetUser(context.Context, *GetUserRequest) (*UserInfoResponse, error)
- func (UnimplementedUserServer) ListPermission(context.Context, *ListPermissionRequest) (*ListPermissionResponse, error)
- func (UnimplementedUserServer) ListRole(context.Context, *ListRoleRequest) (*ListRoleResponse, error)
- func (UnimplementedUserServer) ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error)
- func (UnimplementedUserServer) SetUserRole(context.Context, *SetUserRoleRequest) (*SetUserRoleResponse, error)
- func (UnimplementedUserServer) UpdatePermission(context.Context, *UpdatePermissionRequest) (*PermissionInfoResponse, error)
- func (UnimplementedUserServer) UpdateRole(context.Context, *UpdateRoleRequest) (*RoleInfoResponse, error)
- func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserRequest) (*UserInfoResponse, error)
- type UnsafeUserServer
- type UpdatePermissionRequest
- func (*UpdatePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePermissionRequest) GetId() uint64
- func (x *UpdatePermissionRequest) GetMemo() string
- func (x *UpdatePermissionRequest) GetMethod() string
- func (x *UpdatePermissionRequest) GetName() string
- func (x *UpdatePermissionRequest) GetParentId() uint64
- func (x *UpdatePermissionRequest) GetPath() string
- func (*UpdatePermissionRequest) ProtoMessage()
- func (x *UpdatePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePermissionRequest) Reset()
- func (x *UpdatePermissionRequest) String() string
- func (m *UpdatePermissionRequest) Validate() error
- func (m *UpdatePermissionRequest) ValidateAll() error
- type UpdatePermissionRequestMultiError
- type UpdatePermissionRequestValidationError
- func (e UpdatePermissionRequestValidationError) Cause() error
- func (e UpdatePermissionRequestValidationError) Error() string
- func (e UpdatePermissionRequestValidationError) ErrorName() string
- func (e UpdatePermissionRequestValidationError) Field() string
- func (e UpdatePermissionRequestValidationError) Key() bool
- func (e UpdatePermissionRequestValidationError) Reason() string
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetId() uint64
- func (x *UpdateRoleRequest) GetMemo() string
- func (x *UpdateRoleRequest) GetName() string
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- func (m *UpdateRoleRequest) Validate() error
- func (m *UpdateRoleRequest) ValidateAll() error
- type UpdateRoleRequestMultiError
- type UpdateRoleRequestValidationError
- func (e UpdateRoleRequestValidationError) Cause() error
- func (e UpdateRoleRequestValidationError) Error() string
- func (e UpdateRoleRequestValidationError) ErrorName() string
- func (e UpdateRoleRequestValidationError) Field() string
- func (e UpdateRoleRequestValidationError) Key() bool
- func (e UpdateRoleRequestValidationError) Reason() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetEmail() string
- func (x *UpdateUserRequest) GetId() uint64
- func (x *UpdateUserRequest) GetName() string
- func (x *UpdateUserRequest) GetPassword() string
- 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 UserClient
- type UserInfoResponse
- func (*UserInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoResponse) GetCreatedAt() string
- func (x *UserInfoResponse) GetEmail() string
- func (x *UserInfoResponse) GetId() uint64
- func (x *UserInfoResponse) GetName() string
- func (x *UserInfoResponse) GetPassword() string
- func (x *UserInfoResponse) GetUpdatedAt() string
- func (*UserInfoResponse) ProtoMessage()
- func (x *UserInfoResponse) ProtoReflect() protoreflect.Message
- func (x *UserInfoResponse) Reset()
- func (x *UserInfoResponse) String() string
- func (m *UserInfoResponse) Validate() error
- func (m *UserInfoResponse) ValidateAll() error
- type UserInfoResponseMultiError
- type UserInfoResponseValidationError
- func (e UserInfoResponseValidationError) Cause() error
- func (e UserInfoResponseValidationError) Error() string
- func (e UserInfoResponseValidationError) ErrorName() string
- func (e UserInfoResponseValidationError) Field() string
- func (e UserInfoResponseValidationError) Key() bool
- func (e UserInfoResponseValidationError) Reason() string
- type UserRoleResponse
- func (*UserRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserRoleResponse) GetRoles() []*RoleInfoResponse
- func (*UserRoleResponse) ProtoMessage()
- func (x *UserRoleResponse) ProtoReflect() protoreflect.Message
- func (x *UserRoleResponse) Reset()
- func (x *UserRoleResponse) String() string
- func (m *UserRoleResponse) Validate() error
- func (m *UserRoleResponse) ValidateAll() error
- type UserRoleResponseMultiError
- type UserRoleResponseValidationError
- func (e UserRoleResponseValidationError) Cause() error
- func (e UserRoleResponseValidationError) Error() string
- func (e UserRoleResponseValidationError) ErrorName() string
- func (e UserRoleResponseValidationError) Field() string
- func (e UserRoleResponseValidationError) Key() bool
- func (e UserRoleResponseValidationError) Reason() string
- type UserServer
Constants ¶
const ( User_CreateUser_FullMethodName = "/api.user.v1.User/CreateUser" User_UpdateUser_FullMethodName = "/api.user.v1.User/UpdateUser" User_DeleteUser_FullMethodName = "/api.user.v1.User/DeleteUser" User_GetUser_FullMethodName = "/api.user.v1.User/GetUser" User_ListUser_FullMethodName = "/api.user.v1.User/ListUser" User_CreateRole_FullMethodName = "/api.user.v1.User/CreateRole" User_UpdateRole_FullMethodName = "/api.user.v1.User/UpdateRole" User_DeleteRole_FullMethodName = "/api.user.v1.User/DeleteRole" User_GetRole_FullMethodName = "/api.user.v1.User/GetRole" User_ListRole_FullMethodName = "/api.user.v1.User/ListRole" User_CreatePermission_FullMethodName = "/api.user.v1.User/CreatePermission" User_UpdatePermission_FullMethodName = "/api.user.v1.User/UpdatePermission" User_DeletePermission_FullMethodName = "/api.user.v1.User/DeletePermission" User_GetPermission_FullMethodName = "/api.user.v1.User/GetPermission" User_ListPermission_FullMethodName = "/api.user.v1.User/ListPermission" User_SetUserRole_FullMethodName = "/api.user.v1.User/SetUserRole" User_DeleteUserRole_FullMethodName = "/api.user.v1.User/DeleteUserRole" User_CreateToken_FullMethodName = "/api.user.v1.User/CreateToken" )
Variables ¶
var File_v1_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.v1.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _User_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _User_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _User_DeleteUser_Handler, }, { MethodName: "GetUser", Handler: _User_GetUser_Handler, }, { MethodName: "ListUser", Handler: _User_ListUser_Handler, }, { MethodName: "CreateRole", Handler: _User_CreateRole_Handler, }, { MethodName: "UpdateRole", Handler: _User_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _User_DeleteRole_Handler, }, { MethodName: "GetRole", Handler: _User_GetRole_Handler, }, { MethodName: "ListRole", Handler: _User_ListRole_Handler, }, { MethodName: "CreatePermission", Handler: _User_CreatePermission_Handler, }, { MethodName: "UpdatePermission", Handler: _User_UpdatePermission_Handler, }, { MethodName: "DeletePermission", Handler: _User_DeletePermission_Handler, }, { MethodName: "GetPermission", Handler: _User_GetPermission_Handler, }, { MethodName: "ListPermission", Handler: _User_ListPermission_Handler, }, { MethodName: "SetUserRole", Handler: _User_SetUserRole_Handler, }, { MethodName: "DeleteUserRole", Handler: _User_DeleteUserRole_Handler, }, { MethodName: "CreateToken", Handler: _User_CreateToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type CreatePermissionRequest ¶
type CreatePermissionRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` ParentId uint64 `protobuf:"varint,5,opt,name=parentId,proto3" json:"parentId,omitempty"` // contains filtered or unexported fields }
CreatePermissionRequest 创建权限请求
func (*CreatePermissionRequest) Descriptor
deprecated
func (*CreatePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePermissionRequest.ProtoReflect.Descriptor instead.
func (*CreatePermissionRequest) GetMemo ¶
func (x *CreatePermissionRequest) GetMemo() string
func (*CreatePermissionRequest) GetMethod ¶
func (x *CreatePermissionRequest) GetMethod() string
func (*CreatePermissionRequest) GetName ¶
func (x *CreatePermissionRequest) GetName() string
func (*CreatePermissionRequest) GetParentId ¶
func (x *CreatePermissionRequest) GetParentId() uint64
func (*CreatePermissionRequest) GetPath ¶
func (x *CreatePermissionRequest) GetPath() string
func (*CreatePermissionRequest) ProtoMessage ¶
func (*CreatePermissionRequest) ProtoMessage()
func (*CreatePermissionRequest) ProtoReflect ¶
func (x *CreatePermissionRequest) ProtoReflect() protoreflect.Message
func (*CreatePermissionRequest) Reset ¶
func (x *CreatePermissionRequest) Reset()
func (*CreatePermissionRequest) String ¶
func (x *CreatePermissionRequest) String() string
func (*CreatePermissionRequest) Validate ¶
func (m *CreatePermissionRequest) Validate() error
Validate checks the field values on CreatePermissionRequest 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 (*CreatePermissionRequest) ValidateAll ¶
func (m *CreatePermissionRequest) ValidateAll() error
ValidateAll checks the field values on CreatePermissionRequest 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 CreatePermissionRequestMultiError, or nil if none found.
type CreatePermissionRequestMultiError ¶
type CreatePermissionRequestMultiError []error
CreatePermissionRequestMultiError is an error wrapping multiple validation errors returned by CreatePermissionRequest.ValidateAll() if the designated constraints aren't met.
func (CreatePermissionRequestMultiError) AllErrors ¶
func (m CreatePermissionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreatePermissionRequestMultiError) Error ¶
func (m CreatePermissionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreatePermissionRequestValidationError ¶
type CreatePermissionRequestValidationError struct {
// contains filtered or unexported fields
}
CreatePermissionRequestValidationError is the validation error returned by CreatePermissionRequest.Validate if the designated constraints aren't met.
func (CreatePermissionRequestValidationError) Cause ¶
func (e CreatePermissionRequestValidationError) Cause() error
Cause function returns cause value.
func (CreatePermissionRequestValidationError) Error ¶
func (e CreatePermissionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePermissionRequestValidationError) ErrorName ¶
func (e CreatePermissionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePermissionRequestValidationError) Field ¶
func (e CreatePermissionRequestValidationError) Field() string
Field function returns field value.
func (CreatePermissionRequestValidationError) Key ¶
func (e CreatePermissionRequestValidationError) Key() bool
Key function returns key value.
func (CreatePermissionRequestValidationError) Reason ¶
func (e CreatePermissionRequestValidationError) Reason() string
Reason function returns reason value.
type CreateRoleRequest ¶
type CreateRoleRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"` // contains filtered or unexported fields }
CreateRoleRequest 创建角色请求
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetMemo ¶
func (x *CreateRoleRequest) GetMemo() string
func (*CreateRoleRequest) GetName ¶
func (x *CreateRoleRequest) GetName() string
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
func (*CreateRoleRequest) Validate ¶
func (m *CreateRoleRequest) Validate() error
Validate checks the field values on CreateRoleRequest 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 (*CreateRoleRequest) ValidateAll ¶
func (m *CreateRoleRequest) ValidateAll() error
ValidateAll checks the field values on CreateRoleRequest 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 CreateRoleRequestMultiError, or nil if none found.
type CreateRoleRequestMultiError ¶
type CreateRoleRequestMultiError []error
CreateRoleRequestMultiError is an error wrapping multiple validation errors returned by CreateRoleRequest.ValidateAll() if the designated constraints aren't met.
func (CreateRoleRequestMultiError) AllErrors ¶
func (m CreateRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleRequestMultiError) Error ¶
func (m CreateRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleRequestValidationError ¶
type CreateRoleRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRoleRequestValidationError is the validation error returned by CreateRoleRequest.Validate if the designated constraints aren't met.
func (CreateRoleRequestValidationError) Cause ¶
func (e CreateRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleRequestValidationError) Error ¶
func (e CreateRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleRequestValidationError) ErrorName ¶
func (e CreateRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleRequestValidationError) Field ¶
func (e CreateRoleRequestValidationError) Field() string
Field function returns field value.
func (CreateRoleRequestValidationError) Key ¶
func (e CreateRoleRequestValidationError) Key() bool
Key function returns key value.
func (CreateRoleRequestValidationError) Reason ¶
func (e CreateRoleRequestValidationError) Reason() string
Reason function returns reason value.
type CreateTokenRequest ¶
type CreateTokenRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
CreateTokenRequest 创建TOKEN请求
func (*CreateTokenRequest) Descriptor
deprecated
func (*CreateTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTokenRequest.ProtoReflect.Descriptor instead.
func (*CreateTokenRequest) GetEmail ¶
func (x *CreateTokenRequest) GetEmail() string
func (*CreateTokenRequest) GetPassword ¶
func (x *CreateTokenRequest) GetPassword() string
func (*CreateTokenRequest) ProtoMessage ¶
func (*CreateTokenRequest) ProtoMessage()
func (*CreateTokenRequest) ProtoReflect ¶
func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message
func (*CreateTokenRequest) Reset ¶
func (x *CreateTokenRequest) Reset()
func (*CreateTokenRequest) String ¶
func (x *CreateTokenRequest) String() string
func (*CreateTokenRequest) Validate ¶
func (m *CreateTokenRequest) Validate() error
Validate checks the field values on CreateTokenRequest 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 (*CreateTokenRequest) ValidateAll ¶
func (m *CreateTokenRequest) ValidateAll() error
ValidateAll checks the field values on CreateTokenRequest 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 CreateTokenRequestMultiError, or nil if none found.
type CreateTokenRequestMultiError ¶
type CreateTokenRequestMultiError []error
CreateTokenRequestMultiError is an error wrapping multiple validation errors returned by CreateTokenRequest.ValidateAll() if the designated constraints aren't met.
func (CreateTokenRequestMultiError) AllErrors ¶
func (m CreateTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateTokenRequestMultiError) Error ¶
func (m CreateTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateTokenRequestValidationError ¶
type CreateTokenRequestValidationError struct {
// contains filtered or unexported fields
}
CreateTokenRequestValidationError is the validation error returned by CreateTokenRequest.Validate if the designated constraints aren't met.
func (CreateTokenRequestValidationError) Cause ¶
func (e CreateTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateTokenRequestValidationError) Error ¶
func (e CreateTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTokenRequestValidationError) ErrorName ¶
func (e CreateTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTokenRequestValidationError) Field ¶
func (e CreateTokenRequestValidationError) Field() string
Field function returns field value.
func (CreateTokenRequestValidationError) Key ¶
func (e CreateTokenRequestValidationError) Key() bool
Key function returns key value.
func (CreateTokenRequestValidationError) Reason ¶
func (e CreateTokenRequestValidationError) Reason() string
Reason function returns reason value.
type CreateTokenResponse ¶
type CreateTokenResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
CreateTokenResponse 创建TOKEN响应
func (*CreateTokenResponse) Descriptor
deprecated
func (*CreateTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTokenResponse.ProtoReflect.Descriptor instead.
func (*CreateTokenResponse) GetToken ¶
func (x *CreateTokenResponse) GetToken() string
func (*CreateTokenResponse) ProtoMessage ¶
func (*CreateTokenResponse) ProtoMessage()
func (*CreateTokenResponse) ProtoReflect ¶
func (x *CreateTokenResponse) ProtoReflect() protoreflect.Message
func (*CreateTokenResponse) Reset ¶
func (x *CreateTokenResponse) Reset()
func (*CreateTokenResponse) String ¶
func (x *CreateTokenResponse) String() string
func (*CreateTokenResponse) Validate ¶
func (m *CreateTokenResponse) Validate() error
Validate checks the field values on CreateTokenResponse 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 (*CreateTokenResponse) ValidateAll ¶
func (m *CreateTokenResponse) ValidateAll() error
ValidateAll checks the field values on CreateTokenResponse 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 CreateTokenResponseMultiError, or nil if none found.
type CreateTokenResponseMultiError ¶
type CreateTokenResponseMultiError []error
CreateTokenResponseMultiError is an error wrapping multiple validation errors returned by CreateTokenResponse.ValidateAll() if the designated constraints aren't met.
func (CreateTokenResponseMultiError) AllErrors ¶
func (m CreateTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateTokenResponseMultiError) Error ¶
func (m CreateTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateTokenResponseValidationError ¶
type CreateTokenResponseValidationError struct {
// contains filtered or unexported fields
}
CreateTokenResponseValidationError is the validation error returned by CreateTokenResponse.Validate if the designated constraints aren't met.
func (CreateTokenResponseValidationError) Cause ¶
func (e CreateTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateTokenResponseValidationError) Error ¶
func (e CreateTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTokenResponseValidationError) ErrorName ¶
func (e CreateTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTokenResponseValidationError) Field ¶
func (e CreateTokenResponseValidationError) Field() string
Field function returns field value.
func (CreateTokenResponseValidationError) Key ¶
func (e CreateTokenResponseValidationError) Key() bool
Key function returns key value.
func (CreateTokenResponseValidationError) Reason ¶
func (e CreateTokenResponseValidationError) Reason() string
Reason function returns reason value.
type CreateUserRequest ¶
type CreateUserRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
CreateUserRequest 创建用户请求
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetEmail ¶
func (x *CreateUserRequest) GetEmail() string
func (*CreateUserRequest) GetName ¶
func (x *CreateUserRequest) GetName() string
func (*CreateUserRequest) GetPassword ¶
func (x *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
func (*CreateUserRequest) Validate ¶
func (m *CreateUserRequest) Validate() error
Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateUserRequest) ValidateAll ¶
func (m *CreateUserRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserRequestMultiError, or nil if none found.
type CreateUserRequestMultiError ¶
type CreateUserRequestMultiError []error
CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserRequestMultiError) AllErrors ¶
func (m CreateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserRequestMultiError) Error ¶
func (m CreateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserRequestValidationError ¶
type CreateUserRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.
func (CreateUserRequestValidationError) Cause ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
Reason function returns reason value.
type DeletePermissionRequest ¶
type DeletePermissionRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
DeletePermissionRequest 删除权限请求
func (*DeletePermissionRequest) Descriptor
deprecated
func (*DeletePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePermissionRequest.ProtoReflect.Descriptor instead.
func (*DeletePermissionRequest) GetId ¶
func (x *DeletePermissionRequest) GetId() uint64
func (*DeletePermissionRequest) ProtoMessage ¶
func (*DeletePermissionRequest) ProtoMessage()
func (*DeletePermissionRequest) ProtoReflect ¶
func (x *DeletePermissionRequest) ProtoReflect() protoreflect.Message
func (*DeletePermissionRequest) Reset ¶
func (x *DeletePermissionRequest) Reset()
func (*DeletePermissionRequest) String ¶
func (x *DeletePermissionRequest) String() string
func (*DeletePermissionRequest) Validate ¶
func (m *DeletePermissionRequest) Validate() error
Validate checks the field values on DeletePermissionRequest 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 (*DeletePermissionRequest) ValidateAll ¶
func (m *DeletePermissionRequest) ValidateAll() error
ValidateAll checks the field values on DeletePermissionRequest 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 DeletePermissionRequestMultiError, or nil if none found.
type DeletePermissionRequestMultiError ¶
type DeletePermissionRequestMultiError []error
DeletePermissionRequestMultiError is an error wrapping multiple validation errors returned by DeletePermissionRequest.ValidateAll() if the designated constraints aren't met.
func (DeletePermissionRequestMultiError) AllErrors ¶
func (m DeletePermissionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeletePermissionRequestMultiError) Error ¶
func (m DeletePermissionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeletePermissionRequestValidationError ¶
type DeletePermissionRequestValidationError struct {
// contains filtered or unexported fields
}
DeletePermissionRequestValidationError is the validation error returned by DeletePermissionRequest.Validate if the designated constraints aren't met.
func (DeletePermissionRequestValidationError) Cause ¶
func (e DeletePermissionRequestValidationError) Cause() error
Cause function returns cause value.
func (DeletePermissionRequestValidationError) Error ¶
func (e DeletePermissionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePermissionRequestValidationError) ErrorName ¶
func (e DeletePermissionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePermissionRequestValidationError) Field ¶
func (e DeletePermissionRequestValidationError) Field() string
Field function returns field value.
func (DeletePermissionRequestValidationError) Key ¶
func (e DeletePermissionRequestValidationError) Key() bool
Key function returns key value.
func (DeletePermissionRequestValidationError) Reason ¶
func (e DeletePermissionRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteRoleRequest ¶
type DeleteRoleRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
DeleteRoleRequest 删除角色请求
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) GetId ¶
func (x *DeleteRoleRequest) GetId() uint64
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) ProtoReflect ¶
func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleRequest) Reset ¶
func (x *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (x *DeleteRoleRequest) String() string
func (*DeleteRoleRequest) Validate ¶
func (m *DeleteRoleRequest) Validate() error
Validate checks the field values on DeleteRoleRequest 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 (*DeleteRoleRequest) ValidateAll ¶
func (m *DeleteRoleRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRoleRequest 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 DeleteRoleRequestMultiError, or nil if none found.
type DeleteRoleRequestMultiError ¶
type DeleteRoleRequestMultiError []error
DeleteRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteRoleRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleRequestMultiError) AllErrors ¶
func (m DeleteRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleRequestMultiError) Error ¶
func (m DeleteRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleRequestValidationError ¶
type DeleteRoleRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleRequestValidationError is the validation error returned by DeleteRoleRequest.Validate if the designated constraints aren't met.
func (DeleteRoleRequestValidationError) Cause ¶
func (e DeleteRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleRequestValidationError) Error ¶
func (e DeleteRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleRequestValidationError) ErrorName ¶
func (e DeleteRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleRequestValidationError) Field ¶
func (e DeleteRoleRequestValidationError) Field() string
Field function returns field value.
func (DeleteRoleRequestValidationError) Key ¶
func (e DeleteRoleRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRoleRequestValidationError) Reason ¶
func (e DeleteRoleRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteUserRequest ¶
type DeleteUserRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
DeleteUserRequest 删除用户请求
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetId ¶
func (x *DeleteUserRequest) GetId() uint64
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 DeleteUserRoleRequest ¶
type DeleteUserRoleRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` RoleIds []uint64 `protobuf:"varint,2,rep,packed,name=roleIds,proto3" json:"roleIds,omitempty"` // contains filtered or unexported fields }
DeleteUserRoleRequest 删除用户角色请求
func (*DeleteUserRoleRequest) Descriptor
deprecated
func (*DeleteUserRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRoleRequest) GetRoleIds ¶
func (x *DeleteUserRoleRequest) GetRoleIds() []uint64
func (*DeleteUserRoleRequest) GetUserId ¶
func (x *DeleteUserRoleRequest) GetUserId() uint64
func (*DeleteUserRoleRequest) ProtoMessage ¶
func (*DeleteUserRoleRequest) ProtoMessage()
func (*DeleteUserRoleRequest) ProtoReflect ¶
func (x *DeleteUserRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRoleRequest) Reset ¶
func (x *DeleteUserRoleRequest) Reset()
func (*DeleteUserRoleRequest) String ¶
func (x *DeleteUserRoleRequest) String() string
func (*DeleteUserRoleRequest) Validate ¶
func (m *DeleteUserRoleRequest) Validate() error
Validate checks the field values on DeleteUserRoleRequest 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 (*DeleteUserRoleRequest) ValidateAll ¶
func (m *DeleteUserRoleRequest) ValidateAll() error
ValidateAll checks the field values on DeleteUserRoleRequest 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 DeleteUserRoleRequestMultiError, or nil if none found.
type DeleteUserRoleRequestMultiError ¶
type DeleteUserRoleRequestMultiError []error
DeleteUserRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRoleRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteUserRoleRequestMultiError) AllErrors ¶
func (m DeleteUserRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserRoleRequestMultiError) Error ¶
func (m DeleteUserRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserRoleRequestValidationError ¶
type DeleteUserRoleRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteUserRoleRequestValidationError is the validation error returned by DeleteUserRoleRequest.Validate if the designated constraints aren't met.
func (DeleteUserRoleRequestValidationError) Cause ¶
func (e DeleteUserRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserRoleRequestValidationError) Error ¶
func (e DeleteUserRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserRoleRequestValidationError) ErrorName ¶
func (e DeleteUserRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserRoleRequestValidationError) Field ¶
func (e DeleteUserRoleRequestValidationError) Field() string
Field function returns field value.
func (DeleteUserRoleRequestValidationError) Key ¶
func (e DeleteUserRoleRequestValidationError) Key() bool
Key function returns key value.
func (DeleteUserRoleRequestValidationError) Reason ¶
func (e DeleteUserRoleRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteUserRoleResponse ¶
type DeleteUserRoleResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
DeleteUserRoleResponse 删除用户角色响应
func (*DeleteUserRoleResponse) Descriptor
deprecated
func (*DeleteUserRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserRoleResponse) GetOk ¶
func (x *DeleteUserRoleResponse) GetOk() bool
func (*DeleteUserRoleResponse) ProtoMessage ¶
func (*DeleteUserRoleResponse) ProtoMessage()
func (*DeleteUserRoleResponse) ProtoReflect ¶
func (x *DeleteUserRoleResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserRoleResponse) Reset ¶
func (x *DeleteUserRoleResponse) Reset()
func (*DeleteUserRoleResponse) String ¶
func (x *DeleteUserRoleResponse) String() string
func (*DeleteUserRoleResponse) Validate ¶
func (m *DeleteUserRoleResponse) Validate() error
Validate checks the field values on DeleteUserRoleResponse 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 (*DeleteUserRoleResponse) ValidateAll ¶
func (m *DeleteUserRoleResponse) ValidateAll() error
ValidateAll checks the field values on DeleteUserRoleResponse 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 DeleteUserRoleResponseMultiError, or nil if none found.
type DeleteUserRoleResponseMultiError ¶
type DeleteUserRoleResponseMultiError []error
DeleteUserRoleResponseMultiError is an error wrapping multiple validation errors returned by DeleteUserRoleResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteUserRoleResponseMultiError) AllErrors ¶
func (m DeleteUserRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserRoleResponseMultiError) Error ¶
func (m DeleteUserRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserRoleResponseValidationError ¶
type DeleteUserRoleResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteUserRoleResponseValidationError is the validation error returned by DeleteUserRoleResponse.Validate if the designated constraints aren't met.
func (DeleteUserRoleResponseValidationError) Cause ¶
func (e DeleteUserRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserRoleResponseValidationError) Error ¶
func (e DeleteUserRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserRoleResponseValidationError) ErrorName ¶
func (e DeleteUserRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserRoleResponseValidationError) Field ¶
func (e DeleteUserRoleResponseValidationError) Field() string
Field function returns field value.
func (DeleteUserRoleResponseValidationError) Key ¶
func (e DeleteUserRoleResponseValidationError) Key() bool
Key function returns key value.
func (DeleteUserRoleResponseValidationError) Reason ¶
func (e DeleteUserRoleResponseValidationError) Reason() string
Reason function returns reason value.
type GetPermissionRequest ¶
type GetPermissionRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
GetPermissionRequest 获取权限请求
func (*GetPermissionRequest) Descriptor
deprecated
func (*GetPermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPermissionRequest.ProtoReflect.Descriptor instead.
func (*GetPermissionRequest) GetId ¶
func (x *GetPermissionRequest) GetId() uint64
func (*GetPermissionRequest) ProtoMessage ¶
func (*GetPermissionRequest) ProtoMessage()
func (*GetPermissionRequest) ProtoReflect ¶
func (x *GetPermissionRequest) ProtoReflect() protoreflect.Message
func (*GetPermissionRequest) Reset ¶
func (x *GetPermissionRequest) Reset()
func (*GetPermissionRequest) String ¶
func (x *GetPermissionRequest) String() string
func (*GetPermissionRequest) Validate ¶
func (m *GetPermissionRequest) Validate() error
Validate checks the field values on GetPermissionRequest 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 (*GetPermissionRequest) ValidateAll ¶
func (m *GetPermissionRequest) ValidateAll() error
ValidateAll checks the field values on GetPermissionRequest 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 GetPermissionRequestMultiError, or nil if none found.
type GetPermissionRequestMultiError ¶
type GetPermissionRequestMultiError []error
GetPermissionRequestMultiError is an error wrapping multiple validation errors returned by GetPermissionRequest.ValidateAll() if the designated constraints aren't met.
func (GetPermissionRequestMultiError) AllErrors ¶
func (m GetPermissionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPermissionRequestMultiError) Error ¶
func (m GetPermissionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPermissionRequestValidationError ¶
type GetPermissionRequestValidationError struct {
// contains filtered or unexported fields
}
GetPermissionRequestValidationError is the validation error returned by GetPermissionRequest.Validate if the designated constraints aren't met.
func (GetPermissionRequestValidationError) Cause ¶
func (e GetPermissionRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPermissionRequestValidationError) Error ¶
func (e GetPermissionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPermissionRequestValidationError) ErrorName ¶
func (e GetPermissionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPermissionRequestValidationError) Field ¶
func (e GetPermissionRequestValidationError) Field() string
Field function returns field value.
func (GetPermissionRequestValidationError) Key ¶
func (e GetPermissionRequestValidationError) Key() bool
Key function returns key value.
func (GetPermissionRequestValidationError) Reason ¶
func (e GetPermissionRequestValidationError) Reason() string
Reason function returns reason value.
type GetRoleRequest ¶
type GetRoleRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
GetRoleRequest 获取角色请求
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) GetId ¶
func (x *GetRoleRequest) GetId() uint64
func (*GetRoleRequest) ProtoMessage ¶
func (*GetRoleRequest) ProtoMessage()
func (*GetRoleRequest) ProtoReflect ¶
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
func (*GetRoleRequest) Reset ¶
func (x *GetRoleRequest) Reset()
func (*GetRoleRequest) String ¶
func (x *GetRoleRequest) String() string
func (*GetRoleRequest) Validate ¶
func (m *GetRoleRequest) Validate() error
Validate checks the field values on GetRoleRequest 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 (*GetRoleRequest) ValidateAll ¶
func (m *GetRoleRequest) ValidateAll() error
ValidateAll checks the field values on GetRoleRequest 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 GetRoleRequestMultiError, or nil if none found.
type GetRoleRequestMultiError ¶
type GetRoleRequestMultiError []error
GetRoleRequestMultiError is an error wrapping multiple validation errors returned by GetRoleRequest.ValidateAll() if the designated constraints aren't met.
func (GetRoleRequestMultiError) AllErrors ¶
func (m GetRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleRequestMultiError) Error ¶
func (m GetRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleRequestValidationError ¶
type GetRoleRequestValidationError struct {
// contains filtered or unexported fields
}
GetRoleRequestValidationError is the validation error returned by GetRoleRequest.Validate if the designated constraints aren't met.
func (GetRoleRequestValidationError) Cause ¶
func (e GetRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRoleRequestValidationError) Error ¶
func (e GetRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleRequestValidationError) ErrorName ¶
func (e GetRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleRequestValidationError) Field ¶
func (e GetRoleRequestValidationError) Field() string
Field function returns field value.
func (GetRoleRequestValidationError) Key ¶
func (e GetRoleRequestValidationError) Key() bool
Key function returns key value.
func (GetRoleRequestValidationError) Reason ¶
func (e GetRoleRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserRequest ¶
type GetUserRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
GetUserRequest 获取用户请求
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() uint64
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 GetUserRoleRequest ¶
type GetUserRoleRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
GetUserRoleRequest 获取用户角色请求
func (*GetUserRoleRequest) Descriptor
deprecated
func (*GetUserRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRoleRequest.ProtoReflect.Descriptor instead.
func (*GetUserRoleRequest) GetUserId ¶
func (x *GetUserRoleRequest) GetUserId() uint64
func (*GetUserRoleRequest) ProtoMessage ¶
func (*GetUserRoleRequest) ProtoMessage()
func (*GetUserRoleRequest) ProtoReflect ¶
func (x *GetUserRoleRequest) ProtoReflect() protoreflect.Message
func (*GetUserRoleRequest) Reset ¶
func (x *GetUserRoleRequest) Reset()
func (*GetUserRoleRequest) String ¶
func (x *GetUserRoleRequest) String() string
func (*GetUserRoleRequest) Validate ¶
func (m *GetUserRoleRequest) Validate() error
Validate checks the field values on GetUserRoleRequest 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 (*GetUserRoleRequest) ValidateAll ¶
func (m *GetUserRoleRequest) ValidateAll() error
ValidateAll checks the field values on GetUserRoleRequest 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 GetUserRoleRequestMultiError, or nil if none found.
type GetUserRoleRequestMultiError ¶
type GetUserRoleRequestMultiError []error
GetUserRoleRequestMultiError is an error wrapping multiple validation errors returned by GetUserRoleRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserRoleRequestMultiError) AllErrors ¶
func (m GetUserRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserRoleRequestMultiError) Error ¶
func (m GetUserRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserRoleRequestValidationError ¶
type GetUserRoleRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserRoleRequestValidationError is the validation error returned by GetUserRoleRequest.Validate if the designated constraints aren't met.
func (GetUserRoleRequestValidationError) Cause ¶
func (e GetUserRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserRoleRequestValidationError) Error ¶
func (e GetUserRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRoleRequestValidationError) ErrorName ¶
func (e GetUserRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRoleRequestValidationError) Field ¶
func (e GetUserRoleRequestValidationError) Field() string
Field function returns field value.
func (GetUserRoleRequestValidationError) Key ¶
func (e GetUserRoleRequestValidationError) Key() bool
Key function returns key value.
func (GetUserRoleRequestValidationError) Reason ¶
func (e GetUserRoleRequestValidationError) Reason() string
Reason function returns reason value.
type ListPermissionRequest ¶
type ListPermissionRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
ListPermissionRequest 获取权限列表请求
func (*ListPermissionRequest) Descriptor
deprecated
func (*ListPermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPermissionRequest.ProtoReflect.Descriptor instead.
func (*ListPermissionRequest) GetPage ¶
func (x *ListPermissionRequest) GetPage() int64
func (*ListPermissionRequest) GetPageSize ¶
func (x *ListPermissionRequest) GetPageSize() int64
func (*ListPermissionRequest) ProtoMessage ¶
func (*ListPermissionRequest) ProtoMessage()
func (*ListPermissionRequest) ProtoReflect ¶
func (x *ListPermissionRequest) ProtoReflect() protoreflect.Message
func (*ListPermissionRequest) Reset ¶
func (x *ListPermissionRequest) Reset()
func (*ListPermissionRequest) String ¶
func (x *ListPermissionRequest) String() string
func (*ListPermissionRequest) Validate ¶
func (m *ListPermissionRequest) Validate() error
Validate checks the field values on ListPermissionRequest 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 (*ListPermissionRequest) ValidateAll ¶
func (m *ListPermissionRequest) ValidateAll() error
ValidateAll checks the field values on ListPermissionRequest 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 ListPermissionRequestMultiError, or nil if none found.
type ListPermissionRequestMultiError ¶
type ListPermissionRequestMultiError []error
ListPermissionRequestMultiError is an error wrapping multiple validation errors returned by ListPermissionRequest.ValidateAll() if the designated constraints aren't met.
func (ListPermissionRequestMultiError) AllErrors ¶
func (m ListPermissionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPermissionRequestMultiError) Error ¶
func (m ListPermissionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPermissionRequestValidationError ¶
type ListPermissionRequestValidationError struct {
// contains filtered or unexported fields
}
ListPermissionRequestValidationError is the validation error returned by ListPermissionRequest.Validate if the designated constraints aren't met.
func (ListPermissionRequestValidationError) Cause ¶
func (e ListPermissionRequestValidationError) Cause() error
Cause function returns cause value.
func (ListPermissionRequestValidationError) Error ¶
func (e ListPermissionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListPermissionRequestValidationError) ErrorName ¶
func (e ListPermissionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListPermissionRequestValidationError) Field ¶
func (e ListPermissionRequestValidationError) Field() string
Field function returns field value.
func (ListPermissionRequestValidationError) Key ¶
func (e ListPermissionRequestValidationError) Key() bool
Key function returns key value.
func (ListPermissionRequestValidationError) Reason ¶
func (e ListPermissionRequestValidationError) Reason() string
Reason function returns reason value.
type ListPermissionResponse ¶
type ListPermissionResponse struct { Permissions []*PermissionInfoResponse `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
ListPermissionResponse 获取权限列表响应
func (*ListPermissionResponse) Descriptor
deprecated
func (*ListPermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPermissionResponse.ProtoReflect.Descriptor instead.
func (*ListPermissionResponse) GetPermissions ¶
func (x *ListPermissionResponse) GetPermissions() []*PermissionInfoResponse
func (*ListPermissionResponse) GetTotal ¶
func (x *ListPermissionResponse) GetTotal() int64
func (*ListPermissionResponse) ProtoMessage ¶
func (*ListPermissionResponse) ProtoMessage()
func (*ListPermissionResponse) ProtoReflect ¶
func (x *ListPermissionResponse) ProtoReflect() protoreflect.Message
func (*ListPermissionResponse) Reset ¶
func (x *ListPermissionResponse) Reset()
func (*ListPermissionResponse) String ¶
func (x *ListPermissionResponse) String() string
func (*ListPermissionResponse) Validate ¶
func (m *ListPermissionResponse) Validate() error
Validate checks the field values on ListPermissionResponse 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 (*ListPermissionResponse) ValidateAll ¶
func (m *ListPermissionResponse) ValidateAll() error
ValidateAll checks the field values on ListPermissionResponse 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 ListPermissionResponseMultiError, or nil if none found.
type ListPermissionResponseMultiError ¶
type ListPermissionResponseMultiError []error
ListPermissionResponseMultiError is an error wrapping multiple validation errors returned by ListPermissionResponse.ValidateAll() if the designated constraints aren't met.
func (ListPermissionResponseMultiError) AllErrors ¶
func (m ListPermissionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListPermissionResponseMultiError) Error ¶
func (m ListPermissionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListPermissionResponseValidationError ¶
type ListPermissionResponseValidationError struct {
// contains filtered or unexported fields
}
ListPermissionResponseValidationError is the validation error returned by ListPermissionResponse.Validate if the designated constraints aren't met.
func (ListPermissionResponseValidationError) Cause ¶
func (e ListPermissionResponseValidationError) Cause() error
Cause function returns cause value.
func (ListPermissionResponseValidationError) Error ¶
func (e ListPermissionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListPermissionResponseValidationError) ErrorName ¶
func (e ListPermissionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListPermissionResponseValidationError) Field ¶
func (e ListPermissionResponseValidationError) Field() string
Field function returns field value.
func (ListPermissionResponseValidationError) Key ¶
func (e ListPermissionResponseValidationError) Key() bool
Key function returns key value.
func (ListPermissionResponseValidationError) Reason ¶
func (e ListPermissionResponseValidationError) Reason() string
Reason function returns reason value.
type ListRoleRequest ¶
type ListRoleRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
ListRoleRequest 获取角色列表请求
func (*ListRoleRequest) Descriptor
deprecated
func (*ListRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleRequest.ProtoReflect.Descriptor instead.
func (*ListRoleRequest) GetPage ¶
func (x *ListRoleRequest) GetPage() int64
func (*ListRoleRequest) GetPageSize ¶
func (x *ListRoleRequest) GetPageSize() int64
func (*ListRoleRequest) ProtoMessage ¶
func (*ListRoleRequest) ProtoMessage()
func (*ListRoleRequest) ProtoReflect ¶
func (x *ListRoleRequest) ProtoReflect() protoreflect.Message
func (*ListRoleRequest) Reset ¶
func (x *ListRoleRequest) Reset()
func (*ListRoleRequest) String ¶
func (x *ListRoleRequest) String() string
func (*ListRoleRequest) Validate ¶
func (m *ListRoleRequest) Validate() error
Validate checks the field values on ListRoleRequest 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 (*ListRoleRequest) ValidateAll ¶
func (m *ListRoleRequest) ValidateAll() error
ValidateAll checks the field values on ListRoleRequest 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 ListRoleRequestMultiError, or nil if none found.
type ListRoleRequestMultiError ¶
type ListRoleRequestMultiError []error
ListRoleRequestMultiError is an error wrapping multiple validation errors returned by ListRoleRequest.ValidateAll() if the designated constraints aren't met.
func (ListRoleRequestMultiError) AllErrors ¶
func (m ListRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleRequestMultiError) Error ¶
func (m ListRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleRequestValidationError ¶
type ListRoleRequestValidationError struct {
// contains filtered or unexported fields
}
ListRoleRequestValidationError is the validation error returned by ListRoleRequest.Validate if the designated constraints aren't met.
func (ListRoleRequestValidationError) Cause ¶
func (e ListRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRoleRequestValidationError) Error ¶
func (e ListRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleRequestValidationError) ErrorName ¶
func (e ListRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleRequestValidationError) Field ¶
func (e ListRoleRequestValidationError) Field() string
Field function returns field value.
func (ListRoleRequestValidationError) Key ¶
func (e ListRoleRequestValidationError) Key() bool
Key function returns key value.
func (ListRoleRequestValidationError) Reason ¶
func (e ListRoleRequestValidationError) Reason() string
Reason function returns reason value.
type ListRoleResponse ¶
type ListRoleResponse struct { Roles []*RoleInfoResponse `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
ListRoleResponse 获取角色列表响应
func (*ListRoleResponse) Descriptor
deprecated
func (*ListRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleResponse.ProtoReflect.Descriptor instead.
func (*ListRoleResponse) GetRoles ¶
func (x *ListRoleResponse) GetRoles() []*RoleInfoResponse
func (*ListRoleResponse) GetTotal ¶
func (x *ListRoleResponse) GetTotal() int64
func (*ListRoleResponse) ProtoMessage ¶
func (*ListRoleResponse) ProtoMessage()
func (*ListRoleResponse) ProtoReflect ¶
func (x *ListRoleResponse) ProtoReflect() protoreflect.Message
func (*ListRoleResponse) Reset ¶
func (x *ListRoleResponse) Reset()
func (*ListRoleResponse) String ¶
func (x *ListRoleResponse) String() string
func (*ListRoleResponse) Validate ¶
func (m *ListRoleResponse) Validate() error
Validate checks the field values on ListRoleResponse 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 (*ListRoleResponse) ValidateAll ¶
func (m *ListRoleResponse) ValidateAll() error
ValidateAll checks the field values on ListRoleResponse 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 ListRoleResponseMultiError, or nil if none found.
type ListRoleResponseMultiError ¶
type ListRoleResponseMultiError []error
ListRoleResponseMultiError is an error wrapping multiple validation errors returned by ListRoleResponse.ValidateAll() if the designated constraints aren't met.
func (ListRoleResponseMultiError) AllErrors ¶
func (m ListRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleResponseMultiError) Error ¶
func (m ListRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleResponseValidationError ¶
type ListRoleResponseValidationError struct {
// contains filtered or unexported fields
}
ListRoleResponseValidationError is the validation error returned by ListRoleResponse.Validate if the designated constraints aren't met.
func (ListRoleResponseValidationError) Cause ¶
func (e ListRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (ListRoleResponseValidationError) Error ¶
func (e ListRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleResponseValidationError) ErrorName ¶
func (e ListRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleResponseValidationError) Field ¶
func (e ListRoleResponseValidationError) Field() string
Field function returns field value.
func (ListRoleResponseValidationError) Key ¶
func (e ListRoleResponseValidationError) Key() bool
Key function returns key value.
func (ListRoleResponseValidationError) Reason ¶
func (e ListRoleResponseValidationError) Reason() string
Reason function returns reason value.
type ListUserRequest ¶
type ListUserRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
ListUserRequest 获取用户列表请求
func (*ListUserRequest) Descriptor
deprecated
func (*ListUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.
func (*ListUserRequest) GetPage ¶
func (x *ListUserRequest) GetPage() int64
func (*ListUserRequest) GetPageSize ¶
func (x *ListUserRequest) GetPageSize() int64
func (*ListUserRequest) ProtoMessage ¶
func (*ListUserRequest) ProtoMessage()
func (*ListUserRequest) ProtoReflect ¶
func (x *ListUserRequest) ProtoReflect() protoreflect.Message
func (*ListUserRequest) Reset ¶
func (x *ListUserRequest) Reset()
func (*ListUserRequest) String ¶
func (x *ListUserRequest) String() string
func (*ListUserRequest) Validate ¶
func (m *ListUserRequest) Validate() error
Validate checks the field values on ListUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListUserRequest) ValidateAll ¶
func (m *ListUserRequest) ValidateAll() error
ValidateAll checks the field values on ListUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserRequestMultiError, or nil if none found.
type ListUserRequestMultiError ¶
type ListUserRequestMultiError []error
ListUserRequestMultiError is an error wrapping multiple validation errors returned by ListUserRequest.ValidateAll() if the designated constraints aren't met.
func (ListUserRequestMultiError) AllErrors ¶
func (m ListUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserRequestMultiError) Error ¶
func (m ListUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserRequestValidationError ¶
type ListUserRequestValidationError struct {
// contains filtered or unexported fields
}
ListUserRequestValidationError is the validation error returned by ListUserRequest.Validate if the designated constraints aren't met.
func (ListUserRequestValidationError) Cause ¶
func (e ListUserRequestValidationError) Cause() error
Cause function returns cause value.
func (ListUserRequestValidationError) Error ¶
func (e ListUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserRequestValidationError) ErrorName ¶
func (e ListUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserRequestValidationError) Field ¶
func (e ListUserRequestValidationError) Field() string
Field function returns field value.
func (ListUserRequestValidationError) Key ¶
func (e ListUserRequestValidationError) Key() bool
Key function returns key value.
func (ListUserRequestValidationError) Reason ¶
func (e ListUserRequestValidationError) Reason() string
Reason function returns reason value.
type ListUserResponse ¶
type ListUserResponse struct { Users []*UserInfoResponse `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
ListUserReply 获取用户列表响应
func (*ListUserResponse) Descriptor
deprecated
func (*ListUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead.
func (*ListUserResponse) GetTotal ¶
func (x *ListUserResponse) GetTotal() int64
func (*ListUserResponse) GetUsers ¶
func (x *ListUserResponse) GetUsers() []*UserInfoResponse
func (*ListUserResponse) ProtoMessage ¶
func (*ListUserResponse) ProtoMessage()
func (*ListUserResponse) ProtoReflect ¶
func (x *ListUserResponse) ProtoReflect() protoreflect.Message
func (*ListUserResponse) Reset ¶
func (x *ListUserResponse) Reset()
func (*ListUserResponse) String ¶
func (x *ListUserResponse) String() string
func (*ListUserResponse) Validate ¶
func (m *ListUserResponse) Validate() error
Validate checks the field values on ListUserResponse 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 (*ListUserResponse) ValidateAll ¶
func (m *ListUserResponse) ValidateAll() error
ValidateAll checks the field values on ListUserResponse 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 ListUserResponseMultiError, or nil if none found.
type ListUserResponseMultiError ¶
type ListUserResponseMultiError []error
ListUserResponseMultiError is an error wrapping multiple validation errors returned by ListUserResponse.ValidateAll() if the designated constraints aren't met.
func (ListUserResponseMultiError) AllErrors ¶
func (m ListUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserResponseMultiError) Error ¶
func (m ListUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserResponseValidationError ¶
type ListUserResponseValidationError struct {
// contains filtered or unexported fields
}
ListUserResponseValidationError is the validation error returned by ListUserResponse.Validate if the designated constraints aren't met.
func (ListUserResponseValidationError) Cause ¶
func (e ListUserResponseValidationError) Cause() error
Cause function returns cause value.
func (ListUserResponseValidationError) Error ¶
func (e ListUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserResponseValidationError) ErrorName ¶
func (e ListUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserResponseValidationError) Field ¶
func (e ListUserResponseValidationError) Field() string
Field function returns field value.
func (ListUserResponseValidationError) Key ¶
func (e ListUserResponseValidationError) Key() bool
Key function returns key value.
func (ListUserResponseValidationError) Reason ¶
func (e ListUserResponseValidationError) Reason() string
Reason function returns reason value.
type PermissionInfoResponse ¶
type PermissionInfoResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"` ParentId uint64 `protobuf:"varint,6,opt,name=parentId,proto3" json:"parentId,omitempty"` ParentIds string `protobuf:"bytes,7,opt,name=parentIds,proto3" json:"parentIds,omitempty"` CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
Permission 权限信息
func (*PermissionInfoResponse) Descriptor
deprecated
func (*PermissionInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use PermissionInfoResponse.ProtoReflect.Descriptor instead.
func (*PermissionInfoResponse) GetCreatedAt ¶
func (x *PermissionInfoResponse) GetCreatedAt() string
func (*PermissionInfoResponse) GetId ¶
func (x *PermissionInfoResponse) GetId() uint64
func (*PermissionInfoResponse) GetMemo ¶
func (x *PermissionInfoResponse) GetMemo() string
func (*PermissionInfoResponse) GetMethod ¶
func (x *PermissionInfoResponse) GetMethod() string
func (*PermissionInfoResponse) GetName ¶
func (x *PermissionInfoResponse) GetName() string
func (*PermissionInfoResponse) GetParentId ¶
func (x *PermissionInfoResponse) GetParentId() uint64
func (*PermissionInfoResponse) GetParentIds ¶
func (x *PermissionInfoResponse) GetParentIds() string
func (*PermissionInfoResponse) GetPath ¶
func (x *PermissionInfoResponse) GetPath() string
func (*PermissionInfoResponse) GetUpdatedAt ¶
func (x *PermissionInfoResponse) GetUpdatedAt() string
func (*PermissionInfoResponse) ProtoMessage ¶
func (*PermissionInfoResponse) ProtoMessage()
func (*PermissionInfoResponse) ProtoReflect ¶
func (x *PermissionInfoResponse) ProtoReflect() protoreflect.Message
func (*PermissionInfoResponse) Reset ¶
func (x *PermissionInfoResponse) Reset()
func (*PermissionInfoResponse) String ¶
func (x *PermissionInfoResponse) String() string
func (*PermissionInfoResponse) Validate ¶
func (m *PermissionInfoResponse) Validate() error
Validate checks the field values on PermissionInfoResponse 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 (*PermissionInfoResponse) ValidateAll ¶
func (m *PermissionInfoResponse) ValidateAll() error
ValidateAll checks the field values on PermissionInfoResponse 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 PermissionInfoResponseMultiError, or nil if none found.
type PermissionInfoResponseMultiError ¶
type PermissionInfoResponseMultiError []error
PermissionInfoResponseMultiError is an error wrapping multiple validation errors returned by PermissionInfoResponse.ValidateAll() if the designated constraints aren't met.
func (PermissionInfoResponseMultiError) AllErrors ¶
func (m PermissionInfoResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermissionInfoResponseMultiError) Error ¶
func (m PermissionInfoResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermissionInfoResponseValidationError ¶
type PermissionInfoResponseValidationError struct {
// contains filtered or unexported fields
}
PermissionInfoResponseValidationError is the validation error returned by PermissionInfoResponse.Validate if the designated constraints aren't met.
func (PermissionInfoResponseValidationError) Cause ¶
func (e PermissionInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (PermissionInfoResponseValidationError) Error ¶
func (e PermissionInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionInfoResponseValidationError) ErrorName ¶
func (e PermissionInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionInfoResponseValidationError) Field ¶
func (e PermissionInfoResponseValidationError) Field() string
Field function returns field value.
func (PermissionInfoResponseValidationError) Key ¶
func (e PermissionInfoResponseValidationError) Key() bool
Key function returns key value.
func (PermissionInfoResponseValidationError) Reason ¶
func (e PermissionInfoResponseValidationError) Reason() string
Reason function returns reason value.
type RoleInfoResponse ¶
type RoleInfoResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
Role 角色信息
func (*RoleInfoResponse) Descriptor
deprecated
func (*RoleInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use RoleInfoResponse.ProtoReflect.Descriptor instead.
func (*RoleInfoResponse) GetCreatedAt ¶
func (x *RoleInfoResponse) GetCreatedAt() string
func (*RoleInfoResponse) GetId ¶
func (x *RoleInfoResponse) GetId() uint64
func (*RoleInfoResponse) GetMemo ¶
func (x *RoleInfoResponse) GetMemo() string
func (*RoleInfoResponse) GetName ¶
func (x *RoleInfoResponse) GetName() string
func (*RoleInfoResponse) GetUpdatedAt ¶
func (x *RoleInfoResponse) GetUpdatedAt() string
func (*RoleInfoResponse) ProtoMessage ¶
func (*RoleInfoResponse) ProtoMessage()
func (*RoleInfoResponse) ProtoReflect ¶
func (x *RoleInfoResponse) ProtoReflect() protoreflect.Message
func (*RoleInfoResponse) Reset ¶
func (x *RoleInfoResponse) Reset()
func (*RoleInfoResponse) String ¶
func (x *RoleInfoResponse) String() string
func (*RoleInfoResponse) Validate ¶
func (m *RoleInfoResponse) Validate() error
Validate checks the field values on RoleInfoResponse 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 (*RoleInfoResponse) ValidateAll ¶
func (m *RoleInfoResponse) ValidateAll() error
ValidateAll checks the field values on RoleInfoResponse 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 RoleInfoResponseMultiError, or nil if none found.
type RoleInfoResponseMultiError ¶
type RoleInfoResponseMultiError []error
RoleInfoResponseMultiError is an error wrapping multiple validation errors returned by RoleInfoResponse.ValidateAll() if the designated constraints aren't met.
func (RoleInfoResponseMultiError) AllErrors ¶
func (m RoleInfoResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleInfoResponseMultiError) Error ¶
func (m RoleInfoResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleInfoResponseValidationError ¶
type RoleInfoResponseValidationError struct {
// contains filtered or unexported fields
}
RoleInfoResponseValidationError is the validation error returned by RoleInfoResponse.Validate if the designated constraints aren't met.
func (RoleInfoResponseValidationError) Cause ¶
func (e RoleInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (RoleInfoResponseValidationError) Error ¶
func (e RoleInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RoleInfoResponseValidationError) ErrorName ¶
func (e RoleInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RoleInfoResponseValidationError) Field ¶
func (e RoleInfoResponseValidationError) Field() string
Field function returns field value.
func (RoleInfoResponseValidationError) Key ¶
func (e RoleInfoResponseValidationError) Key() bool
Key function returns key value.
func (RoleInfoResponseValidationError) Reason ¶
func (e RoleInfoResponseValidationError) Reason() string
Reason function returns reason value.
type SetUserRoleRequest ¶
type SetUserRoleRequest struct { UserId uint64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` RoleIds []uint64 `protobuf:"varint,2,rep,packed,name=roleIds,proto3" json:"roleIds,omitempty"` // contains filtered or unexported fields }
SetUserRoleRequest 设置用户角色请求
func (*SetUserRoleRequest) Descriptor
deprecated
func (*SetUserRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetUserRoleRequest.ProtoReflect.Descriptor instead.
func (*SetUserRoleRequest) GetRoleIds ¶
func (x *SetUserRoleRequest) GetRoleIds() []uint64
func (*SetUserRoleRequest) GetUserId ¶
func (x *SetUserRoleRequest) GetUserId() uint64
func (*SetUserRoleRequest) ProtoMessage ¶
func (*SetUserRoleRequest) ProtoMessage()
func (*SetUserRoleRequest) ProtoReflect ¶
func (x *SetUserRoleRequest) ProtoReflect() protoreflect.Message
func (*SetUserRoleRequest) Reset ¶
func (x *SetUserRoleRequest) Reset()
func (*SetUserRoleRequest) String ¶
func (x *SetUserRoleRequest) String() string
func (*SetUserRoleRequest) Validate ¶
func (m *SetUserRoleRequest) Validate() error
Validate checks the field values on SetUserRoleRequest 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 (*SetUserRoleRequest) ValidateAll ¶
func (m *SetUserRoleRequest) ValidateAll() error
ValidateAll checks the field values on SetUserRoleRequest 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 SetUserRoleRequestMultiError, or nil if none found.
type SetUserRoleRequestMultiError ¶
type SetUserRoleRequestMultiError []error
SetUserRoleRequestMultiError is an error wrapping multiple validation errors returned by SetUserRoleRequest.ValidateAll() if the designated constraints aren't met.
func (SetUserRoleRequestMultiError) AllErrors ¶
func (m SetUserRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetUserRoleRequestMultiError) Error ¶
func (m SetUserRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetUserRoleRequestValidationError ¶
type SetUserRoleRequestValidationError struct {
// contains filtered or unexported fields
}
SetUserRoleRequestValidationError is the validation error returned by SetUserRoleRequest.Validate if the designated constraints aren't met.
func (SetUserRoleRequestValidationError) Cause ¶
func (e SetUserRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (SetUserRoleRequestValidationError) Error ¶
func (e SetUserRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SetUserRoleRequestValidationError) ErrorName ¶
func (e SetUserRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SetUserRoleRequestValidationError) Field ¶
func (e SetUserRoleRequestValidationError) Field() string
Field function returns field value.
func (SetUserRoleRequestValidationError) Key ¶
func (e SetUserRoleRequestValidationError) Key() bool
Key function returns key value.
func (SetUserRoleRequestValidationError) Reason ¶
func (e SetUserRoleRequestValidationError) Reason() string
Reason function returns reason value.
type SetUserRoleResponse ¶
type SetUserRoleResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
SetUserRoleResponse 设置用户角色响应
func (*SetUserRoleResponse) Descriptor
deprecated
func (*SetUserRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetUserRoleResponse.ProtoReflect.Descriptor instead.
func (*SetUserRoleResponse) GetOk ¶
func (x *SetUserRoleResponse) GetOk() bool
func (*SetUserRoleResponse) ProtoMessage ¶
func (*SetUserRoleResponse) ProtoMessage()
func (*SetUserRoleResponse) ProtoReflect ¶
func (x *SetUserRoleResponse) ProtoReflect() protoreflect.Message
func (*SetUserRoleResponse) Reset ¶
func (x *SetUserRoleResponse) Reset()
func (*SetUserRoleResponse) String ¶
func (x *SetUserRoleResponse) String() string
func (*SetUserRoleResponse) Validate ¶
func (m *SetUserRoleResponse) Validate() error
Validate checks the field values on SetUserRoleResponse 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 (*SetUserRoleResponse) ValidateAll ¶
func (m *SetUserRoleResponse) ValidateAll() error
ValidateAll checks the field values on SetUserRoleResponse 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 SetUserRoleResponseMultiError, or nil if none found.
type SetUserRoleResponseMultiError ¶
type SetUserRoleResponseMultiError []error
SetUserRoleResponseMultiError is an error wrapping multiple validation errors returned by SetUserRoleResponse.ValidateAll() if the designated constraints aren't met.
func (SetUserRoleResponseMultiError) AllErrors ¶
func (m SetUserRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetUserRoleResponseMultiError) Error ¶
func (m SetUserRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetUserRoleResponseValidationError ¶
type SetUserRoleResponseValidationError struct {
// contains filtered or unexported fields
}
SetUserRoleResponseValidationError is the validation error returned by SetUserRoleResponse.Validate if the designated constraints aren't met.
func (SetUserRoleResponseValidationError) Cause ¶
func (e SetUserRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (SetUserRoleResponseValidationError) Error ¶
func (e SetUserRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SetUserRoleResponseValidationError) ErrorName ¶
func (e SetUserRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SetUserRoleResponseValidationError) Field ¶
func (e SetUserRoleResponseValidationError) Field() string
Field function returns field value.
func (SetUserRoleResponseValidationError) Key ¶
func (e SetUserRoleResponseValidationError) Key() bool
Key function returns key value.
func (SetUserRoleResponseValidationError) Reason ¶
func (e SetUserRoleResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) CreatePermission ¶
func (UnimplementedUserServer) CreatePermission(context.Context, *CreatePermissionRequest) (*PermissionInfoResponse, error)
func (UnimplementedUserServer) CreateRole ¶
func (UnimplementedUserServer) CreateRole(context.Context, *CreateRoleRequest) (*RoleInfoResponse, error)
func (UnimplementedUserServer) CreateToken ¶
func (UnimplementedUserServer) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
func (UnimplementedUserServer) CreateUser ¶
func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserRequest) (*UserInfoResponse, error)
func (UnimplementedUserServer) DeletePermission ¶
func (UnimplementedUserServer) DeletePermission(context.Context, *DeletePermissionRequest) (*PermissionInfoResponse, error)
func (UnimplementedUserServer) DeleteRole ¶
func (UnimplementedUserServer) DeleteRole(context.Context, *DeleteRoleRequest) (*RoleInfoResponse, error)
func (UnimplementedUserServer) DeleteUser ¶
func (UnimplementedUserServer) DeleteUser(context.Context, *DeleteUserRequest) (*UserInfoResponse, error)
func (UnimplementedUserServer) DeleteUserRole ¶
func (UnimplementedUserServer) DeleteUserRole(context.Context, *DeleteUserRoleRequest) (*DeleteUserRoleResponse, error)
func (UnimplementedUserServer) GetPermission ¶
func (UnimplementedUserServer) GetPermission(context.Context, *GetPermissionRequest) (*PermissionInfoResponse, error)
func (UnimplementedUserServer) GetRole ¶
func (UnimplementedUserServer) GetRole(context.Context, *GetRoleRequest) (*RoleInfoResponse, error)
func (UnimplementedUserServer) GetUser ¶
func (UnimplementedUserServer) GetUser(context.Context, *GetUserRequest) (*UserInfoResponse, error)
func (UnimplementedUserServer) ListPermission ¶
func (UnimplementedUserServer) ListPermission(context.Context, *ListPermissionRequest) (*ListPermissionResponse, error)
func (UnimplementedUserServer) ListRole ¶
func (UnimplementedUserServer) ListRole(context.Context, *ListRoleRequest) (*ListRoleResponse, error)
func (UnimplementedUserServer) ListUser ¶
func (UnimplementedUserServer) ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error)
func (UnimplementedUserServer) SetUserRole ¶
func (UnimplementedUserServer) SetUserRole(context.Context, *SetUserRoleRequest) (*SetUserRoleResponse, error)
func (UnimplementedUserServer) UpdatePermission ¶
func (UnimplementedUserServer) UpdatePermission(context.Context, *UpdatePermissionRequest) (*PermissionInfoResponse, error)
func (UnimplementedUserServer) UpdateRole ¶
func (UnimplementedUserServer) UpdateRole(context.Context, *UpdateRoleRequest) (*RoleInfoResponse, error)
func (UnimplementedUserServer) UpdateUser ¶
func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserRequest) (*UserInfoResponse, error)
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UpdatePermissionRequest ¶
type UpdatePermissionRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"` ParentId uint64 `protobuf:"varint,6,opt,name=parentId,proto3" json:"parentId,omitempty"` // contains filtered or unexported fields }
UpdatePermissionRequest 更新权限请求
func (*UpdatePermissionRequest) Descriptor
deprecated
func (*UpdatePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePermissionRequest.ProtoReflect.Descriptor instead.
func (*UpdatePermissionRequest) GetId ¶
func (x *UpdatePermissionRequest) GetId() uint64
func (*UpdatePermissionRequest) GetMemo ¶
func (x *UpdatePermissionRequest) GetMemo() string
func (*UpdatePermissionRequest) GetMethod ¶
func (x *UpdatePermissionRequest) GetMethod() string
func (*UpdatePermissionRequest) GetName ¶
func (x *UpdatePermissionRequest) GetName() string
func (*UpdatePermissionRequest) GetParentId ¶
func (x *UpdatePermissionRequest) GetParentId() uint64
func (*UpdatePermissionRequest) GetPath ¶
func (x *UpdatePermissionRequest) GetPath() string
func (*UpdatePermissionRequest) ProtoMessage ¶
func (*UpdatePermissionRequest) ProtoMessage()
func (*UpdatePermissionRequest) ProtoReflect ¶
func (x *UpdatePermissionRequest) ProtoReflect() protoreflect.Message
func (*UpdatePermissionRequest) Reset ¶
func (x *UpdatePermissionRequest) Reset()
func (*UpdatePermissionRequest) String ¶
func (x *UpdatePermissionRequest) String() string
func (*UpdatePermissionRequest) Validate ¶
func (m *UpdatePermissionRequest) Validate() error
Validate checks the field values on UpdatePermissionRequest 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 (*UpdatePermissionRequest) ValidateAll ¶
func (m *UpdatePermissionRequest) ValidateAll() error
ValidateAll checks the field values on UpdatePermissionRequest 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 UpdatePermissionRequestMultiError, or nil if none found.
type UpdatePermissionRequestMultiError ¶
type UpdatePermissionRequestMultiError []error
UpdatePermissionRequestMultiError is an error wrapping multiple validation errors returned by UpdatePermissionRequest.ValidateAll() if the designated constraints aren't met.
func (UpdatePermissionRequestMultiError) AllErrors ¶
func (m UpdatePermissionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePermissionRequestMultiError) Error ¶
func (m UpdatePermissionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePermissionRequestValidationError ¶
type UpdatePermissionRequestValidationError struct {
// contains filtered or unexported fields
}
UpdatePermissionRequestValidationError is the validation error returned by UpdatePermissionRequest.Validate if the designated constraints aren't met.
func (UpdatePermissionRequestValidationError) Cause ¶
func (e UpdatePermissionRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdatePermissionRequestValidationError) Error ¶
func (e UpdatePermissionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePermissionRequestValidationError) ErrorName ¶
func (e UpdatePermissionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePermissionRequestValidationError) Field ¶
func (e UpdatePermissionRequestValidationError) Field() string
Field function returns field value.
func (UpdatePermissionRequestValidationError) Key ¶
func (e UpdatePermissionRequestValidationError) Key() bool
Key function returns key value.
func (UpdatePermissionRequestValidationError) Reason ¶
func (e UpdatePermissionRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` // contains filtered or unexported fields }
UpdateRoleRequest 更新角色请求
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetId ¶
func (x *UpdateRoleRequest) GetId() uint64
func (*UpdateRoleRequest) GetMemo ¶
func (x *UpdateRoleRequest) GetMemo() string
func (*UpdateRoleRequest) GetName ¶
func (x *UpdateRoleRequest) GetName() string
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string
func (*UpdateRoleRequest) Validate ¶
func (m *UpdateRoleRequest) Validate() error
Validate checks the field values on UpdateRoleRequest 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 (*UpdateRoleRequest) ValidateAll ¶
func (m *UpdateRoleRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRoleRequest 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 UpdateRoleRequestMultiError, or nil if none found.
type UpdateRoleRequestMultiError ¶
type UpdateRoleRequestMultiError []error
UpdateRoleRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleRequestMultiError) AllErrors ¶
func (m UpdateRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleRequestMultiError) Error ¶
func (m UpdateRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleRequestValidationError ¶
type UpdateRoleRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleRequestValidationError is the validation error returned by UpdateRoleRequest.Validate if the designated constraints aren't met.
func (UpdateRoleRequestValidationError) Cause ¶
func (e UpdateRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleRequestValidationError) Error ¶
func (e UpdateRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleRequestValidationError) ErrorName ¶
func (e UpdateRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleRequestValidationError) Field ¶
func (e UpdateRoleRequestValidationError) Field() string
Field function returns field value.
func (UpdateRoleRequestValidationError) Key ¶
func (e UpdateRoleRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRoleRequestValidationError) Reason ¶
func (e UpdateRoleRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserRequest ¶
type UpdateUserRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
UpdateUserRequest 更新用户请求
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetEmail ¶
func (x *UpdateUserRequest) GetEmail() string
func (*UpdateUserRequest) GetId ¶
func (x *UpdateUserRequest) GetId() uint64
func (*UpdateUserRequest) GetName ¶
func (x *UpdateUserRequest) GetName() string
func (*UpdateUserRequest) GetPassword ¶
func (x *UpdateUserRequest) GetPassword() string
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 UserClient ¶
type UserClient interface { CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*RoleInfoResponse, error) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*RoleInfoResponse, error) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*RoleInfoResponse, error) GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*RoleInfoResponse, error) ListRole(ctx context.Context, in *ListRoleRequest, opts ...grpc.CallOption) (*ListRoleResponse, error) CreatePermission(ctx context.Context, in *CreatePermissionRequest, opts ...grpc.CallOption) (*PermissionInfoResponse, error) UpdatePermission(ctx context.Context, in *UpdatePermissionRequest, opts ...grpc.CallOption) (*PermissionInfoResponse, error) DeletePermission(ctx context.Context, in *DeletePermissionRequest, opts ...grpc.CallOption) (*PermissionInfoResponse, error) GetPermission(ctx context.Context, in *GetPermissionRequest, opts ...grpc.CallOption) (*PermissionInfoResponse, error) ListPermission(ctx context.Context, in *ListPermissionRequest, opts ...grpc.CallOption) (*ListPermissionResponse, error) SetUserRole(ctx context.Context, in *SetUserRoleRequest, opts ...grpc.CallOption) (*SetUserRoleResponse, error) DeleteUserRole(ctx context.Context, in *DeleteUserRoleRequest, opts ...grpc.CallOption) (*DeleteUserRoleResponse, error) CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error) }
UserClient is the client API for User service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserInfoResponse ¶
type UserInfoResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
UserInfoResponse 用户信息
func (*UserInfoResponse) Descriptor
deprecated
func (*UserInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoResponse.ProtoReflect.Descriptor instead.
func (*UserInfoResponse) GetCreatedAt ¶
func (x *UserInfoResponse) GetCreatedAt() string
func (*UserInfoResponse) GetEmail ¶
func (x *UserInfoResponse) GetEmail() string
func (*UserInfoResponse) GetId ¶
func (x *UserInfoResponse) GetId() uint64
func (*UserInfoResponse) GetName ¶
func (x *UserInfoResponse) GetName() string
func (*UserInfoResponse) GetPassword ¶
func (x *UserInfoResponse) GetPassword() string
func (*UserInfoResponse) GetUpdatedAt ¶
func (x *UserInfoResponse) GetUpdatedAt() string
func (*UserInfoResponse) ProtoMessage ¶
func (*UserInfoResponse) ProtoMessage()
func (*UserInfoResponse) ProtoReflect ¶
func (x *UserInfoResponse) ProtoReflect() protoreflect.Message
func (*UserInfoResponse) Reset ¶
func (x *UserInfoResponse) Reset()
func (*UserInfoResponse) String ¶
func (x *UserInfoResponse) String() string
func (*UserInfoResponse) Validate ¶
func (m *UserInfoResponse) Validate() error
Validate checks the field values on UserInfoResponse 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 (*UserInfoResponse) ValidateAll ¶
func (m *UserInfoResponse) ValidateAll() error
ValidateAll checks the field values on UserInfoResponse 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 UserInfoResponseMultiError, or nil if none found.
type UserInfoResponseMultiError ¶
type UserInfoResponseMultiError []error
UserInfoResponseMultiError is an error wrapping multiple validation errors returned by UserInfoResponse.ValidateAll() if the designated constraints aren't met.
func (UserInfoResponseMultiError) AllErrors ¶
func (m UserInfoResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserInfoResponseMultiError) Error ¶
func (m UserInfoResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserInfoResponseValidationError ¶
type UserInfoResponseValidationError struct {
// contains filtered or unexported fields
}
UserInfoResponseValidationError is the validation error returned by UserInfoResponse.Validate if the designated constraints aren't met.
func (UserInfoResponseValidationError) Cause ¶
func (e UserInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (UserInfoResponseValidationError) Error ¶
func (e UserInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserInfoResponseValidationError) ErrorName ¶
func (e UserInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserInfoResponseValidationError) Field ¶
func (e UserInfoResponseValidationError) Field() string
Field function returns field value.
func (UserInfoResponseValidationError) Key ¶
func (e UserInfoResponseValidationError) Key() bool
Key function returns key value.
func (UserInfoResponseValidationError) Reason ¶
func (e UserInfoResponseValidationError) Reason() string
Reason function returns reason value.
type UserRoleResponse ¶
type UserRoleResponse struct { Roles []*RoleInfoResponse `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
UserRoleResponse 用户角色响应
func (*UserRoleResponse) Descriptor
deprecated
func (*UserRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserRoleResponse.ProtoReflect.Descriptor instead.
func (*UserRoleResponse) GetRoles ¶
func (x *UserRoleResponse) GetRoles() []*RoleInfoResponse
func (*UserRoleResponse) ProtoMessage ¶
func (*UserRoleResponse) ProtoMessage()
func (*UserRoleResponse) ProtoReflect ¶
func (x *UserRoleResponse) ProtoReflect() protoreflect.Message
func (*UserRoleResponse) Reset ¶
func (x *UserRoleResponse) Reset()
func (*UserRoleResponse) String ¶
func (x *UserRoleResponse) String() string
func (*UserRoleResponse) Validate ¶
func (m *UserRoleResponse) Validate() error
Validate checks the field values on UserRoleResponse 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 (*UserRoleResponse) ValidateAll ¶
func (m *UserRoleResponse) ValidateAll() error
ValidateAll checks the field values on UserRoleResponse 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 UserRoleResponseMultiError, or nil if none found.
type UserRoleResponseMultiError ¶
type UserRoleResponseMultiError []error
UserRoleResponseMultiError is an error wrapping multiple validation errors returned by UserRoleResponse.ValidateAll() if the designated constraints aren't met.
func (UserRoleResponseMultiError) AllErrors ¶
func (m UserRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserRoleResponseMultiError) Error ¶
func (m UserRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserRoleResponseValidationError ¶
type UserRoleResponseValidationError struct {
// contains filtered or unexported fields
}
UserRoleResponseValidationError is the validation error returned by UserRoleResponse.Validate if the designated constraints aren't met.
func (UserRoleResponseValidationError) Cause ¶
func (e UserRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (UserRoleResponseValidationError) Error ¶
func (e UserRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserRoleResponseValidationError) ErrorName ¶
func (e UserRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserRoleResponseValidationError) Field ¶
func (e UserRoleResponseValidationError) Field() string
Field function returns field value.
func (UserRoleResponseValidationError) Key ¶
func (e UserRoleResponseValidationError) Key() bool
Key function returns key value.
func (UserRoleResponseValidationError) Reason ¶
func (e UserRoleResponseValidationError) Reason() string
Reason function returns reason value.
type UserServer ¶
type UserServer interface { CreateUser(context.Context, *CreateUserRequest) (*UserInfoResponse, error) UpdateUser(context.Context, *UpdateUserRequest) (*UserInfoResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*UserInfoResponse, error) GetUser(context.Context, *GetUserRequest) (*UserInfoResponse, error) ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error) CreateRole(context.Context, *CreateRoleRequest) (*RoleInfoResponse, error) UpdateRole(context.Context, *UpdateRoleRequest) (*RoleInfoResponse, error) DeleteRole(context.Context, *DeleteRoleRequest) (*RoleInfoResponse, error) GetRole(context.Context, *GetRoleRequest) (*RoleInfoResponse, error) ListRole(context.Context, *ListRoleRequest) (*ListRoleResponse, error) CreatePermission(context.Context, *CreatePermissionRequest) (*PermissionInfoResponse, error) UpdatePermission(context.Context, *UpdatePermissionRequest) (*PermissionInfoResponse, error) DeletePermission(context.Context, *DeletePermissionRequest) (*PermissionInfoResponse, error) GetPermission(context.Context, *GetPermissionRequest) (*PermissionInfoResponse, error) ListPermission(context.Context, *ListPermissionRequest) (*ListPermissionResponse, error) SetUserRole(context.Context, *SetUserRoleRequest) (*SetUserRoleResponse, error) DeleteUserRole(context.Context, *DeleteUserRoleRequest) (*DeleteUserRoleResponse, error) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility