Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRoleHTTPServer(s *http.Server, srv RoleHTTPServer)
- func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)
- type CreateRoleNavigationRequest
- func (*CreateRoleNavigationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleNavigationRequest) GetNavigationID() []string
- func (x *CreateRoleNavigationRequest) GetRoleID() string
- func (*CreateRoleNavigationRequest) ProtoMessage()
- func (x *CreateRoleNavigationRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleNavigationRequest) Reset()
- func (x *CreateRoleNavigationRequest) String() string
- func (m *CreateRoleNavigationRequest) Validate() error
- func (m *CreateRoleNavigationRequest) ValidateAll() error
- type CreateRoleNavigationRequestMultiError
- type CreateRoleNavigationRequestValidationError
- func (e CreateRoleNavigationRequestValidationError) Cause() error
- func (e CreateRoleNavigationRequestValidationError) Error() string
- func (e CreateRoleNavigationRequestValidationError) ErrorName() string
- func (e CreateRoleNavigationRequestValidationError) Field() string
- func (e CreateRoleNavigationRequestValidationError) Key() bool
- func (e CreateRoleNavigationRequestValidationError) Reason() string
- type CreateRoleReply
- func (*CreateRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleReply) GetCreatedBy() string
- func (x *CreateRoleReply) GetId() string
- func (x *CreateRoleReply) GetRoleName() string
- func (x *CreateRoleReply) GetStatus() bool
- 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) GetRoleName() 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 GetRoleReply
- func (*GetRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleReply) GetId() string
- func (x *GetRoleReply) GetRoleName() string
- func (x *GetRoleReply) GetRoleType() int32
- func (x *GetRoleReply) GetStatus() bool
- 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) GetStatus() bool
- 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 ListRoleNavigationRequest
- func (*ListRoleNavigationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleNavigationRequest) GetRoleID() string
- func (*ListRoleNavigationRequest) ProtoMessage()
- func (x *ListRoleNavigationRequest) ProtoReflect() protoreflect.Message
- func (x *ListRoleNavigationRequest) Reset()
- func (x *ListRoleNavigationRequest) String() string
- func (m *ListRoleNavigationRequest) Validate() error
- func (m *ListRoleNavigationRequest) ValidateAll() error
- type ListRoleNavigationRequestMultiError
- type ListRoleNavigationRequestValidationError
- func (e ListRoleNavigationRequestValidationError) Cause() error
- func (e ListRoleNavigationRequestValidationError) Error() string
- func (e ListRoleNavigationRequestValidationError) ErrorName() string
- func (e ListRoleNavigationRequestValidationError) Field() string
- func (e ListRoleNavigationRequestValidationError) Key() bool
- func (e ListRoleNavigationRequestValidationError) Reason() string
- type ListRoleNavigationResponse
- func (*ListRoleNavigationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleNavigationResponse) GetNavigations() []*ListRoleNavigationResponse_NavigationReply
- func (*ListRoleNavigationResponse) ProtoMessage()
- func (x *ListRoleNavigationResponse) ProtoReflect() protoreflect.Message
- func (x *ListRoleNavigationResponse) Reset()
- func (x *ListRoleNavigationResponse) String() string
- func (m *ListRoleNavigationResponse) Validate() error
- func (m *ListRoleNavigationResponse) ValidateAll() error
- type ListRoleNavigationResponseMultiError
- type ListRoleNavigationResponseValidationError
- func (e ListRoleNavigationResponseValidationError) Cause() error
- func (e ListRoleNavigationResponseValidationError) Error() string
- func (e ListRoleNavigationResponseValidationError) ErrorName() string
- func (e ListRoleNavigationResponseValidationError) Field() string
- func (e ListRoleNavigationResponseValidationError) Key() bool
- func (e ListRoleNavigationResponseValidationError) Reason() string
- type ListRoleNavigationResponse_NavigationReply
- func (*ListRoleNavigationResponse_NavigationReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleNavigationResponse_NavigationReply) GetBindID() string
- func (x *ListRoleNavigationResponse_NavigationReply) GetId() string
- func (x *ListRoleNavigationResponse_NavigationReply) GetNavigationID() string
- func (x *ListRoleNavigationResponse_NavigationReply) GetNavigationName() string
- func (*ListRoleNavigationResponse_NavigationReply) ProtoMessage()
- func (x *ListRoleNavigationResponse_NavigationReply) ProtoReflect() protoreflect.Message
- func (x *ListRoleNavigationResponse_NavigationReply) Reset()
- func (x *ListRoleNavigationResponse_NavigationReply) String() string
- func (m *ListRoleNavigationResponse_NavigationReply) Validate() error
- func (m *ListRoleNavigationResponse_NavigationReply) ValidateAll() error
- type ListRoleNavigationResponse_NavigationReplyMultiError
- type ListRoleNavigationResponse_NavigationReplyValidationError
- func (e ListRoleNavigationResponse_NavigationReplyValidationError) Cause() error
- func (e ListRoleNavigationResponse_NavigationReplyValidationError) Error() string
- func (e ListRoleNavigationResponse_NavigationReplyValidationError) ErrorName() string
- func (e ListRoleNavigationResponse_NavigationReplyValidationError) Field() string
- func (e ListRoleNavigationResponse_NavigationReplyValidationError) Key() bool
- func (e ListRoleNavigationResponse_NavigationReplyValidationError) Reason() string
- type ListRoleReply
- func (*ListRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleReply) GetDataList() []*GetRoleReply
- func (x *ListRoleReply) GetPage() int32
- func (x *ListRoleReply) GetPerPage() int32
- func (x *ListRoleReply) GetTotal() int32
- 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 RoleClient
- type RoleHTTPClient
- type RoleHTTPClientImpl
- func (c *RoleHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*api.Success, error)
- func (c *RoleHTTPClientImpl) DeleteRole(ctx context.Context, in *api.IDListRequest, opts ...http.CallOption) (*api.Success, error)
- func (c *RoleHTTPClientImpl) DeleteRoleNavigation(ctx context.Context, in *api.IDListRequest, opts ...http.CallOption) (*api.Success, error)
- func (c *RoleHTTPClientImpl) GetRole(ctx context.Context, in *api.IDRequest, opts ...http.CallOption) (*GetRoleReply, error)
- func (c *RoleHTTPClientImpl) ListRole(ctx context.Context, in *api.PageSearch, opts ...http.CallOption) (*ListRoleReply, error)
- func (c *RoleHTTPClientImpl) ListRoleNavigationByRoleIDList(ctx context.Context, in *ListRoleNavigationRequest, opts ...http.CallOption) (*ListRoleNavigationResponse, error)
- func (c *RoleHTTPClientImpl) PostRoleNavigation(ctx context.Context, in *CreateRoleNavigationRequest, opts ...http.CallOption) (*api.Success, error)
- func (c *RoleHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*api.Success, error)
- type RoleHTTPServer
- type RoleServer
- type UnimplementedRoleServer
- func (UnimplementedRoleServer) CreateRole(context.Context, *CreateRoleRequest) (*api.Success, error)
- func (UnimplementedRoleServer) DeleteRole(context.Context, *api.IDListRequest) (*api.Success, error)
- func (UnimplementedRoleServer) DeleteRoleNavigation(context.Context, *api.IDListRequest) (*api.Success, error)
- func (UnimplementedRoleServer) GetRole(context.Context, *api.IDRequest) (*GetRoleReply, error)
- func (UnimplementedRoleServer) ListRole(context.Context, *api.PageSearch) (*ListRoleReply, error)
- func (UnimplementedRoleServer) ListRoleNavigationByRoleIDList(context.Context, *ListRoleNavigationRequest) (*ListRoleNavigationResponse, error)
- func (UnimplementedRoleServer) PostRoleNavigation(context.Context, *CreateRoleNavigationRequest) (*api.Success, error)
- func (UnimplementedRoleServer) UpdateRole(context.Context, *UpdateRoleRequest) (*api.Success, error)
- type UnsafeRoleServer
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetId() string
- func (x *UpdateRoleRequest) GetRoleName() string
- func (x *UpdateRoleRequest) GetStatus() bool
- 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
Constants ¶
const OperationRoleCreateRole = "/api.auth.role.Role/CreateRole"
const OperationRoleDeleteRole = "/api.auth.role.Role/DeleteRole"
const OperationRoleGetRole = "/api.auth.role.Role/GetRole"
const OperationRoleListRole = "/api.auth.role.Role/ListRole"
const OperationRoleUpdateRole = "/api.auth.role.Role/UpdateRole"
Variables ¶
var File_api_auth_role_role_proto protoreflect.FileDescriptor
var Role_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.auth.role.Role", HandlerType: (*RoleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRole", Handler: _Role_CreateRole_Handler, }, { MethodName: "UpdateRole", Handler: _Role_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _Role_DeleteRole_Handler, }, { MethodName: "GetRole", Handler: _Role_GetRole_Handler, }, { MethodName: "ListRole", Handler: _Role_ListRole_Handler, }, { MethodName: "PostRoleNavigation", Handler: _Role_PostRoleNavigation_Handler, }, { MethodName: "DeleteRoleNavigation", Handler: _Role_DeleteRoleNavigation_Handler, }, { MethodName: "ListRoleNavigationByRoleIDList", Handler: _Role_ListRoleNavigationByRoleIDList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/auth/role/role.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 CreateRoleNavigationRequest ¶
type CreateRoleNavigationRequest struct { // contains filtered or unexported fields }
func (*CreateRoleNavigationRequest) Descriptor
deprecated
func (*CreateRoleNavigationRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleNavigationRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleNavigationRequest) GetNavigationID ¶
func (x *CreateRoleNavigationRequest) GetNavigationID() []string
func (*CreateRoleNavigationRequest) GetRoleID ¶
func (x *CreateRoleNavigationRequest) GetRoleID() string
func (*CreateRoleNavigationRequest) ProtoMessage ¶
func (*CreateRoleNavigationRequest) ProtoMessage()
func (*CreateRoleNavigationRequest) ProtoReflect ¶
func (x *CreateRoleNavigationRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleNavigationRequest) Reset ¶
func (x *CreateRoleNavigationRequest) Reset()
func (*CreateRoleNavigationRequest) String ¶
func (x *CreateRoleNavigationRequest) String() string
func (*CreateRoleNavigationRequest) Validate ¶
func (m *CreateRoleNavigationRequest) Validate() error
Validate checks the field values on CreateRoleNavigationRequest 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 (*CreateRoleNavigationRequest) ValidateAll ¶
func (m *CreateRoleNavigationRequest) ValidateAll() error
ValidateAll checks the field values on CreateRoleNavigationRequest 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 CreateRoleNavigationRequestMultiError, or nil if none found.
type CreateRoleNavigationRequestMultiError ¶
type CreateRoleNavigationRequestMultiError []error
CreateRoleNavigationRequestMultiError is an error wrapping multiple validation errors returned by CreateRoleNavigationRequest.ValidateAll() if the designated constraints aren't met.
func (CreateRoleNavigationRequestMultiError) AllErrors ¶
func (m CreateRoleNavigationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleNavigationRequestMultiError) Error ¶
func (m CreateRoleNavigationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleNavigationRequestValidationError ¶
type CreateRoleNavigationRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRoleNavigationRequestValidationError is the validation error returned by CreateRoleNavigationRequest.Validate if the designated constraints aren't met.
func (CreateRoleNavigationRequestValidationError) Cause ¶
func (e CreateRoleNavigationRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleNavigationRequestValidationError) Error ¶
func (e CreateRoleNavigationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleNavigationRequestValidationError) ErrorName ¶
func (e CreateRoleNavigationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleNavigationRequestValidationError) Field ¶
func (e CreateRoleNavigationRequestValidationError) Field() string
Field function returns field value.
func (CreateRoleNavigationRequestValidationError) Key ¶
func (e CreateRoleNavigationRequestValidationError) Key() bool
Key function returns key value.
func (CreateRoleNavigationRequestValidationError) Reason ¶
func (e CreateRoleNavigationRequestValidationError) Reason() string
Reason function returns reason value.
type CreateRoleReply ¶
type CreateRoleReply struct { RoleName string `protobuf:"bytes,1,opt,name=roleName,proto3" json:"roleName,omitempty"` Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` CreatedBy string `protobuf:"bytes,3,opt,name=createdBy,proto3" json:"createdBy,omitempty"` Id string `protobuf:"bytes,4,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) GetCreatedBy ¶
func (x *CreateRoleReply) GetCreatedBy() string
func (*CreateRoleReply) GetId ¶
func (x *CreateRoleReply) GetId() string
func (*CreateRoleReply) GetRoleName ¶
func (x *CreateRoleReply) GetRoleName() string
func (*CreateRoleReply) GetStatus ¶
func (x *CreateRoleReply) GetStatus() bool
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 { RoleName string `protobuf:"bytes,1,opt,name=roleName,proto3" json:"roleName,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetRoleName ¶
func (x *CreateRoleRequest) GetRoleName() 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 GetRoleReply ¶
type GetRoleReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RoleName string `protobuf:"bytes,2,opt,name=roleName,proto3" json:"roleName,omitempty"` Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` RoleType int32 `protobuf:"varint,4,opt,name=roleType,proto3" json:"roleType,omitempty"` // contains filtered or unexported fields }
func (*GetRoleReply) Descriptor
deprecated
func (*GetRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleReply.ProtoReflect.Descriptor instead.
func (*GetRoleReply) GetId ¶
func (x *GetRoleReply) GetId() string
func (*GetRoleReply) GetRoleName ¶
func (x *GetRoleReply) GetRoleName() string
func (*GetRoleReply) GetRoleType ¶
func (x *GetRoleReply) GetRoleType() int32
func (*GetRoleReply) GetStatus ¶
func (x *GetRoleReply) GetStatus() bool
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 { Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) GetStatus ¶
func (x *GetRoleRequest) GetStatus() bool
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 ListRoleNavigationRequest ¶
type ListRoleNavigationRequest struct { // contains filtered or unexported fields }
func (*ListRoleNavigationRequest) Descriptor
deprecated
func (*ListRoleNavigationRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleNavigationRequest.ProtoReflect.Descriptor instead.
func (*ListRoleNavigationRequest) GetRoleID ¶
func (x *ListRoleNavigationRequest) GetRoleID() string
func (*ListRoleNavigationRequest) ProtoMessage ¶
func (*ListRoleNavigationRequest) ProtoMessage()
func (*ListRoleNavigationRequest) ProtoReflect ¶
func (x *ListRoleNavigationRequest) ProtoReflect() protoreflect.Message
func (*ListRoleNavigationRequest) Reset ¶
func (x *ListRoleNavigationRequest) Reset()
func (*ListRoleNavigationRequest) String ¶
func (x *ListRoleNavigationRequest) String() string
func (*ListRoleNavigationRequest) Validate ¶
func (m *ListRoleNavigationRequest) Validate() error
Validate checks the field values on ListRoleNavigationRequest 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 (*ListRoleNavigationRequest) ValidateAll ¶
func (m *ListRoleNavigationRequest) ValidateAll() error
ValidateAll checks the field values on ListRoleNavigationRequest 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 ListRoleNavigationRequestMultiError, or nil if none found.
type ListRoleNavigationRequestMultiError ¶
type ListRoleNavigationRequestMultiError []error
ListRoleNavigationRequestMultiError is an error wrapping multiple validation errors returned by ListRoleNavigationRequest.ValidateAll() if the designated constraints aren't met.
func (ListRoleNavigationRequestMultiError) AllErrors ¶
func (m ListRoleNavigationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleNavigationRequestMultiError) Error ¶
func (m ListRoleNavigationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleNavigationRequestValidationError ¶
type ListRoleNavigationRequestValidationError struct {
// contains filtered or unexported fields
}
ListRoleNavigationRequestValidationError is the validation error returned by ListRoleNavigationRequest.Validate if the designated constraints aren't met.
func (ListRoleNavigationRequestValidationError) Cause ¶
func (e ListRoleNavigationRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRoleNavigationRequestValidationError) Error ¶
func (e ListRoleNavigationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleNavigationRequestValidationError) ErrorName ¶
func (e ListRoleNavigationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleNavigationRequestValidationError) Field ¶
func (e ListRoleNavigationRequestValidationError) Field() string
Field function returns field value.
func (ListRoleNavigationRequestValidationError) Key ¶
func (e ListRoleNavigationRequestValidationError) Key() bool
Key function returns key value.
func (ListRoleNavigationRequestValidationError) Reason ¶
func (e ListRoleNavigationRequestValidationError) Reason() string
Reason function returns reason value.
type ListRoleNavigationResponse ¶
type ListRoleNavigationResponse struct { // contains filtered or unexported fields }
func (*ListRoleNavigationResponse) Descriptor
deprecated
func (*ListRoleNavigationResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleNavigationResponse.ProtoReflect.Descriptor instead.
func (*ListRoleNavigationResponse) GetNavigations ¶
func (x *ListRoleNavigationResponse) GetNavigations() []*ListRoleNavigationResponse_NavigationReply
func (*ListRoleNavigationResponse) ProtoMessage ¶
func (*ListRoleNavigationResponse) ProtoMessage()
func (*ListRoleNavigationResponse) ProtoReflect ¶
func (x *ListRoleNavigationResponse) ProtoReflect() protoreflect.Message
func (*ListRoleNavigationResponse) Reset ¶
func (x *ListRoleNavigationResponse) Reset()
func (*ListRoleNavigationResponse) String ¶
func (x *ListRoleNavigationResponse) String() string
func (*ListRoleNavigationResponse) Validate ¶
func (m *ListRoleNavigationResponse) Validate() error
Validate checks the field values on ListRoleNavigationResponse 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 (*ListRoleNavigationResponse) ValidateAll ¶
func (m *ListRoleNavigationResponse) ValidateAll() error
ValidateAll checks the field values on ListRoleNavigationResponse 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 ListRoleNavigationResponseMultiError, or nil if none found.
type ListRoleNavigationResponseMultiError ¶
type ListRoleNavigationResponseMultiError []error
ListRoleNavigationResponseMultiError is an error wrapping multiple validation errors returned by ListRoleNavigationResponse.ValidateAll() if the designated constraints aren't met.
func (ListRoleNavigationResponseMultiError) AllErrors ¶
func (m ListRoleNavigationResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleNavigationResponseMultiError) Error ¶
func (m ListRoleNavigationResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleNavigationResponseValidationError ¶
type ListRoleNavigationResponseValidationError struct {
// contains filtered or unexported fields
}
ListRoleNavigationResponseValidationError is the validation error returned by ListRoleNavigationResponse.Validate if the designated constraints aren't met.
func (ListRoleNavigationResponseValidationError) Cause ¶
func (e ListRoleNavigationResponseValidationError) Cause() error
Cause function returns cause value.
func (ListRoleNavigationResponseValidationError) Error ¶
func (e ListRoleNavigationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleNavigationResponseValidationError) ErrorName ¶
func (e ListRoleNavigationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleNavigationResponseValidationError) Field ¶
func (e ListRoleNavigationResponseValidationError) Field() string
Field function returns field value.
func (ListRoleNavigationResponseValidationError) Key ¶
func (e ListRoleNavigationResponseValidationError) Key() bool
Key function returns key value.
func (ListRoleNavigationResponseValidationError) Reason ¶
func (e ListRoleNavigationResponseValidationError) Reason() string
Reason function returns reason value.
type ListRoleNavigationResponse_NavigationReply ¶
type ListRoleNavigationResponse_NavigationReply struct { // contains filtered or unexported fields }
func (*ListRoleNavigationResponse_NavigationReply) Descriptor
deprecated
func (*ListRoleNavigationResponse_NavigationReply) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleNavigationResponse_NavigationReply.ProtoReflect.Descriptor instead.
func (*ListRoleNavigationResponse_NavigationReply) GetBindID ¶
func (x *ListRoleNavigationResponse_NavigationReply) GetBindID() string
func (*ListRoleNavigationResponse_NavigationReply) GetId ¶
func (x *ListRoleNavigationResponse_NavigationReply) GetId() string
func (*ListRoleNavigationResponse_NavigationReply) GetNavigationID ¶
func (x *ListRoleNavigationResponse_NavigationReply) GetNavigationID() string
func (*ListRoleNavigationResponse_NavigationReply) GetNavigationName ¶
func (x *ListRoleNavigationResponse_NavigationReply) GetNavigationName() string
func (*ListRoleNavigationResponse_NavigationReply) ProtoMessage ¶
func (*ListRoleNavigationResponse_NavigationReply) ProtoMessage()
func (*ListRoleNavigationResponse_NavigationReply) ProtoReflect ¶
func (x *ListRoleNavigationResponse_NavigationReply) ProtoReflect() protoreflect.Message
func (*ListRoleNavigationResponse_NavigationReply) Reset ¶
func (x *ListRoleNavigationResponse_NavigationReply) Reset()
func (*ListRoleNavigationResponse_NavigationReply) String ¶
func (x *ListRoleNavigationResponse_NavigationReply) String() string
func (*ListRoleNavigationResponse_NavigationReply) Validate ¶
func (m *ListRoleNavigationResponse_NavigationReply) Validate() error
Validate checks the field values on ListRoleNavigationResponse_NavigationReply 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 (*ListRoleNavigationResponse_NavigationReply) ValidateAll ¶
func (m *ListRoleNavigationResponse_NavigationReply) ValidateAll() error
ValidateAll checks the field values on ListRoleNavigationResponse_NavigationReply 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 ListRoleNavigationResponse_NavigationReplyMultiError, or nil if none found.
type ListRoleNavigationResponse_NavigationReplyMultiError ¶
type ListRoleNavigationResponse_NavigationReplyMultiError []error
ListRoleNavigationResponse_NavigationReplyMultiError is an error wrapping multiple validation errors returned by ListRoleNavigationResponse_NavigationReply.ValidateAll() if the designated constraints aren't met.
func (ListRoleNavigationResponse_NavigationReplyMultiError) AllErrors ¶
func (m ListRoleNavigationResponse_NavigationReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleNavigationResponse_NavigationReplyMultiError) Error ¶
func (m ListRoleNavigationResponse_NavigationReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleNavigationResponse_NavigationReplyValidationError ¶
type ListRoleNavigationResponse_NavigationReplyValidationError struct {
// contains filtered or unexported fields
}
ListRoleNavigationResponse_NavigationReplyValidationError is the validation error returned by ListRoleNavigationResponse_NavigationReply.Validate if the designated constraints aren't met.
func (ListRoleNavigationResponse_NavigationReplyValidationError) Cause ¶
func (e ListRoleNavigationResponse_NavigationReplyValidationError) Cause() error
Cause function returns cause value.
func (ListRoleNavigationResponse_NavigationReplyValidationError) Error ¶
func (e ListRoleNavigationResponse_NavigationReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleNavigationResponse_NavigationReplyValidationError) ErrorName ¶
func (e ListRoleNavigationResponse_NavigationReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleNavigationResponse_NavigationReplyValidationError) Field ¶
func (e ListRoleNavigationResponse_NavigationReplyValidationError) Field() string
Field function returns field value.
func (ListRoleNavigationResponse_NavigationReplyValidationError) Key ¶
func (e ListRoleNavigationResponse_NavigationReplyValidationError) Key() bool
Key function returns key value.
func (ListRoleNavigationResponse_NavigationReplyValidationError) Reason ¶
func (e ListRoleNavigationResponse_NavigationReplyValidationError) Reason() string
Reason function returns reason value.
type ListRoleReply ¶
type ListRoleReply struct { DataList []*GetRoleReply `protobuf:"bytes,1,rep,name=dataList,proto3" json:"dataList,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PerPage int32 `protobuf:"varint,4,opt,name=perPage,proto3" json:"perPage,omitempty"` // contains filtered or unexported fields }
func (*ListRoleReply) Descriptor
deprecated
func (*ListRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleReply.ProtoReflect.Descriptor instead.
func (*ListRoleReply) GetDataList ¶
func (x *ListRoleReply) GetDataList() []*GetRoleReply
func (*ListRoleReply) GetPage ¶
func (x *ListRoleReply) GetPage() int32
func (*ListRoleReply) GetPerPage ¶
func (x *ListRoleReply) GetPerPage() int32
func (*ListRoleReply) GetTotal ¶
func (x *ListRoleReply) GetTotal() int32
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 RoleClient ¶
type RoleClient interface { CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*api.Success, error) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*api.Success, error) DeleteRole(ctx context.Context, in *api.IDListRequest, opts ...grpc.CallOption) (*api.Success, error) GetRole(ctx context.Context, in *api.IDRequest, opts ...grpc.CallOption) (*GetRoleReply, error) ListRole(ctx context.Context, in *api.PageSearch, opts ...grpc.CallOption) (*ListRoleReply, 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 *api.Success, err error) DeleteRole(ctx context.Context, req *api.IDListRequest, opts ...http.CallOption) (rsp *api.Success, err error) GetRole(ctx context.Context, req *api.IDRequest, opts ...http.CallOption) (rsp *GetRoleReply, err error) ListRole(ctx context.Context, req *api.PageSearch, opts ...http.CallOption) (rsp *ListRoleReply, err error) UpdateRole(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *api.Success, 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) (*api.Success, error)
func (*RoleHTTPClientImpl) DeleteRole ¶
func (c *RoleHTTPClientImpl) DeleteRole(ctx context.Context, in *api.IDListRequest, opts ...http.CallOption) (*api.Success, error)
func (*RoleHTTPClientImpl) DeleteRoleNavigation ¶
func (c *RoleHTTPClientImpl) DeleteRoleNavigation(ctx context.Context, in *api.IDListRequest, opts ...http.CallOption) (*api.Success, error)
func (*RoleHTTPClientImpl) GetRole ¶
func (c *RoleHTTPClientImpl) GetRole(ctx context.Context, in *api.IDRequest, opts ...http.CallOption) (*GetRoleReply, error)
func (*RoleHTTPClientImpl) ListRole ¶
func (c *RoleHTTPClientImpl) ListRole(ctx context.Context, in *api.PageSearch, opts ...http.CallOption) (*ListRoleReply, error)
func (*RoleHTTPClientImpl) ListRoleNavigationByRoleIDList ¶
func (c *RoleHTTPClientImpl) ListRoleNavigationByRoleIDList(ctx context.Context, in *ListRoleNavigationRequest, opts ...http.CallOption) (*ListRoleNavigationResponse, error)
func (*RoleHTTPClientImpl) PostRoleNavigation ¶
func (c *RoleHTTPClientImpl) PostRoleNavigation(ctx context.Context, in *CreateRoleNavigationRequest, opts ...http.CallOption) (*api.Success, error)
func (*RoleHTTPClientImpl) UpdateRole ¶
func (c *RoleHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*api.Success, error)
type RoleHTTPServer ¶
type RoleHTTPServer interface { CreateRole(context.Context, *CreateRoleRequest) (*api.Success, error) DeleteRole(context.Context, *api.IDListRequest) (*api.Success, error) GetRole(context.Context, *api.IDRequest) (*GetRoleReply, error) ListRole(context.Context, *api.PageSearch) (*ListRoleReply, error) UpdateRole(context.Context, *UpdateRoleRequest) (*api.Success, error) }
type RoleServer ¶
type RoleServer interface { CreateRole(context.Context, *CreateRoleRequest) (*api.Success, error) UpdateRole(context.Context, *UpdateRoleRequest) (*api.Success, error) DeleteRole(context.Context, *api.IDListRequest) (*api.Success, error) GetRole(context.Context, *api.IDRequest) (*GetRoleReply, error) ListRole(context.Context, *api.PageSearch) (*ListRoleReply, 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) (*api.Success, error)
func (UnimplementedRoleServer) DeleteRole ¶
func (UnimplementedRoleServer) DeleteRole(context.Context, *api.IDListRequest) (*api.Success, error)
func (UnimplementedRoleServer) DeleteRoleNavigation ¶
func (UnimplementedRoleServer) DeleteRoleNavigation(context.Context, *api.IDListRequest) (*api.Success, error)
func (UnimplementedRoleServer) GetRole ¶
func (UnimplementedRoleServer) GetRole(context.Context, *api.IDRequest) (*GetRoleReply, error)
func (UnimplementedRoleServer) ListRole ¶
func (UnimplementedRoleServer) ListRole(context.Context, *api.PageSearch) (*ListRoleReply, error)
func (UnimplementedRoleServer) ListRoleNavigationByRoleIDList ¶
func (UnimplementedRoleServer) ListRoleNavigationByRoleIDList(context.Context, *ListRoleNavigationRequest) (*ListRoleNavigationResponse, error)
func (UnimplementedRoleServer) PostRoleNavigation ¶
func (UnimplementedRoleServer) PostRoleNavigation(context.Context, *CreateRoleNavigationRequest) (*api.Success, error)
func (UnimplementedRoleServer) UpdateRole ¶
func (UnimplementedRoleServer) UpdateRole(context.Context, *UpdateRoleRequest) (*api.Success, 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 UpdateRoleRequest ¶
type UpdateRoleRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RoleName string `protobuf:"bytes,2,opt,name=roleName,proto3" json:"roleName,omitempty"` Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,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() string
func (*UpdateRoleRequest) GetRoleName ¶
func (x *UpdateRoleRequest) GetRoleName() string
func (*UpdateRoleRequest) GetStatus ¶
func (x *UpdateRoleRequest) GetStatus() bool
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.