Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRoleHTTPServer(s *http.Server, srv RoleHTTPServer)
- func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)
- type CreateRoleReply
- func (*CreateRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleReply) GetId() uint32
- func (*CreateRoleReply) ProtoMessage()
- func (x *CreateRoleReply) ProtoReflect() protoreflect.Message
- func (x *CreateRoleReply) Reset()
- func (x *CreateRoleReply) String() string
- func (m *CreateRoleReply) Validate() error
- func (m *CreateRoleReply) ValidateAll() error
- type CreateRoleReplyMultiError
- type CreateRoleReplyValidationError
- func (e CreateRoleReplyValidationError) Cause() error
- func (e CreateRoleReplyValidationError) Error() string
- func (e CreateRoleReplyValidationError) ErrorName() string
- func (e CreateRoleReplyValidationError) Field() string
- func (e CreateRoleReplyValidationError) Key() bool
- func (e CreateRoleReplyValidationError) Reason() string
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetDataScope() string
- func (x *CreateRoleRequest) GetDepartmentIds() string
- func (x *CreateRoleRequest) GetDescription() string
- func (x *CreateRoleRequest) GetKeyword() string
- func (x *CreateRoleRequest) GetName() string
- func (x *CreateRoleRequest) GetParentId() uint32
- func (x *CreateRoleRequest) GetStatus() bool
- 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 DeleteRoleReply
- func (*DeleteRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleReply) GetTotal() uint32
- func (*DeleteRoleReply) ProtoMessage()
- func (x *DeleteRoleReply) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleReply) Reset()
- func (x *DeleteRoleReply) String() string
- func (m *DeleteRoleReply) Validate() error
- func (m *DeleteRoleReply) ValidateAll() error
- type DeleteRoleReplyMultiError
- type DeleteRoleReplyValidationError
- func (e DeleteRoleReplyValidationError) Cause() error
- func (e DeleteRoleReplyValidationError) Error() string
- func (e DeleteRoleReplyValidationError) ErrorName() string
- func (e DeleteRoleReplyValidationError) Field() string
- func (e DeleteRoleReplyValidationError) Key() bool
- func (e DeleteRoleReplyValidationError) Reason() string
- type DeleteRoleRequest
- func (*DeleteRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleRequest) GetIds() []uint32
- 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 GetRoleMenuIdsReply
- func (*GetRoleMenuIdsReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleMenuIdsReply) GetList() []uint32
- func (*GetRoleMenuIdsReply) ProtoMessage()
- func (x *GetRoleMenuIdsReply) ProtoReflect() protoreflect.Message
- func (x *GetRoleMenuIdsReply) Reset()
- func (x *GetRoleMenuIdsReply) String() string
- func (m *GetRoleMenuIdsReply) Validate() error
- func (m *GetRoleMenuIdsReply) ValidateAll() error
- type GetRoleMenuIdsReplyMultiError
- type GetRoleMenuIdsReplyValidationError
- func (e GetRoleMenuIdsReplyValidationError) Cause() error
- func (e GetRoleMenuIdsReplyValidationError) Error() string
- func (e GetRoleMenuIdsReplyValidationError) ErrorName() string
- func (e GetRoleMenuIdsReplyValidationError) Field() string
- func (e GetRoleMenuIdsReplyValidationError) Key() bool
- func (e GetRoleMenuIdsReplyValidationError) Reason() string
- type GetRoleMenuIdsRequest
- func (*GetRoleMenuIdsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleMenuIdsRequest) GetRoleId() uint32
- func (*GetRoleMenuIdsRequest) ProtoMessage()
- func (x *GetRoleMenuIdsRequest) ProtoReflect() protoreflect.Message
- func (x *GetRoleMenuIdsRequest) Reset()
- func (x *GetRoleMenuIdsRequest) String() string
- func (m *GetRoleMenuIdsRequest) Validate() error
- func (m *GetRoleMenuIdsRequest) ValidateAll() error
- type GetRoleMenuIdsRequestMultiError
- type GetRoleMenuIdsRequestValidationError
- func (e GetRoleMenuIdsRequestValidationError) Cause() error
- func (e GetRoleMenuIdsRequestValidationError) Error() string
- func (e GetRoleMenuIdsRequestValidationError) ErrorName() string
- func (e GetRoleMenuIdsRequestValidationError) Field() string
- func (e GetRoleMenuIdsRequestValidationError) Key() bool
- func (e GetRoleMenuIdsRequestValidationError) Reason() string
- type GetRoleReply
- func (*GetRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleReply) GetCreatedAt() uint32
- func (x *GetRoleReply) GetDataScope() string
- func (x *GetRoleReply) GetDepartmentIds() string
- func (x *GetRoleReply) GetDescription() string
- func (x *GetRoleReply) GetId() uint32
- func (x *GetRoleReply) GetKeyword() string
- func (x *GetRoleReply) GetName() string
- func (x *GetRoleReply) GetParentId() uint32
- func (x *GetRoleReply) GetStatus() bool
- func (x *GetRoleReply) GetUpdatedAt() uint32
- func (*GetRoleReply) ProtoMessage()
- func (x *GetRoleReply) ProtoReflect() protoreflect.Message
- func (x *GetRoleReply) Reset()
- func (x *GetRoleReply) String() string
- func (m *GetRoleReply) Validate() error
- func (m *GetRoleReply) ValidateAll() error
- type GetRoleReplyMultiError
- type GetRoleReplyValidationError
- func (e GetRoleReplyValidationError) Cause() error
- func (e GetRoleReplyValidationError) Error() string
- func (e GetRoleReplyValidationError) ErrorName() string
- func (e GetRoleReplyValidationError) Field() string
- func (e GetRoleReplyValidationError) Key() bool
- func (e GetRoleReplyValidationError) Reason() string
- type GetRoleRequest
- func (*GetRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleRequest) GetId() uint32
- func (x *GetRoleRequest) GetKeyword() string
- func (*GetRoleRequest) ProtoMessage()
- func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetRoleRequest) Reset()
- func (x *GetRoleRequest) String() string
- func (m *GetRoleRequest) Validate() error
- func (m *GetRoleRequest) ValidateAll() error
- type GetRoleRequestMultiError
- type GetRoleRequestValidationError
- func (e GetRoleRequestValidationError) Cause() error
- func (e GetRoleRequestValidationError) Error() string
- func (e GetRoleRequestValidationError) ErrorName() string
- func (e GetRoleRequestValidationError) Field() string
- func (e GetRoleRequestValidationError) Key() bool
- func (e GetRoleRequestValidationError) Reason() string
- type ListRoleReply
- func (*ListRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleReply) GetList() []*ListRoleReply_Role
- func (x *ListRoleReply) GetTotal() uint32
- func (*ListRoleReply) ProtoMessage()
- func (x *ListRoleReply) ProtoReflect() protoreflect.Message
- func (x *ListRoleReply) Reset()
- func (x *ListRoleReply) String() string
- func (m *ListRoleReply) Validate() error
- func (m *ListRoleReply) ValidateAll() error
- type ListRoleReplyMultiError
- type ListRoleReplyValidationError
- func (e ListRoleReplyValidationError) Cause() error
- func (e ListRoleReplyValidationError) Error() string
- func (e ListRoleReplyValidationError) ErrorName() string
- func (e ListRoleReplyValidationError) Field() string
- func (e ListRoleReplyValidationError) Key() bool
- func (e ListRoleReplyValidationError) Reason() string
- type ListRoleReply_Role
- func (*ListRoleReply_Role) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleReply_Role) GetChildren() []*ListRoleReply_Role
- func (x *ListRoleReply_Role) GetCreatedAt() uint32
- func (x *ListRoleReply_Role) GetDataScope() string
- func (x *ListRoleReply_Role) GetDepartmentIds() string
- func (x *ListRoleReply_Role) GetDescription() string
- func (x *ListRoleReply_Role) GetId() uint32
- func (x *ListRoleReply_Role) GetKeyword() string
- func (x *ListRoleReply_Role) GetName() string
- func (x *ListRoleReply_Role) GetParentId() uint32
- func (x *ListRoleReply_Role) GetStatus() bool
- func (x *ListRoleReply_Role) GetUpdatedAt() uint32
- func (*ListRoleReply_Role) ProtoMessage()
- func (x *ListRoleReply_Role) ProtoReflect() protoreflect.Message
- func (x *ListRoleReply_Role) Reset()
- func (x *ListRoleReply_Role) String() string
- func (m *ListRoleReply_Role) Validate() error
- func (m *ListRoleReply_Role) ValidateAll() error
- type ListRoleReply_RoleMultiError
- type ListRoleReply_RoleValidationError
- func (e ListRoleReply_RoleValidationError) Cause() error
- func (e ListRoleReply_RoleValidationError) Error() string
- func (e ListRoleReply_RoleValidationError) ErrorName() string
- func (e ListRoleReply_RoleValidationError) Field() string
- func (e ListRoleReply_RoleValidationError) Key() bool
- func (e ListRoleReply_RoleValidationError) Reason() string
- type ListRoleRequest
- func (*ListRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleRequest) GetKeyword() string
- func (x *ListRoleRequest) GetName() string
- func (x *ListRoleRequest) GetOrder() string
- func (x *ListRoleRequest) GetOrderBy() string
- func (*ListRoleRequest) ProtoMessage()
- func (x *ListRoleRequest) ProtoReflect() protoreflect.Message
- func (x *ListRoleRequest) Reset()
- func (x *ListRoleRequest) String() string
- func (m *ListRoleRequest) Validate() error
- func (m *ListRoleRequest) ValidateAll() error
- type ListRoleRequestMultiError
- type ListRoleRequestValidationError
- func (e ListRoleRequestValidationError) Cause() error
- func (e ListRoleRequestValidationError) Error() string
- func (e ListRoleRequestValidationError) ErrorName() string
- func (e ListRoleRequestValidationError) Field() string
- func (e ListRoleRequestValidationError) Key() bool
- func (e ListRoleRequestValidationError) Reason() string
- type RoleClient
- type RoleHTTPClient
- type RoleHTTPClientImpl
- func (c *RoleHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*CreateRoleReply, error)
- func (c *RoleHTTPClientImpl) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...http.CallOption) (*DeleteRoleReply, error)
- func (c *RoleHTTPClientImpl) GetRole(ctx context.Context, in *GetRoleRequest, opts ...http.CallOption) (*GetRoleReply, error)
- func (c *RoleHTTPClientImpl) GetRoleMenuIds(ctx context.Context, in *GetRoleMenuIdsRequest, opts ...http.CallOption) (*GetRoleMenuIdsReply, error)
- func (c *RoleHTTPClientImpl) ListRole(ctx context.Context, in *ListRoleRequest, opts ...http.CallOption) (*ListRoleReply, error)
- func (c *RoleHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*UpdateRoleReply, error)
- func (c *RoleHTTPClientImpl) UpdateRoleMenu(ctx context.Context, in *UpdateRoleMenuRequest, opts ...http.CallOption) (*UpdateRoleMenuReply, error)
- func (c *RoleHTTPClientImpl) UpdateRoleStatus(ctx context.Context, in *UpdateRoleStatusRequest, opts ...http.CallOption) (*UpdateRoleStatusReply, error)
- type RoleHTTPServer
- type RoleServer
- type UnimplementedRoleServer
- func (UnimplementedRoleServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error)
- func (UnimplementedRoleServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error)
- func (UnimplementedRoleServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error)
- func (UnimplementedRoleServer) GetRoleMenuIds(context.Context, *GetRoleMenuIdsRequest) (*GetRoleMenuIdsReply, error)
- func (UnimplementedRoleServer) ListRole(context.Context, *ListRoleRequest) (*ListRoleReply, error)
- func (UnimplementedRoleServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error)
- func (UnimplementedRoleServer) UpdateRoleMenu(context.Context, *UpdateRoleMenuRequest) (*UpdateRoleMenuReply, error)
- func (UnimplementedRoleServer) UpdateRoleStatus(context.Context, *UpdateRoleStatusRequest) (*UpdateRoleStatusReply, error)
- type UnsafeRoleServer
- type UpdateRoleMenuReply
- func (*UpdateRoleMenuReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateRoleMenuReply) ProtoMessage()
- func (x *UpdateRoleMenuReply) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleMenuReply) Reset()
- func (x *UpdateRoleMenuReply) String() string
- func (m *UpdateRoleMenuReply) Validate() error
- func (m *UpdateRoleMenuReply) ValidateAll() error
- type UpdateRoleMenuReplyMultiError
- type UpdateRoleMenuReplyValidationError
- func (e UpdateRoleMenuReplyValidationError) Cause() error
- func (e UpdateRoleMenuReplyValidationError) Error() string
- func (e UpdateRoleMenuReplyValidationError) ErrorName() string
- func (e UpdateRoleMenuReplyValidationError) Field() string
- func (e UpdateRoleMenuReplyValidationError) Key() bool
- func (e UpdateRoleMenuReplyValidationError) Reason() string
- type UpdateRoleMenuRequest
- func (*UpdateRoleMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleMenuRequest) GetMenuIds() []uint32
- func (x *UpdateRoleMenuRequest) GetRoleId() uint32
- func (*UpdateRoleMenuRequest) ProtoMessage()
- func (x *UpdateRoleMenuRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleMenuRequest) Reset()
- func (x *UpdateRoleMenuRequest) String() string
- func (m *UpdateRoleMenuRequest) Validate() error
- func (m *UpdateRoleMenuRequest) ValidateAll() error
- type UpdateRoleMenuRequestMultiError
- type UpdateRoleMenuRequestValidationError
- func (e UpdateRoleMenuRequestValidationError) Cause() error
- func (e UpdateRoleMenuRequestValidationError) Error() string
- func (e UpdateRoleMenuRequestValidationError) ErrorName() string
- func (e UpdateRoleMenuRequestValidationError) Field() string
- func (e UpdateRoleMenuRequestValidationError) Key() bool
- func (e UpdateRoleMenuRequestValidationError) Reason() string
- type UpdateRoleReply
- func (*UpdateRoleReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateRoleReply) ProtoMessage()
- func (x *UpdateRoleReply) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleReply) Reset()
- func (x *UpdateRoleReply) String() string
- func (m *UpdateRoleReply) Validate() error
- func (m *UpdateRoleReply) ValidateAll() error
- type UpdateRoleReplyMultiError
- type UpdateRoleReplyValidationError
- func (e UpdateRoleReplyValidationError) Cause() error
- func (e UpdateRoleReplyValidationError) Error() string
- func (e UpdateRoleReplyValidationError) ErrorName() string
- func (e UpdateRoleReplyValidationError) Field() string
- func (e UpdateRoleReplyValidationError) Key() bool
- func (e UpdateRoleReplyValidationError) Reason() string
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetDataScope() string
- func (x *UpdateRoleRequest) GetDepartmentIds() string
- func (x *UpdateRoleRequest) GetDescription() string
- func (x *UpdateRoleRequest) GetId() uint32
- func (x *UpdateRoleRequest) GetName() string
- func (x *UpdateRoleRequest) GetParentId() uint32
- 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 UpdateRoleStatusReply
- func (*UpdateRoleStatusReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateRoleStatusReply) ProtoMessage()
- func (x *UpdateRoleStatusReply) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleStatusReply) Reset()
- func (x *UpdateRoleStatusReply) String() string
- func (m *UpdateRoleStatusReply) Validate() error
- func (m *UpdateRoleStatusReply) ValidateAll() error
- type UpdateRoleStatusReplyMultiError
- type UpdateRoleStatusReplyValidationError
- func (e UpdateRoleStatusReplyValidationError) Cause() error
- func (e UpdateRoleStatusReplyValidationError) Error() string
- func (e UpdateRoleStatusReplyValidationError) ErrorName() string
- func (e UpdateRoleStatusReplyValidationError) Field() string
- func (e UpdateRoleStatusReplyValidationError) Key() bool
- func (e UpdateRoleStatusReplyValidationError) Reason() string
- type UpdateRoleStatusRequest
- func (*UpdateRoleStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleStatusRequest) GetId() uint32
- func (x *UpdateRoleStatusRequest) GetStatus() bool
- func (*UpdateRoleStatusRequest) ProtoMessage()
- func (x *UpdateRoleStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleStatusRequest) Reset()
- func (x *UpdateRoleStatusRequest) String() string
- func (m *UpdateRoleStatusRequest) Validate() error
- func (m *UpdateRoleStatusRequest) ValidateAll() error
- type UpdateRoleStatusRequestMultiError
- type UpdateRoleStatusRequestValidationError
- func (e UpdateRoleStatusRequestValidationError) Cause() error
- func (e UpdateRoleStatusRequestValidationError) Error() string
- func (e UpdateRoleStatusRequestValidationError) ErrorName() string
- func (e UpdateRoleStatusRequestValidationError) Field() string
- func (e UpdateRoleStatusRequestValidationError) Key() bool
- func (e UpdateRoleStatusRequestValidationError) Reason() string
Constants ¶
const ( Role_GetRoleMenuIds_FullMethodName = "/manager.api.manager.role.v1.Role/GetRoleMenuIds" Role_ListRole_FullMethodName = "/manager.api.manager.role.v1.Role/ListRole" Role_CreateRole_FullMethodName = "/manager.api.manager.role.v1.Role/CreateRole" Role_UpdateRole_FullMethodName = "/manager.api.manager.role.v1.Role/UpdateRole" Role_UpdateRoleMenu_FullMethodName = "/manager.api.manager.role.v1.Role/UpdateRoleMenu" Role_UpdateRoleStatus_FullMethodName = "/manager.api.manager.role.v1.Role/UpdateRoleStatus" Role_DeleteRole_FullMethodName = "/manager.api.manager.role.v1.Role/DeleteRole" Role_GetRole_FullMethodName = "/manager.api.manager.role.v1.Role/GetRole" )
const OperationRoleCreateRole = "/manager.api.manager.role.v1.Role/CreateRole"
const OperationRoleDeleteRole = "/manager.api.manager.role.v1.Role/DeleteRole"
const OperationRoleGetRole = "/manager.api.manager.role.v1.Role/GetRole"
const OperationRoleGetRoleMenuIds = "/manager.api.manager.role.v1.Role/GetRoleMenuIds"
const OperationRoleListRole = "/manager.api.manager.role.v1.Role/ListRole"
const OperationRoleUpdateRole = "/manager.api.manager.role.v1.Role/UpdateRole"
const OperationRoleUpdateRoleMenu = "/manager.api.manager.role.v1.Role/UpdateRoleMenu"
const OperationRoleUpdateRoleStatus = "/manager.api.manager.role.v1.Role/UpdateRoleStatus"
Variables ¶
var File_api_manager_role_manager_role_proto protoreflect.FileDescriptor
var File_api_manager_role_manager_role_service_proto protoreflect.FileDescriptor
var Role_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.api.manager.role.v1.Role", HandlerType: (*RoleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRoleMenuIds", Handler: _Role_GetRoleMenuIds_Handler, }, { MethodName: "ListRole", Handler: _Role_ListRole_Handler, }, { MethodName: "CreateRole", Handler: _Role_CreateRole_Handler, }, { MethodName: "UpdateRole", Handler: _Role_UpdateRole_Handler, }, { MethodName: "UpdateRoleMenu", Handler: _Role_UpdateRoleMenu_Handler, }, { MethodName: "UpdateRoleStatus", Handler: _Role_UpdateRoleStatus_Handler, }, { MethodName: "DeleteRole", Handler: _Role_DeleteRole_Handler, }, { MethodName: "GetRole", Handler: _Role_GetRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/manager/role/manager_role_service.proto", }
Role_ServiceDesc is the grpc.ServiceDesc for Role service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRoleHTTPServer ¶
func RegisterRoleHTTPServer(s *http.Server, srv RoleHTTPServer)
func RegisterRoleServer ¶
func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)
Types ¶
type CreateRoleReply ¶
type CreateRoleReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleReply) Descriptor
deprecated
func (*CreateRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleReply.ProtoReflect.Descriptor instead.
func (*CreateRoleReply) GetId ¶
func (x *CreateRoleReply) GetId() uint32
func (*CreateRoleReply) ProtoMessage ¶
func (*CreateRoleReply) ProtoMessage()
func (*CreateRoleReply) ProtoReflect ¶
func (x *CreateRoleReply) ProtoReflect() protoreflect.Message
func (*CreateRoleReply) Reset ¶
func (x *CreateRoleReply) Reset()
func (*CreateRoleReply) String ¶
func (x *CreateRoleReply) String() string
func (*CreateRoleReply) Validate ¶
func (m *CreateRoleReply) Validate() error
Validate checks the field values on CreateRoleReply 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 (*CreateRoleReply) ValidateAll ¶
func (m *CreateRoleReply) ValidateAll() error
ValidateAll checks the field values on CreateRoleReply 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 CreateRoleReplyMultiError, or nil if none found.
type CreateRoleReplyMultiError ¶
type CreateRoleReplyMultiError []error
CreateRoleReplyMultiError is an error wrapping multiple validation errors returned by CreateRoleReply.ValidateAll() if the designated constraints aren't met.
func (CreateRoleReplyMultiError) AllErrors ¶
func (m CreateRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleReplyMultiError) Error ¶
func (m CreateRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleReplyValidationError ¶
type CreateRoleReplyValidationError struct {
// contains filtered or unexported fields
}
CreateRoleReplyValidationError is the validation error returned by CreateRoleReply.Validate if the designated constraints aren't met.
func (CreateRoleReplyValidationError) Cause ¶
func (e CreateRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleReplyValidationError) Error ¶
func (e CreateRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleReplyValidationError) ErrorName ¶
func (e CreateRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleReplyValidationError) Field ¶
func (e CreateRoleReplyValidationError) Field() string
Field function returns field value.
func (CreateRoleReplyValidationError) Key ¶
func (e CreateRoleReplyValidationError) Key() bool
Key function returns key value.
func (CreateRoleReplyValidationError) Reason ¶
func (e CreateRoleReplyValidationError) Reason() string
Reason function returns reason value.
type CreateRoleRequest ¶
type CreateRoleRequest struct { ParentId uint32 `protobuf:"varint,1,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` Status *bool `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"` DataScope string `protobuf:"bytes,5,opt,name=dataScope,proto3" json:"dataScope,omitempty"` DepartmentIds *string `protobuf:"bytes,6,opt,name=departmentIds,proto3,oneof" json:"departmentIds,omitempty"` Description *string `protobuf:"bytes,7,opt,name=description,proto3,oneof" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetDataScope ¶
func (x *CreateRoleRequest) GetDataScope() string
func (*CreateRoleRequest) GetDepartmentIds ¶
func (x *CreateRoleRequest) GetDepartmentIds() string
func (*CreateRoleRequest) GetDescription ¶
func (x *CreateRoleRequest) GetDescription() string
func (*CreateRoleRequest) GetKeyword ¶
func (x *CreateRoleRequest) GetKeyword() string
func (*CreateRoleRequest) GetName ¶
func (x *CreateRoleRequest) GetName() string
func (*CreateRoleRequest) GetParentId ¶
func (x *CreateRoleRequest) GetParentId() uint32
func (*CreateRoleRequest) GetStatus ¶
func (x *CreateRoleRequest) GetStatus() bool
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 DeleteRoleReply ¶
type DeleteRoleReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*DeleteRoleReply) Descriptor
deprecated
func (*DeleteRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleReply.ProtoReflect.Descriptor instead.
func (*DeleteRoleReply) GetTotal ¶
func (x *DeleteRoleReply) GetTotal() uint32
func (*DeleteRoleReply) ProtoMessage ¶
func (*DeleteRoleReply) ProtoMessage()
func (*DeleteRoleReply) ProtoReflect ¶
func (x *DeleteRoleReply) ProtoReflect() protoreflect.Message
func (*DeleteRoleReply) Reset ¶
func (x *DeleteRoleReply) Reset()
func (*DeleteRoleReply) String ¶
func (x *DeleteRoleReply) String() string
func (*DeleteRoleReply) Validate ¶
func (m *DeleteRoleReply) Validate() error
Validate checks the field values on DeleteRoleReply 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 (*DeleteRoleReply) ValidateAll ¶
func (m *DeleteRoleReply) ValidateAll() error
ValidateAll checks the field values on DeleteRoleReply 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 DeleteRoleReplyMultiError, or nil if none found.
type DeleteRoleReplyMultiError ¶
type DeleteRoleReplyMultiError []error
DeleteRoleReplyMultiError is an error wrapping multiple validation errors returned by DeleteRoleReply.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleReplyMultiError) AllErrors ¶
func (m DeleteRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleReplyMultiError) Error ¶
func (m DeleteRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleReplyValidationError ¶
type DeleteRoleReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleReplyValidationError is the validation error returned by DeleteRoleReply.Validate if the designated constraints aren't met.
func (DeleteRoleReplyValidationError) Cause ¶
func (e DeleteRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleReplyValidationError) Error ¶
func (e DeleteRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleReplyValidationError) ErrorName ¶
func (e DeleteRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleReplyValidationError) Field ¶
func (e DeleteRoleReplyValidationError) Field() string
Field function returns field value.
func (DeleteRoleReplyValidationError) Key ¶
func (e DeleteRoleReplyValidationError) Key() bool
Key function returns key value.
func (DeleteRoleReplyValidationError) Reason ¶
func (e DeleteRoleReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteRoleRequest ¶
type DeleteRoleRequest struct { Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) GetIds ¶
func (x *DeleteRoleRequest) GetIds() []uint32
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 GetRoleMenuIdsReply ¶
type GetRoleMenuIdsReply struct { List []uint32 `protobuf:"varint,1,rep,packed,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetRoleMenuIdsReply) Descriptor
deprecated
func (*GetRoleMenuIdsReply) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleMenuIdsReply.ProtoReflect.Descriptor instead.
func (*GetRoleMenuIdsReply) GetList ¶
func (x *GetRoleMenuIdsReply) GetList() []uint32
func (*GetRoleMenuIdsReply) ProtoMessage ¶
func (*GetRoleMenuIdsReply) ProtoMessage()
func (*GetRoleMenuIdsReply) ProtoReflect ¶
func (x *GetRoleMenuIdsReply) ProtoReflect() protoreflect.Message
func (*GetRoleMenuIdsReply) Reset ¶
func (x *GetRoleMenuIdsReply) Reset()
func (*GetRoleMenuIdsReply) String ¶
func (x *GetRoleMenuIdsReply) String() string
func (*GetRoleMenuIdsReply) Validate ¶
func (m *GetRoleMenuIdsReply) Validate() error
Validate checks the field values on GetRoleMenuIdsReply 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 (*GetRoleMenuIdsReply) ValidateAll ¶
func (m *GetRoleMenuIdsReply) ValidateAll() error
ValidateAll checks the field values on GetRoleMenuIdsReply 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 GetRoleMenuIdsReplyMultiError, or nil if none found.
type GetRoleMenuIdsReplyMultiError ¶
type GetRoleMenuIdsReplyMultiError []error
GetRoleMenuIdsReplyMultiError is an error wrapping multiple validation errors returned by GetRoleMenuIdsReply.ValidateAll() if the designated constraints aren't met.
func (GetRoleMenuIdsReplyMultiError) AllErrors ¶
func (m GetRoleMenuIdsReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleMenuIdsReplyMultiError) Error ¶
func (m GetRoleMenuIdsReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleMenuIdsReplyValidationError ¶
type GetRoleMenuIdsReplyValidationError struct {
// contains filtered or unexported fields
}
GetRoleMenuIdsReplyValidationError is the validation error returned by GetRoleMenuIdsReply.Validate if the designated constraints aren't met.
func (GetRoleMenuIdsReplyValidationError) Cause ¶
func (e GetRoleMenuIdsReplyValidationError) Cause() error
Cause function returns cause value.
func (GetRoleMenuIdsReplyValidationError) Error ¶
func (e GetRoleMenuIdsReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleMenuIdsReplyValidationError) ErrorName ¶
func (e GetRoleMenuIdsReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleMenuIdsReplyValidationError) Field ¶
func (e GetRoleMenuIdsReplyValidationError) Field() string
Field function returns field value.
func (GetRoleMenuIdsReplyValidationError) Key ¶
func (e GetRoleMenuIdsReplyValidationError) Key() bool
Key function returns key value.
func (GetRoleMenuIdsReplyValidationError) Reason ¶
func (e GetRoleMenuIdsReplyValidationError) Reason() string
Reason function returns reason value.
type GetRoleMenuIdsRequest ¶
type GetRoleMenuIdsRequest struct { RoleId uint32 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"` // contains filtered or unexported fields }
func (*GetRoleMenuIdsRequest) Descriptor
deprecated
func (*GetRoleMenuIdsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleMenuIdsRequest.ProtoReflect.Descriptor instead.
func (*GetRoleMenuIdsRequest) GetRoleId ¶
func (x *GetRoleMenuIdsRequest) GetRoleId() uint32
func (*GetRoleMenuIdsRequest) ProtoMessage ¶
func (*GetRoleMenuIdsRequest) ProtoMessage()
func (*GetRoleMenuIdsRequest) ProtoReflect ¶
func (x *GetRoleMenuIdsRequest) ProtoReflect() protoreflect.Message
func (*GetRoleMenuIdsRequest) Reset ¶
func (x *GetRoleMenuIdsRequest) Reset()
func (*GetRoleMenuIdsRequest) String ¶
func (x *GetRoleMenuIdsRequest) String() string
func (*GetRoleMenuIdsRequest) Validate ¶
func (m *GetRoleMenuIdsRequest) Validate() error
Validate checks the field values on GetRoleMenuIdsRequest 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 (*GetRoleMenuIdsRequest) ValidateAll ¶
func (m *GetRoleMenuIdsRequest) ValidateAll() error
ValidateAll checks the field values on GetRoleMenuIdsRequest 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 GetRoleMenuIdsRequestMultiError, or nil if none found.
type GetRoleMenuIdsRequestMultiError ¶
type GetRoleMenuIdsRequestMultiError []error
GetRoleMenuIdsRequestMultiError is an error wrapping multiple validation errors returned by GetRoleMenuIdsRequest.ValidateAll() if the designated constraints aren't met.
func (GetRoleMenuIdsRequestMultiError) AllErrors ¶
func (m GetRoleMenuIdsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleMenuIdsRequestMultiError) Error ¶
func (m GetRoleMenuIdsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleMenuIdsRequestValidationError ¶
type GetRoleMenuIdsRequestValidationError struct {
// contains filtered or unexported fields
}
GetRoleMenuIdsRequestValidationError is the validation error returned by GetRoleMenuIdsRequest.Validate if the designated constraints aren't met.
func (GetRoleMenuIdsRequestValidationError) Cause ¶
func (e GetRoleMenuIdsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRoleMenuIdsRequestValidationError) Error ¶
func (e GetRoleMenuIdsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleMenuIdsRequestValidationError) ErrorName ¶
func (e GetRoleMenuIdsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleMenuIdsRequestValidationError) Field ¶
func (e GetRoleMenuIdsRequestValidationError) Field() string
Field function returns field value.
func (GetRoleMenuIdsRequestValidationError) Key ¶
func (e GetRoleMenuIdsRequestValidationError) Key() bool
Key function returns key value.
func (GetRoleMenuIdsRequestValidationError) Reason ¶
func (e GetRoleMenuIdsRequestValidationError) Reason() string
Reason function returns reason value.
type GetRoleReply ¶
type GetRoleReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"` Status *bool `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"` DataScope string `protobuf:"bytes,6,opt,name=dataScope,proto3" json:"dataScope,omitempty"` DepartmentIds *string `protobuf:"bytes,7,opt,name=departmentIds,proto3,oneof" json:"departmentIds,omitempty"` Description *string `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"` CreatedAt uint32 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetRoleReply) Descriptor
deprecated
func (*GetRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleReply.ProtoReflect.Descriptor instead.
func (*GetRoleReply) GetCreatedAt ¶
func (x *GetRoleReply) GetCreatedAt() uint32
func (*GetRoleReply) GetDataScope ¶
func (x *GetRoleReply) GetDataScope() string
func (*GetRoleReply) GetDepartmentIds ¶
func (x *GetRoleReply) GetDepartmentIds() string
func (*GetRoleReply) GetDescription ¶
func (x *GetRoleReply) GetDescription() string
func (*GetRoleReply) GetId ¶
func (x *GetRoleReply) GetId() uint32
func (*GetRoleReply) GetKeyword ¶
func (x *GetRoleReply) GetKeyword() string
func (*GetRoleReply) GetName ¶
func (x *GetRoleReply) GetName() string
func (*GetRoleReply) GetParentId ¶
func (x *GetRoleReply) GetParentId() uint32
func (*GetRoleReply) GetStatus ¶
func (x *GetRoleReply) GetStatus() bool
func (*GetRoleReply) GetUpdatedAt ¶
func (x *GetRoleReply) GetUpdatedAt() uint32
func (*GetRoleReply) ProtoMessage ¶
func (*GetRoleReply) ProtoMessage()
func (*GetRoleReply) ProtoReflect ¶
func (x *GetRoleReply) ProtoReflect() protoreflect.Message
func (*GetRoleReply) Reset ¶
func (x *GetRoleReply) Reset()
func (*GetRoleReply) String ¶
func (x *GetRoleReply) String() string
func (*GetRoleReply) Validate ¶
func (m *GetRoleReply) Validate() error
Validate checks the field values on GetRoleReply 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 (*GetRoleReply) ValidateAll ¶
func (m *GetRoleReply) ValidateAll() error
ValidateAll checks the field values on GetRoleReply 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 GetRoleReplyMultiError, or nil if none found.
type GetRoleReplyMultiError ¶
type GetRoleReplyMultiError []error
GetRoleReplyMultiError is an error wrapping multiple validation errors returned by GetRoleReply.ValidateAll() if the designated constraints aren't met.
func (GetRoleReplyMultiError) AllErrors ¶
func (m GetRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleReplyMultiError) Error ¶
func (m GetRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleReplyValidationError ¶
type GetRoleReplyValidationError struct {
// contains filtered or unexported fields
}
GetRoleReplyValidationError is the validation error returned by GetRoleReply.Validate if the designated constraints aren't met.
func (GetRoleReplyValidationError) Cause ¶
func (e GetRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (GetRoleReplyValidationError) Error ¶
func (e GetRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleReplyValidationError) ErrorName ¶
func (e GetRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleReplyValidationError) Field ¶
func (e GetRoleReplyValidationError) Field() string
Field function returns field value.
func (GetRoleReplyValidationError) Key ¶
func (e GetRoleReplyValidationError) Key() bool
Key function returns key value.
func (GetRoleReplyValidationError) Reason ¶
func (e GetRoleReplyValidationError) Reason() string
Reason function returns reason value.
type GetRoleRequest ¶
type GetRoleRequest struct { Id *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` Keyword *string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` // contains filtered or unexported fields }
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) GetId ¶
func (x *GetRoleRequest) GetId() uint32
func (*GetRoleRequest) GetKeyword ¶
func (x *GetRoleRequest) GetKeyword() string
func (*GetRoleRequest) ProtoMessage ¶
func (*GetRoleRequest) ProtoMessage()
func (*GetRoleRequest) ProtoReflect ¶
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
func (*GetRoleRequest) Reset ¶
func (x *GetRoleRequest) Reset()
func (*GetRoleRequest) String ¶
func (x *GetRoleRequest) String() string
func (*GetRoleRequest) Validate ¶
func (m *GetRoleRequest) Validate() error
Validate checks the field values on GetRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRoleRequest) ValidateAll ¶
func (m *GetRoleRequest) ValidateAll() error
ValidateAll checks the field values on GetRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRoleRequestMultiError, or nil if none found.
type GetRoleRequestMultiError ¶
type GetRoleRequestMultiError []error
GetRoleRequestMultiError is an error wrapping multiple validation errors returned by GetRoleRequest.ValidateAll() if the designated constraints aren't met.
func (GetRoleRequestMultiError) AllErrors ¶
func (m GetRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleRequestMultiError) Error ¶
func (m GetRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleRequestValidationError ¶
type GetRoleRequestValidationError struct {
// contains filtered or unexported fields
}
GetRoleRequestValidationError is the validation error returned by GetRoleRequest.Validate if the designated constraints aren't met.
func (GetRoleRequestValidationError) Cause ¶
func (e GetRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRoleRequestValidationError) Error ¶
func (e GetRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleRequestValidationError) ErrorName ¶
func (e GetRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleRequestValidationError) Field ¶
func (e GetRoleRequestValidationError) Field() string
Field function returns field value.
func (GetRoleRequestValidationError) Key ¶
func (e GetRoleRequestValidationError) Key() bool
Key function returns key value.
func (GetRoleRequestValidationError) Reason ¶
func (e GetRoleRequestValidationError) Reason() string
Reason function returns reason value.
type ListRoleReply ¶
type ListRoleReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ListRoleReply_Role `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListRoleReply) Descriptor
deprecated
func (*ListRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleReply.ProtoReflect.Descriptor instead.
func (*ListRoleReply) GetList ¶
func (x *ListRoleReply) GetList() []*ListRoleReply_Role
func (*ListRoleReply) GetTotal ¶
func (x *ListRoleReply) GetTotal() uint32
func (*ListRoleReply) ProtoMessage ¶
func (*ListRoleReply) ProtoMessage()
func (*ListRoleReply) ProtoReflect ¶
func (x *ListRoleReply) ProtoReflect() protoreflect.Message
func (*ListRoleReply) Reset ¶
func (x *ListRoleReply) Reset()
func (*ListRoleReply) String ¶
func (x *ListRoleReply) String() string
func (*ListRoleReply) Validate ¶
func (m *ListRoleReply) Validate() error
Validate checks the field values on ListRoleReply 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 (*ListRoleReply) ValidateAll ¶
func (m *ListRoleReply) ValidateAll() error
ValidateAll checks the field values on ListRoleReply 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 ListRoleReplyMultiError, or nil if none found.
type ListRoleReplyMultiError ¶
type ListRoleReplyMultiError []error
ListRoleReplyMultiError is an error wrapping multiple validation errors returned by ListRoleReply.ValidateAll() if the designated constraints aren't met.
func (ListRoleReplyMultiError) AllErrors ¶
func (m ListRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleReplyMultiError) Error ¶
func (m ListRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleReplyValidationError ¶
type ListRoleReplyValidationError struct {
// contains filtered or unexported fields
}
ListRoleReplyValidationError is the validation error returned by ListRoleReply.Validate if the designated constraints aren't met.
func (ListRoleReplyValidationError) Cause ¶
func (e ListRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (ListRoleReplyValidationError) Error ¶
func (e ListRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleReplyValidationError) ErrorName ¶
func (e ListRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleReplyValidationError) Field ¶
func (e ListRoleReplyValidationError) Field() string
Field function returns field value.
func (ListRoleReplyValidationError) Key ¶
func (e ListRoleReplyValidationError) Key() bool
Key function returns key value.
func (ListRoleReplyValidationError) Reason ¶
func (e ListRoleReplyValidationError) Reason() string
Reason function returns reason value.
type ListRoleReply_Role ¶
type ListRoleReply_Role struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"` Status *bool `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"` DataScope string `protobuf:"bytes,6,opt,name=dataScope,proto3" json:"dataScope,omitempty"` DepartmentIds *string `protobuf:"bytes,7,opt,name=departmentIds,proto3,oneof" json:"departmentIds,omitempty"` Description *string `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"` CreatedAt uint32 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` Children []*ListRoleReply_Role `protobuf:"bytes,11,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
func (*ListRoleReply_Role) Descriptor
deprecated
func (*ListRoleReply_Role) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleReply_Role.ProtoReflect.Descriptor instead.
func (*ListRoleReply_Role) GetChildren ¶
func (x *ListRoleReply_Role) GetChildren() []*ListRoleReply_Role
func (*ListRoleReply_Role) GetCreatedAt ¶
func (x *ListRoleReply_Role) GetCreatedAt() uint32
func (*ListRoleReply_Role) GetDataScope ¶
func (x *ListRoleReply_Role) GetDataScope() string
func (*ListRoleReply_Role) GetDepartmentIds ¶
func (x *ListRoleReply_Role) GetDepartmentIds() string
func (*ListRoleReply_Role) GetDescription ¶
func (x *ListRoleReply_Role) GetDescription() string
func (*ListRoleReply_Role) GetId ¶
func (x *ListRoleReply_Role) GetId() uint32
func (*ListRoleReply_Role) GetKeyword ¶
func (x *ListRoleReply_Role) GetKeyword() string
func (*ListRoleReply_Role) GetName ¶
func (x *ListRoleReply_Role) GetName() string
func (*ListRoleReply_Role) GetParentId ¶
func (x *ListRoleReply_Role) GetParentId() uint32
func (*ListRoleReply_Role) GetStatus ¶
func (x *ListRoleReply_Role) GetStatus() bool
func (*ListRoleReply_Role) GetUpdatedAt ¶
func (x *ListRoleReply_Role) GetUpdatedAt() uint32
func (*ListRoleReply_Role) ProtoMessage ¶
func (*ListRoleReply_Role) ProtoMessage()
func (*ListRoleReply_Role) ProtoReflect ¶
func (x *ListRoleReply_Role) ProtoReflect() protoreflect.Message
func (*ListRoleReply_Role) Reset ¶
func (x *ListRoleReply_Role) Reset()
func (*ListRoleReply_Role) String ¶
func (x *ListRoleReply_Role) String() string
func (*ListRoleReply_Role) Validate ¶
func (m *ListRoleReply_Role) Validate() error
Validate checks the field values on ListRoleReply_Role with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListRoleReply_Role) ValidateAll ¶
func (m *ListRoleReply_Role) ValidateAll() error
ValidateAll checks the field values on ListRoleReply_Role with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRoleReply_RoleMultiError, or nil if none found.
type ListRoleReply_RoleMultiError ¶
type ListRoleReply_RoleMultiError []error
ListRoleReply_RoleMultiError is an error wrapping multiple validation errors returned by ListRoleReply_Role.ValidateAll() if the designated constraints aren't met.
func (ListRoleReply_RoleMultiError) AllErrors ¶
func (m ListRoleReply_RoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleReply_RoleMultiError) Error ¶
func (m ListRoleReply_RoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleReply_RoleValidationError ¶
type ListRoleReply_RoleValidationError struct {
// contains filtered or unexported fields
}
ListRoleReply_RoleValidationError is the validation error returned by ListRoleReply_Role.Validate if the designated constraints aren't met.
func (ListRoleReply_RoleValidationError) Cause ¶
func (e ListRoleReply_RoleValidationError) Cause() error
Cause function returns cause value.
func (ListRoleReply_RoleValidationError) Error ¶
func (e ListRoleReply_RoleValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleReply_RoleValidationError) ErrorName ¶
func (e ListRoleReply_RoleValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleReply_RoleValidationError) Field ¶
func (e ListRoleReply_RoleValidationError) Field() string
Field function returns field value.
func (ListRoleReply_RoleValidationError) Key ¶
func (e ListRoleReply_RoleValidationError) Key() bool
Key function returns key value.
func (ListRoleReply_RoleValidationError) Reason ¶
func (e ListRoleReply_RoleValidationError) Reason() string
Reason function returns reason value.
type ListRoleRequest ¶
type ListRoleRequest struct { Order *string `protobuf:"bytes,1,opt,name=order,proto3,oneof" json:"order,omitempty"` OrderBy *string `protobuf:"bytes,2,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` Keyword *string `protobuf:"bytes,4,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` // contains filtered or unexported fields }
func (*ListRoleRequest) Descriptor
deprecated
func (*ListRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleRequest.ProtoReflect.Descriptor instead.
func (*ListRoleRequest) GetKeyword ¶
func (x *ListRoleRequest) GetKeyword() string
func (*ListRoleRequest) GetName ¶
func (x *ListRoleRequest) GetName() string
func (*ListRoleRequest) GetOrder ¶
func (x *ListRoleRequest) GetOrder() string
func (*ListRoleRequest) GetOrderBy ¶
func (x *ListRoleRequest) GetOrderBy() string
func (*ListRoleRequest) ProtoMessage ¶
func (*ListRoleRequest) ProtoMessage()
func (*ListRoleRequest) ProtoReflect ¶
func (x *ListRoleRequest) ProtoReflect() protoreflect.Message
func (*ListRoleRequest) Reset ¶
func (x *ListRoleRequest) Reset()
func (*ListRoleRequest) String ¶
func (x *ListRoleRequest) String() string
func (*ListRoleRequest) Validate ¶
func (m *ListRoleRequest) Validate() error
Validate checks the field values on ListRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListRoleRequest) ValidateAll ¶
func (m *ListRoleRequest) ValidateAll() error
ValidateAll checks the field values on ListRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRoleRequestMultiError, or nil if none found.
type ListRoleRequestMultiError ¶
type ListRoleRequestMultiError []error
ListRoleRequestMultiError is an error wrapping multiple validation errors returned by ListRoleRequest.ValidateAll() if the designated constraints aren't met.
func (ListRoleRequestMultiError) AllErrors ¶
func (m ListRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleRequestMultiError) Error ¶
func (m ListRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleRequestValidationError ¶
type ListRoleRequestValidationError struct {
// contains filtered or unexported fields
}
ListRoleRequestValidationError is the validation error returned by ListRoleRequest.Validate if the designated constraints aren't met.
func (ListRoleRequestValidationError) Cause ¶
func (e ListRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRoleRequestValidationError) Error ¶
func (e ListRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleRequestValidationError) ErrorName ¶
func (e ListRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleRequestValidationError) Field ¶
func (e ListRoleRequestValidationError) Field() string
Field function returns field value.
func (ListRoleRequestValidationError) Key ¶
func (e ListRoleRequestValidationError) Key() bool
Key function returns key value.
func (ListRoleRequestValidationError) Reason ¶
func (e ListRoleRequestValidationError) Reason() string
Reason function returns reason value.
type RoleClient ¶
type RoleClient interface { // GetRoleMenuIds 获取指定角色的菜单id列表 GetRoleMenuIds(ctx context.Context, in *GetRoleMenuIdsRequest, opts ...grpc.CallOption) (*GetRoleMenuIdsReply, error) // ListRole 获取角色信息列表 ListRole(ctx context.Context, in *ListRoleRequest, opts ...grpc.CallOption) (*ListRoleReply, error) // CreateRole 创建角色信息 CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleReply, error) // UpdateRole 更新角色信息 UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleReply, error) // UpdateRole 更新角色信息 UpdateRoleMenu(ctx context.Context, in *UpdateRoleMenuRequest, opts ...grpc.CallOption) (*UpdateRoleMenuReply, error) // UpdateRoleStatus 更新角色信息状态 UpdateRoleStatus(ctx context.Context, in *UpdateRoleStatusRequest, opts ...grpc.CallOption) (*UpdateRoleStatusReply, error) // DeleteRole 删除角色信息 DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleReply, error) // GetRole 获取指定的角色信息 GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleReply, error) }
RoleClient is the client API for Role 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 NewRoleClient ¶
func NewRoleClient(cc grpc.ClientConnInterface) RoleClient
type RoleHTTPClient ¶
type RoleHTTPClient interface { CreateRole(ctx context.Context, req *CreateRoleRequest, opts ...http.CallOption) (rsp *CreateRoleReply, err error) DeleteRole(ctx context.Context, req *DeleteRoleRequest, opts ...http.CallOption) (rsp *DeleteRoleReply, err error) GetRole(ctx context.Context, req *GetRoleRequest, opts ...http.CallOption) (rsp *GetRoleReply, err error) GetRoleMenuIds(ctx context.Context, req *GetRoleMenuIdsRequest, opts ...http.CallOption) (rsp *GetRoleMenuIdsReply, err error) ListRole(ctx context.Context, req *ListRoleRequest, opts ...http.CallOption) (rsp *ListRoleReply, err error) UpdateRole(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *UpdateRoleReply, err error) UpdateRoleMenu(ctx context.Context, req *UpdateRoleMenuRequest, opts ...http.CallOption) (rsp *UpdateRoleMenuReply, err error) UpdateRoleStatus(ctx context.Context, req *UpdateRoleStatusRequest, opts ...http.CallOption) (rsp *UpdateRoleStatusReply, err error) }
func NewRoleHTTPClient ¶
func NewRoleHTTPClient(client *http.Client) RoleHTTPClient
type RoleHTTPClientImpl ¶
type RoleHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*RoleHTTPClientImpl) CreateRole ¶
func (c *RoleHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*CreateRoleReply, error)
func (*RoleHTTPClientImpl) DeleteRole ¶
func (c *RoleHTTPClientImpl) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...http.CallOption) (*DeleteRoleReply, error)
func (*RoleHTTPClientImpl) GetRole ¶
func (c *RoleHTTPClientImpl) GetRole(ctx context.Context, in *GetRoleRequest, opts ...http.CallOption) (*GetRoleReply, error)
func (*RoleHTTPClientImpl) GetRoleMenuIds ¶
func (c *RoleHTTPClientImpl) GetRoleMenuIds(ctx context.Context, in *GetRoleMenuIdsRequest, opts ...http.CallOption) (*GetRoleMenuIdsReply, error)
func (*RoleHTTPClientImpl) ListRole ¶
func (c *RoleHTTPClientImpl) ListRole(ctx context.Context, in *ListRoleRequest, opts ...http.CallOption) (*ListRoleReply, error)
func (*RoleHTTPClientImpl) UpdateRole ¶
func (c *RoleHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*UpdateRoleReply, error)
func (*RoleHTTPClientImpl) UpdateRoleMenu ¶
func (c *RoleHTTPClientImpl) UpdateRoleMenu(ctx context.Context, in *UpdateRoleMenuRequest, opts ...http.CallOption) (*UpdateRoleMenuReply, error)
func (*RoleHTTPClientImpl) UpdateRoleStatus ¶
func (c *RoleHTTPClientImpl) UpdateRoleStatus(ctx context.Context, in *UpdateRoleStatusRequest, opts ...http.CallOption) (*UpdateRoleStatusReply, error)
type RoleHTTPServer ¶
type RoleHTTPServer interface { // CreateRole CreateRole 创建角色信息 CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error) // DeleteRole DeleteRole 删除角色信息 DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error) // GetRole GetRole 获取指定的角色信息 GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error) // GetRoleMenuIds GetRoleMenuIds 获取指定角色的菜单id列表 GetRoleMenuIds(context.Context, *GetRoleMenuIdsRequest) (*GetRoleMenuIdsReply, error) // ListRole ListRole 获取角色信息列表 ListRole(context.Context, *ListRoleRequest) (*ListRoleReply, error) // UpdateRole UpdateRole 更新角色信息 UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error) // UpdateRoleMenu UpdateRole 更新角色信息 UpdateRoleMenu(context.Context, *UpdateRoleMenuRequest) (*UpdateRoleMenuReply, error) // UpdateRoleStatus UpdateRoleStatus 更新角色信息状态 UpdateRoleStatus(context.Context, *UpdateRoleStatusRequest) (*UpdateRoleStatusReply, error) }
type RoleServer ¶
type RoleServer interface { // GetRoleMenuIds 获取指定角色的菜单id列表 GetRoleMenuIds(context.Context, *GetRoleMenuIdsRequest) (*GetRoleMenuIdsReply, error) // ListRole 获取角色信息列表 ListRole(context.Context, *ListRoleRequest) (*ListRoleReply, error) // CreateRole 创建角色信息 CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error) // UpdateRole 更新角色信息 UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error) // UpdateRole 更新角色信息 UpdateRoleMenu(context.Context, *UpdateRoleMenuRequest) (*UpdateRoleMenuReply, error) // UpdateRoleStatus 更新角色信息状态 UpdateRoleStatus(context.Context, *UpdateRoleStatusRequest) (*UpdateRoleStatusReply, error) // DeleteRole 删除角色信息 DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error) // GetRole 获取指定的角色信息 GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error) // contains filtered or unexported methods }
RoleServer is the server API for Role service. All implementations must embed UnimplementedRoleServer for forward compatibility
type UnimplementedRoleServer ¶
type UnimplementedRoleServer struct { }
UnimplementedRoleServer must be embedded to have forward compatible implementations.
func (UnimplementedRoleServer) CreateRole ¶
func (UnimplementedRoleServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error)
func (UnimplementedRoleServer) DeleteRole ¶
func (UnimplementedRoleServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error)
func (UnimplementedRoleServer) GetRole ¶
func (UnimplementedRoleServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error)
func (UnimplementedRoleServer) GetRoleMenuIds ¶
func (UnimplementedRoleServer) GetRoleMenuIds(context.Context, *GetRoleMenuIdsRequest) (*GetRoleMenuIdsReply, error)
func (UnimplementedRoleServer) ListRole ¶
func (UnimplementedRoleServer) ListRole(context.Context, *ListRoleRequest) (*ListRoleReply, error)
func (UnimplementedRoleServer) UpdateRole ¶
func (UnimplementedRoleServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error)
func (UnimplementedRoleServer) UpdateRoleMenu ¶
func (UnimplementedRoleServer) UpdateRoleMenu(context.Context, *UpdateRoleMenuRequest) (*UpdateRoleMenuReply, error)
func (UnimplementedRoleServer) UpdateRoleStatus ¶
func (UnimplementedRoleServer) UpdateRoleStatus(context.Context, *UpdateRoleStatusRequest) (*UpdateRoleStatusReply, error)
type UnsafeRoleServer ¶
type UnsafeRoleServer interface {
// contains filtered or unexported methods
}
UnsafeRoleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleServer will result in compilation errors.
type UpdateRoleMenuReply ¶
type UpdateRoleMenuReply struct {
// contains filtered or unexported fields
}
func (*UpdateRoleMenuReply) Descriptor
deprecated
func (*UpdateRoleMenuReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleMenuReply.ProtoReflect.Descriptor instead.
func (*UpdateRoleMenuReply) ProtoMessage ¶
func (*UpdateRoleMenuReply) ProtoMessage()
func (*UpdateRoleMenuReply) ProtoReflect ¶
func (x *UpdateRoleMenuReply) ProtoReflect() protoreflect.Message
func (*UpdateRoleMenuReply) Reset ¶
func (x *UpdateRoleMenuReply) Reset()
func (*UpdateRoleMenuReply) String ¶
func (x *UpdateRoleMenuReply) String() string
func (*UpdateRoleMenuReply) Validate ¶
func (m *UpdateRoleMenuReply) Validate() error
Validate checks the field values on UpdateRoleMenuReply 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 (*UpdateRoleMenuReply) ValidateAll ¶
func (m *UpdateRoleMenuReply) ValidateAll() error
ValidateAll checks the field values on UpdateRoleMenuReply 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 UpdateRoleMenuReplyMultiError, or nil if none found.
type UpdateRoleMenuReplyMultiError ¶
type UpdateRoleMenuReplyMultiError []error
UpdateRoleMenuReplyMultiError is an error wrapping multiple validation errors returned by UpdateRoleMenuReply.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleMenuReplyMultiError) AllErrors ¶
func (m UpdateRoleMenuReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleMenuReplyMultiError) Error ¶
func (m UpdateRoleMenuReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleMenuReplyValidationError ¶
type UpdateRoleMenuReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleMenuReplyValidationError is the validation error returned by UpdateRoleMenuReply.Validate if the designated constraints aren't met.
func (UpdateRoleMenuReplyValidationError) Cause ¶
func (e UpdateRoleMenuReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleMenuReplyValidationError) Error ¶
func (e UpdateRoleMenuReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleMenuReplyValidationError) ErrorName ¶
func (e UpdateRoleMenuReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleMenuReplyValidationError) Field ¶
func (e UpdateRoleMenuReplyValidationError) Field() string
Field function returns field value.
func (UpdateRoleMenuReplyValidationError) Key ¶
func (e UpdateRoleMenuReplyValidationError) Key() bool
Key function returns key value.
func (UpdateRoleMenuReplyValidationError) Reason ¶
func (e UpdateRoleMenuReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleMenuRequest ¶
type UpdateRoleMenuRequest struct { RoleId uint32 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"` MenuIds []uint32 `protobuf:"varint,2,rep,packed,name=menuIds,proto3" json:"menuIds,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleMenuRequest) Descriptor
deprecated
func (*UpdateRoleMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleMenuRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleMenuRequest) GetMenuIds ¶
func (x *UpdateRoleMenuRequest) GetMenuIds() []uint32
func (*UpdateRoleMenuRequest) GetRoleId ¶
func (x *UpdateRoleMenuRequest) GetRoleId() uint32
func (*UpdateRoleMenuRequest) ProtoMessage ¶
func (*UpdateRoleMenuRequest) ProtoMessage()
func (*UpdateRoleMenuRequest) ProtoReflect ¶
func (x *UpdateRoleMenuRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleMenuRequest) Reset ¶
func (x *UpdateRoleMenuRequest) Reset()
func (*UpdateRoleMenuRequest) String ¶
func (x *UpdateRoleMenuRequest) String() string
func (*UpdateRoleMenuRequest) Validate ¶
func (m *UpdateRoleMenuRequest) Validate() error
Validate checks the field values on UpdateRoleMenuRequest 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 (*UpdateRoleMenuRequest) ValidateAll ¶
func (m *UpdateRoleMenuRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRoleMenuRequest 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 UpdateRoleMenuRequestMultiError, or nil if none found.
type UpdateRoleMenuRequestMultiError ¶
type UpdateRoleMenuRequestMultiError []error
UpdateRoleMenuRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleMenuRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleMenuRequestMultiError) AllErrors ¶
func (m UpdateRoleMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleMenuRequestMultiError) Error ¶
func (m UpdateRoleMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleMenuRequestValidationError ¶
type UpdateRoleMenuRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleMenuRequestValidationError is the validation error returned by UpdateRoleMenuRequest.Validate if the designated constraints aren't met.
func (UpdateRoleMenuRequestValidationError) Cause ¶
func (e UpdateRoleMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleMenuRequestValidationError) Error ¶
func (e UpdateRoleMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleMenuRequestValidationError) ErrorName ¶
func (e UpdateRoleMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleMenuRequestValidationError) Field ¶
func (e UpdateRoleMenuRequestValidationError) Field() string
Field function returns field value.
func (UpdateRoleMenuRequestValidationError) Key ¶
func (e UpdateRoleMenuRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRoleMenuRequestValidationError) Reason ¶
func (e UpdateRoleMenuRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleReply ¶
type UpdateRoleReply struct {
// contains filtered or unexported fields
}
func (*UpdateRoleReply) Descriptor
deprecated
func (*UpdateRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleReply.ProtoReflect.Descriptor instead.
func (*UpdateRoleReply) ProtoMessage ¶
func (*UpdateRoleReply) ProtoMessage()
func (*UpdateRoleReply) ProtoReflect ¶
func (x *UpdateRoleReply) ProtoReflect() protoreflect.Message
func (*UpdateRoleReply) Reset ¶
func (x *UpdateRoleReply) Reset()
func (*UpdateRoleReply) String ¶
func (x *UpdateRoleReply) String() string
func (*UpdateRoleReply) Validate ¶
func (m *UpdateRoleReply) Validate() error
Validate checks the field values on UpdateRoleReply 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 (*UpdateRoleReply) ValidateAll ¶
func (m *UpdateRoleReply) ValidateAll() error
ValidateAll checks the field values on UpdateRoleReply 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 UpdateRoleReplyMultiError, or nil if none found.
type UpdateRoleReplyMultiError ¶
type UpdateRoleReplyMultiError []error
UpdateRoleReplyMultiError is an error wrapping multiple validation errors returned by UpdateRoleReply.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleReplyMultiError) AllErrors ¶
func (m UpdateRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleReplyMultiError) Error ¶
func (m UpdateRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleReplyValidationError ¶
type UpdateRoleReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleReplyValidationError is the validation error returned by UpdateRoleReply.Validate if the designated constraints aren't met.
func (UpdateRoleReplyValidationError) Cause ¶
func (e UpdateRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleReplyValidationError) Error ¶
func (e UpdateRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleReplyValidationError) ErrorName ¶
func (e UpdateRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleReplyValidationError) Field ¶
func (e UpdateRoleReplyValidationError) Field() string
Field function returns field value.
func (UpdateRoleReplyValidationError) Key ¶
func (e UpdateRoleReplyValidationError) Key() bool
Key function returns key value.
func (UpdateRoleReplyValidationError) Reason ¶
func (e UpdateRoleReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` DataScope string `protobuf:"bytes,4,opt,name=dataScope,proto3" json:"dataScope,omitempty"` DepartmentIds *string `protobuf:"bytes,5,opt,name=departmentIds,proto3,oneof" json:"departmentIds,omitempty"` Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetDataScope ¶
func (x *UpdateRoleRequest) GetDataScope() string
func (*UpdateRoleRequest) GetDepartmentIds ¶
func (x *UpdateRoleRequest) GetDepartmentIds() string
func (*UpdateRoleRequest) GetDescription ¶
func (x *UpdateRoleRequest) GetDescription() string
func (*UpdateRoleRequest) GetId ¶
func (x *UpdateRoleRequest) GetId() uint32
func (*UpdateRoleRequest) GetName ¶
func (x *UpdateRoleRequest) GetName() string
func (*UpdateRoleRequest) GetParentId ¶
func (x *UpdateRoleRequest) GetParentId() uint32
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 UpdateRoleStatusReply ¶
type UpdateRoleStatusReply struct {
// contains filtered or unexported fields
}
func (*UpdateRoleStatusReply) Descriptor
deprecated
func (*UpdateRoleStatusReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleStatusReply.ProtoReflect.Descriptor instead.
func (*UpdateRoleStatusReply) ProtoMessage ¶
func (*UpdateRoleStatusReply) ProtoMessage()
func (*UpdateRoleStatusReply) ProtoReflect ¶
func (x *UpdateRoleStatusReply) ProtoReflect() protoreflect.Message
func (*UpdateRoleStatusReply) Reset ¶
func (x *UpdateRoleStatusReply) Reset()
func (*UpdateRoleStatusReply) String ¶
func (x *UpdateRoleStatusReply) String() string
func (*UpdateRoleStatusReply) Validate ¶
func (m *UpdateRoleStatusReply) Validate() error
Validate checks the field values on UpdateRoleStatusReply 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 (*UpdateRoleStatusReply) ValidateAll ¶
func (m *UpdateRoleStatusReply) ValidateAll() error
ValidateAll checks the field values on UpdateRoleStatusReply 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 UpdateRoleStatusReplyMultiError, or nil if none found.
type UpdateRoleStatusReplyMultiError ¶
type UpdateRoleStatusReplyMultiError []error
UpdateRoleStatusReplyMultiError is an error wrapping multiple validation errors returned by UpdateRoleStatusReply.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleStatusReplyMultiError) AllErrors ¶
func (m UpdateRoleStatusReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleStatusReplyMultiError) Error ¶
func (m UpdateRoleStatusReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleStatusReplyValidationError ¶
type UpdateRoleStatusReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleStatusReplyValidationError is the validation error returned by UpdateRoleStatusReply.Validate if the designated constraints aren't met.
func (UpdateRoleStatusReplyValidationError) Cause ¶
func (e UpdateRoleStatusReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleStatusReplyValidationError) Error ¶
func (e UpdateRoleStatusReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleStatusReplyValidationError) ErrorName ¶
func (e UpdateRoleStatusReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleStatusReplyValidationError) Field ¶
func (e UpdateRoleStatusReplyValidationError) Field() string
Field function returns field value.
func (UpdateRoleStatusReplyValidationError) Key ¶
func (e UpdateRoleStatusReplyValidationError) Key() bool
Key function returns key value.
func (UpdateRoleStatusReplyValidationError) Reason ¶
func (e UpdateRoleStatusReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleStatusRequest ¶
type UpdateRoleStatusRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleStatusRequest) Descriptor
deprecated
func (*UpdateRoleStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleStatusRequest) GetId ¶
func (x *UpdateRoleStatusRequest) GetId() uint32
func (*UpdateRoleStatusRequest) GetStatus ¶
func (x *UpdateRoleStatusRequest) GetStatus() bool
func (*UpdateRoleStatusRequest) ProtoMessage ¶
func (*UpdateRoleStatusRequest) ProtoMessage()
func (*UpdateRoleStatusRequest) ProtoReflect ¶
func (x *UpdateRoleStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleStatusRequest) Reset ¶
func (x *UpdateRoleStatusRequest) Reset()
func (*UpdateRoleStatusRequest) String ¶
func (x *UpdateRoleStatusRequest) String() string
func (*UpdateRoleStatusRequest) Validate ¶
func (m *UpdateRoleStatusRequest) Validate() error
Validate checks the field values on UpdateRoleStatusRequest 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 (*UpdateRoleStatusRequest) ValidateAll ¶
func (m *UpdateRoleStatusRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRoleStatusRequest 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 UpdateRoleStatusRequestMultiError, or nil if none found.
type UpdateRoleStatusRequestMultiError ¶
type UpdateRoleStatusRequestMultiError []error
UpdateRoleStatusRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleStatusRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleStatusRequestMultiError) AllErrors ¶
func (m UpdateRoleStatusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleStatusRequestMultiError) Error ¶
func (m UpdateRoleStatusRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleStatusRequestValidationError ¶
type UpdateRoleStatusRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleStatusRequestValidationError is the validation error returned by UpdateRoleStatusRequest.Validate if the designated constraints aren't met.
func (UpdateRoleStatusRequestValidationError) Cause ¶
func (e UpdateRoleStatusRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleStatusRequestValidationError) Error ¶
func (e UpdateRoleStatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleStatusRequestValidationError) ErrorName ¶
func (e UpdateRoleStatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleStatusRequestValidationError) Field ¶
func (e UpdateRoleStatusRequestValidationError) Field() string
Field function returns field value.
func (UpdateRoleStatusRequestValidationError) Key ¶
func (e UpdateRoleStatusRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRoleStatusRequestValidationError) Reason ¶
func (e UpdateRoleStatusRequestValidationError) Reason() string
Reason function returns reason value.