Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterChatAdminHTTPServer(s *http.Server, srv ChatAdminHTTPServer)
- func RegisterChatAdminServer(s grpc.ServiceRegistrar, srv ChatAdminServer)
- type ChatAdminClient
- type ChatAdminHTTPClient
- type ChatAdminHTTPClientImpl
- func (c *ChatAdminHTTPClientImpl) CreatePermission(ctx context.Context, in *CreatePermissionRequest, opts ...http.CallOption) (*PermissionInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*RoleInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*UserInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) DeletePermission(ctx context.Context, in *DeletePermissionRequest, opts ...http.CallOption) (*PermissionInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...http.CallOption) (*RoleInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*UserInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) DeleteUserRole(ctx context.Context, in *DeleteUserRoleRequest, opts ...http.CallOption) (*DeleteUserRoleResponse, error)
- func (c *ChatAdminHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginResponse, error)
- func (c *ChatAdminHTTPClientImpl) PermissionInfo(ctx context.Context, in *PermissionInfoRequest, opts ...http.CallOption) (*PermissionInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) PermissionList(ctx context.Context, in *PermissionListRequest, opts ...http.CallOption) (*PermissionListResponse, error)
- func (c *ChatAdminHTTPClientImpl) RoleInfo(ctx context.Context, in *RoleInfoRequest, opts ...http.CallOption) (*RoleInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) RoleList(ctx context.Context, in *RoleListRequest, opts ...http.CallOption) (*RoleListResponse, error)
- func (c *ChatAdminHTTPClientImpl) SetUserRole(ctx context.Context, in *SetUserRoleRequest, opts ...http.CallOption) (*SetUserRoleResponse, error)
- func (c *ChatAdminHTTPClientImpl) UpdatePermission(ctx context.Context, in *UpdatePermissionRequest, opts ...http.CallOption) (*PermissionInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*RoleInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*UserInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) UserInfo(ctx context.Context, in *UserInfoRequest, opts ...http.CallOption) (*UserInfoResponse, error)
- func (c *ChatAdminHTTPClientImpl) UserList(ctx context.Context, in *UserListRequest, opts ...http.CallOption) (*UserListResponse, error)
- type ChatAdminHTTPServer
- type ChatAdminServer
- 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 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) GetSuccess() 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 LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type PermissionInfoRequest
- func (*PermissionInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionInfoRequest) GetId() uint64
- func (*PermissionInfoRequest) ProtoMessage()
- func (x *PermissionInfoRequest) ProtoReflect() protoreflect.Message
- func (x *PermissionInfoRequest) Reset()
- func (x *PermissionInfoRequest) String() string
- func (m *PermissionInfoRequest) Validate() error
- func (m *PermissionInfoRequest) ValidateAll() error
- type PermissionInfoRequestMultiError
- type PermissionInfoRequestValidationError
- func (e PermissionInfoRequestValidationError) Cause() error
- func (e PermissionInfoRequestValidationError) Error() string
- func (e PermissionInfoRequestValidationError) ErrorName() string
- func (e PermissionInfoRequestValidationError) Field() string
- func (e PermissionInfoRequestValidationError) Key() bool
- func (e PermissionInfoRequestValidationError) 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 PermissionListRequest
- func (*PermissionListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionListRequest) GetPage() int64
- func (x *PermissionListRequest) GetPageSize() int64
- func (*PermissionListRequest) ProtoMessage()
- func (x *PermissionListRequest) ProtoReflect() protoreflect.Message
- func (x *PermissionListRequest) Reset()
- func (x *PermissionListRequest) String() string
- func (m *PermissionListRequest) Validate() error
- func (m *PermissionListRequest) ValidateAll() error
- type PermissionListRequestMultiError
- type PermissionListRequestValidationError
- func (e PermissionListRequestValidationError) Cause() error
- func (e PermissionListRequestValidationError) Error() string
- func (e PermissionListRequestValidationError) ErrorName() string
- func (e PermissionListRequestValidationError) Field() string
- func (e PermissionListRequestValidationError) Key() bool
- func (e PermissionListRequestValidationError) Reason() string
- type PermissionListResponse
- func (*PermissionListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionListResponse) GetPermissions() []*PermissionInfoResponse
- func (x *PermissionListResponse) GetTotal() int64
- func (*PermissionListResponse) ProtoMessage()
- func (x *PermissionListResponse) ProtoReflect() protoreflect.Message
- func (x *PermissionListResponse) Reset()
- func (x *PermissionListResponse) String() string
- func (m *PermissionListResponse) Validate() error
- func (m *PermissionListResponse) ValidateAll() error
- type PermissionListResponseMultiError
- type PermissionListResponseValidationError
- func (e PermissionListResponseValidationError) Cause() error
- func (e PermissionListResponseValidationError) Error() string
- func (e PermissionListResponseValidationError) ErrorName() string
- func (e PermissionListResponseValidationError) Field() string
- func (e PermissionListResponseValidationError) Key() bool
- func (e PermissionListResponseValidationError) Reason() string
- type RoleInfoRequest
- func (*RoleInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RoleInfoRequest) GetId() uint64
- func (*RoleInfoRequest) ProtoMessage()
- func (x *RoleInfoRequest) ProtoReflect() protoreflect.Message
- func (x *RoleInfoRequest) Reset()
- func (x *RoleInfoRequest) String() string
- func (m *RoleInfoRequest) Validate() error
- func (m *RoleInfoRequest) ValidateAll() error
- type RoleInfoRequestMultiError
- type RoleInfoRequestValidationError
- func (e RoleInfoRequestValidationError) Cause() error
- func (e RoleInfoRequestValidationError) Error() string
- func (e RoleInfoRequestValidationError) ErrorName() string
- func (e RoleInfoRequestValidationError) Field() string
- func (e RoleInfoRequestValidationError) Key() bool
- func (e RoleInfoRequestValidationError) 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 RoleListRequest
- func (*RoleListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RoleListRequest) GetPage() int64
- func (x *RoleListRequest) GetPageSize() int64
- func (*RoleListRequest) ProtoMessage()
- func (x *RoleListRequest) ProtoReflect() protoreflect.Message
- func (x *RoleListRequest) Reset()
- func (x *RoleListRequest) String() string
- func (m *RoleListRequest) Validate() error
- func (m *RoleListRequest) ValidateAll() error
- type RoleListRequestMultiError
- type RoleListRequestValidationError
- func (e RoleListRequestValidationError) Cause() error
- func (e RoleListRequestValidationError) Error() string
- func (e RoleListRequestValidationError) ErrorName() string
- func (e RoleListRequestValidationError) Field() string
- func (e RoleListRequestValidationError) Key() bool
- func (e RoleListRequestValidationError) Reason() string
- type RoleListResponse
- func (*RoleListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RoleListResponse) GetRoles() []*RoleInfoResponse
- func (x *RoleListResponse) GetTotal() int64
- func (*RoleListResponse) ProtoMessage()
- func (x *RoleListResponse) ProtoReflect() protoreflect.Message
- func (x *RoleListResponse) Reset()
- func (x *RoleListResponse) String() string
- func (m *RoleListResponse) Validate() error
- func (m *RoleListResponse) ValidateAll() error
- type RoleListResponseMultiError
- type RoleListResponseValidationError
- func (e RoleListResponseValidationError) Cause() error
- func (e RoleListResponseValidationError) Error() string
- func (e RoleListResponseValidationError) ErrorName() string
- func (e RoleListResponseValidationError) Field() string
- func (e RoleListResponseValidationError) Key() bool
- func (e RoleListResponseValidationError) 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) GetSuccess() 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 UnimplementedChatAdminServer
- func (UnimplementedChatAdminServer) CreatePermission(context.Context, *CreatePermissionRequest) (*PermissionInfoResponse, error)
- func (UnimplementedChatAdminServer) CreateRole(context.Context, *CreateRoleRequest) (*RoleInfoResponse, error)
- func (UnimplementedChatAdminServer) CreateUser(context.Context, *CreateUserRequest) (*UserInfoResponse, error)
- func (UnimplementedChatAdminServer) DeletePermission(context.Context, *DeletePermissionRequest) (*PermissionInfoResponse, error)
- func (UnimplementedChatAdminServer) DeleteRole(context.Context, *DeleteRoleRequest) (*RoleInfoResponse, error)
- func (UnimplementedChatAdminServer) DeleteUser(context.Context, *DeleteUserRequest) (*UserInfoResponse, error)
- func (UnimplementedChatAdminServer) DeleteUserRole(context.Context, *DeleteUserRoleRequest) (*DeleteUserRoleResponse, error)
- func (UnimplementedChatAdminServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedChatAdminServer) PermissionInfo(context.Context, *PermissionInfoRequest) (*PermissionInfoResponse, error)
- func (UnimplementedChatAdminServer) PermissionList(context.Context, *PermissionListRequest) (*PermissionListResponse, error)
- func (UnimplementedChatAdminServer) RoleInfo(context.Context, *RoleInfoRequest) (*RoleInfoResponse, error)
- func (UnimplementedChatAdminServer) RoleList(context.Context, *RoleListRequest) (*RoleListResponse, error)
- func (UnimplementedChatAdminServer) SetUserRole(context.Context, *SetUserRoleRequest) (*SetUserRoleResponse, error)
- func (UnimplementedChatAdminServer) UpdatePermission(context.Context, *UpdatePermissionRequest) (*PermissionInfoResponse, error)
- func (UnimplementedChatAdminServer) UpdateRole(context.Context, *UpdateRoleRequest) (*RoleInfoResponse, error)
- func (UnimplementedChatAdminServer) UpdateUser(context.Context, *UpdateUserRequest) (*UserInfoResponse, error)
- func (UnimplementedChatAdminServer) UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error)
- func (UnimplementedChatAdminServer) UserList(context.Context, *UserListRequest) (*UserListResponse, error)
- type UnsafeChatAdminServer
- 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 UserInfoRequest
- func (*UserInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoRequest) GetId() uint64
- func (*UserInfoRequest) ProtoMessage()
- func (x *UserInfoRequest) ProtoReflect() protoreflect.Message
- func (x *UserInfoRequest) Reset()
- func (x *UserInfoRequest) String() string
- func (m *UserInfoRequest) Validate() error
- func (m *UserInfoRequest) ValidateAll() error
- type UserInfoRequestMultiError
- type UserInfoRequestValidationError
- func (e UserInfoRequestValidationError) Cause() error
- func (e UserInfoRequestValidationError) Error() string
- func (e UserInfoRequestValidationError) ErrorName() string
- func (e UserInfoRequestValidationError) Field() string
- func (e UserInfoRequestValidationError) Key() bool
- func (e UserInfoRequestValidationError) Reason() string
- 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) 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 UserListRequest
- func (*UserListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserListRequest) GetPage() int64
- func (x *UserListRequest) GetPageSize() int64
- func (*UserListRequest) ProtoMessage()
- func (x *UserListRequest) ProtoReflect() protoreflect.Message
- func (x *UserListRequest) Reset()
- func (x *UserListRequest) String() string
- func (m *UserListRequest) Validate() error
- func (m *UserListRequest) ValidateAll() error
- type UserListRequestMultiError
- type UserListRequestValidationError
- func (e UserListRequestValidationError) Cause() error
- func (e UserListRequestValidationError) Error() string
- func (e UserListRequestValidationError) ErrorName() string
- func (e UserListRequestValidationError) Field() string
- func (e UserListRequestValidationError) Key() bool
- func (e UserListRequestValidationError) Reason() string
- type UserListResponse
- func (*UserListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserListResponse) GetTotal() int64
- func (x *UserListResponse) GetUsers() []*UserInfoResponse
- func (*UserListResponse) ProtoMessage()
- func (x *UserListResponse) ProtoReflect() protoreflect.Message
- func (x *UserListResponse) Reset()
- func (x *UserListResponse) String() string
- func (m *UserListResponse) Validate() error
- func (m *UserListResponse) ValidateAll() error
- type UserListResponseMultiError
- type UserListResponseValidationError
- func (e UserListResponseValidationError) Cause() error
- func (e UserListResponseValidationError) Error() string
- func (e UserListResponseValidationError) ErrorName() string
- func (e UserListResponseValidationError) Field() string
- func (e UserListResponseValidationError) Key() bool
- func (e UserListResponseValidationError) Reason() string
Constants ¶
const ( ChatAdmin_Login_FullMethodName = "/api.chat.admin.v1.ChatAdmin/Login" ChatAdmin_CreateUser_FullMethodName = "/api.chat.admin.v1.ChatAdmin/CreateUser" ChatAdmin_UpdateUser_FullMethodName = "/api.chat.admin.v1.ChatAdmin/UpdateUser" ChatAdmin_DeleteUser_FullMethodName = "/api.chat.admin.v1.ChatAdmin/DeleteUser" ChatAdmin_UserInfo_FullMethodName = "/api.chat.admin.v1.ChatAdmin/UserInfo" ChatAdmin_UserList_FullMethodName = "/api.chat.admin.v1.ChatAdmin/UserList" ChatAdmin_CreateRole_FullMethodName = "/api.chat.admin.v1.ChatAdmin/CreateRole" ChatAdmin_UpdateRole_FullMethodName = "/api.chat.admin.v1.ChatAdmin/UpdateRole" ChatAdmin_DeleteRole_FullMethodName = "/api.chat.admin.v1.ChatAdmin/DeleteRole" ChatAdmin_RoleInfo_FullMethodName = "/api.chat.admin.v1.ChatAdmin/RoleInfo" ChatAdmin_RoleList_FullMethodName = "/api.chat.admin.v1.ChatAdmin/RoleList" ChatAdmin_CreatePermission_FullMethodName = "/api.chat.admin.v1.ChatAdmin/CreatePermission" ChatAdmin_UpdatePermission_FullMethodName = "/api.chat.admin.v1.ChatAdmin/UpdatePermission" ChatAdmin_DeletePermission_FullMethodName = "/api.chat.admin.v1.ChatAdmin/DeletePermission" ChatAdmin_PermissionInfo_FullMethodName = "/api.chat.admin.v1.ChatAdmin/PermissionInfo" ChatAdmin_PermissionList_FullMethodName = "/api.chat.admin.v1.ChatAdmin/PermissionList" ChatAdmin_SetUserRole_FullMethodName = "/api.chat.admin.v1.ChatAdmin/SetUserRole" ChatAdmin_DeleteUserRole_FullMethodName = "/api.chat.admin.v1.ChatAdmin/DeleteUserRole" )
const OperationChatAdminCreatePermission = "/api.chat.admin.v1.ChatAdmin/CreatePermission"
const OperationChatAdminCreateRole = "/api.chat.admin.v1.ChatAdmin/CreateRole"
const OperationChatAdminCreateUser = "/api.chat.admin.v1.ChatAdmin/CreateUser"
const OperationChatAdminDeletePermission = "/api.chat.admin.v1.ChatAdmin/DeletePermission"
const OperationChatAdminDeleteRole = "/api.chat.admin.v1.ChatAdmin/DeleteRole"
const OperationChatAdminDeleteUser = "/api.chat.admin.v1.ChatAdmin/DeleteUser"
const OperationChatAdminDeleteUserRole = "/api.chat.admin.v1.ChatAdmin/DeleteUserRole"
const OperationChatAdminLogin = "/api.chat.admin.v1.ChatAdmin/Login"
const OperationChatAdminPermissionInfo = "/api.chat.admin.v1.ChatAdmin/PermissionInfo"
const OperationChatAdminPermissionList = "/api.chat.admin.v1.ChatAdmin/PermissionList"
const OperationChatAdminRoleInfo = "/api.chat.admin.v1.ChatAdmin/RoleInfo"
const OperationChatAdminRoleList = "/api.chat.admin.v1.ChatAdmin/RoleList"
const OperationChatAdminSetUserRole = "/api.chat.admin.v1.ChatAdmin/SetUserRole"
const OperationChatAdminUpdatePermission = "/api.chat.admin.v1.ChatAdmin/UpdatePermission"
const OperationChatAdminUpdateRole = "/api.chat.admin.v1.ChatAdmin/UpdateRole"
const OperationChatAdminUpdateUser = "/api.chat.admin.v1.ChatAdmin/UpdateUser"
const OperationChatAdminUserInfo = "/api.chat.admin.v1.ChatAdmin/UserInfo"
const OperationChatAdminUserList = "/api.chat.admin.v1.ChatAdmin/UserList"
Variables ¶
var ChatAdmin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.chat.admin.v1.ChatAdmin", HandlerType: (*ChatAdminServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _ChatAdmin_Login_Handler, }, { MethodName: "CreateUser", Handler: _ChatAdmin_CreateUser_Handler, }, { MethodName: "UpdateUser", Handler: _ChatAdmin_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _ChatAdmin_DeleteUser_Handler, }, { MethodName: "UserInfo", Handler: _ChatAdmin_UserInfo_Handler, }, { MethodName: "UserList", Handler: _ChatAdmin_UserList_Handler, }, { MethodName: "CreateRole", Handler: _ChatAdmin_CreateRole_Handler, }, { MethodName: "UpdateRole", Handler: _ChatAdmin_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _ChatAdmin_DeleteRole_Handler, }, { MethodName: "RoleInfo", Handler: _ChatAdmin_RoleInfo_Handler, }, { MethodName: "RoleList", Handler: _ChatAdmin_RoleList_Handler, }, { MethodName: "CreatePermission", Handler: _ChatAdmin_CreatePermission_Handler, }, { MethodName: "UpdatePermission", Handler: _ChatAdmin_UpdatePermission_Handler, }, { MethodName: "DeletePermission", Handler: _ChatAdmin_DeletePermission_Handler, }, { MethodName: "PermissionInfo", Handler: _ChatAdmin_PermissionInfo_Handler, }, { MethodName: "PermissionList", Handler: _ChatAdmin_PermissionList_Handler, }, { MethodName: "SetUserRole", Handler: _ChatAdmin_SetUserRole_Handler, }, { MethodName: "DeleteUserRole", Handler: _ChatAdmin_DeleteUserRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/admin.proto", }
ChatAdmin_ServiceDesc is the grpc.ServiceDesc for ChatAdmin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1_admin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterChatAdminHTTPServer ¶
func RegisterChatAdminHTTPServer(s *http.Server, srv ChatAdminHTTPServer)
func RegisterChatAdminServer ¶
func RegisterChatAdminServer(s grpc.ServiceRegistrar, srv ChatAdminServer)
Types ¶
type ChatAdminClient ¶
type ChatAdminClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) 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) UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) UserList(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserListResponse, 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) RoleInfo(ctx context.Context, in *RoleInfoRequest, opts ...grpc.CallOption) (*RoleInfoResponse, error) RoleList(ctx context.Context, in *RoleListRequest, opts ...grpc.CallOption) (*RoleListResponse, 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) PermissionInfo(ctx context.Context, in *PermissionInfoRequest, opts ...grpc.CallOption) (*PermissionInfoResponse, error) PermissionList(ctx context.Context, in *PermissionListRequest, opts ...grpc.CallOption) (*PermissionListResponse, error) SetUserRole(ctx context.Context, in *SetUserRoleRequest, opts ...grpc.CallOption) (*SetUserRoleResponse, error) DeleteUserRole(ctx context.Context, in *DeleteUserRoleRequest, opts ...grpc.CallOption) (*DeleteUserRoleResponse, error) }
ChatAdminClient is the client API for ChatAdmin 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 NewChatAdminClient ¶
func NewChatAdminClient(cc grpc.ClientConnInterface) ChatAdminClient
type ChatAdminHTTPClient ¶
type ChatAdminHTTPClient interface { CreatePermission(ctx context.Context, req *CreatePermissionRequest, opts ...http.CallOption) (rsp *PermissionInfoResponse, err error) CreateRole(ctx context.Context, req *CreateRoleRequest, opts ...http.CallOption) (rsp *RoleInfoResponse, err error) CreateUser(ctx context.Context, req *CreateUserRequest, opts ...http.CallOption) (rsp *UserInfoResponse, err error) DeletePermission(ctx context.Context, req *DeletePermissionRequest, opts ...http.CallOption) (rsp *PermissionInfoResponse, err error) DeleteRole(ctx context.Context, req *DeleteRoleRequest, opts ...http.CallOption) (rsp *RoleInfoResponse, err error) DeleteUser(ctx context.Context, req *DeleteUserRequest, opts ...http.CallOption) (rsp *UserInfoResponse, err error) DeleteUserRole(ctx context.Context, req *DeleteUserRoleRequest, opts ...http.CallOption) (rsp *DeleteUserRoleResponse, err error) Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginResponse, err error) PermissionInfo(ctx context.Context, req *PermissionInfoRequest, opts ...http.CallOption) (rsp *PermissionInfoResponse, err error) PermissionList(ctx context.Context, req *PermissionListRequest, opts ...http.CallOption) (rsp *PermissionListResponse, err error) RoleInfo(ctx context.Context, req *RoleInfoRequest, opts ...http.CallOption) (rsp *RoleInfoResponse, err error) RoleList(ctx context.Context, req *RoleListRequest, opts ...http.CallOption) (rsp *RoleListResponse, err error) SetUserRole(ctx context.Context, req *SetUserRoleRequest, opts ...http.CallOption) (rsp *SetUserRoleResponse, err error) UpdatePermission(ctx context.Context, req *UpdatePermissionRequest, opts ...http.CallOption) (rsp *PermissionInfoResponse, err error) UpdateRole(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *RoleInfoResponse, err error) UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *UserInfoResponse, err error) UserInfo(ctx context.Context, req *UserInfoRequest, opts ...http.CallOption) (rsp *UserInfoResponse, err error) UserList(ctx context.Context, req *UserListRequest, opts ...http.CallOption) (rsp *UserListResponse, err error) }
func NewChatAdminHTTPClient ¶
func NewChatAdminHTTPClient(client *http.Client) ChatAdminHTTPClient
type ChatAdminHTTPClientImpl ¶
type ChatAdminHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ChatAdminHTTPClientImpl) CreatePermission ¶
func (c *ChatAdminHTTPClientImpl) CreatePermission(ctx context.Context, in *CreatePermissionRequest, opts ...http.CallOption) (*PermissionInfoResponse, error)
func (*ChatAdminHTTPClientImpl) CreateRole ¶
func (c *ChatAdminHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*RoleInfoResponse, error)
func (*ChatAdminHTTPClientImpl) CreateUser ¶
func (c *ChatAdminHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...http.CallOption) (*UserInfoResponse, error)
func (*ChatAdminHTTPClientImpl) DeletePermission ¶
func (c *ChatAdminHTTPClientImpl) DeletePermission(ctx context.Context, in *DeletePermissionRequest, opts ...http.CallOption) (*PermissionInfoResponse, error)
func (*ChatAdminHTTPClientImpl) DeleteRole ¶
func (c *ChatAdminHTTPClientImpl) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...http.CallOption) (*RoleInfoResponse, error)
func (*ChatAdminHTTPClientImpl) DeleteUser ¶
func (c *ChatAdminHTTPClientImpl) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...http.CallOption) (*UserInfoResponse, error)
func (*ChatAdminHTTPClientImpl) DeleteUserRole ¶
func (c *ChatAdminHTTPClientImpl) DeleteUserRole(ctx context.Context, in *DeleteUserRoleRequest, opts ...http.CallOption) (*DeleteUserRoleResponse, error)
func (*ChatAdminHTTPClientImpl) Login ¶
func (c *ChatAdminHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginResponse, error)
func (*ChatAdminHTTPClientImpl) PermissionInfo ¶
func (c *ChatAdminHTTPClientImpl) PermissionInfo(ctx context.Context, in *PermissionInfoRequest, opts ...http.CallOption) (*PermissionInfoResponse, error)
func (*ChatAdminHTTPClientImpl) PermissionList ¶
func (c *ChatAdminHTTPClientImpl) PermissionList(ctx context.Context, in *PermissionListRequest, opts ...http.CallOption) (*PermissionListResponse, error)
func (*ChatAdminHTTPClientImpl) RoleInfo ¶
func (c *ChatAdminHTTPClientImpl) RoleInfo(ctx context.Context, in *RoleInfoRequest, opts ...http.CallOption) (*RoleInfoResponse, error)
func (*ChatAdminHTTPClientImpl) RoleList ¶
func (c *ChatAdminHTTPClientImpl) RoleList(ctx context.Context, in *RoleListRequest, opts ...http.CallOption) (*RoleListResponse, error)
func (*ChatAdminHTTPClientImpl) SetUserRole ¶
func (c *ChatAdminHTTPClientImpl) SetUserRole(ctx context.Context, in *SetUserRoleRequest, opts ...http.CallOption) (*SetUserRoleResponse, error)
func (*ChatAdminHTTPClientImpl) UpdatePermission ¶
func (c *ChatAdminHTTPClientImpl) UpdatePermission(ctx context.Context, in *UpdatePermissionRequest, opts ...http.CallOption) (*PermissionInfoResponse, error)
func (*ChatAdminHTTPClientImpl) UpdateRole ¶
func (c *ChatAdminHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*RoleInfoResponse, error)
func (*ChatAdminHTTPClientImpl) UpdateUser ¶
func (c *ChatAdminHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*UserInfoResponse, error)
func (*ChatAdminHTTPClientImpl) UserInfo ¶
func (c *ChatAdminHTTPClientImpl) UserInfo(ctx context.Context, in *UserInfoRequest, opts ...http.CallOption) (*UserInfoResponse, error)
func (*ChatAdminHTTPClientImpl) UserList ¶
func (c *ChatAdminHTTPClientImpl) UserList(ctx context.Context, in *UserListRequest, opts ...http.CallOption) (*UserListResponse, error)
type ChatAdminHTTPServer ¶
type ChatAdminHTTPServer interface { CreatePermission(context.Context, *CreatePermissionRequest) (*PermissionInfoResponse, error) CreateRole(context.Context, *CreateRoleRequest) (*RoleInfoResponse, error) CreateUser(context.Context, *CreateUserRequest) (*UserInfoResponse, error) DeletePermission(context.Context, *DeletePermissionRequest) (*PermissionInfoResponse, error) DeleteRole(context.Context, *DeleteRoleRequest) (*RoleInfoResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*UserInfoResponse, error) DeleteUserRole(context.Context, *DeleteUserRoleRequest) (*DeleteUserRoleResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) PermissionInfo(context.Context, *PermissionInfoRequest) (*PermissionInfoResponse, error) PermissionList(context.Context, *PermissionListRequest) (*PermissionListResponse, error) RoleInfo(context.Context, *RoleInfoRequest) (*RoleInfoResponse, error) RoleList(context.Context, *RoleListRequest) (*RoleListResponse, error) SetUserRole(context.Context, *SetUserRoleRequest) (*SetUserRoleResponse, error) UpdatePermission(context.Context, *UpdatePermissionRequest) (*PermissionInfoResponse, error) UpdateRole(context.Context, *UpdateRoleRequest) (*RoleInfoResponse, error) UpdateUser(context.Context, *UpdateUserRequest) (*UserInfoResponse, error) UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error) UserList(context.Context, *UserListRequest) (*UserListResponse, error) }
type ChatAdminServer ¶
type ChatAdminServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) CreateUser(context.Context, *CreateUserRequest) (*UserInfoResponse, error) UpdateUser(context.Context, *UpdateUserRequest) (*UserInfoResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*UserInfoResponse, error) UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error) UserList(context.Context, *UserListRequest) (*UserListResponse, error) CreateRole(context.Context, *CreateRoleRequest) (*RoleInfoResponse, error) UpdateRole(context.Context, *UpdateRoleRequest) (*RoleInfoResponse, error) DeleteRole(context.Context, *DeleteRoleRequest) (*RoleInfoResponse, error) RoleInfo(context.Context, *RoleInfoRequest) (*RoleInfoResponse, error) RoleList(context.Context, *RoleListRequest) (*RoleListResponse, error) CreatePermission(context.Context, *CreatePermissionRequest) (*PermissionInfoResponse, error) UpdatePermission(context.Context, *UpdatePermissionRequest) (*PermissionInfoResponse, error) DeletePermission(context.Context, *DeletePermissionRequest) (*PermissionInfoResponse, error) PermissionInfo(context.Context, *PermissionInfoRequest) (*PermissionInfoResponse, error) PermissionList(context.Context, *PermissionListRequest) (*PermissionListResponse, error) SetUserRole(context.Context, *SetUserRoleRequest) (*SetUserRoleResponse, error) DeleteUserRole(context.Context, *DeleteUserRoleRequest) (*DeleteUserRoleResponse, error) // contains filtered or unexported methods }
ChatAdminServer is the server API for ChatAdmin service. All implementations must embed UnimplementedChatAdminServer for forward compatibility
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 }
权限创建请求
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 }
创建角色请求
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 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 }
创建用户请求
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 }
权限删除请求
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 }
删除角色请求
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 }
删除用户请求
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 { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
DeleteUserRoleResponse 删除用户角色响应
func (*DeleteUserRoleResponse) Descriptor
deprecated
func (*DeleteUserRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserRoleResponse) GetSuccess ¶
func (x *DeleteUserRoleResponse) GetSuccess() 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 LoginRequest ¶
type LoginRequest 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 }
登录请求
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest 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 (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest 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 LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
登录响应
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse 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 (*LoginResponse) ValidateAll ¶
func (m *LoginResponse) ValidateAll() error
ValidateAll checks the field values on LoginResponse 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 LoginResponseMultiError, or nil if none found.
type LoginResponseMultiError ¶
type LoginResponseMultiError []error
LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.
func (LoginResponseMultiError) AllErrors ¶
func (m LoginResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginResponseMultiError) Error ¶
func (m LoginResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type PermissionInfoRequest ¶
type PermissionInfoRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
权限信息请求
func (*PermissionInfoRequest) Descriptor
deprecated
func (*PermissionInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use PermissionInfoRequest.ProtoReflect.Descriptor instead.
func (*PermissionInfoRequest) GetId ¶
func (x *PermissionInfoRequest) GetId() uint64
func (*PermissionInfoRequest) ProtoMessage ¶
func (*PermissionInfoRequest) ProtoMessage()
func (*PermissionInfoRequest) ProtoReflect ¶
func (x *PermissionInfoRequest) ProtoReflect() protoreflect.Message
func (*PermissionInfoRequest) Reset ¶
func (x *PermissionInfoRequest) Reset()
func (*PermissionInfoRequest) String ¶
func (x *PermissionInfoRequest) String() string
func (*PermissionInfoRequest) Validate ¶
func (m *PermissionInfoRequest) Validate() error
Validate checks the field values on PermissionInfoRequest 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 (*PermissionInfoRequest) ValidateAll ¶
func (m *PermissionInfoRequest) ValidateAll() error
ValidateAll checks the field values on PermissionInfoRequest 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 PermissionInfoRequestMultiError, or nil if none found.
type PermissionInfoRequestMultiError ¶
type PermissionInfoRequestMultiError []error
PermissionInfoRequestMultiError is an error wrapping multiple validation errors returned by PermissionInfoRequest.ValidateAll() if the designated constraints aren't met.
func (PermissionInfoRequestMultiError) AllErrors ¶
func (m PermissionInfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermissionInfoRequestMultiError) Error ¶
func (m PermissionInfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermissionInfoRequestValidationError ¶
type PermissionInfoRequestValidationError struct {
// contains filtered or unexported fields
}
PermissionInfoRequestValidationError is the validation error returned by PermissionInfoRequest.Validate if the designated constraints aren't met.
func (PermissionInfoRequestValidationError) Cause ¶
func (e PermissionInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (PermissionInfoRequestValidationError) Error ¶
func (e PermissionInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionInfoRequestValidationError) ErrorName ¶
func (e PermissionInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionInfoRequestValidationError) Field ¶
func (e PermissionInfoRequestValidationError) Field() string
Field function returns field value.
func (PermissionInfoRequestValidationError) Key ¶
func (e PermissionInfoRequestValidationError) Key() bool
Key function returns key value.
func (PermissionInfoRequestValidationError) Reason ¶
func (e PermissionInfoRequestValidationError) 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 }
权限信息响应
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 PermissionListRequest ¶
type PermissionListRequest 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 }
权限列表请求
func (*PermissionListRequest) Descriptor
deprecated
func (*PermissionListRequest) Descriptor() ([]byte, []int)
Deprecated: Use PermissionListRequest.ProtoReflect.Descriptor instead.
func (*PermissionListRequest) GetPage ¶
func (x *PermissionListRequest) GetPage() int64
func (*PermissionListRequest) GetPageSize ¶
func (x *PermissionListRequest) GetPageSize() int64
func (*PermissionListRequest) ProtoMessage ¶
func (*PermissionListRequest) ProtoMessage()
func (*PermissionListRequest) ProtoReflect ¶
func (x *PermissionListRequest) ProtoReflect() protoreflect.Message
func (*PermissionListRequest) Reset ¶
func (x *PermissionListRequest) Reset()
func (*PermissionListRequest) String ¶
func (x *PermissionListRequest) String() string
func (*PermissionListRequest) Validate ¶
func (m *PermissionListRequest) Validate() error
Validate checks the field values on PermissionListRequest 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 (*PermissionListRequest) ValidateAll ¶
func (m *PermissionListRequest) ValidateAll() error
ValidateAll checks the field values on PermissionListRequest 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 PermissionListRequestMultiError, or nil if none found.
type PermissionListRequestMultiError ¶
type PermissionListRequestMultiError []error
PermissionListRequestMultiError is an error wrapping multiple validation errors returned by PermissionListRequest.ValidateAll() if the designated constraints aren't met.
func (PermissionListRequestMultiError) AllErrors ¶
func (m PermissionListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermissionListRequestMultiError) Error ¶
func (m PermissionListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermissionListRequestValidationError ¶
type PermissionListRequestValidationError struct {
// contains filtered or unexported fields
}
PermissionListRequestValidationError is the validation error returned by PermissionListRequest.Validate if the designated constraints aren't met.
func (PermissionListRequestValidationError) Cause ¶
func (e PermissionListRequestValidationError) Cause() error
Cause function returns cause value.
func (PermissionListRequestValidationError) Error ¶
func (e PermissionListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionListRequestValidationError) ErrorName ¶
func (e PermissionListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionListRequestValidationError) Field ¶
func (e PermissionListRequestValidationError) Field() string
Field function returns field value.
func (PermissionListRequestValidationError) Key ¶
func (e PermissionListRequestValidationError) Key() bool
Key function returns key value.
func (PermissionListRequestValidationError) Reason ¶
func (e PermissionListRequestValidationError) Reason() string
Reason function returns reason value.
type PermissionListResponse ¶
type PermissionListResponse struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Permissions []*PermissionInfoResponse `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
权限列表响应
func (*PermissionListResponse) Descriptor
deprecated
func (*PermissionListResponse) Descriptor() ([]byte, []int)
Deprecated: Use PermissionListResponse.ProtoReflect.Descriptor instead.
func (*PermissionListResponse) GetPermissions ¶
func (x *PermissionListResponse) GetPermissions() []*PermissionInfoResponse
func (*PermissionListResponse) GetTotal ¶
func (x *PermissionListResponse) GetTotal() int64
func (*PermissionListResponse) ProtoMessage ¶
func (*PermissionListResponse) ProtoMessage()
func (*PermissionListResponse) ProtoReflect ¶
func (x *PermissionListResponse) ProtoReflect() protoreflect.Message
func (*PermissionListResponse) Reset ¶
func (x *PermissionListResponse) Reset()
func (*PermissionListResponse) String ¶
func (x *PermissionListResponse) String() string
func (*PermissionListResponse) Validate ¶
func (m *PermissionListResponse) Validate() error
Validate checks the field values on PermissionListResponse 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 (*PermissionListResponse) ValidateAll ¶
func (m *PermissionListResponse) ValidateAll() error
ValidateAll checks the field values on PermissionListResponse 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 PermissionListResponseMultiError, or nil if none found.
type PermissionListResponseMultiError ¶
type PermissionListResponseMultiError []error
PermissionListResponseMultiError is an error wrapping multiple validation errors returned by PermissionListResponse.ValidateAll() if the designated constraints aren't met.
func (PermissionListResponseMultiError) AllErrors ¶
func (m PermissionListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermissionListResponseMultiError) Error ¶
func (m PermissionListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermissionListResponseValidationError ¶
type PermissionListResponseValidationError struct {
// contains filtered or unexported fields
}
PermissionListResponseValidationError is the validation error returned by PermissionListResponse.Validate if the designated constraints aren't met.
func (PermissionListResponseValidationError) Cause ¶
func (e PermissionListResponseValidationError) Cause() error
Cause function returns cause value.
func (PermissionListResponseValidationError) Error ¶
func (e PermissionListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionListResponseValidationError) ErrorName ¶
func (e PermissionListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionListResponseValidationError) Field ¶
func (e PermissionListResponseValidationError) Field() string
Field function returns field value.
func (PermissionListResponseValidationError) Key ¶
func (e PermissionListResponseValidationError) Key() bool
Key function returns key value.
func (PermissionListResponseValidationError) Reason ¶
func (e PermissionListResponseValidationError) Reason() string
Reason function returns reason value.
type RoleInfoRequest ¶
type RoleInfoRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
角色信息请求
func (*RoleInfoRequest) Descriptor
deprecated
func (*RoleInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use RoleInfoRequest.ProtoReflect.Descriptor instead.
func (*RoleInfoRequest) GetId ¶
func (x *RoleInfoRequest) GetId() uint64
func (*RoleInfoRequest) ProtoMessage ¶
func (*RoleInfoRequest) ProtoMessage()
func (*RoleInfoRequest) ProtoReflect ¶
func (x *RoleInfoRequest) ProtoReflect() protoreflect.Message
func (*RoleInfoRequest) Reset ¶
func (x *RoleInfoRequest) Reset()
func (*RoleInfoRequest) String ¶
func (x *RoleInfoRequest) String() string
func (*RoleInfoRequest) Validate ¶
func (m *RoleInfoRequest) Validate() error
Validate checks the field values on RoleInfoRequest 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 (*RoleInfoRequest) ValidateAll ¶
func (m *RoleInfoRequest) ValidateAll() error
ValidateAll checks the field values on RoleInfoRequest 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 RoleInfoRequestMultiError, or nil if none found.
type RoleInfoRequestMultiError ¶
type RoleInfoRequestMultiError []error
RoleInfoRequestMultiError is an error wrapping multiple validation errors returned by RoleInfoRequest.ValidateAll() if the designated constraints aren't met.
func (RoleInfoRequestMultiError) AllErrors ¶
func (m RoleInfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleInfoRequestMultiError) Error ¶
func (m RoleInfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleInfoRequestValidationError ¶
type RoleInfoRequestValidationError struct {
// contains filtered or unexported fields
}
RoleInfoRequestValidationError is the validation error returned by RoleInfoRequest.Validate if the designated constraints aren't met.
func (RoleInfoRequestValidationError) Cause ¶
func (e RoleInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (RoleInfoRequestValidationError) Error ¶
func (e RoleInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RoleInfoRequestValidationError) ErrorName ¶
func (e RoleInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RoleInfoRequestValidationError) Field ¶
func (e RoleInfoRequestValidationError) Field() string
Field function returns field value.
func (RoleInfoRequestValidationError) Key ¶
func (e RoleInfoRequestValidationError) Key() bool
Key function returns key value.
func (RoleInfoRequestValidationError) Reason ¶
func (e RoleInfoRequestValidationError) 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 }
角色信息响应
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 RoleListRequest ¶
type RoleListRequest 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 }
角色列表请求
func (*RoleListRequest) Descriptor
deprecated
func (*RoleListRequest) Descriptor() ([]byte, []int)
Deprecated: Use RoleListRequest.ProtoReflect.Descriptor instead.
func (*RoleListRequest) GetPage ¶
func (x *RoleListRequest) GetPage() int64
func (*RoleListRequest) GetPageSize ¶
func (x *RoleListRequest) GetPageSize() int64
func (*RoleListRequest) ProtoMessage ¶
func (*RoleListRequest) ProtoMessage()
func (*RoleListRequest) ProtoReflect ¶
func (x *RoleListRequest) ProtoReflect() protoreflect.Message
func (*RoleListRequest) Reset ¶
func (x *RoleListRequest) Reset()
func (*RoleListRequest) String ¶
func (x *RoleListRequest) String() string
func (*RoleListRequest) Validate ¶
func (m *RoleListRequest) Validate() error
Validate checks the field values on RoleListRequest 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 (*RoleListRequest) ValidateAll ¶
func (m *RoleListRequest) ValidateAll() error
ValidateAll checks the field values on RoleListRequest 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 RoleListRequestMultiError, or nil if none found.
type RoleListRequestMultiError ¶
type RoleListRequestMultiError []error
RoleListRequestMultiError is an error wrapping multiple validation errors returned by RoleListRequest.ValidateAll() if the designated constraints aren't met.
func (RoleListRequestMultiError) AllErrors ¶
func (m RoleListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleListRequestMultiError) Error ¶
func (m RoleListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleListRequestValidationError ¶
type RoleListRequestValidationError struct {
// contains filtered or unexported fields
}
RoleListRequestValidationError is the validation error returned by RoleListRequest.Validate if the designated constraints aren't met.
func (RoleListRequestValidationError) Cause ¶
func (e RoleListRequestValidationError) Cause() error
Cause function returns cause value.
func (RoleListRequestValidationError) Error ¶
func (e RoleListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RoleListRequestValidationError) ErrorName ¶
func (e RoleListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RoleListRequestValidationError) Field ¶
func (e RoleListRequestValidationError) Field() string
Field function returns field value.
func (RoleListRequestValidationError) Key ¶
func (e RoleListRequestValidationError) Key() bool
Key function returns key value.
func (RoleListRequestValidationError) Reason ¶
func (e RoleListRequestValidationError) Reason() string
Reason function returns reason value.
type RoleListResponse ¶
type RoleListResponse struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Roles []*RoleInfoResponse `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
角色列表响应
func (*RoleListResponse) Descriptor
deprecated
func (*RoleListResponse) Descriptor() ([]byte, []int)
Deprecated: Use RoleListResponse.ProtoReflect.Descriptor instead.
func (*RoleListResponse) GetRoles ¶
func (x *RoleListResponse) GetRoles() []*RoleInfoResponse
func (*RoleListResponse) GetTotal ¶
func (x *RoleListResponse) GetTotal() int64
func (*RoleListResponse) ProtoMessage ¶
func (*RoleListResponse) ProtoMessage()
func (*RoleListResponse) ProtoReflect ¶
func (x *RoleListResponse) ProtoReflect() protoreflect.Message
func (*RoleListResponse) Reset ¶
func (x *RoleListResponse) Reset()
func (*RoleListResponse) String ¶
func (x *RoleListResponse) String() string
func (*RoleListResponse) Validate ¶
func (m *RoleListResponse) Validate() error
Validate checks the field values on RoleListResponse 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 (*RoleListResponse) ValidateAll ¶
func (m *RoleListResponse) ValidateAll() error
ValidateAll checks the field values on RoleListResponse 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 RoleListResponseMultiError, or nil if none found.
type RoleListResponseMultiError ¶
type RoleListResponseMultiError []error
RoleListResponseMultiError is an error wrapping multiple validation errors returned by RoleListResponse.ValidateAll() if the designated constraints aren't met.
func (RoleListResponseMultiError) AllErrors ¶
func (m RoleListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleListResponseMultiError) Error ¶
func (m RoleListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleListResponseValidationError ¶
type RoleListResponseValidationError struct {
// contains filtered or unexported fields
}
RoleListResponseValidationError is the validation error returned by RoleListResponse.Validate if the designated constraints aren't met.
func (RoleListResponseValidationError) Cause ¶
func (e RoleListResponseValidationError) Cause() error
Cause function returns cause value.
func (RoleListResponseValidationError) Error ¶
func (e RoleListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RoleListResponseValidationError) ErrorName ¶
func (e RoleListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RoleListResponseValidationError) Field ¶
func (e RoleListResponseValidationError) Field() string
Field function returns field value.
func (RoleListResponseValidationError) Key ¶
func (e RoleListResponseValidationError) Key() bool
Key function returns key value.
func (RoleListResponseValidationError) Reason ¶
func (e RoleListResponseValidationError) 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 { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
SetUserRoleResponse 设置用户角色响应
func (*SetUserRoleResponse) Descriptor
deprecated
func (*SetUserRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetUserRoleResponse.ProtoReflect.Descriptor instead.
func (*SetUserRoleResponse) GetSuccess ¶
func (x *SetUserRoleResponse) GetSuccess() 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 UnimplementedChatAdminServer ¶
type UnimplementedChatAdminServer struct { }
UnimplementedChatAdminServer must be embedded to have forward compatible implementations.
func (UnimplementedChatAdminServer) CreatePermission ¶
func (UnimplementedChatAdminServer) CreatePermission(context.Context, *CreatePermissionRequest) (*PermissionInfoResponse, error)
func (UnimplementedChatAdminServer) CreateRole ¶
func (UnimplementedChatAdminServer) CreateRole(context.Context, *CreateRoleRequest) (*RoleInfoResponse, error)
func (UnimplementedChatAdminServer) CreateUser ¶
func (UnimplementedChatAdminServer) CreateUser(context.Context, *CreateUserRequest) (*UserInfoResponse, error)
func (UnimplementedChatAdminServer) DeletePermission ¶
func (UnimplementedChatAdminServer) DeletePermission(context.Context, *DeletePermissionRequest) (*PermissionInfoResponse, error)
func (UnimplementedChatAdminServer) DeleteRole ¶
func (UnimplementedChatAdminServer) DeleteRole(context.Context, *DeleteRoleRequest) (*RoleInfoResponse, error)
func (UnimplementedChatAdminServer) DeleteUser ¶
func (UnimplementedChatAdminServer) DeleteUser(context.Context, *DeleteUserRequest) (*UserInfoResponse, error)
func (UnimplementedChatAdminServer) DeleteUserRole ¶
func (UnimplementedChatAdminServer) DeleteUserRole(context.Context, *DeleteUserRoleRequest) (*DeleteUserRoleResponse, error)
func (UnimplementedChatAdminServer) Login ¶
func (UnimplementedChatAdminServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedChatAdminServer) PermissionInfo ¶
func (UnimplementedChatAdminServer) PermissionInfo(context.Context, *PermissionInfoRequest) (*PermissionInfoResponse, error)
func (UnimplementedChatAdminServer) PermissionList ¶
func (UnimplementedChatAdminServer) PermissionList(context.Context, *PermissionListRequest) (*PermissionListResponse, error)
func (UnimplementedChatAdminServer) RoleInfo ¶
func (UnimplementedChatAdminServer) RoleInfo(context.Context, *RoleInfoRequest) (*RoleInfoResponse, error)
func (UnimplementedChatAdminServer) RoleList ¶
func (UnimplementedChatAdminServer) RoleList(context.Context, *RoleListRequest) (*RoleListResponse, error)
func (UnimplementedChatAdminServer) SetUserRole ¶
func (UnimplementedChatAdminServer) SetUserRole(context.Context, *SetUserRoleRequest) (*SetUserRoleResponse, error)
func (UnimplementedChatAdminServer) UpdatePermission ¶
func (UnimplementedChatAdminServer) UpdatePermission(context.Context, *UpdatePermissionRequest) (*PermissionInfoResponse, error)
func (UnimplementedChatAdminServer) UpdateRole ¶
func (UnimplementedChatAdminServer) UpdateRole(context.Context, *UpdateRoleRequest) (*RoleInfoResponse, error)
func (UnimplementedChatAdminServer) UpdateUser ¶
func (UnimplementedChatAdminServer) UpdateUser(context.Context, *UpdateUserRequest) (*UserInfoResponse, error)
func (UnimplementedChatAdminServer) UserInfo ¶
func (UnimplementedChatAdminServer) UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error)
func (UnimplementedChatAdminServer) UserList ¶
func (UnimplementedChatAdminServer) UserList(context.Context, *UserListRequest) (*UserListResponse, error)
type UnsafeChatAdminServer ¶
type UnsafeChatAdminServer interface {
// contains filtered or unexported methods
}
UnsafeChatAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChatAdminServer 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 }
权限更新请求
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 }
更新角色请求
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 }
更新用户请求
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 UserInfoRequest ¶
type UserInfoRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
用户信息请求
func (*UserInfoRequest) Descriptor
deprecated
func (*UserInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoRequest.ProtoReflect.Descriptor instead.
func (*UserInfoRequest) GetId ¶
func (x *UserInfoRequest) GetId() uint64
func (*UserInfoRequest) ProtoMessage ¶
func (*UserInfoRequest) ProtoMessage()
func (*UserInfoRequest) ProtoReflect ¶
func (x *UserInfoRequest) ProtoReflect() protoreflect.Message
func (*UserInfoRequest) Reset ¶
func (x *UserInfoRequest) Reset()
func (*UserInfoRequest) String ¶
func (x *UserInfoRequest) String() string
func (*UserInfoRequest) Validate ¶
func (m *UserInfoRequest) Validate() error
Validate checks the field values on UserInfoRequest 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 (*UserInfoRequest) ValidateAll ¶
func (m *UserInfoRequest) ValidateAll() error
ValidateAll checks the field values on UserInfoRequest 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 UserInfoRequestMultiError, or nil if none found.
type UserInfoRequestMultiError ¶
type UserInfoRequestMultiError []error
UserInfoRequestMultiError is an error wrapping multiple validation errors returned by UserInfoRequest.ValidateAll() if the designated constraints aren't met.
func (UserInfoRequestMultiError) AllErrors ¶
func (m UserInfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserInfoRequestMultiError) Error ¶
func (m UserInfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserInfoRequestValidationError ¶
type UserInfoRequestValidationError struct {
// contains filtered or unexported fields
}
UserInfoRequestValidationError is the validation error returned by UserInfoRequest.Validate if the designated constraints aren't met.
func (UserInfoRequestValidationError) Cause ¶
func (e UserInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (UserInfoRequestValidationError) Error ¶
func (e UserInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserInfoRequestValidationError) ErrorName ¶
func (e UserInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserInfoRequestValidationError) Field ¶
func (e UserInfoRequestValidationError) Field() string
Field function returns field value.
func (UserInfoRequestValidationError) Key ¶
func (e UserInfoRequestValidationError) Key() bool
Key function returns key value.
func (UserInfoRequestValidationError) Reason ¶
func (e UserInfoRequestValidationError) Reason() string
Reason function returns reason value.
type UserInfoResponse ¶
type UserInfoResponse 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"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,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 }
用户信息响应
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) 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 UserListRequest ¶
type UserListRequest 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 }
用户列表请求
func (*UserListRequest) Descriptor
deprecated
func (*UserListRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserListRequest.ProtoReflect.Descriptor instead.
func (*UserListRequest) GetPage ¶
func (x *UserListRequest) GetPage() int64
func (*UserListRequest) GetPageSize ¶
func (x *UserListRequest) GetPageSize() int64
func (*UserListRequest) ProtoMessage ¶
func (*UserListRequest) ProtoMessage()
func (*UserListRequest) ProtoReflect ¶
func (x *UserListRequest) ProtoReflect() protoreflect.Message
func (*UserListRequest) Reset ¶
func (x *UserListRequest) Reset()
func (*UserListRequest) String ¶
func (x *UserListRequest) String() string
func (*UserListRequest) Validate ¶
func (m *UserListRequest) Validate() error
Validate checks the field values on UserListRequest 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 (*UserListRequest) ValidateAll ¶
func (m *UserListRequest) ValidateAll() error
ValidateAll checks the field values on UserListRequest 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 UserListRequestMultiError, or nil if none found.
type UserListRequestMultiError ¶
type UserListRequestMultiError []error
UserListRequestMultiError is an error wrapping multiple validation errors returned by UserListRequest.ValidateAll() if the designated constraints aren't met.
func (UserListRequestMultiError) AllErrors ¶
func (m UserListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserListRequestMultiError) Error ¶
func (m UserListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserListRequestValidationError ¶
type UserListRequestValidationError struct {
// contains filtered or unexported fields
}
UserListRequestValidationError is the validation error returned by UserListRequest.Validate if the designated constraints aren't met.
func (UserListRequestValidationError) Cause ¶
func (e UserListRequestValidationError) Cause() error
Cause function returns cause value.
func (UserListRequestValidationError) Error ¶
func (e UserListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserListRequestValidationError) ErrorName ¶
func (e UserListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserListRequestValidationError) Field ¶
func (e UserListRequestValidationError) Field() string
Field function returns field value.
func (UserListRequestValidationError) Key ¶
func (e UserListRequestValidationError) Key() bool
Key function returns key value.
func (UserListRequestValidationError) Reason ¶
func (e UserListRequestValidationError) Reason() string
Reason function returns reason value.
type UserListResponse ¶
type UserListResponse struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Users []*UserInfoResponse `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
用户列表响应
func (*UserListResponse) Descriptor
deprecated
func (*UserListResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserListResponse.ProtoReflect.Descriptor instead.
func (*UserListResponse) GetTotal ¶
func (x *UserListResponse) GetTotal() int64
func (*UserListResponse) GetUsers ¶
func (x *UserListResponse) GetUsers() []*UserInfoResponse
func (*UserListResponse) ProtoMessage ¶
func (*UserListResponse) ProtoMessage()
func (*UserListResponse) ProtoReflect ¶
func (x *UserListResponse) ProtoReflect() protoreflect.Message
func (*UserListResponse) Reset ¶
func (x *UserListResponse) Reset()
func (*UserListResponse) String ¶
func (x *UserListResponse) String() string
func (*UserListResponse) Validate ¶
func (m *UserListResponse) Validate() error
Validate checks the field values on UserListResponse 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 (*UserListResponse) ValidateAll ¶
func (m *UserListResponse) ValidateAll() error
ValidateAll checks the field values on UserListResponse 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 UserListResponseMultiError, or nil if none found.
type UserListResponseMultiError ¶
type UserListResponseMultiError []error
UserListResponseMultiError is an error wrapping multiple validation errors returned by UserListResponse.ValidateAll() if the designated constraints aren't met.
func (UserListResponseMultiError) AllErrors ¶
func (m UserListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserListResponseMultiError) Error ¶
func (m UserListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserListResponseValidationError ¶
type UserListResponseValidationError struct {
// contains filtered or unexported fields
}
UserListResponseValidationError is the validation error returned by UserListResponse.Validate if the designated constraints aren't met.
func (UserListResponseValidationError) Cause ¶
func (e UserListResponseValidationError) Cause() error
Cause function returns cause value.
func (UserListResponseValidationError) Error ¶
func (e UserListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserListResponseValidationError) ErrorName ¶
func (e UserListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserListResponseValidationError) Field ¶
func (e UserListResponseValidationError) Field() string
Field function returns field value.
func (UserListResponseValidationError) Key ¶
func (e UserListResponseValidationError) Key() bool
Key function returns key value.
func (UserListResponseValidationError) Reason ¶
func (e UserListResponseValidationError) Reason() string
Reason function returns reason value.