Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterMenuHTTPServer(s *http.Server, srv MenuHTTPServer)
- func RegisterMenuServer(s grpc.ServiceRegistrar, srv MenuServer)
- type CreateMenuReply
- func (*CreateMenuReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMenuReply) GetId() uint32
- func (*CreateMenuReply) ProtoMessage()
- func (x *CreateMenuReply) ProtoReflect() protoreflect.Message
- func (x *CreateMenuReply) Reset()
- func (x *CreateMenuReply) String() string
- func (m *CreateMenuReply) Validate() error
- func (m *CreateMenuReply) ValidateAll() error
- type CreateMenuReplyMultiError
- type CreateMenuReplyValidationError
- func (e CreateMenuReplyValidationError) Cause() error
- func (e CreateMenuReplyValidationError) Error() string
- func (e CreateMenuReplyValidationError) ErrorName() string
- func (e CreateMenuReplyValidationError) Field() string
- func (e CreateMenuReplyValidationError) Key() bool
- func (e CreateMenuReplyValidationError) Reason() string
- type CreateMenuRequest
- func (*CreateMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMenuRequest) GetApi() string
- func (x *CreateMenuRequest) GetApp() string
- func (x *CreateMenuRequest) GetComponent() string
- func (x *CreateMenuRequest) GetIcon() string
- func (x *CreateMenuRequest) GetIsAffix() bool
- func (x *CreateMenuRequest) GetIsCache() bool
- func (x *CreateMenuRequest) GetIsHidden() bool
- func (x *CreateMenuRequest) GetIsHome() bool
- func (x *CreateMenuRequest) GetIsIframe() bool
- func (x *CreateMenuRequest) GetKeyword() string
- func (x *CreateMenuRequest) GetMethod() string
- func (x *CreateMenuRequest) GetParentId() uint32
- func (x *CreateMenuRequest) GetPath() string
- func (x *CreateMenuRequest) GetPermission() string
- func (x *CreateMenuRequest) GetTitle() string
- func (x *CreateMenuRequest) GetType() string
- func (x *CreateMenuRequest) GetUrl() string
- func (x *CreateMenuRequest) GetWeight() int32
- func (*CreateMenuRequest) ProtoMessage()
- func (x *CreateMenuRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMenuRequest) Reset()
- func (x *CreateMenuRequest) String() string
- func (m *CreateMenuRequest) Validate() error
- func (m *CreateMenuRequest) ValidateAll() error
- type CreateMenuRequestMultiError
- type CreateMenuRequestValidationError
- func (e CreateMenuRequestValidationError) Cause() error
- func (e CreateMenuRequestValidationError) Error() string
- func (e CreateMenuRequestValidationError) ErrorName() string
- func (e CreateMenuRequestValidationError) Field() string
- func (e CreateMenuRequestValidationError) Key() bool
- func (e CreateMenuRequestValidationError) Reason() string
- type DeleteMenuReply
- func (*DeleteMenuReply) Descriptor() ([]byte, []int)deprecated
- func (*DeleteMenuReply) ProtoMessage()
- func (x *DeleteMenuReply) ProtoReflect() protoreflect.Message
- func (x *DeleteMenuReply) Reset()
- func (x *DeleteMenuReply) String() string
- func (m *DeleteMenuReply) Validate() error
- func (m *DeleteMenuReply) ValidateAll() error
- type DeleteMenuReplyMultiError
- type DeleteMenuReplyValidationError
- func (e DeleteMenuReplyValidationError) Cause() error
- func (e DeleteMenuReplyValidationError) Error() string
- func (e DeleteMenuReplyValidationError) ErrorName() string
- func (e DeleteMenuReplyValidationError) Field() string
- func (e DeleteMenuReplyValidationError) Key() bool
- func (e DeleteMenuReplyValidationError) 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 ListCurrentMenuRequest
- func (*ListCurrentMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCurrentMenuRequest) GetApp() string
- func (x *ListCurrentMenuRequest) GetOnlyMenu() bool
- func (*ListCurrentMenuRequest) ProtoMessage()
- func (x *ListCurrentMenuRequest) ProtoReflect() protoreflect.Message
- func (x *ListCurrentMenuRequest) Reset()
- func (x *ListCurrentMenuRequest) String() string
- func (m *ListCurrentMenuRequest) Validate() error
- func (m *ListCurrentMenuRequest) ValidateAll() error
- type ListCurrentMenuRequestMultiError
- type ListCurrentMenuRequestValidationError
- func (e ListCurrentMenuRequestValidationError) Cause() error
- func (e ListCurrentMenuRequestValidationError) Error() string
- func (e ListCurrentMenuRequestValidationError) ErrorName() string
- func (e ListCurrentMenuRequestValidationError) Field() string
- func (e ListCurrentMenuRequestValidationError) Key() bool
- func (e ListCurrentMenuRequestValidationError) Reason() string
- type ListMenuReply
- func (*ListMenuReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuReply) GetList() []*ListMenuReply_Data
- func (*ListMenuReply) ProtoMessage()
- func (x *ListMenuReply) ProtoReflect() protoreflect.Message
- func (x *ListMenuReply) Reset()
- func (x *ListMenuReply) String() string
- func (m *ListMenuReply) Validate() error
- func (m *ListMenuReply) ValidateAll() error
- type ListMenuReplyMultiError
- type ListMenuReplyValidationError
- func (e ListMenuReplyValidationError) Cause() error
- func (e ListMenuReplyValidationError) Error() string
- func (e ListMenuReplyValidationError) ErrorName() string
- func (e ListMenuReplyValidationError) Field() string
- func (e ListMenuReplyValidationError) Key() bool
- func (e ListMenuReplyValidationError) Reason() string
- type ListMenuReply_Data
- func (*ListMenuReply_Data) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuReply_Data) GetApi() string
- func (x *ListMenuReply_Data) GetApp() string
- func (x *ListMenuReply_Data) GetChildren() []*ListMenuReply_Data
- func (x *ListMenuReply_Data) GetComponent() string
- func (x *ListMenuReply_Data) GetCreatedAt() uint32
- func (x *ListMenuReply_Data) GetIcon() string
- func (x *ListMenuReply_Data) GetId() uint32
- func (x *ListMenuReply_Data) GetIsAffix() bool
- func (x *ListMenuReply_Data) GetIsCache() bool
- func (x *ListMenuReply_Data) GetIsHidden() bool
- func (x *ListMenuReply_Data) GetIsHome() bool
- func (x *ListMenuReply_Data) GetIsIframe() bool
- func (x *ListMenuReply_Data) GetKeyword() string
- func (x *ListMenuReply_Data) GetMethod() string
- func (x *ListMenuReply_Data) GetParentId() uint32
- func (x *ListMenuReply_Data) GetPath() string
- func (x *ListMenuReply_Data) GetPermission() string
- func (x *ListMenuReply_Data) GetRedirect() string
- func (x *ListMenuReply_Data) GetTitle() string
- func (x *ListMenuReply_Data) GetType() string
- func (x *ListMenuReply_Data) GetUpdatedAt() uint32
- func (x *ListMenuReply_Data) GetUrl() string
- func (x *ListMenuReply_Data) GetWeight() int32
- func (*ListMenuReply_Data) ProtoMessage()
- func (x *ListMenuReply_Data) ProtoReflect() protoreflect.Message
- func (x *ListMenuReply_Data) Reset()
- func (x *ListMenuReply_Data) String() string
- func (m *ListMenuReply_Data) Validate() error
- func (m *ListMenuReply_Data) ValidateAll() error
- type ListMenuReply_DataMultiError
- type ListMenuReply_DataValidationError
- func (e ListMenuReply_DataValidationError) Cause() error
- func (e ListMenuReply_DataValidationError) Error() string
- func (e ListMenuReply_DataValidationError) ErrorName() string
- func (e ListMenuReply_DataValidationError) Field() string
- func (e ListMenuReply_DataValidationError) Key() bool
- func (e ListMenuReply_DataValidationError) Reason() string
- type ListMenuRequest
- func (*ListMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuRequest) GetApp() string
- func (*ListMenuRequest) ProtoMessage()
- func (x *ListMenuRequest) ProtoReflect() protoreflect.Message
- func (x *ListMenuRequest) Reset()
- func (x *ListMenuRequest) String() string
- func (m *ListMenuRequest) Validate() error
- func (m *ListMenuRequest) ValidateAll() error
- type ListMenuRequestMultiError
- type ListMenuRequestValidationError
- func (e ListMenuRequestValidationError) Cause() error
- func (e ListMenuRequestValidationError) Error() string
- func (e ListMenuRequestValidationError) ErrorName() string
- func (e ListMenuRequestValidationError) Field() string
- func (e ListMenuRequestValidationError) Key() bool
- func (e ListMenuRequestValidationError) Reason() string
- type MenuClient
- type MenuHTTPClient
- type MenuHTTPClientImpl
- func (c *MenuHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuRequest, opts ...http.CallOption) (*CreateMenuReply, error)
- func (c *MenuHTTPClientImpl) DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...http.CallOption) (*DeleteMenuReply, error)
- func (c *MenuHTTPClientImpl) ListCurrentMenu(ctx context.Context, in *ListCurrentMenuRequest, opts ...http.CallOption) (*ListMenuReply, error)
- func (c *MenuHTTPClientImpl) ListMenu(ctx context.Context, in *ListMenuRequest, opts ...http.CallOption) (*ListMenuReply, error)
- func (c *MenuHTTPClientImpl) RegisterMenu(ctx context.Context, in *RegisterMenuRequest, opts ...http.CallOption) (*RegisterMenuReply, error)
- func (c *MenuHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...http.CallOption) (*UpdateMenuReply, error)
- type MenuHTTPServer
- type MenuServer
- type RegisterMenuNode
- func (*RegisterMenuNode) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterMenuNode) GetApi() string
- func (x *RegisterMenuNode) GetChildren() []*RegisterMenuNode
- func (x *RegisterMenuNode) GetComponent() string
- func (x *RegisterMenuNode) GetIcon() string
- func (x *RegisterMenuNode) GetIsAffix() bool
- func (x *RegisterMenuNode) GetIsCache() bool
- func (x *RegisterMenuNode) GetIsHidden() bool
- func (x *RegisterMenuNode) GetIsHome() bool
- func (x *RegisterMenuNode) GetIsIframe() bool
- func (x *RegisterMenuNode) GetKey() string
- func (x *RegisterMenuNode) GetMethod() string
- func (x *RegisterMenuNode) GetPath() string
- func (x *RegisterMenuNode) GetPermission() string
- func (x *RegisterMenuNode) GetRedirect() string
- func (x *RegisterMenuNode) GetTitle() string
- func (x *RegisterMenuNode) GetType() string
- func (x *RegisterMenuNode) GetUrl() string
- func (x *RegisterMenuNode) GetWeight() int32
- func (*RegisterMenuNode) ProtoMessage()
- func (x *RegisterMenuNode) ProtoReflect() protoreflect.Message
- func (x *RegisterMenuNode) Reset()
- func (x *RegisterMenuNode) String() string
- func (m *RegisterMenuNode) Validate() error
- func (m *RegisterMenuNode) ValidateAll() error
- type RegisterMenuNodeMultiError
- type RegisterMenuNodeValidationError
- func (e RegisterMenuNodeValidationError) Cause() error
- func (e RegisterMenuNodeValidationError) Error() string
- func (e RegisterMenuNodeValidationError) ErrorName() string
- func (e RegisterMenuNodeValidationError) Field() string
- func (e RegisterMenuNodeValidationError) Key() bool
- func (e RegisterMenuNodeValidationError) Reason() string
- type RegisterMenuReply
- func (*RegisterMenuReply) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterMenuReply) GetCreated() uint32
- func (x *RegisterMenuReply) GetDeleted() uint32
- func (x *RegisterMenuReply) GetUpdated() uint32
- func (*RegisterMenuReply) ProtoMessage()
- func (x *RegisterMenuReply) ProtoReflect() protoreflect.Message
- func (x *RegisterMenuReply) Reset()
- func (x *RegisterMenuReply) String() string
- func (m *RegisterMenuReply) Validate() error
- func (m *RegisterMenuReply) ValidateAll() error
- type RegisterMenuReplyMultiError
- type RegisterMenuReplyValidationError
- func (e RegisterMenuReplyValidationError) Cause() error
- func (e RegisterMenuReplyValidationError) Error() string
- func (e RegisterMenuReplyValidationError) ErrorName() string
- func (e RegisterMenuReplyValidationError) Field() string
- func (e RegisterMenuReplyValidationError) Key() bool
- func (e RegisterMenuReplyValidationError) Reason() string
- type RegisterMenuRequest
- func (*RegisterMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterMenuRequest) GetAppKeyword() string
- func (x *RegisterMenuRequest) GetMenus() []*RegisterMenuNode
- func (x *RegisterMenuRequest) GetMode() string
- func (*RegisterMenuRequest) ProtoMessage()
- func (x *RegisterMenuRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterMenuRequest) Reset()
- func (x *RegisterMenuRequest) String() string
- func (m *RegisterMenuRequest) Validate() error
- func (m *RegisterMenuRequest) ValidateAll() error
- type RegisterMenuRequestMultiError
- type RegisterMenuRequestValidationError
- func (e RegisterMenuRequestValidationError) Cause() error
- func (e RegisterMenuRequestValidationError) Error() string
- func (e RegisterMenuRequestValidationError) ErrorName() string
- func (e RegisterMenuRequestValidationError) Field() string
- func (e RegisterMenuRequestValidationError) Key() bool
- func (e RegisterMenuRequestValidationError) Reason() string
- type UnimplementedMenuServer
- func (UnimplementedMenuServer) CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuReply, error)
- func (UnimplementedMenuServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error)
- func (UnimplementedMenuServer) ListCurrentMenu(context.Context, *ListCurrentMenuRequest) (*ListMenuReply, error)
- func (UnimplementedMenuServer) ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error)
- func (UnimplementedMenuServer) RegisterMenu(context.Context, *RegisterMenuRequest) (*RegisterMenuReply, error)
- func (UnimplementedMenuServer) UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuReply, error)
- type UnsafeMenuServer
- type UpdateMenuReply
- func (*UpdateMenuReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateMenuReply) ProtoMessage()
- func (x *UpdateMenuReply) ProtoReflect() protoreflect.Message
- func (x *UpdateMenuReply) Reset()
- func (x *UpdateMenuReply) String() string
- func (m *UpdateMenuReply) Validate() error
- func (m *UpdateMenuReply) ValidateAll() error
- type UpdateMenuReplyMultiError
- type UpdateMenuReplyValidationError
- func (e UpdateMenuReplyValidationError) Cause() error
- func (e UpdateMenuReplyValidationError) Error() string
- func (e UpdateMenuReplyValidationError) ErrorName() string
- func (e UpdateMenuReplyValidationError) Field() string
- func (e UpdateMenuReplyValidationError) Key() bool
- func (e UpdateMenuReplyValidationError) Reason() string
- type UpdateMenuRequest
- func (*UpdateMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMenuRequest) GetApi() 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) GetIsIframe() 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) GetTitle() string
- func (x *UpdateMenuRequest) GetType() string
- func (x *UpdateMenuRequest) GetUrl() 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 ( Menu_ListCurrentMenu_FullMethodName = "/manager.api.menu.Menu/ListCurrentMenu" Menu_ListMenu_FullMethodName = "/manager.api.menu.Menu/ListMenu" Menu_CreateMenu_FullMethodName = "/manager.api.menu.Menu/CreateMenu" Menu_UpdateMenu_FullMethodName = "/manager.api.menu.Menu/UpdateMenu" Menu_DeleteMenu_FullMethodName = "/manager.api.menu.Menu/DeleteMenu" Menu_RegisterMenu_FullMethodName = "/manager.api.menu.Menu/RegisterMenu" )
const OperationMenuCreateMenu = "/manager.api.menu.Menu/CreateMenu"
const OperationMenuDeleteMenu = "/manager.api.menu.Menu/DeleteMenu"
const OperationMenuListCurrentMenu = "/manager.api.menu.Menu/ListCurrentMenu"
const OperationMenuListMenu = "/manager.api.menu.Menu/ListMenu"
const OperationMenuRegisterMenu = "/manager.api.menu.Menu/RegisterMenu"
const OperationMenuUpdateMenu = "/manager.api.menu.Menu/UpdateMenu"
Variables ¶
var Menu_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.api.menu.Menu", HandlerType: (*MenuServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListCurrentMenu", Handler: _Menu_ListCurrentMenu_Handler, }, { MethodName: "ListMenu", Handler: _Menu_ListMenu_Handler, }, { MethodName: "CreateMenu", Handler: _Menu_CreateMenu_Handler, }, { MethodName: "UpdateMenu", Handler: _Menu_UpdateMenu_Handler, }, { MethodName: "DeleteMenu", Handler: _Menu_DeleteMenu_Handler, }, { MethodName: "RegisterMenu", Handler: _Menu_RegisterMenu_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/menu/proto/menu_service.proto", }
Menu_ServiceDesc is the grpc.ServiceDesc for Menu service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMenuHTTPServer ¶
func RegisterMenuHTTPServer(s *http.Server, srv MenuHTTPServer)
func RegisterMenuServer ¶
func RegisterMenuServer(s grpc.ServiceRegistrar, srv MenuServer)
Types ¶
type CreateMenuReply ¶
type CreateMenuReply struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateMenuReply) Descriptor
deprecated
func (*CreateMenuReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateMenuReply.ProtoReflect.Descriptor instead.
func (*CreateMenuReply) GetId ¶
func (x *CreateMenuReply) GetId() uint32
func (*CreateMenuReply) ProtoMessage ¶
func (*CreateMenuReply) ProtoMessage()
func (*CreateMenuReply) ProtoReflect ¶
func (x *CreateMenuReply) ProtoReflect() protoreflect.Message
func (*CreateMenuReply) Reset ¶
func (x *CreateMenuReply) Reset()
func (*CreateMenuReply) String ¶
func (x *CreateMenuReply) String() string
func (*CreateMenuReply) Validate ¶
func (m *CreateMenuReply) Validate() error
Validate checks the field values on CreateMenuReply 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 (*CreateMenuReply) ValidateAll ¶
func (m *CreateMenuReply) ValidateAll() error
ValidateAll checks the field values on CreateMenuReply 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 CreateMenuReplyMultiError, or nil if none found.
type CreateMenuReplyMultiError ¶
type CreateMenuReplyMultiError []error
CreateMenuReplyMultiError is an error wrapping multiple validation errors returned by CreateMenuReply.ValidateAll() if the designated constraints aren't met.
func (CreateMenuReplyMultiError) AllErrors ¶
func (m CreateMenuReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateMenuReplyMultiError) Error ¶
func (m CreateMenuReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateMenuReplyValidationError ¶
type CreateMenuReplyValidationError struct {
// contains filtered or unexported fields
}
CreateMenuReplyValidationError is the validation error returned by CreateMenuReply.Validate if the designated constraints aren't met.
func (CreateMenuReplyValidationError) Cause ¶
func (e CreateMenuReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateMenuReplyValidationError) Error ¶
func (e CreateMenuReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateMenuReplyValidationError) ErrorName ¶
func (e CreateMenuReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateMenuReplyValidationError) Field ¶
func (e CreateMenuReplyValidationError) Field() string
Field function returns field value.
func (CreateMenuReplyValidationError) Key ¶
func (e CreateMenuReplyValidationError) Key() bool
Key function returns key value.
func (CreateMenuReplyValidationError) Reason ¶
func (e CreateMenuReplyValidationError) Reason() string
Reason function returns reason value.
type CreateMenuRequest ¶
type CreateMenuRequest struct {
App string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,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"`
Keyword *string `protobuf:"bytes,5,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
Icon *string `protobuf:"bytes,6,opt,name=icon,proto3,oneof" json:"icon,omitempty"`
Api *string `protobuf:"bytes,7,opt,name=api,proto3,oneof" json:"api,omitempty"`
Method *string `protobuf:"bytes,8,opt,name=method,proto3,oneof" json:"method,omitempty"`
Path *string `protobuf:"bytes,9,opt,name=path,proto3,oneof" json:"path,omitempty"`
Permission *string `protobuf:"bytes,10,opt,name=permission,proto3,oneof" json:"permission,omitempty"`
Component *string `protobuf:"bytes,11,opt,name=component,proto3,oneof" json:"component,omitempty"`
Url *string `protobuf:"bytes,12,opt,name=url,proto3,oneof" json:"url,omitempty"`
Weight *int32 `protobuf:"varint,13,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
IsIframe *bool `protobuf:"varint,14,opt,name=isIframe,proto3,oneof" json:"isIframe,omitempty"`
IsHidden *bool `protobuf:"varint,15,opt,name=isHidden,proto3,oneof" json:"isHidden,omitempty"`
IsCache *bool `protobuf:"varint,16,opt,name=isCache,proto3,oneof" json:"isCache,omitempty"`
IsHome *bool `protobuf:"varint,17,opt,name=isHome,proto3,oneof" json:"isHome,omitempty"`
IsAffix *bool `protobuf:"varint,18,opt,name=isAffix,proto3,oneof" json:"isAffix,omitempty"`
// contains filtered or unexported fields
}
func (*CreateMenuRequest) Descriptor
deprecated
func (*CreateMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMenuRequest.ProtoReflect.Descriptor instead.
func (*CreateMenuRequest) GetApi ¶
func (x *CreateMenuRequest) GetApi() string
func (*CreateMenuRequest) GetApp ¶
func (x *CreateMenuRequest) GetApp() string
func (*CreateMenuRequest) GetComponent ¶
func (x *CreateMenuRequest) GetComponent() string
func (*CreateMenuRequest) GetIcon ¶
func (x *CreateMenuRequest) GetIcon() string
func (*CreateMenuRequest) GetIsAffix ¶
func (x *CreateMenuRequest) GetIsAffix() bool
func (*CreateMenuRequest) GetIsCache ¶
func (x *CreateMenuRequest) GetIsCache() bool
func (*CreateMenuRequest) GetIsHidden ¶
func (x *CreateMenuRequest) GetIsHidden() bool
func (*CreateMenuRequest) GetIsHome ¶
func (x *CreateMenuRequest) GetIsHome() bool
func (*CreateMenuRequest) GetIsIframe ¶
func (x *CreateMenuRequest) GetIsIframe() bool
func (*CreateMenuRequest) GetKeyword ¶
func (x *CreateMenuRequest) GetKeyword() string
func (*CreateMenuRequest) GetMethod ¶
func (x *CreateMenuRequest) GetMethod() string
func (*CreateMenuRequest) GetParentId ¶
func (x *CreateMenuRequest) GetParentId() uint32
func (*CreateMenuRequest) GetPath ¶
func (x *CreateMenuRequest) GetPath() string
func (*CreateMenuRequest) GetPermission ¶
func (x *CreateMenuRequest) GetPermission() string
func (*CreateMenuRequest) GetTitle ¶
func (x *CreateMenuRequest) GetTitle() string
func (*CreateMenuRequest) GetType ¶
func (x *CreateMenuRequest) GetType() string
func (*CreateMenuRequest) GetUrl ¶
func (x *CreateMenuRequest) GetUrl() string
func (*CreateMenuRequest) GetWeight ¶
func (x *CreateMenuRequest) GetWeight() int32
func (*CreateMenuRequest) ProtoMessage ¶
func (*CreateMenuRequest) ProtoMessage()
func (*CreateMenuRequest) ProtoReflect ¶
func (x *CreateMenuRequest) ProtoReflect() protoreflect.Message
func (*CreateMenuRequest) Reset ¶
func (x *CreateMenuRequest) Reset()
func (*CreateMenuRequest) String ¶
func (x *CreateMenuRequest) String() string
func (*CreateMenuRequest) Validate ¶
func (m *CreateMenuRequest) Validate() error
Validate checks the field values on CreateMenuRequest 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 (*CreateMenuRequest) ValidateAll ¶
func (m *CreateMenuRequest) ValidateAll() error
ValidateAll checks the field values on CreateMenuRequest 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 CreateMenuRequestMultiError, or nil if none found.
type CreateMenuRequestMultiError ¶
type CreateMenuRequestMultiError []error
CreateMenuRequestMultiError is an error wrapping multiple validation errors returned by CreateMenuRequest.ValidateAll() if the designated constraints aren't met.
func (CreateMenuRequestMultiError) AllErrors ¶
func (m CreateMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateMenuRequestMultiError) Error ¶
func (m CreateMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateMenuRequestValidationError ¶
type CreateMenuRequestValidationError struct {
// contains filtered or unexported fields
}
CreateMenuRequestValidationError is the validation error returned by CreateMenuRequest.Validate if the designated constraints aren't met.
func (CreateMenuRequestValidationError) Cause ¶
func (e CreateMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateMenuRequestValidationError) Error ¶
func (e CreateMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateMenuRequestValidationError) ErrorName ¶
func (e CreateMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateMenuRequestValidationError) Field ¶
func (e CreateMenuRequestValidationError) Field() string
Field function returns field value.
func (CreateMenuRequestValidationError) Key ¶
func (e CreateMenuRequestValidationError) Key() bool
Key function returns key value.
func (CreateMenuRequestValidationError) Reason ¶
func (e CreateMenuRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteMenuReply ¶
type DeleteMenuReply struct {
// contains filtered or unexported fields
}
func (*DeleteMenuReply) Descriptor
deprecated
func (*DeleteMenuReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMenuReply.ProtoReflect.Descriptor instead.
func (*DeleteMenuReply) ProtoMessage ¶
func (*DeleteMenuReply) ProtoMessage()
func (*DeleteMenuReply) ProtoReflect ¶
func (x *DeleteMenuReply) ProtoReflect() protoreflect.Message
func (*DeleteMenuReply) Reset ¶
func (x *DeleteMenuReply) Reset()
func (*DeleteMenuReply) String ¶
func (x *DeleteMenuReply) String() string
func (*DeleteMenuReply) Validate ¶
func (m *DeleteMenuReply) Validate() error
Validate checks the field values on DeleteMenuReply 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 (*DeleteMenuReply) ValidateAll ¶
func (m *DeleteMenuReply) ValidateAll() error
ValidateAll checks the field values on DeleteMenuReply 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 DeleteMenuReplyMultiError, or nil if none found.
type DeleteMenuReplyMultiError ¶
type DeleteMenuReplyMultiError []error
DeleteMenuReplyMultiError is an error wrapping multiple validation errors returned by DeleteMenuReply.ValidateAll() if the designated constraints aren't met.
func (DeleteMenuReplyMultiError) AllErrors ¶
func (m DeleteMenuReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMenuReplyMultiError) Error ¶
func (m DeleteMenuReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMenuReplyValidationError ¶
type DeleteMenuReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteMenuReplyValidationError is the validation error returned by DeleteMenuReply.Validate if the designated constraints aren't met.
func (DeleteMenuReplyValidationError) Cause ¶
func (e DeleteMenuReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteMenuReplyValidationError) Error ¶
func (e DeleteMenuReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMenuReplyValidationError) ErrorName ¶
func (e DeleteMenuReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMenuReplyValidationError) Field ¶
func (e DeleteMenuReplyValidationError) Field() string
Field function returns field value.
func (DeleteMenuReplyValidationError) Key ¶
func (e DeleteMenuReplyValidationError) Key() bool
Key function returns key value.
func (DeleteMenuReplyValidationError) Reason ¶
func (e DeleteMenuReplyValidationError) 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 ListCurrentMenuRequest ¶
type ListCurrentMenuRequest struct {
App *string `protobuf:"bytes,1,opt,name=app,proto3,oneof" json:"app,omitempty"`
OnlyMenu bool `protobuf:"varint,2,opt,name=onlyMenu,proto3" json:"onlyMenu,omitempty"`
// contains filtered or unexported fields
}
func (*ListCurrentMenuRequest) Descriptor
deprecated
func (*ListCurrentMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCurrentMenuRequest.ProtoReflect.Descriptor instead.
func (*ListCurrentMenuRequest) GetApp ¶
func (x *ListCurrentMenuRequest) GetApp() string
func (*ListCurrentMenuRequest) GetOnlyMenu ¶
func (x *ListCurrentMenuRequest) GetOnlyMenu() bool
func (*ListCurrentMenuRequest) ProtoMessage ¶
func (*ListCurrentMenuRequest) ProtoMessage()
func (*ListCurrentMenuRequest) ProtoReflect ¶
func (x *ListCurrentMenuRequest) ProtoReflect() protoreflect.Message
func (*ListCurrentMenuRequest) Reset ¶
func (x *ListCurrentMenuRequest) Reset()
func (*ListCurrentMenuRequest) String ¶
func (x *ListCurrentMenuRequest) String() string
func (*ListCurrentMenuRequest) Validate ¶
func (m *ListCurrentMenuRequest) Validate() error
Validate checks the field values on ListCurrentMenuRequest 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 (*ListCurrentMenuRequest) ValidateAll ¶
func (m *ListCurrentMenuRequest) ValidateAll() error
ValidateAll checks the field values on ListCurrentMenuRequest 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 ListCurrentMenuRequestMultiError, or nil if none found.
type ListCurrentMenuRequestMultiError ¶
type ListCurrentMenuRequestMultiError []error
ListCurrentMenuRequestMultiError is an error wrapping multiple validation errors returned by ListCurrentMenuRequest.ValidateAll() if the designated constraints aren't met.
func (ListCurrentMenuRequestMultiError) AllErrors ¶
func (m ListCurrentMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListCurrentMenuRequestMultiError) Error ¶
func (m ListCurrentMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListCurrentMenuRequestValidationError ¶
type ListCurrentMenuRequestValidationError struct {
// contains filtered or unexported fields
}
ListCurrentMenuRequestValidationError is the validation error returned by ListCurrentMenuRequest.Validate if the designated constraints aren't met.
func (ListCurrentMenuRequestValidationError) Cause ¶
func (e ListCurrentMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (ListCurrentMenuRequestValidationError) Error ¶
func (e ListCurrentMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListCurrentMenuRequestValidationError) ErrorName ¶
func (e ListCurrentMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListCurrentMenuRequestValidationError) Field ¶
func (e ListCurrentMenuRequestValidationError) Field() string
Field function returns field value.
func (ListCurrentMenuRequestValidationError) Key ¶
func (e ListCurrentMenuRequestValidationError) Key() bool
Key function returns key value.
func (ListCurrentMenuRequestValidationError) Reason ¶
func (e ListCurrentMenuRequestValidationError) Reason() string
Reason function returns reason value.
type ListMenuReply ¶
type ListMenuReply struct {
List []*ListMenuReply_Data `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*ListMenuReply) Descriptor
deprecated
func (*ListMenuReply) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuReply.ProtoReflect.Descriptor instead.
func (*ListMenuReply) GetList ¶
func (x *ListMenuReply) GetList() []*ListMenuReply_Data
func (*ListMenuReply) ProtoMessage ¶
func (*ListMenuReply) ProtoMessage()
func (*ListMenuReply) ProtoReflect ¶
func (x *ListMenuReply) ProtoReflect() protoreflect.Message
func (*ListMenuReply) Reset ¶
func (x *ListMenuReply) Reset()
func (*ListMenuReply) String ¶
func (x *ListMenuReply) String() string
func (*ListMenuReply) Validate ¶
func (m *ListMenuReply) Validate() error
Validate checks the field values on ListMenuReply 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 (*ListMenuReply) ValidateAll ¶
func (m *ListMenuReply) ValidateAll() error
ValidateAll checks the field values on ListMenuReply 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 ListMenuReplyMultiError, or nil if none found.
type ListMenuReplyMultiError ¶
type ListMenuReplyMultiError []error
ListMenuReplyMultiError is an error wrapping multiple validation errors returned by ListMenuReply.ValidateAll() if the designated constraints aren't met.
func (ListMenuReplyMultiError) AllErrors ¶
func (m ListMenuReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuReplyMultiError) Error ¶
func (m ListMenuReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuReplyValidationError ¶
type ListMenuReplyValidationError struct {
// contains filtered or unexported fields
}
ListMenuReplyValidationError is the validation error returned by ListMenuReply.Validate if the designated constraints aren't met.
func (ListMenuReplyValidationError) Cause ¶
func (e ListMenuReplyValidationError) Cause() error
Cause function returns cause value.
func (ListMenuReplyValidationError) Error ¶
func (e ListMenuReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuReplyValidationError) ErrorName ¶
func (e ListMenuReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuReplyValidationError) Field ¶
func (e ListMenuReplyValidationError) Field() string
Field function returns field value.
func (ListMenuReplyValidationError) Key ¶
func (e ListMenuReplyValidationError) Key() bool
Key function returns key value.
func (ListMenuReplyValidationError) Reason ¶
func (e ListMenuReplyValidationError) Reason() string
Reason function returns reason value.
type ListMenuReply_Data ¶
type ListMenuReply_Data struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
ParentId uint32 `protobuf:"varint,3,opt,name=parentId,proto3" json:"parentId,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"`
Keyword *string `protobuf:"bytes,6,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
Icon *string `protobuf:"bytes,7,opt,name=icon,proto3,oneof" json:"icon,omitempty"`
Api *string `protobuf:"bytes,8,opt,name=api,proto3,oneof" json:"api,omitempty"`
Method *string `protobuf:"bytes,9,opt,name=method,proto3,oneof" json:"method,omitempty"`
Path *string `protobuf:"bytes,10,opt,name=path,proto3,oneof" json:"path,omitempty"`
Permission *string `protobuf:"bytes,11,opt,name=permission,proto3,oneof" json:"permission,omitempty"`
Component *string `protobuf:"bytes,12,opt,name=component,proto3,oneof" json:"component,omitempty"`
Url *string `protobuf:"bytes,13,opt,name=url,proto3,oneof" json:"url,omitempty"`
Redirect *string `protobuf:"bytes,23,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"`
Weight *int32 `protobuf:"varint,14,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
IsIframe *bool `protobuf:"varint,15,opt,name=isIframe,proto3,oneof" json:"isIframe,omitempty"`
IsHidden *bool `protobuf:"varint,16,opt,name=isHidden,proto3,oneof" json:"isHidden,omitempty"`
IsCache *bool `protobuf:"varint,17,opt,name=isCache,proto3,oneof" json:"isCache,omitempty"`
IsHome *bool `protobuf:"varint,18,opt,name=isHome,proto3,oneof" json:"isHome,omitempty"`
IsAffix *bool `protobuf:"varint,19,opt,name=isAffix,proto3,oneof" json:"isAffix,omitempty"`
CreatedAt uint32 `protobuf:"varint,20,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
UpdatedAt uint32 `protobuf:"varint,21,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
Children []*ListMenuReply_Data `protobuf:"bytes,22,rep,name=children,proto3" json:"children,omitempty"`
// contains filtered or unexported fields
}
func (*ListMenuReply_Data) Descriptor
deprecated
func (*ListMenuReply_Data) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuReply_Data.ProtoReflect.Descriptor instead.
func (*ListMenuReply_Data) GetApi ¶
func (x *ListMenuReply_Data) GetApi() string
func (*ListMenuReply_Data) GetApp ¶
func (x *ListMenuReply_Data) GetApp() string
func (*ListMenuReply_Data) GetChildren ¶
func (x *ListMenuReply_Data) GetChildren() []*ListMenuReply_Data
func (*ListMenuReply_Data) GetComponent ¶
func (x *ListMenuReply_Data) GetComponent() string
func (*ListMenuReply_Data) GetCreatedAt ¶
func (x *ListMenuReply_Data) GetCreatedAt() uint32
func (*ListMenuReply_Data) GetIcon ¶
func (x *ListMenuReply_Data) GetIcon() string
func (*ListMenuReply_Data) GetId ¶
func (x *ListMenuReply_Data) GetId() uint32
func (*ListMenuReply_Data) GetIsAffix ¶
func (x *ListMenuReply_Data) GetIsAffix() bool
func (*ListMenuReply_Data) GetIsCache ¶
func (x *ListMenuReply_Data) GetIsCache() bool
func (*ListMenuReply_Data) GetIsHidden ¶
func (x *ListMenuReply_Data) GetIsHidden() bool
func (*ListMenuReply_Data) GetIsHome ¶
func (x *ListMenuReply_Data) GetIsHome() bool
func (*ListMenuReply_Data) GetIsIframe ¶
func (x *ListMenuReply_Data) GetIsIframe() bool
func (*ListMenuReply_Data) GetKeyword ¶
func (x *ListMenuReply_Data) GetKeyword() string
func (*ListMenuReply_Data) GetMethod ¶
func (x *ListMenuReply_Data) GetMethod() string
func (*ListMenuReply_Data) GetParentId ¶
func (x *ListMenuReply_Data) GetParentId() uint32
func (*ListMenuReply_Data) GetPath ¶
func (x *ListMenuReply_Data) GetPath() string
func (*ListMenuReply_Data) GetPermission ¶
func (x *ListMenuReply_Data) GetPermission() string
func (*ListMenuReply_Data) GetRedirect ¶
func (x *ListMenuReply_Data) GetRedirect() string
func (*ListMenuReply_Data) GetTitle ¶
func (x *ListMenuReply_Data) GetTitle() string
func (*ListMenuReply_Data) GetType ¶
func (x *ListMenuReply_Data) GetType() string
func (*ListMenuReply_Data) GetUpdatedAt ¶
func (x *ListMenuReply_Data) GetUpdatedAt() uint32
func (*ListMenuReply_Data) GetUrl ¶
func (x *ListMenuReply_Data) GetUrl() string
func (*ListMenuReply_Data) GetWeight ¶
func (x *ListMenuReply_Data) GetWeight() int32
func (*ListMenuReply_Data) ProtoMessage ¶
func (*ListMenuReply_Data) ProtoMessage()
func (*ListMenuReply_Data) ProtoReflect ¶
func (x *ListMenuReply_Data) ProtoReflect() protoreflect.Message
func (*ListMenuReply_Data) Reset ¶
func (x *ListMenuReply_Data) Reset()
func (*ListMenuReply_Data) String ¶
func (x *ListMenuReply_Data) String() string
func (*ListMenuReply_Data) Validate ¶
func (m *ListMenuReply_Data) Validate() error
Validate checks the field values on ListMenuReply_Data 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 (*ListMenuReply_Data) ValidateAll ¶
func (m *ListMenuReply_Data) ValidateAll() error
ValidateAll checks the field values on ListMenuReply_Data 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 ListMenuReply_DataMultiError, or nil if none found.
type ListMenuReply_DataMultiError ¶
type ListMenuReply_DataMultiError []error
ListMenuReply_DataMultiError is an error wrapping multiple validation errors returned by ListMenuReply_Data.ValidateAll() if the designated constraints aren't met.
func (ListMenuReply_DataMultiError) AllErrors ¶
func (m ListMenuReply_DataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuReply_DataMultiError) Error ¶
func (m ListMenuReply_DataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuReply_DataValidationError ¶
type ListMenuReply_DataValidationError struct {
// contains filtered or unexported fields
}
ListMenuReply_DataValidationError is the validation error returned by ListMenuReply_Data.Validate if the designated constraints aren't met.
func (ListMenuReply_DataValidationError) Cause ¶
func (e ListMenuReply_DataValidationError) Cause() error
Cause function returns cause value.
func (ListMenuReply_DataValidationError) Error ¶
func (e ListMenuReply_DataValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuReply_DataValidationError) ErrorName ¶
func (e ListMenuReply_DataValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuReply_DataValidationError) Field ¶
func (e ListMenuReply_DataValidationError) Field() string
Field function returns field value.
func (ListMenuReply_DataValidationError) Key ¶
func (e ListMenuReply_DataValidationError) Key() bool
Key function returns key value.
func (ListMenuReply_DataValidationError) Reason ¶
func (e ListMenuReply_DataValidationError) Reason() string
Reason function returns reason value.
type ListMenuRequest ¶
type ListMenuRequest struct {
App string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
// contains filtered or unexported fields
}
func (*ListMenuRequest) Descriptor
deprecated
func (*ListMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuRequest.ProtoReflect.Descriptor instead.
func (*ListMenuRequest) GetApp ¶
func (x *ListMenuRequest) GetApp() string
func (*ListMenuRequest) ProtoMessage ¶
func (*ListMenuRequest) ProtoMessage()
func (*ListMenuRequest) ProtoReflect ¶
func (x *ListMenuRequest) ProtoReflect() protoreflect.Message
func (*ListMenuRequest) Reset ¶
func (x *ListMenuRequest) Reset()
func (*ListMenuRequest) String ¶
func (x *ListMenuRequest) String() string
func (*ListMenuRequest) Validate ¶
func (m *ListMenuRequest) Validate() error
Validate checks the field values on ListMenuRequest 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 (*ListMenuRequest) ValidateAll ¶
func (m *ListMenuRequest) ValidateAll() error
ValidateAll checks the field values on ListMenuRequest 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 ListMenuRequestMultiError, or nil if none found.
type ListMenuRequestMultiError ¶
type ListMenuRequestMultiError []error
ListMenuRequestMultiError is an error wrapping multiple validation errors returned by ListMenuRequest.ValidateAll() if the designated constraints aren't met.
func (ListMenuRequestMultiError) AllErrors ¶
func (m ListMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuRequestMultiError) Error ¶
func (m ListMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuRequestValidationError ¶
type ListMenuRequestValidationError struct {
// contains filtered or unexported fields
}
ListMenuRequestValidationError is the validation error returned by ListMenuRequest.Validate if the designated constraints aren't met.
func (ListMenuRequestValidationError) Cause ¶
func (e ListMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (ListMenuRequestValidationError) Error ¶
func (e ListMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuRequestValidationError) ErrorName ¶
func (e ListMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuRequestValidationError) Field ¶
func (e ListMenuRequestValidationError) Field() string
Field function returns field value.
func (ListMenuRequestValidationError) Key ¶
func (e ListMenuRequestValidationError) Key() bool
Key function returns key value.
func (ListMenuRequestValidationError) Reason ¶
func (e ListMenuRequestValidationError) Reason() string
Reason function returns reason value.
type MenuClient ¶
type MenuClient interface {
// ListMenu 获取菜单信息列表
ListCurrentMenu(ctx context.Context, in *ListCurrentMenuRequest, opts ...grpc.CallOption) (*ListMenuReply, error)
// ListMenu 获取菜单信息列表
ListMenu(ctx context.Context, in *ListMenuRequest, opts ...grpc.CallOption) (*ListMenuReply, error)
// CreateMenu 创建菜单信息
CreateMenu(ctx context.Context, in *CreateMenuRequest, opts ...grpc.CallOption) (*CreateMenuReply, error)
// UpdateMenu 更新菜单信息
UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...grpc.CallOption) (*UpdateMenuReply, error)
// DeleteMenu 删除菜单信息
DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...grpc.CallOption) (*DeleteMenuReply, error)
// RegisterMenu 注册应用菜单(供各服务启动时自注册菜单/接口权限)
RegisterMenu(ctx context.Context, in *RegisterMenuRequest, opts ...grpc.CallOption) (*RegisterMenuReply, error)
}
MenuClient is the client API for Menu 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 NewMenuClient ¶
func NewMenuClient(cc grpc.ClientConnInterface) MenuClient
type MenuHTTPClient ¶
type MenuHTTPClient interface {
CreateMenu(ctx context.Context, req *CreateMenuRequest, opts ...http.CallOption) (rsp *CreateMenuReply, err error)
DeleteMenu(ctx context.Context, req *DeleteMenuRequest, opts ...http.CallOption) (rsp *DeleteMenuReply, err error)
ListCurrentMenu(ctx context.Context, req *ListCurrentMenuRequest, opts ...http.CallOption) (rsp *ListMenuReply, err error)
ListMenu(ctx context.Context, req *ListMenuRequest, opts ...http.CallOption) (rsp *ListMenuReply, err error)
RegisterMenu(ctx context.Context, req *RegisterMenuRequest, opts ...http.CallOption) (rsp *RegisterMenuReply, err error)
UpdateMenu(ctx context.Context, req *UpdateMenuRequest, opts ...http.CallOption) (rsp *UpdateMenuReply, err error)
}
func NewMenuHTTPClient ¶
func NewMenuHTTPClient(client *http.Client) MenuHTTPClient
type MenuHTTPClientImpl ¶
type MenuHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*MenuHTTPClientImpl) CreateMenu ¶
func (c *MenuHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuRequest, opts ...http.CallOption) (*CreateMenuReply, error)
func (*MenuHTTPClientImpl) DeleteMenu ¶
func (c *MenuHTTPClientImpl) DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...http.CallOption) (*DeleteMenuReply, error)
func (*MenuHTTPClientImpl) ListCurrentMenu ¶
func (c *MenuHTTPClientImpl) ListCurrentMenu(ctx context.Context, in *ListCurrentMenuRequest, opts ...http.CallOption) (*ListMenuReply, error)
func (*MenuHTTPClientImpl) ListMenu ¶
func (c *MenuHTTPClientImpl) ListMenu(ctx context.Context, in *ListMenuRequest, opts ...http.CallOption) (*ListMenuReply, error)
func (*MenuHTTPClientImpl) RegisterMenu ¶
func (c *MenuHTTPClientImpl) RegisterMenu(ctx context.Context, in *RegisterMenuRequest, opts ...http.CallOption) (*RegisterMenuReply, error)
func (*MenuHTTPClientImpl) UpdateMenu ¶
func (c *MenuHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...http.CallOption) (*UpdateMenuReply, error)
type MenuHTTPServer ¶
type MenuHTTPServer interface {
// CreateMenu CreateMenu 创建菜单信息
CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuReply, error)
// DeleteMenu DeleteMenu 删除菜单信息
DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error)
// ListCurrentMenu ListMenu 获取菜单信息列表
ListCurrentMenu(context.Context, *ListCurrentMenuRequest) (*ListMenuReply, error)
// ListMenu ListMenu 获取菜单信息列表
ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error)
// RegisterMenu RegisterMenu 注册应用菜单(供各服务启动时自注册菜单/接口权限)
RegisterMenu(context.Context, *RegisterMenuRequest) (*RegisterMenuReply, error)
// UpdateMenu UpdateMenu 更新菜单信息
UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuReply, error)
}
type MenuServer ¶
type MenuServer interface {
// ListMenu 获取菜单信息列表
ListCurrentMenu(context.Context, *ListCurrentMenuRequest) (*ListMenuReply, error)
// ListMenu 获取菜单信息列表
ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error)
// CreateMenu 创建菜单信息
CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuReply, error)
// UpdateMenu 更新菜单信息
UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuReply, error)
// DeleteMenu 删除菜单信息
DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error)
// RegisterMenu 注册应用菜单(供各服务启动时自注册菜单/接口权限)
RegisterMenu(context.Context, *RegisterMenuRequest) (*RegisterMenuReply, error)
// contains filtered or unexported methods
}
MenuServer is the server API for Menu service. All implementations must embed UnimplementedMenuServer for forward compatibility.
type RegisterMenuNode ¶
type RegisterMenuNode struct {
Key *string `protobuf:"bytes,1,opt,name=key,proto3,oneof" json:"key,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
Icon *string `protobuf:"bytes,4,opt,name=icon,proto3,oneof" json:"icon,omitempty"`
Api *string `protobuf:"bytes,5,opt,name=api,proto3,oneof" json:"api,omitempty"`
Method *string `protobuf:"bytes,6,opt,name=method,proto3,oneof" json:"method,omitempty"`
Path *string `protobuf:"bytes,7,opt,name=path,proto3,oneof" json:"path,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"`
Url *string `protobuf:"bytes,10,opt,name=url,proto3,oneof" json:"url,omitempty"`
Redirect *string `protobuf:"bytes,11,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"`
Weight *int32 `protobuf:"varint,12,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
IsIframe *bool `protobuf:"varint,13,opt,name=isIframe,proto3,oneof" json:"isIframe,omitempty"`
IsHidden *bool `protobuf:"varint,14,opt,name=isHidden,proto3,oneof" json:"isHidden,omitempty"`
IsCache *bool `protobuf:"varint,15,opt,name=isCache,proto3,oneof" json:"isCache,omitempty"`
IsHome *bool `protobuf:"varint,16,opt,name=isHome,proto3,oneof" json:"isHome,omitempty"`
IsAffix *bool `protobuf:"varint,17,opt,name=isAffix,proto3,oneof" json:"isAffix,omitempty"`
Children []*RegisterMenuNode `protobuf:"bytes,18,rep,name=children,proto3" json:"children,omitempty"`
// contains filtered or unexported fields
}
自注册菜单由服务方(如 resource)在启动时调用 RegisterMenu 注册到 manager, 消息与 RPC 必须与 internal/domain/service/menu.go 的 RegisterMenu 契约保持一致。
func (*RegisterMenuNode) Descriptor
deprecated
func (*RegisterMenuNode) Descriptor() ([]byte, []int)
Deprecated: Use RegisterMenuNode.ProtoReflect.Descriptor instead.
func (*RegisterMenuNode) GetApi ¶
func (x *RegisterMenuNode) GetApi() string
func (*RegisterMenuNode) GetChildren ¶
func (x *RegisterMenuNode) GetChildren() []*RegisterMenuNode
func (*RegisterMenuNode) GetComponent ¶
func (x *RegisterMenuNode) GetComponent() string
func (*RegisterMenuNode) GetIcon ¶
func (x *RegisterMenuNode) GetIcon() string
func (*RegisterMenuNode) GetIsAffix ¶
func (x *RegisterMenuNode) GetIsAffix() bool
func (*RegisterMenuNode) GetIsCache ¶
func (x *RegisterMenuNode) GetIsCache() bool
func (*RegisterMenuNode) GetIsHidden ¶
func (x *RegisterMenuNode) GetIsHidden() bool
func (*RegisterMenuNode) GetIsHome ¶
func (x *RegisterMenuNode) GetIsHome() bool
func (*RegisterMenuNode) GetIsIframe ¶
func (x *RegisterMenuNode) GetIsIframe() bool
func (*RegisterMenuNode) GetKey ¶
func (x *RegisterMenuNode) GetKey() string
func (*RegisterMenuNode) GetMethod ¶
func (x *RegisterMenuNode) GetMethod() string
func (*RegisterMenuNode) GetPath ¶
func (x *RegisterMenuNode) GetPath() string
func (*RegisterMenuNode) GetPermission ¶
func (x *RegisterMenuNode) GetPermission() string
func (*RegisterMenuNode) GetRedirect ¶
func (x *RegisterMenuNode) GetRedirect() string
func (*RegisterMenuNode) GetTitle ¶
func (x *RegisterMenuNode) GetTitle() string
func (*RegisterMenuNode) GetType ¶
func (x *RegisterMenuNode) GetType() string
func (*RegisterMenuNode) GetUrl ¶
func (x *RegisterMenuNode) GetUrl() string
func (*RegisterMenuNode) GetWeight ¶
func (x *RegisterMenuNode) GetWeight() int32
func (*RegisterMenuNode) ProtoMessage ¶
func (*RegisterMenuNode) ProtoMessage()
func (*RegisterMenuNode) ProtoReflect ¶
func (x *RegisterMenuNode) ProtoReflect() protoreflect.Message
func (*RegisterMenuNode) Reset ¶
func (x *RegisterMenuNode) Reset()
func (*RegisterMenuNode) String ¶
func (x *RegisterMenuNode) String() string
func (*RegisterMenuNode) Validate ¶
func (m *RegisterMenuNode) Validate() error
Validate checks the field values on RegisterMenuNode 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 (*RegisterMenuNode) ValidateAll ¶
func (m *RegisterMenuNode) ValidateAll() error
ValidateAll checks the field values on RegisterMenuNode 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 RegisterMenuNodeMultiError, or nil if none found.
type RegisterMenuNodeMultiError ¶
type RegisterMenuNodeMultiError []error
RegisterMenuNodeMultiError is an error wrapping multiple validation errors returned by RegisterMenuNode.ValidateAll() if the designated constraints aren't met.
func (RegisterMenuNodeMultiError) AllErrors ¶
func (m RegisterMenuNodeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterMenuNodeMultiError) Error ¶
func (m RegisterMenuNodeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterMenuNodeValidationError ¶
type RegisterMenuNodeValidationError struct {
// contains filtered or unexported fields
}
RegisterMenuNodeValidationError is the validation error returned by RegisterMenuNode.Validate if the designated constraints aren't met.
func (RegisterMenuNodeValidationError) Cause ¶
func (e RegisterMenuNodeValidationError) Cause() error
Cause function returns cause value.
func (RegisterMenuNodeValidationError) Error ¶
func (e RegisterMenuNodeValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterMenuNodeValidationError) ErrorName ¶
func (e RegisterMenuNodeValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterMenuNodeValidationError) Field ¶
func (e RegisterMenuNodeValidationError) Field() string
Field function returns field value.
func (RegisterMenuNodeValidationError) Key ¶
func (e RegisterMenuNodeValidationError) Key() bool
Key function returns key value.
func (RegisterMenuNodeValidationError) Reason ¶
func (e RegisterMenuNodeValidationError) Reason() string
Reason function returns reason value.
type RegisterMenuReply ¶
type RegisterMenuReply struct {
Created uint32 `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"`
Updated uint32 `protobuf:"varint,2,opt,name=updated,proto3" json:"updated,omitempty"`
Deleted uint32 `protobuf:"varint,3,opt,name=deleted,proto3" json:"deleted,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterMenuReply) Descriptor
deprecated
func (*RegisterMenuReply) Descriptor() ([]byte, []int)
Deprecated: Use RegisterMenuReply.ProtoReflect.Descriptor instead.
func (*RegisterMenuReply) GetCreated ¶
func (x *RegisterMenuReply) GetCreated() uint32
func (*RegisterMenuReply) GetDeleted ¶
func (x *RegisterMenuReply) GetDeleted() uint32
func (*RegisterMenuReply) GetUpdated ¶
func (x *RegisterMenuReply) GetUpdated() uint32
func (*RegisterMenuReply) ProtoMessage ¶
func (*RegisterMenuReply) ProtoMessage()
func (*RegisterMenuReply) ProtoReflect ¶
func (x *RegisterMenuReply) ProtoReflect() protoreflect.Message
func (*RegisterMenuReply) Reset ¶
func (x *RegisterMenuReply) Reset()
func (*RegisterMenuReply) String ¶
func (x *RegisterMenuReply) String() string
func (*RegisterMenuReply) Validate ¶
func (m *RegisterMenuReply) Validate() error
Validate checks the field values on RegisterMenuReply 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 (*RegisterMenuReply) ValidateAll ¶
func (m *RegisterMenuReply) ValidateAll() error
ValidateAll checks the field values on RegisterMenuReply 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 RegisterMenuReplyMultiError, or nil if none found.
type RegisterMenuReplyMultiError ¶
type RegisterMenuReplyMultiError []error
RegisterMenuReplyMultiError is an error wrapping multiple validation errors returned by RegisterMenuReply.ValidateAll() if the designated constraints aren't met.
func (RegisterMenuReplyMultiError) AllErrors ¶
func (m RegisterMenuReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterMenuReplyMultiError) Error ¶
func (m RegisterMenuReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterMenuReplyValidationError ¶
type RegisterMenuReplyValidationError struct {
// contains filtered or unexported fields
}
RegisterMenuReplyValidationError is the validation error returned by RegisterMenuReply.Validate if the designated constraints aren't met.
func (RegisterMenuReplyValidationError) Cause ¶
func (e RegisterMenuReplyValidationError) Cause() error
Cause function returns cause value.
func (RegisterMenuReplyValidationError) Error ¶
func (e RegisterMenuReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterMenuReplyValidationError) ErrorName ¶
func (e RegisterMenuReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterMenuReplyValidationError) Field ¶
func (e RegisterMenuReplyValidationError) Field() string
Field function returns field value.
func (RegisterMenuReplyValidationError) Key ¶
func (e RegisterMenuReplyValidationError) Key() bool
Key function returns key value.
func (RegisterMenuReplyValidationError) Reason ¶
func (e RegisterMenuReplyValidationError) Reason() string
Reason function returns reason value.
type RegisterMenuRequest ¶
type RegisterMenuRequest struct {
AppKeyword string `protobuf:"bytes,1,opt,name=appKeyword,proto3" json:"appKeyword,omitempty"`
Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"`
Menus []*RegisterMenuNode `protobuf:"bytes,3,rep,name=menus,proto3" json:"menus,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterMenuRequest) Descriptor
deprecated
func (*RegisterMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterMenuRequest.ProtoReflect.Descriptor instead.
func (*RegisterMenuRequest) GetAppKeyword ¶
func (x *RegisterMenuRequest) GetAppKeyword() string
func (*RegisterMenuRequest) GetMenus ¶
func (x *RegisterMenuRequest) GetMenus() []*RegisterMenuNode
func (*RegisterMenuRequest) GetMode ¶
func (x *RegisterMenuRequest) GetMode() string
func (*RegisterMenuRequest) ProtoMessage ¶
func (*RegisterMenuRequest) ProtoMessage()
func (*RegisterMenuRequest) ProtoReflect ¶
func (x *RegisterMenuRequest) ProtoReflect() protoreflect.Message
func (*RegisterMenuRequest) Reset ¶
func (x *RegisterMenuRequest) Reset()
func (*RegisterMenuRequest) String ¶
func (x *RegisterMenuRequest) String() string
func (*RegisterMenuRequest) Validate ¶
func (m *RegisterMenuRequest) Validate() error
Validate checks the field values on RegisterMenuRequest 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 (*RegisterMenuRequest) ValidateAll ¶
func (m *RegisterMenuRequest) ValidateAll() error
ValidateAll checks the field values on RegisterMenuRequest 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 RegisterMenuRequestMultiError, or nil if none found.
type RegisterMenuRequestMultiError ¶
type RegisterMenuRequestMultiError []error
RegisterMenuRequestMultiError is an error wrapping multiple validation errors returned by RegisterMenuRequest.ValidateAll() if the designated constraints aren't met.
func (RegisterMenuRequestMultiError) AllErrors ¶
func (m RegisterMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterMenuRequestMultiError) Error ¶
func (m RegisterMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterMenuRequestValidationError ¶
type RegisterMenuRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterMenuRequestValidationError is the validation error returned by RegisterMenuRequest.Validate if the designated constraints aren't met.
func (RegisterMenuRequestValidationError) Cause ¶
func (e RegisterMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterMenuRequestValidationError) Error ¶
func (e RegisterMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterMenuRequestValidationError) ErrorName ¶
func (e RegisterMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterMenuRequestValidationError) Field ¶
func (e RegisterMenuRequestValidationError) Field() string
Field function returns field value.
func (RegisterMenuRequestValidationError) Key ¶
func (e RegisterMenuRequestValidationError) Key() bool
Key function returns key value.
func (RegisterMenuRequestValidationError) Reason ¶
func (e RegisterMenuRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMenuServer ¶
type UnimplementedMenuServer struct{}
UnimplementedMenuServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMenuServer) CreateMenu ¶
func (UnimplementedMenuServer) CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuReply, error)
func (UnimplementedMenuServer) DeleteMenu ¶
func (UnimplementedMenuServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error)
func (UnimplementedMenuServer) ListCurrentMenu ¶
func (UnimplementedMenuServer) ListCurrentMenu(context.Context, *ListCurrentMenuRequest) (*ListMenuReply, error)
func (UnimplementedMenuServer) ListMenu ¶
func (UnimplementedMenuServer) ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error)
func (UnimplementedMenuServer) RegisterMenu ¶
func (UnimplementedMenuServer) RegisterMenu(context.Context, *RegisterMenuRequest) (*RegisterMenuReply, error)
func (UnimplementedMenuServer) UpdateMenu ¶
func (UnimplementedMenuServer) UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuReply, error)
type UnsafeMenuServer ¶
type UnsafeMenuServer interface {
// contains filtered or unexported methods
}
UnsafeMenuServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MenuServer will result in compilation errors.
type UpdateMenuReply ¶
type UpdateMenuReply struct {
// contains filtered or unexported fields
}
func (*UpdateMenuReply) Descriptor
deprecated
func (*UpdateMenuReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMenuReply.ProtoReflect.Descriptor instead.
func (*UpdateMenuReply) ProtoMessage ¶
func (*UpdateMenuReply) ProtoMessage()
func (*UpdateMenuReply) ProtoReflect ¶
func (x *UpdateMenuReply) ProtoReflect() protoreflect.Message
func (*UpdateMenuReply) Reset ¶
func (x *UpdateMenuReply) Reset()
func (*UpdateMenuReply) String ¶
func (x *UpdateMenuReply) String() string
func (*UpdateMenuReply) Validate ¶
func (m *UpdateMenuReply) Validate() error
Validate checks the field values on UpdateMenuReply 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 (*UpdateMenuReply) ValidateAll ¶
func (m *UpdateMenuReply) ValidateAll() error
ValidateAll checks the field values on UpdateMenuReply 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 UpdateMenuReplyMultiError, or nil if none found.
type UpdateMenuReplyMultiError ¶
type UpdateMenuReplyMultiError []error
UpdateMenuReplyMultiError is an error wrapping multiple validation errors returned by UpdateMenuReply.ValidateAll() if the designated constraints aren't met.
func (UpdateMenuReplyMultiError) AllErrors ¶
func (m UpdateMenuReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateMenuReplyMultiError) Error ¶
func (m UpdateMenuReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateMenuReplyValidationError ¶
type UpdateMenuReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateMenuReplyValidationError is the validation error returned by UpdateMenuReply.Validate if the designated constraints aren't met.
func (UpdateMenuReplyValidationError) Cause ¶
func (e UpdateMenuReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateMenuReplyValidationError) Error ¶
func (e UpdateMenuReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateMenuReplyValidationError) ErrorName ¶
func (e UpdateMenuReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateMenuReplyValidationError) Field ¶
func (e UpdateMenuReplyValidationError) Field() string
Field function returns field value.
func (UpdateMenuReplyValidationError) Key ¶
func (e UpdateMenuReplyValidationError) Key() bool
Key function returns key value.
func (UpdateMenuReplyValidationError) Reason ¶
func (e UpdateMenuReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateMenuRequest ¶
type UpdateMenuRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
ParentId *uint32 `protobuf:"varint,2,opt,name=parentId,proto3,oneof" json:"parentId,omitempty"`
Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"`
Type *string `protobuf:"bytes,4,opt,name=type,proto3,oneof" json:"type,omitempty"`
Keyword *string `protobuf:"bytes,5,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
Icon *string `protobuf:"bytes,6,opt,name=icon,proto3,oneof" json:"icon,omitempty"`
Api *string `protobuf:"bytes,7,opt,name=api,proto3,oneof" json:"api,omitempty"`
Method *string `protobuf:"bytes,8,opt,name=method,proto3,oneof" json:"method,omitempty"`
Path *string `protobuf:"bytes,9,opt,name=path,proto3,oneof" json:"path,omitempty"`
Permission *string `protobuf:"bytes,10,opt,name=permission,proto3,oneof" json:"permission,omitempty"`
Component *string `protobuf:"bytes,11,opt,name=component,proto3,oneof" json:"component,omitempty"`
Url *string `protobuf:"bytes,12,opt,name=url,proto3,oneof" json:"url,omitempty"`
Weight *int32 `protobuf:"varint,13,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
IsHidden *bool `protobuf:"varint,14,opt,name=isHidden,proto3,oneof" json:"isHidden,omitempty"`
IsIframe *bool `protobuf:"varint,15,opt,name=isIframe,proto3,oneof" json:"isIframe,omitempty"`
IsCache *bool `protobuf:"varint,16,opt,name=isCache,proto3,oneof" json:"isCache,omitempty"`
IsHome *bool `protobuf:"varint,17,opt,name=isHome,proto3,oneof" json:"isHome,omitempty"`
IsAffix *bool `protobuf:"varint,18,opt,name=isAffix,proto3,oneof" json:"isAffix,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) 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) GetIsIframe ¶
func (x *UpdateMenuRequest) GetIsIframe() 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) GetTitle ¶
func (x *UpdateMenuRequest) GetTitle() string
func (*UpdateMenuRequest) GetType ¶
func (x *UpdateMenuRequest) GetType() string
func (*UpdateMenuRequest) GetUrl ¶
func (x *UpdateMenuRequest) GetUrl() 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.