Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddMenuReply
- func (*AddMenuReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddMenuReply) GetId() uint32
- func (*AddMenuReply) ProtoMessage()
- func (x *AddMenuReply) ProtoReflect() protoreflect.Message
- func (x *AddMenuReply) Reset()
- func (x *AddMenuReply) String() string
- func (m *AddMenuReply) Validate() error
- func (m *AddMenuReply) ValidateAll() error
- type AddMenuReplyMultiError
- type AddMenuReplyValidationError
- func (e AddMenuReplyValidationError) Cause() error
- func (e AddMenuReplyValidationError) Error() string
- func (e AddMenuReplyValidationError) ErrorName() string
- func (e AddMenuReplyValidationError) Field() string
- func (e AddMenuReplyValidationError) Key() bool
- func (e AddMenuReplyValidationError) Reason() string
- type AddMenuRequest
- func (*AddMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddMenuRequest) GetApi() string
- func (x *AddMenuRequest) GetApp() string
- func (x *AddMenuRequest) GetCheckObject() bool
- func (x *AddMenuRequest) GetCheckObjectRule() string
- func (x *AddMenuRequest) GetComponent() string
- func (x *AddMenuRequest) GetIcon() string
- func (x *AddMenuRequest) GetIsAffix() bool
- func (x *AddMenuRequest) GetIsCache() bool
- func (x *AddMenuRequest) GetIsHidden() bool
- func (x *AddMenuRequest) GetIsHome() bool
- func (x *AddMenuRequest) GetKeyword() string
- func (x *AddMenuRequest) GetMethod() string
- func (x *AddMenuRequest) GetParentId() uint32
- func (x *AddMenuRequest) GetPath() string
- func (x *AddMenuRequest) GetPermission() string
- func (x *AddMenuRequest) GetRedirect() string
- func (x *AddMenuRequest) GetTitle() string
- func (x *AddMenuRequest) GetType() string
- func (x *AddMenuRequest) GetWeight() int32
- func (*AddMenuRequest) ProtoMessage()
- func (x *AddMenuRequest) ProtoReflect() protoreflect.Message
- func (x *AddMenuRequest) Reset()
- func (x *AddMenuRequest) String() string
- func (m *AddMenuRequest) Validate() error
- func (m *AddMenuRequest) ValidateAll() error
- type AddMenuRequestMultiError
- type AddMenuRequestValidationError
- func (e AddMenuRequestValidationError) Cause() error
- func (e AddMenuRequestValidationError) Error() string
- func (e AddMenuRequestValidationError) ErrorName() string
- func (e AddMenuRequestValidationError) Field() string
- func (e AddMenuRequestValidationError) Key() bool
- func (e AddMenuRequestValidationError) Reason() string
- type DeleteMenuRequest
- func (*DeleteMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMenuRequest) GetId() uint32
- func (*DeleteMenuRequest) ProtoMessage()
- func (x *DeleteMenuRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMenuRequest) Reset()
- func (x *DeleteMenuRequest) String() string
- func (m *DeleteMenuRequest) Validate() error
- func (m *DeleteMenuRequest) ValidateAll() error
- type DeleteMenuRequestMultiError
- type DeleteMenuRequestValidationError
- func (e DeleteMenuRequestValidationError) Cause() error
- func (e DeleteMenuRequestValidationError) Error() string
- func (e DeleteMenuRequestValidationError) ErrorName() string
- func (e DeleteMenuRequestValidationError) Field() string
- func (e DeleteMenuRequestValidationError) Key() bool
- func (e DeleteMenuRequestValidationError) Reason() string
- type GetMenuTreeReply
- func (*GetMenuTreeReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetMenuTreeReply) GetList() []*Menu
- func (*GetMenuTreeReply) ProtoMessage()
- func (x *GetMenuTreeReply) ProtoReflect() protoreflect.Message
- func (x *GetMenuTreeReply) Reset()
- func (x *GetMenuTreeReply) String() string
- func (m *GetMenuTreeReply) Validate() error
- func (m *GetMenuTreeReply) ValidateAll() error
- type GetMenuTreeReplyMultiError
- type GetMenuTreeReplyValidationError
- func (e GetMenuTreeReplyValidationError) Cause() error
- func (e GetMenuTreeReplyValidationError) Error() string
- func (e GetMenuTreeReplyValidationError) ErrorName() string
- func (e GetMenuTreeReplyValidationError) Field() string
- func (e GetMenuTreeReplyValidationError) Key() bool
- func (e GetMenuTreeReplyValidationError) Reason() string
- type Menu
- func (*Menu) Descriptor() ([]byte, []int)deprecated
- func (x *Menu) GetApi() string
- func (x *Menu) GetApp() string
- func (x *Menu) GetCheckObject() bool
- func (x *Menu) GetCheckObjectRule() string
- func (x *Menu) GetChildren() []*Menu
- func (x *Menu) GetComponent() string
- func (x *Menu) GetCreatedAt() uint32
- func (x *Menu) GetIcon() string
- func (x *Menu) GetId() uint32
- func (x *Menu) GetIsAffix() bool
- func (x *Menu) GetIsCache() bool
- func (x *Menu) GetIsHidden() bool
- func (x *Menu) GetIsHome() bool
- func (x *Menu) GetKeyword() string
- func (x *Menu) GetMethod() string
- func (x *Menu) GetParentId() uint32
- func (x *Menu) GetPath() string
- func (x *Menu) GetPermission() string
- func (x *Menu) GetRedirect() string
- func (x *Menu) GetTitle() string
- func (x *Menu) GetType() string
- func (x *Menu) GetUpdatedAt() uint32
- func (x *Menu) GetWeight() int32
- func (*Menu) ProtoMessage()
- func (x *Menu) ProtoReflect() protoreflect.Message
- func (x *Menu) Reset()
- func (x *Menu) String() string
- func (m *Menu) Validate() error
- func (m *Menu) ValidateAll() error
- type MenuMultiError
- type MenuValidationError
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddMenu(ctx context.Context, in *AddMenuRequest, opts ...http.CallOption) (*AddMenuReply, error)
- func (c *ServiceHTTPClientImpl) DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeReply, error)
- func (c *ServiceHTTPClientImpl) GetMenuTreeFromRole(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeReply, error)
- func (c *ServiceHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddMenu(context.Context, *AddMenuRequest) (*AddMenuReply, error)
- func (UnimplementedServiceServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error)
- func (UnimplementedServiceServer) GetMenuTreeFromRole(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error)
- func (UnimplementedServiceServer) UpdateMenu(context.Context, *UpdateMenuRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
- type UpdateMenuRequest
- func (*UpdateMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMenuRequest) GetApi() string
- func (x *UpdateMenuRequest) GetCheckObject() bool
- func (x *UpdateMenuRequest) GetCheckObjectRule() string
- func (x *UpdateMenuRequest) GetComponent() string
- func (x *UpdateMenuRequest) GetIcon() string
- func (x *UpdateMenuRequest) GetId() uint32
- func (x *UpdateMenuRequest) GetIsAffix() bool
- func (x *UpdateMenuRequest) GetIsCache() bool
- func (x *UpdateMenuRequest) GetIsHidden() bool
- func (x *UpdateMenuRequest) GetIsHome() bool
- func (x *UpdateMenuRequest) GetKeyword() string
- func (x *UpdateMenuRequest) GetMethod() string
- func (x *UpdateMenuRequest) GetParentId() uint32
- func (x *UpdateMenuRequest) GetPath() string
- func (x *UpdateMenuRequest) GetPermission() string
- func (x *UpdateMenuRequest) GetRedirect() string
- func (x *UpdateMenuRequest) GetTitle() string
- func (x *UpdateMenuRequest) GetType() string
- func (x *UpdateMenuRequest) GetWeight() int32
- func (*UpdateMenuRequest) ProtoMessage()
- func (x *UpdateMenuRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMenuRequest) Reset()
- func (x *UpdateMenuRequest) String() string
- func (m *UpdateMenuRequest) Validate() error
- func (m *UpdateMenuRequest) ValidateAll() error
- type UpdateMenuRequestMultiError
- type UpdateMenuRequestValidationError
- func (e UpdateMenuRequestValidationError) Cause() error
- func (e UpdateMenuRequestValidationError) Error() string
- func (e UpdateMenuRequestValidationError) ErrorName() string
- func (e UpdateMenuRequestValidationError) Field() string
- func (e UpdateMenuRequestValidationError) Key() bool
- func (e UpdateMenuRequestValidationError) Reason() string
Constants ¶
const ( Service_GetMenuTree_FullMethodName = "/manager_menu.Service/GetMenuTree" Service_GetMenuTreeFromRole_FullMethodName = "/manager_menu.Service/GetMenuTreeFromRole" Service_AddMenu_FullMethodName = "/manager_menu.Service/AddMenu" Service_UpdateMenu_FullMethodName = "/manager_menu.Service/UpdateMenu" Service_DeleteMenu_FullMethodName = "/manager_menu.Service/DeleteMenu" )
const OperationServiceAddMenu = "/manager_menu.Service/AddMenu"
const OperationServiceDeleteMenu = "/manager_menu.Service/DeleteMenu"
const OperationServiceGetMenuTree = "/manager_menu.Service/GetMenuTree"
const OperationServiceGetMenuTreeFromRole = "/manager_menu.Service/GetMenuTreeFromRole"
const OperationServiceUpdateMenu = "/manager_menu.Service/UpdateMenu"
Variables ¶
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager_menu.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetMenuTree", Handler: _Service_GetMenuTree_Handler, }, { MethodName: "GetMenuTreeFromRole", Handler: _Service_GetMenuTreeFromRole_Handler, }, { MethodName: "AddMenu", Handler: _Service_AddMenu_Handler, }, { MethodName: "UpdateMenu", Handler: _Service_UpdateMenu_Handler, }, { MethodName: "DeleteMenu", Handler: _Service_DeleteMenu_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "manager_menu_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AddMenuReply ¶
type AddMenuReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddMenuReply) Descriptor
deprecated
func (*AddMenuReply) Descriptor() ([]byte, []int)
Deprecated: Use AddMenuReply.ProtoReflect.Descriptor instead.
func (*AddMenuReply) GetId ¶
func (x *AddMenuReply) GetId() uint32
func (*AddMenuReply) ProtoMessage ¶
func (*AddMenuReply) ProtoMessage()
func (*AddMenuReply) ProtoReflect ¶
func (x *AddMenuReply) ProtoReflect() protoreflect.Message
func (*AddMenuReply) Reset ¶
func (x *AddMenuReply) Reset()
func (*AddMenuReply) String ¶
func (x *AddMenuReply) String() string
func (*AddMenuReply) Validate ¶
func (m *AddMenuReply) Validate() error
Validate checks the field values on AddMenuReply 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 (*AddMenuReply) ValidateAll ¶
func (m *AddMenuReply) ValidateAll() error
ValidateAll checks the field values on AddMenuReply 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 AddMenuReplyMultiError, or nil if none found.
type AddMenuReplyMultiError ¶
type AddMenuReplyMultiError []error
AddMenuReplyMultiError is an error wrapping multiple validation errors returned by AddMenuReply.ValidateAll() if the designated constraints aren't met.
func (AddMenuReplyMultiError) AllErrors ¶
func (m AddMenuReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddMenuReplyMultiError) Error ¶
func (m AddMenuReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddMenuReplyValidationError ¶
type AddMenuReplyValidationError struct {
// contains filtered or unexported fields
}
AddMenuReplyValidationError is the validation error returned by AddMenuReply.Validate if the designated constraints aren't met.
func (AddMenuReplyValidationError) Cause ¶
func (e AddMenuReplyValidationError) Cause() error
Cause function returns cause value.
func (AddMenuReplyValidationError) Error ¶
func (e AddMenuReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddMenuReplyValidationError) ErrorName ¶
func (e AddMenuReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddMenuReplyValidationError) Field ¶
func (e AddMenuReplyValidationError) Field() string
Field function returns field value.
func (AddMenuReplyValidationError) Key ¶
func (e AddMenuReplyValidationError) Key() bool
Key function returns key value.
func (AddMenuReplyValidationError) Reason ¶
func (e AddMenuReplyValidationError) Reason() string
Reason function returns reason value.
type AddMenuRequest ¶
type AddMenuRequest struct { ParentId uint32 `protobuf:"varint,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Icon *string `protobuf:"bytes,5,opt,name=icon,proto3,oneof" json:"icon,omitempty"` Path *string `protobuf:"bytes,6,opt,name=path,proto3,oneof" json:"path,omitempty"` Keyword *string `protobuf:"bytes,7,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` Permission *string `protobuf:"bytes,8,opt,name=permission,proto3,oneof" json:"permission,omitempty"` Component *string `protobuf:"bytes,9,opt,name=component,proto3,oneof" json:"component,omitempty"` Api *string `protobuf:"bytes,10,opt,name=api,proto3,oneof" json:"api,omitempty"` Method *string `protobuf:"bytes,11,opt,name=method,proto3,oneof" json:"method,omitempty"` Redirect *string `protobuf:"bytes,12,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"` Weight *int32 `protobuf:"varint,13,opt,name=weight,proto3,oneof" json:"weight,omitempty"` IsHidden *bool `protobuf:"varint,14,opt,name=is_hidden,json=isHidden,proto3,oneof" json:"is_hidden,omitempty"` IsCache *bool `protobuf:"varint,15,opt,name=is_cache,json=isCache,proto3,oneof" json:"is_cache,omitempty"` IsHome *bool `protobuf:"varint,16,opt,name=is_home,json=isHome,proto3,oneof" json:"is_home,omitempty"` IsAffix *bool `protobuf:"varint,17,opt,name=is_affix,json=isAffix,proto3,oneof" json:"is_affix,omitempty"` CheckObject *bool `protobuf:"varint,18,opt,name=check_object,json=checkObject,proto3,oneof" json:"check_object,omitempty"` CheckObjectRule *string `protobuf:"bytes,19,opt,name=check_object_rule,json=checkObjectRule,proto3,oneof" json:"check_object_rule,omitempty"` // contains filtered or unexported fields }
func (*AddMenuRequest) Descriptor
deprecated
func (*AddMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddMenuRequest.ProtoReflect.Descriptor instead.
func (*AddMenuRequest) GetApi ¶
func (x *AddMenuRequest) GetApi() string
func (*AddMenuRequest) GetApp ¶
func (x *AddMenuRequest) GetApp() string
func (*AddMenuRequest) GetCheckObject ¶
func (x *AddMenuRequest) GetCheckObject() bool
func (*AddMenuRequest) GetCheckObjectRule ¶
func (x *AddMenuRequest) GetCheckObjectRule() string
func (*AddMenuRequest) GetComponent ¶
func (x *AddMenuRequest) GetComponent() string
func (*AddMenuRequest) GetIcon ¶
func (x *AddMenuRequest) GetIcon() string
func (*AddMenuRequest) GetIsAffix ¶
func (x *AddMenuRequest) GetIsAffix() bool
func (*AddMenuRequest) GetIsCache ¶
func (x *AddMenuRequest) GetIsCache() bool
func (*AddMenuRequest) GetIsHidden ¶
func (x *AddMenuRequest) GetIsHidden() bool
func (*AddMenuRequest) GetIsHome ¶
func (x *AddMenuRequest) GetIsHome() bool
func (*AddMenuRequest) GetKeyword ¶
func (x *AddMenuRequest) GetKeyword() string
func (*AddMenuRequest) GetMethod ¶
func (x *AddMenuRequest) GetMethod() string
func (*AddMenuRequest) GetParentId ¶
func (x *AddMenuRequest) GetParentId() uint32
func (*AddMenuRequest) GetPath ¶
func (x *AddMenuRequest) GetPath() string
func (*AddMenuRequest) GetPermission ¶
func (x *AddMenuRequest) GetPermission() string
func (*AddMenuRequest) GetRedirect ¶
func (x *AddMenuRequest) GetRedirect() string
func (*AddMenuRequest) GetTitle ¶
func (x *AddMenuRequest) GetTitle() string
func (*AddMenuRequest) GetType ¶
func (x *AddMenuRequest) GetType() string
func (*AddMenuRequest) GetWeight ¶
func (x *AddMenuRequest) GetWeight() int32
func (*AddMenuRequest) ProtoMessage ¶
func (*AddMenuRequest) ProtoMessage()
func (*AddMenuRequest) ProtoReflect ¶
func (x *AddMenuRequest) ProtoReflect() protoreflect.Message
func (*AddMenuRequest) Reset ¶
func (x *AddMenuRequest) Reset()
func (*AddMenuRequest) String ¶
func (x *AddMenuRequest) String() string
func (*AddMenuRequest) Validate ¶
func (m *AddMenuRequest) Validate() error
Validate checks the field values on AddMenuRequest 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 (*AddMenuRequest) ValidateAll ¶
func (m *AddMenuRequest) ValidateAll() error
ValidateAll checks the field values on AddMenuRequest 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 AddMenuRequestMultiError, or nil if none found.
type AddMenuRequestMultiError ¶
type AddMenuRequestMultiError []error
AddMenuRequestMultiError is an error wrapping multiple validation errors returned by AddMenuRequest.ValidateAll() if the designated constraints aren't met.
func (AddMenuRequestMultiError) AllErrors ¶
func (m AddMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddMenuRequestMultiError) Error ¶
func (m AddMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddMenuRequestValidationError ¶
type AddMenuRequestValidationError struct {
// contains filtered or unexported fields
}
AddMenuRequestValidationError is the validation error returned by AddMenuRequest.Validate if the designated constraints aren't met.
func (AddMenuRequestValidationError) Cause ¶
func (e AddMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (AddMenuRequestValidationError) Error ¶
func (e AddMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddMenuRequestValidationError) ErrorName ¶
func (e AddMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddMenuRequestValidationError) Field ¶
func (e AddMenuRequestValidationError) Field() string
Field function returns field value.
func (AddMenuRequestValidationError) Key ¶
func (e AddMenuRequestValidationError) Key() bool
Key function returns key value.
func (AddMenuRequestValidationError) Reason ¶
func (e AddMenuRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteMenuRequest ¶
type DeleteMenuRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteMenuRequest) Descriptor
deprecated
func (*DeleteMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMenuRequest.ProtoReflect.Descriptor instead.
func (*DeleteMenuRequest) GetId ¶
func (x *DeleteMenuRequest) GetId() uint32
func (*DeleteMenuRequest) ProtoMessage ¶
func (*DeleteMenuRequest) ProtoMessage()
func (*DeleteMenuRequest) ProtoReflect ¶
func (x *DeleteMenuRequest) ProtoReflect() protoreflect.Message
func (*DeleteMenuRequest) Reset ¶
func (x *DeleteMenuRequest) Reset()
func (*DeleteMenuRequest) String ¶
func (x *DeleteMenuRequest) String() string
func (*DeleteMenuRequest) Validate ¶
func (m *DeleteMenuRequest) Validate() error
Validate checks the field values on DeleteMenuRequest 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 (*DeleteMenuRequest) ValidateAll ¶
func (m *DeleteMenuRequest) ValidateAll() error
ValidateAll checks the field values on DeleteMenuRequest 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 DeleteMenuRequestMultiError, or nil if none found.
type DeleteMenuRequestMultiError ¶
type DeleteMenuRequestMultiError []error
DeleteMenuRequestMultiError is an error wrapping multiple validation errors returned by DeleteMenuRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteMenuRequestMultiError) AllErrors ¶
func (m DeleteMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMenuRequestMultiError) Error ¶
func (m DeleteMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMenuRequestValidationError ¶
type DeleteMenuRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteMenuRequestValidationError is the validation error returned by DeleteMenuRequest.Validate if the designated constraints aren't met.
func (DeleteMenuRequestValidationError) Cause ¶
func (e DeleteMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteMenuRequestValidationError) Error ¶
func (e DeleteMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMenuRequestValidationError) ErrorName ¶
func (e DeleteMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMenuRequestValidationError) Field ¶
func (e DeleteMenuRequestValidationError) Field() string
Field function returns field value.
func (DeleteMenuRequestValidationError) Key ¶
func (e DeleteMenuRequestValidationError) Key() bool
Key function returns key value.
func (DeleteMenuRequestValidationError) Reason ¶
func (e DeleteMenuRequestValidationError) Reason() string
Reason function returns reason value.
type GetMenuTreeReply ¶
type GetMenuTreeReply struct { List []*Menu `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetMenuTreeReply) Descriptor
deprecated
func (*GetMenuTreeReply) Descriptor() ([]byte, []int)
Deprecated: Use GetMenuTreeReply.ProtoReflect.Descriptor instead.
func (*GetMenuTreeReply) GetList ¶
func (x *GetMenuTreeReply) GetList() []*Menu
func (*GetMenuTreeReply) ProtoMessage ¶
func (*GetMenuTreeReply) ProtoMessage()
func (*GetMenuTreeReply) ProtoReflect ¶
func (x *GetMenuTreeReply) ProtoReflect() protoreflect.Message
func (*GetMenuTreeReply) Reset ¶
func (x *GetMenuTreeReply) Reset()
func (*GetMenuTreeReply) String ¶
func (x *GetMenuTreeReply) String() string
func (*GetMenuTreeReply) Validate ¶
func (m *GetMenuTreeReply) Validate() error
Validate checks the field values on GetMenuTreeReply 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 (*GetMenuTreeReply) ValidateAll ¶
func (m *GetMenuTreeReply) ValidateAll() error
ValidateAll checks the field values on GetMenuTreeReply 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 GetMenuTreeReplyMultiError, or nil if none found.
type GetMenuTreeReplyMultiError ¶
type GetMenuTreeReplyMultiError []error
GetMenuTreeReplyMultiError is an error wrapping multiple validation errors returned by GetMenuTreeReply.ValidateAll() if the designated constraints aren't met.
func (GetMenuTreeReplyMultiError) AllErrors ¶
func (m GetMenuTreeReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMenuTreeReplyMultiError) Error ¶
func (m GetMenuTreeReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMenuTreeReplyValidationError ¶
type GetMenuTreeReplyValidationError struct {
// contains filtered or unexported fields
}
GetMenuTreeReplyValidationError is the validation error returned by GetMenuTreeReply.Validate if the designated constraints aren't met.
func (GetMenuTreeReplyValidationError) Cause ¶
func (e GetMenuTreeReplyValidationError) Cause() error
Cause function returns cause value.
func (GetMenuTreeReplyValidationError) Error ¶
func (e GetMenuTreeReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetMenuTreeReplyValidationError) ErrorName ¶
func (e GetMenuTreeReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetMenuTreeReplyValidationError) Field ¶
func (e GetMenuTreeReplyValidationError) Field() string
Field function returns field value.
func (GetMenuTreeReplyValidationError) Key ¶
func (e GetMenuTreeReplyValidationError) Key() bool
Key function returns key value.
func (GetMenuTreeReplyValidationError) Reason ¶
func (e GetMenuTreeReplyValidationError) Reason() string
Reason function returns reason value.
type Menu ¶
type Menu struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` App string `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` Icon string `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"` Keyword string `protobuf:"bytes,7,opt,name=keyword,proto3" json:"keyword,omitempty"` Path *string `protobuf:"bytes,8,opt,name=path,proto3,oneof" json:"path,omitempty"` Permission *string `protobuf:"bytes,9,opt,name=permission,proto3,oneof" json:"permission,omitempty"` Component *string `protobuf:"bytes,10,opt,name=component,proto3,oneof" json:"component,omitempty"` Api *string `protobuf:"bytes,11,opt,name=api,proto3,oneof" json:"api,omitempty"` Method *string `protobuf:"bytes,12,opt,name=method,proto3,oneof" json:"method,omitempty"` CheckObject bool `protobuf:"varint,13,opt,name=check_object,json=checkObject,proto3" json:"check_object,omitempty"` CheckObjectRule *string `protobuf:"bytes,14,opt,name=check_object_rule,json=checkObjectRule,proto3,oneof" json:"check_object_rule,omitempty"` Redirect *string `protobuf:"bytes,15,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"` Weight int32 `protobuf:"varint,16,opt,name=weight,proto3" json:"weight,omitempty"` IsHidden bool `protobuf:"varint,17,opt,name=is_hidden,json=isHidden,proto3" json:"is_hidden,omitempty"` IsCache bool `protobuf:"varint,18,opt,name=is_cache,json=isCache,proto3" json:"is_cache,omitempty"` IsHome bool `protobuf:"varint,19,opt,name=is_home,json=isHome,proto3" json:"is_home,omitempty"` IsAffix bool `protobuf:"varint,20,opt,name=is_affix,json=isAffix,proto3" json:"is_affix,omitempty"` Children []*Menu `protobuf:"bytes,21,rep,name=children,proto3" json:"children,omitempty"` CreatedAt uint32 `protobuf:"varint,22,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt uint32 `protobuf:"varint,23,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Menu) Descriptor
deprecated
func (*Menu) GetCheckObject ¶
func (*Menu) GetCheckObjectRule ¶
func (*Menu) GetChildren ¶
func (*Menu) GetComponent ¶
func (*Menu) GetCreatedAt ¶
func (*Menu) GetIsAffix ¶
func (*Menu) GetIsCache ¶
func (*Menu) GetIsHidden ¶
func (*Menu) GetKeyword ¶
func (*Menu) GetParentId ¶
func (*Menu) GetPermission ¶
func (*Menu) GetRedirect ¶
func (*Menu) GetUpdatedAt ¶
func (*Menu) ProtoMessage ¶
func (*Menu) ProtoMessage()
func (*Menu) ProtoReflect ¶
func (x *Menu) ProtoReflect() protoreflect.Message
func (*Menu) Validate ¶
Validate checks the field values on Menu 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 (*Menu) ValidateAll ¶
ValidateAll checks the field values on Menu 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 MenuMultiError, or nil if none found.
type MenuMultiError ¶
type MenuMultiError []error
MenuMultiError is an error wrapping multiple validation errors returned by Menu.ValidateAll() if the designated constraints aren't met.
func (MenuMultiError) AllErrors ¶
func (m MenuMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MenuMultiError) Error ¶
func (m MenuMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MenuValidationError ¶
type MenuValidationError struct {
// contains filtered or unexported fields
}
MenuValidationError is the validation error returned by Menu.Validate if the designated constraints aren't met.
func (MenuValidationError) Cause ¶
func (e MenuValidationError) Cause() error
Cause function returns cause value.
func (MenuValidationError) Error ¶
func (e MenuValidationError) Error() string
Error satisfies the builtin error interface
func (MenuValidationError) ErrorName ¶
func (e MenuValidationError) ErrorName() string
ErrorName returns error name.
func (MenuValidationError) Field ¶
func (e MenuValidationError) Field() string
Field function returns field value.
func (MenuValidationError) Key ¶
func (e MenuValidationError) Key() bool
Key function returns key value.
func (MenuValidationError) Reason ¶
func (e MenuValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { // GetMenuTree 获取菜单树 GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeReply, error) // AllMenuFromRole 获取角色的全部菜单树 GetMenuTreeFromRole(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeReply, error) // AddMenu 添加菜单 AddMenu(ctx context.Context, in *AddMenuRequest, opts ...grpc.CallOption) (*AddMenuReply, error) // UpdateMenu 更新菜单 UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteMenu 删除菜单 DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface { AddMenu(ctx context.Context, req *AddMenuRequest, opts ...http.CallOption) (rsp *AddMenuReply, err error) DeleteMenu(ctx context.Context, req *DeleteMenuRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetMenuTree(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeReply, err error) GetMenuTreeFromRole(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeReply, err error) UpdateMenu(ctx context.Context, req *UpdateMenuRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) AddMenu ¶
func (c *ServiceHTTPClientImpl) AddMenu(ctx context.Context, in *AddMenuRequest, opts ...http.CallOption) (*AddMenuReply, error)
func (*ServiceHTTPClientImpl) DeleteMenu ¶
func (c *ServiceHTTPClientImpl) DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) GetMenuTree ¶
func (c *ServiceHTTPClientImpl) GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeReply, error)
func (*ServiceHTTPClientImpl) GetMenuTreeFromRole ¶
func (c *ServiceHTTPClientImpl) GetMenuTreeFromRole(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeReply, error)
func (*ServiceHTTPClientImpl) UpdateMenu ¶
func (c *ServiceHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { // AddMenu AddMenu 添加菜单 AddMenu(context.Context, *AddMenuRequest) (*AddMenuReply, error) // DeleteMenu DeleteMenu 删除菜单 DeleteMenu(context.Context, *DeleteMenuRequest) (*emptypb.Empty, error) // GetMenuTree GetMenuTree 获取菜单树 GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error) // GetMenuTreeFromRole AllMenuFromRole 获取角色的全部菜单树 GetMenuTreeFromRole(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error) // UpdateMenu UpdateMenu 更新菜单 UpdateMenu(context.Context, *UpdateMenuRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { // GetMenuTree 获取菜单树 GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error) // AllMenuFromRole 获取角色的全部菜单树 GetMenuTreeFromRole(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error) // AddMenu 添加菜单 AddMenu(context.Context, *AddMenuRequest) (*AddMenuReply, error) // UpdateMenu 更新菜单 UpdateMenu(context.Context, *UpdateMenuRequest) (*emptypb.Empty, error) // DeleteMenu 删除菜单 DeleteMenu(context.Context, *DeleteMenuRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddMenu ¶
func (UnimplementedServiceServer) AddMenu(context.Context, *AddMenuRequest) (*AddMenuReply, error)
func (UnimplementedServiceServer) DeleteMenu ¶
func (UnimplementedServiceServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) GetMenuTree ¶
func (UnimplementedServiceServer) GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error)
func (UnimplementedServiceServer) GetMenuTreeFromRole ¶
func (UnimplementedServiceServer) GetMenuTreeFromRole(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error)
func (UnimplementedServiceServer) UpdateMenu ¶
func (UnimplementedServiceServer) UpdateMenu(context.Context, *UpdateMenuRequest) (*emptypb.Empty, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UpdateMenuRequest ¶
type UpdateMenuRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Icon *string `protobuf:"bytes,5,opt,name=icon,proto3,oneof" json:"icon,omitempty"` Path *string `protobuf:"bytes,6,opt,name=path,proto3,oneof" json:"path,omitempty"` Keyword *string `protobuf:"bytes,7,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` Permission *string `protobuf:"bytes,8,opt,name=permission,proto3,oneof" json:"permission,omitempty"` Component *string `protobuf:"bytes,9,opt,name=component,proto3,oneof" json:"component,omitempty"` Api *string `protobuf:"bytes,10,opt,name=api,proto3,oneof" json:"api,omitempty"` Method *string `protobuf:"bytes,11,opt,name=method,proto3,oneof" json:"method,omitempty"` Redirect *string `protobuf:"bytes,12,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"` Weight *int32 `protobuf:"varint,13,opt,name=weight,proto3,oneof" json:"weight,omitempty"` IsHidden *bool `protobuf:"varint,14,opt,name=is_hidden,json=isHidden,proto3,oneof" json:"is_hidden,omitempty"` IsCache *bool `protobuf:"varint,15,opt,name=is_cache,json=isCache,proto3,oneof" json:"is_cache,omitempty"` IsHome *bool `protobuf:"varint,16,opt,name=is_home,json=isHome,proto3,oneof" json:"is_home,omitempty"` IsAffix *bool `protobuf:"varint,17,opt,name=is_affix,json=isAffix,proto3,oneof" json:"is_affix,omitempty"` CheckObject *bool `protobuf:"varint,18,opt,name=check_object,json=checkObject,proto3,oneof" json:"check_object,omitempty"` CheckObjectRule *string `protobuf:"bytes,19,opt,name=check_object_rule,json=checkObjectRule,proto3,oneof" json:"check_object_rule,omitempty"` // contains filtered or unexported fields }
func (*UpdateMenuRequest) Descriptor
deprecated
func (*UpdateMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMenuRequest.ProtoReflect.Descriptor instead.
func (*UpdateMenuRequest) GetApi ¶
func (x *UpdateMenuRequest) GetApi() string
func (*UpdateMenuRequest) GetCheckObject ¶
func (x *UpdateMenuRequest) GetCheckObject() bool
func (*UpdateMenuRequest) GetCheckObjectRule ¶
func (x *UpdateMenuRequest) GetCheckObjectRule() string
func (*UpdateMenuRequest) GetComponent ¶
func (x *UpdateMenuRequest) GetComponent() string
func (*UpdateMenuRequest) GetIcon ¶
func (x *UpdateMenuRequest) GetIcon() string
func (*UpdateMenuRequest) GetId ¶
func (x *UpdateMenuRequest) GetId() uint32
func (*UpdateMenuRequest) GetIsAffix ¶
func (x *UpdateMenuRequest) GetIsAffix() bool
func (*UpdateMenuRequest) GetIsCache ¶
func (x *UpdateMenuRequest) GetIsCache() bool
func (*UpdateMenuRequest) GetIsHidden ¶
func (x *UpdateMenuRequest) GetIsHidden() bool
func (*UpdateMenuRequest) GetIsHome ¶
func (x *UpdateMenuRequest) GetIsHome() bool
func (*UpdateMenuRequest) GetKeyword ¶
func (x *UpdateMenuRequest) GetKeyword() string
func (*UpdateMenuRequest) GetMethod ¶
func (x *UpdateMenuRequest) GetMethod() string
func (*UpdateMenuRequest) GetParentId ¶
func (x *UpdateMenuRequest) GetParentId() uint32
func (*UpdateMenuRequest) GetPath ¶
func (x *UpdateMenuRequest) GetPath() string
func (*UpdateMenuRequest) GetPermission ¶
func (x *UpdateMenuRequest) GetPermission() string
func (*UpdateMenuRequest) GetRedirect ¶
func (x *UpdateMenuRequest) GetRedirect() string
func (*UpdateMenuRequest) GetTitle ¶
func (x *UpdateMenuRequest) GetTitle() string
func (*UpdateMenuRequest) GetType ¶
func (x *UpdateMenuRequest) GetType() string
func (*UpdateMenuRequest) GetWeight ¶
func (x *UpdateMenuRequest) GetWeight() int32
func (*UpdateMenuRequest) ProtoMessage ¶
func (*UpdateMenuRequest) ProtoMessage()
func (*UpdateMenuRequest) ProtoReflect ¶
func (x *UpdateMenuRequest) ProtoReflect() protoreflect.Message
func (*UpdateMenuRequest) Reset ¶
func (x *UpdateMenuRequest) Reset()
func (*UpdateMenuRequest) String ¶
func (x *UpdateMenuRequest) String() string
func (*UpdateMenuRequest) Validate ¶
func (m *UpdateMenuRequest) Validate() error
Validate checks the field values on UpdateMenuRequest 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 (*UpdateMenuRequest) ValidateAll ¶
func (m *UpdateMenuRequest) ValidateAll() error
ValidateAll checks the field values on UpdateMenuRequest 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 UpdateMenuRequestMultiError, or nil if none found.
type UpdateMenuRequestMultiError ¶
type UpdateMenuRequestMultiError []error
UpdateMenuRequestMultiError is an error wrapping multiple validation errors returned by UpdateMenuRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateMenuRequestMultiError) AllErrors ¶
func (m UpdateMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateMenuRequestMultiError) Error ¶
func (m UpdateMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateMenuRequestValidationError ¶
type UpdateMenuRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateMenuRequestValidationError is the validation error returned by UpdateMenuRequest.Validate if the designated constraints aren't met.
func (UpdateMenuRequestValidationError) Cause ¶
func (e UpdateMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateMenuRequestValidationError) Error ¶
func (e UpdateMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateMenuRequestValidationError) ErrorName ¶
func (e UpdateMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateMenuRequestValidationError) Field ¶
func (e UpdateMenuRequestValidationError) Field() string
Field function returns field value.
func (UpdateMenuRequestValidationError) Key ¶
func (e UpdateMenuRequestValidationError) Key() bool
Key function returns key value.
func (UpdateMenuRequestValidationError) Reason ¶
func (e UpdateMenuRequestValidationError) Reason() string
Reason function returns reason value.