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) 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) 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) GetRedirect() string
- func (x *CreateMenuRequest) GetTitle() string
- func (x *CreateMenuRequest) GetType() 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 (x *DeleteMenuReply) GetTotal() uint32
- 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) GetIds() []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 ListMenuByCurRoleReply
- func (*ListMenuByCurRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuByCurRoleReply) GetList() []*ListMenuByCurRoleReply_Menu
- func (x *ListMenuByCurRoleReply) GetTotal() uint32
- func (*ListMenuByCurRoleReply) ProtoMessage()
- func (x *ListMenuByCurRoleReply) ProtoReflect() protoreflect.Message
- func (x *ListMenuByCurRoleReply) Reset()
- func (x *ListMenuByCurRoleReply) String() string
- func (m *ListMenuByCurRoleReply) Validate() error
- func (m *ListMenuByCurRoleReply) ValidateAll() error
- type ListMenuByCurRoleReplyMultiError
- type ListMenuByCurRoleReplyValidationError
- func (e ListMenuByCurRoleReplyValidationError) Cause() error
- func (e ListMenuByCurRoleReplyValidationError) Error() string
- func (e ListMenuByCurRoleReplyValidationError) ErrorName() string
- func (e ListMenuByCurRoleReplyValidationError) Field() string
- func (e ListMenuByCurRoleReplyValidationError) Key() bool
- func (e ListMenuByCurRoleReplyValidationError) Reason() string
- type ListMenuByCurRoleReply_Menu
- func (*ListMenuByCurRoleReply_Menu) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuByCurRoleReply_Menu) GetApi() string
- func (x *ListMenuByCurRoleReply_Menu) GetChildren() []*ListMenuByCurRoleReply_Menu
- func (x *ListMenuByCurRoleReply_Menu) GetComponent() string
- func (x *ListMenuByCurRoleReply_Menu) GetCreatedAt() uint32
- func (x *ListMenuByCurRoleReply_Menu) GetIcon() string
- func (x *ListMenuByCurRoleReply_Menu) GetId() uint32
- func (x *ListMenuByCurRoleReply_Menu) GetIsAffix() bool
- func (x *ListMenuByCurRoleReply_Menu) GetIsCache() bool
- func (x *ListMenuByCurRoleReply_Menu) GetIsHidden() bool
- func (x *ListMenuByCurRoleReply_Menu) GetIsHome() bool
- func (x *ListMenuByCurRoleReply_Menu) GetKeyword() string
- func (x *ListMenuByCurRoleReply_Menu) GetMethod() string
- func (x *ListMenuByCurRoleReply_Menu) GetParentId() uint32
- func (x *ListMenuByCurRoleReply_Menu) GetPath() string
- func (x *ListMenuByCurRoleReply_Menu) GetPermission() string
- func (x *ListMenuByCurRoleReply_Menu) GetRedirect() string
- func (x *ListMenuByCurRoleReply_Menu) GetTitle() string
- func (x *ListMenuByCurRoleReply_Menu) GetType() string
- func (x *ListMenuByCurRoleReply_Menu) GetUpdatedAt() uint32
- func (x *ListMenuByCurRoleReply_Menu) GetWeight() int32
- func (*ListMenuByCurRoleReply_Menu) ProtoMessage()
- func (x *ListMenuByCurRoleReply_Menu) ProtoReflect() protoreflect.Message
- func (x *ListMenuByCurRoleReply_Menu) Reset()
- func (x *ListMenuByCurRoleReply_Menu) String() string
- func (m *ListMenuByCurRoleReply_Menu) Validate() error
- func (m *ListMenuByCurRoleReply_Menu) ValidateAll() error
- type ListMenuByCurRoleReply_MenuMultiError
- type ListMenuByCurRoleReply_MenuValidationError
- func (e ListMenuByCurRoleReply_MenuValidationError) Cause() error
- func (e ListMenuByCurRoleReply_MenuValidationError) Error() string
- func (e ListMenuByCurRoleReply_MenuValidationError) ErrorName() string
- func (e ListMenuByCurRoleReply_MenuValidationError) Field() string
- func (e ListMenuByCurRoleReply_MenuValidationError) Key() bool
- func (e ListMenuByCurRoleReply_MenuValidationError) Reason() string
- type ListMenuByCurRoleRequest
- func (*ListMenuByCurRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListMenuByCurRoleRequest) ProtoMessage()
- func (x *ListMenuByCurRoleRequest) ProtoReflect() protoreflect.Message
- func (x *ListMenuByCurRoleRequest) Reset()
- func (x *ListMenuByCurRoleRequest) String() string
- func (m *ListMenuByCurRoleRequest) Validate() error
- func (m *ListMenuByCurRoleRequest) ValidateAll() error
- type ListMenuByCurRoleRequestMultiError
- type ListMenuByCurRoleRequestValidationError
- func (e ListMenuByCurRoleRequestValidationError) Cause() error
- func (e ListMenuByCurRoleRequestValidationError) Error() string
- func (e ListMenuByCurRoleRequestValidationError) ErrorName() string
- func (e ListMenuByCurRoleRequestValidationError) Field() string
- func (e ListMenuByCurRoleRequestValidationError) Key() bool
- func (e ListMenuByCurRoleRequestValidationError) Reason() string
- type ListMenuReply
- func (*ListMenuReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuReply) GetList() []*ListMenuReply_Menu
- func (x *ListMenuReply) GetTotal() uint32
- 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_Menu
- func (*ListMenuReply_Menu) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuReply_Menu) GetApi() string
- func (x *ListMenuReply_Menu) GetChildren() []*ListMenuReply_Menu
- func (x *ListMenuReply_Menu) GetComponent() string
- func (x *ListMenuReply_Menu) GetCreatedAt() uint32
- func (x *ListMenuReply_Menu) GetIcon() string
- func (x *ListMenuReply_Menu) GetId() uint32
- func (x *ListMenuReply_Menu) GetIsAffix() bool
- func (x *ListMenuReply_Menu) GetIsCache() bool
- func (x *ListMenuReply_Menu) GetIsHidden() bool
- func (x *ListMenuReply_Menu) GetIsHome() bool
- func (x *ListMenuReply_Menu) GetKeyword() string
- func (x *ListMenuReply_Menu) GetMethod() string
- func (x *ListMenuReply_Menu) GetParentId() uint32
- func (x *ListMenuReply_Menu) GetPath() string
- func (x *ListMenuReply_Menu) GetPermission() string
- func (x *ListMenuReply_Menu) GetRedirect() string
- func (x *ListMenuReply_Menu) GetTitle() string
- func (x *ListMenuReply_Menu) GetType() string
- func (x *ListMenuReply_Menu) GetUpdatedAt() uint32
- func (x *ListMenuReply_Menu) GetWeight() int32
- func (*ListMenuReply_Menu) ProtoMessage()
- func (x *ListMenuReply_Menu) ProtoReflect() protoreflect.Message
- func (x *ListMenuReply_Menu) Reset()
- func (x *ListMenuReply_Menu) String() string
- func (m *ListMenuReply_Menu) Validate() error
- func (m *ListMenuReply_Menu) ValidateAll() error
- type ListMenuReply_MenuMultiError
- type ListMenuReply_MenuValidationError
- func (e ListMenuReply_MenuValidationError) Cause() error
- func (e ListMenuReply_MenuValidationError) Error() string
- func (e ListMenuReply_MenuValidationError) ErrorName() string
- func (e ListMenuReply_MenuValidationError) Field() string
- func (e ListMenuReply_MenuValidationError) Key() bool
- func (e ListMenuReply_MenuValidationError) Reason() string
- type ListMenuRequest
- func (*ListMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuRequest) GetOrder() string
- func (x *ListMenuRequest) GetOrderBy() string
- func (x *ListMenuRequest) GetTitle() 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) ListMenu(ctx context.Context, in *ListMenuRequest, opts ...http.CallOption) (*ListMenuReply, error)
- func (c *MenuHTTPClientImpl) ListMenuByCurRole(ctx context.Context, in *ListMenuByCurRoleRequest, opts ...http.CallOption) (*ListMenuByCurRoleReply, error)
- func (c *MenuHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...http.CallOption) (*UpdateMenuReply, error)
- type MenuHTTPServer
- type MenuServer
- type UnimplementedMenuServer
- func (UnimplementedMenuServer) CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuReply, error)
- func (UnimplementedMenuServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error)
- func (UnimplementedMenuServer) ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error)
- func (UnimplementedMenuServer) ListMenuByCurRole(context.Context, *ListMenuByCurRoleRequest) (*ListMenuByCurRoleReply, 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) 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 ( Menu_ListMenu_FullMethodName = "/manager.api.manager.menu.v1.Menu/ListMenu" Menu_ListMenuByCurRole_FullMethodName = "/manager.api.manager.menu.v1.Menu/ListMenuByCurRole" Menu_CreateMenu_FullMethodName = "/manager.api.manager.menu.v1.Menu/CreateMenu" Menu_UpdateMenu_FullMethodName = "/manager.api.manager.menu.v1.Menu/UpdateMenu" Menu_DeleteMenu_FullMethodName = "/manager.api.manager.menu.v1.Menu/DeleteMenu" )
const OperationMenuCreateMenu = "/manager.api.manager.menu.v1.Menu/CreateMenu"
const OperationMenuDeleteMenu = "/manager.api.manager.menu.v1.Menu/DeleteMenu"
const OperationMenuListMenu = "/manager.api.manager.menu.v1.Menu/ListMenu"
const OperationMenuListMenuByCurRole = "/manager.api.manager.menu.v1.Menu/ListMenuByCurRole"
const OperationMenuUpdateMenu = "/manager.api.manager.menu.v1.Menu/UpdateMenu"
Variables ¶
var Menu_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.api.manager.menu.v1.Menu", HandlerType: (*MenuServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListMenu", Handler: _Menu_ListMenu_Handler, }, { MethodName: "ListMenuByCurRole", Handler: _Menu_ListMenuByCurRole_Handler, }, { MethodName: "CreateMenu", Handler: _Menu_CreateMenu_Handler, }, { MethodName: "UpdateMenu", Handler: _Menu_UpdateMenu_Handler, }, { MethodName: "DeleteMenu", Handler: _Menu_DeleteMenu_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/manager/menu/manager_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 { ParentId uint32 `protobuf:"varint,1,opt,name=parentId,proto3" json:"parentId,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"` Keyword *string `protobuf:"bytes,4,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` Icon *string `protobuf:"bytes,5,opt,name=icon,proto3,oneof" json:"icon,omitempty"` Api *string `protobuf:"bytes,6,opt,name=api,proto3,oneof" json:"api,omitempty"` Method *string `protobuf:"bytes,7,opt,name=method,proto3,oneof" json:"method,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"` 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"` IsHidden *bool `protobuf:"varint,13,opt,name=isHidden,proto3,oneof" json:"isHidden,omitempty"` IsCache *bool `protobuf:"varint,14,opt,name=isCache,proto3,oneof" json:"isCache,omitempty"` IsHome *bool `protobuf:"varint,15,opt,name=isHome,proto3,oneof" json:"isHome,omitempty"` IsAffix *bool `protobuf:"varint,16,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) 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) 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) GetRedirect ¶
func (x *CreateMenuRequest) GetRedirect() string
func (*CreateMenuRequest) GetTitle ¶
func (x *CreateMenuRequest) GetTitle() string
func (*CreateMenuRequest) GetType ¶
func (x *CreateMenuRequest) GetType() 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 { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*DeleteMenuReply) Descriptor
deprecated
func (*DeleteMenuReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMenuReply.ProtoReflect.Descriptor instead.
func (*DeleteMenuReply) GetTotal ¶
func (x *DeleteMenuReply) GetTotal() uint32
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 { Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteMenuRequest) Descriptor
deprecated
func (*DeleteMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMenuRequest.ProtoReflect.Descriptor instead.
func (*DeleteMenuRequest) GetIds ¶
func (x *DeleteMenuRequest) GetIds() []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 ListMenuByCurRoleReply ¶
type ListMenuByCurRoleReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ListMenuByCurRoleReply_Menu `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListMenuByCurRoleReply) Descriptor
deprecated
func (*ListMenuByCurRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuByCurRoleReply.ProtoReflect.Descriptor instead.
func (*ListMenuByCurRoleReply) GetList ¶
func (x *ListMenuByCurRoleReply) GetList() []*ListMenuByCurRoleReply_Menu
func (*ListMenuByCurRoleReply) GetTotal ¶
func (x *ListMenuByCurRoleReply) GetTotal() uint32
func (*ListMenuByCurRoleReply) ProtoMessage ¶
func (*ListMenuByCurRoleReply) ProtoMessage()
func (*ListMenuByCurRoleReply) ProtoReflect ¶
func (x *ListMenuByCurRoleReply) ProtoReflect() protoreflect.Message
func (*ListMenuByCurRoleReply) Reset ¶
func (x *ListMenuByCurRoleReply) Reset()
func (*ListMenuByCurRoleReply) String ¶
func (x *ListMenuByCurRoleReply) String() string
func (*ListMenuByCurRoleReply) Validate ¶
func (m *ListMenuByCurRoleReply) Validate() error
Validate checks the field values on ListMenuByCurRoleReply 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 (*ListMenuByCurRoleReply) ValidateAll ¶
func (m *ListMenuByCurRoleReply) ValidateAll() error
ValidateAll checks the field values on ListMenuByCurRoleReply 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 ListMenuByCurRoleReplyMultiError, or nil if none found.
type ListMenuByCurRoleReplyMultiError ¶
type ListMenuByCurRoleReplyMultiError []error
ListMenuByCurRoleReplyMultiError is an error wrapping multiple validation errors returned by ListMenuByCurRoleReply.ValidateAll() if the designated constraints aren't met.
func (ListMenuByCurRoleReplyMultiError) AllErrors ¶
func (m ListMenuByCurRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuByCurRoleReplyMultiError) Error ¶
func (m ListMenuByCurRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuByCurRoleReplyValidationError ¶
type ListMenuByCurRoleReplyValidationError struct {
// contains filtered or unexported fields
}
ListMenuByCurRoleReplyValidationError is the validation error returned by ListMenuByCurRoleReply.Validate if the designated constraints aren't met.
func (ListMenuByCurRoleReplyValidationError) Cause ¶
func (e ListMenuByCurRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (ListMenuByCurRoleReplyValidationError) Error ¶
func (e ListMenuByCurRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuByCurRoleReplyValidationError) ErrorName ¶
func (e ListMenuByCurRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuByCurRoleReplyValidationError) Field ¶
func (e ListMenuByCurRoleReplyValidationError) Field() string
Field function returns field value.
func (ListMenuByCurRoleReplyValidationError) Key ¶
func (e ListMenuByCurRoleReplyValidationError) Key() bool
Key function returns key value.
func (ListMenuByCurRoleReplyValidationError) Reason ¶
func (e ListMenuByCurRoleReplyValidationError) Reason() string
Reason function returns reason value.
type ListMenuByCurRoleReply_Menu ¶
type ListMenuByCurRoleReply_Menu struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` 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"` 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=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"` CreatedAt uint32 `protobuf:"varint,18,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,19,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` Children []*ListMenuByCurRoleReply_Menu `protobuf:"bytes,20,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
func (*ListMenuByCurRoleReply_Menu) Descriptor
deprecated
func (*ListMenuByCurRoleReply_Menu) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuByCurRoleReply_Menu.ProtoReflect.Descriptor instead.
func (*ListMenuByCurRoleReply_Menu) GetApi ¶
func (x *ListMenuByCurRoleReply_Menu) GetApi() string
func (*ListMenuByCurRoleReply_Menu) GetChildren ¶
func (x *ListMenuByCurRoleReply_Menu) GetChildren() []*ListMenuByCurRoleReply_Menu
func (*ListMenuByCurRoleReply_Menu) GetComponent ¶
func (x *ListMenuByCurRoleReply_Menu) GetComponent() string
func (*ListMenuByCurRoleReply_Menu) GetCreatedAt ¶
func (x *ListMenuByCurRoleReply_Menu) GetCreatedAt() uint32
func (*ListMenuByCurRoleReply_Menu) GetIcon ¶
func (x *ListMenuByCurRoleReply_Menu) GetIcon() string
func (*ListMenuByCurRoleReply_Menu) GetId ¶
func (x *ListMenuByCurRoleReply_Menu) GetId() uint32
func (*ListMenuByCurRoleReply_Menu) GetIsAffix ¶
func (x *ListMenuByCurRoleReply_Menu) GetIsAffix() bool
func (*ListMenuByCurRoleReply_Menu) GetIsCache ¶
func (x *ListMenuByCurRoleReply_Menu) GetIsCache() bool
func (*ListMenuByCurRoleReply_Menu) GetIsHidden ¶
func (x *ListMenuByCurRoleReply_Menu) GetIsHidden() bool
func (*ListMenuByCurRoleReply_Menu) GetIsHome ¶
func (x *ListMenuByCurRoleReply_Menu) GetIsHome() bool
func (*ListMenuByCurRoleReply_Menu) GetKeyword ¶
func (x *ListMenuByCurRoleReply_Menu) GetKeyword() string
func (*ListMenuByCurRoleReply_Menu) GetMethod ¶
func (x *ListMenuByCurRoleReply_Menu) GetMethod() string
func (*ListMenuByCurRoleReply_Menu) GetParentId ¶
func (x *ListMenuByCurRoleReply_Menu) GetParentId() uint32
func (*ListMenuByCurRoleReply_Menu) GetPath ¶
func (x *ListMenuByCurRoleReply_Menu) GetPath() string
func (*ListMenuByCurRoleReply_Menu) GetPermission ¶
func (x *ListMenuByCurRoleReply_Menu) GetPermission() string
func (*ListMenuByCurRoleReply_Menu) GetRedirect ¶
func (x *ListMenuByCurRoleReply_Menu) GetRedirect() string
func (*ListMenuByCurRoleReply_Menu) GetTitle ¶
func (x *ListMenuByCurRoleReply_Menu) GetTitle() string
func (*ListMenuByCurRoleReply_Menu) GetType ¶
func (x *ListMenuByCurRoleReply_Menu) GetType() string
func (*ListMenuByCurRoleReply_Menu) GetUpdatedAt ¶
func (x *ListMenuByCurRoleReply_Menu) GetUpdatedAt() uint32
func (*ListMenuByCurRoleReply_Menu) GetWeight ¶
func (x *ListMenuByCurRoleReply_Menu) GetWeight() int32
func (*ListMenuByCurRoleReply_Menu) ProtoMessage ¶
func (*ListMenuByCurRoleReply_Menu) ProtoMessage()
func (*ListMenuByCurRoleReply_Menu) ProtoReflect ¶
func (x *ListMenuByCurRoleReply_Menu) ProtoReflect() protoreflect.Message
func (*ListMenuByCurRoleReply_Menu) Reset ¶
func (x *ListMenuByCurRoleReply_Menu) Reset()
func (*ListMenuByCurRoleReply_Menu) String ¶
func (x *ListMenuByCurRoleReply_Menu) String() string
func (*ListMenuByCurRoleReply_Menu) Validate ¶
func (m *ListMenuByCurRoleReply_Menu) Validate() error
Validate checks the field values on ListMenuByCurRoleReply_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 (*ListMenuByCurRoleReply_Menu) ValidateAll ¶
func (m *ListMenuByCurRoleReply_Menu) ValidateAll() error
ValidateAll checks the field values on ListMenuByCurRoleReply_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 ListMenuByCurRoleReply_MenuMultiError, or nil if none found.
type ListMenuByCurRoleReply_MenuMultiError ¶
type ListMenuByCurRoleReply_MenuMultiError []error
ListMenuByCurRoleReply_MenuMultiError is an error wrapping multiple validation errors returned by ListMenuByCurRoleReply_Menu.ValidateAll() if the designated constraints aren't met.
func (ListMenuByCurRoleReply_MenuMultiError) AllErrors ¶
func (m ListMenuByCurRoleReply_MenuMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuByCurRoleReply_MenuMultiError) Error ¶
func (m ListMenuByCurRoleReply_MenuMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuByCurRoleReply_MenuValidationError ¶
type ListMenuByCurRoleReply_MenuValidationError struct {
// contains filtered or unexported fields
}
ListMenuByCurRoleReply_MenuValidationError is the validation error returned by ListMenuByCurRoleReply_Menu.Validate if the designated constraints aren't met.
func (ListMenuByCurRoleReply_MenuValidationError) Cause ¶
func (e ListMenuByCurRoleReply_MenuValidationError) Cause() error
Cause function returns cause value.
func (ListMenuByCurRoleReply_MenuValidationError) Error ¶
func (e ListMenuByCurRoleReply_MenuValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuByCurRoleReply_MenuValidationError) ErrorName ¶
func (e ListMenuByCurRoleReply_MenuValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuByCurRoleReply_MenuValidationError) Field ¶
func (e ListMenuByCurRoleReply_MenuValidationError) Field() string
Field function returns field value.
func (ListMenuByCurRoleReply_MenuValidationError) Key ¶
func (e ListMenuByCurRoleReply_MenuValidationError) Key() bool
Key function returns key value.
func (ListMenuByCurRoleReply_MenuValidationError) Reason ¶
func (e ListMenuByCurRoleReply_MenuValidationError) Reason() string
Reason function returns reason value.
type ListMenuByCurRoleRequest ¶
type ListMenuByCurRoleRequest struct {
// contains filtered or unexported fields
}
func (*ListMenuByCurRoleRequest) Descriptor
deprecated
func (*ListMenuByCurRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuByCurRoleRequest.ProtoReflect.Descriptor instead.
func (*ListMenuByCurRoleRequest) ProtoMessage ¶
func (*ListMenuByCurRoleRequest) ProtoMessage()
func (*ListMenuByCurRoleRequest) ProtoReflect ¶
func (x *ListMenuByCurRoleRequest) ProtoReflect() protoreflect.Message
func (*ListMenuByCurRoleRequest) Reset ¶
func (x *ListMenuByCurRoleRequest) Reset()
func (*ListMenuByCurRoleRequest) String ¶
func (x *ListMenuByCurRoleRequest) String() string
func (*ListMenuByCurRoleRequest) Validate ¶
func (m *ListMenuByCurRoleRequest) Validate() error
Validate checks the field values on ListMenuByCurRoleRequest 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 (*ListMenuByCurRoleRequest) ValidateAll ¶
func (m *ListMenuByCurRoleRequest) ValidateAll() error
ValidateAll checks the field values on ListMenuByCurRoleRequest 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 ListMenuByCurRoleRequestMultiError, or nil if none found.
type ListMenuByCurRoleRequestMultiError ¶
type ListMenuByCurRoleRequestMultiError []error
ListMenuByCurRoleRequestMultiError is an error wrapping multiple validation errors returned by ListMenuByCurRoleRequest.ValidateAll() if the designated constraints aren't met.
func (ListMenuByCurRoleRequestMultiError) AllErrors ¶
func (m ListMenuByCurRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuByCurRoleRequestMultiError) Error ¶
func (m ListMenuByCurRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuByCurRoleRequestValidationError ¶
type ListMenuByCurRoleRequestValidationError struct {
// contains filtered or unexported fields
}
ListMenuByCurRoleRequestValidationError is the validation error returned by ListMenuByCurRoleRequest.Validate if the designated constraints aren't met.
func (ListMenuByCurRoleRequestValidationError) Cause ¶
func (e ListMenuByCurRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (ListMenuByCurRoleRequestValidationError) Error ¶
func (e ListMenuByCurRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuByCurRoleRequestValidationError) ErrorName ¶
func (e ListMenuByCurRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuByCurRoleRequestValidationError) Field ¶
func (e ListMenuByCurRoleRequestValidationError) Field() string
Field function returns field value.
func (ListMenuByCurRoleRequestValidationError) Key ¶
func (e ListMenuByCurRoleRequestValidationError) Key() bool
Key function returns key value.
func (ListMenuByCurRoleRequestValidationError) Reason ¶
func (e ListMenuByCurRoleRequestValidationError) Reason() string
Reason function returns reason value.
type ListMenuReply ¶
type ListMenuReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ListMenuReply_Menu `protobuf:"bytes,2,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_Menu
func (*ListMenuReply) GetTotal ¶
func (x *ListMenuReply) GetTotal() uint32
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_Menu ¶
type ListMenuReply_Menu struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` 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"` 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=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"` CreatedAt uint32 `protobuf:"varint,18,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,19,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` Children []*ListMenuReply_Menu `protobuf:"bytes,20,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
func (*ListMenuReply_Menu) Descriptor
deprecated
func (*ListMenuReply_Menu) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuReply_Menu.ProtoReflect.Descriptor instead.
func (*ListMenuReply_Menu) GetApi ¶
func (x *ListMenuReply_Menu) GetApi() string
func (*ListMenuReply_Menu) GetChildren ¶
func (x *ListMenuReply_Menu) GetChildren() []*ListMenuReply_Menu
func (*ListMenuReply_Menu) GetComponent ¶
func (x *ListMenuReply_Menu) GetComponent() string
func (*ListMenuReply_Menu) GetCreatedAt ¶
func (x *ListMenuReply_Menu) GetCreatedAt() uint32
func (*ListMenuReply_Menu) GetIcon ¶
func (x *ListMenuReply_Menu) GetIcon() string
func (*ListMenuReply_Menu) GetId ¶
func (x *ListMenuReply_Menu) GetId() uint32
func (*ListMenuReply_Menu) GetIsAffix ¶
func (x *ListMenuReply_Menu) GetIsAffix() bool
func (*ListMenuReply_Menu) GetIsCache ¶
func (x *ListMenuReply_Menu) GetIsCache() bool
func (*ListMenuReply_Menu) GetIsHidden ¶
func (x *ListMenuReply_Menu) GetIsHidden() bool
func (*ListMenuReply_Menu) GetIsHome ¶
func (x *ListMenuReply_Menu) GetIsHome() bool
func (*ListMenuReply_Menu) GetKeyword ¶
func (x *ListMenuReply_Menu) GetKeyword() string
func (*ListMenuReply_Menu) GetMethod ¶
func (x *ListMenuReply_Menu) GetMethod() string
func (*ListMenuReply_Menu) GetParentId ¶
func (x *ListMenuReply_Menu) GetParentId() uint32
func (*ListMenuReply_Menu) GetPath ¶
func (x *ListMenuReply_Menu) GetPath() string
func (*ListMenuReply_Menu) GetPermission ¶
func (x *ListMenuReply_Menu) GetPermission() string
func (*ListMenuReply_Menu) GetRedirect ¶
func (x *ListMenuReply_Menu) GetRedirect() string
func (*ListMenuReply_Menu) GetTitle ¶
func (x *ListMenuReply_Menu) GetTitle() string
func (*ListMenuReply_Menu) GetType ¶
func (x *ListMenuReply_Menu) GetType() string
func (*ListMenuReply_Menu) GetUpdatedAt ¶
func (x *ListMenuReply_Menu) GetUpdatedAt() uint32
func (*ListMenuReply_Menu) GetWeight ¶
func (x *ListMenuReply_Menu) GetWeight() int32
func (*ListMenuReply_Menu) ProtoMessage ¶
func (*ListMenuReply_Menu) ProtoMessage()
func (*ListMenuReply_Menu) ProtoReflect ¶
func (x *ListMenuReply_Menu) ProtoReflect() protoreflect.Message
func (*ListMenuReply_Menu) Reset ¶
func (x *ListMenuReply_Menu) Reset()
func (*ListMenuReply_Menu) String ¶
func (x *ListMenuReply_Menu) String() string
func (*ListMenuReply_Menu) Validate ¶
func (m *ListMenuReply_Menu) Validate() error
Validate checks the field values on ListMenuReply_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 (*ListMenuReply_Menu) ValidateAll ¶
func (m *ListMenuReply_Menu) ValidateAll() error
ValidateAll checks the field values on ListMenuReply_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 ListMenuReply_MenuMultiError, or nil if none found.
type ListMenuReply_MenuMultiError ¶
type ListMenuReply_MenuMultiError []error
ListMenuReply_MenuMultiError is an error wrapping multiple validation errors returned by ListMenuReply_Menu.ValidateAll() if the designated constraints aren't met.
func (ListMenuReply_MenuMultiError) AllErrors ¶
func (m ListMenuReply_MenuMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuReply_MenuMultiError) Error ¶
func (m ListMenuReply_MenuMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuReply_MenuValidationError ¶
type ListMenuReply_MenuValidationError struct {
// contains filtered or unexported fields
}
ListMenuReply_MenuValidationError is the validation error returned by ListMenuReply_Menu.Validate if the designated constraints aren't met.
func (ListMenuReply_MenuValidationError) Cause ¶
func (e ListMenuReply_MenuValidationError) Cause() error
Cause function returns cause value.
func (ListMenuReply_MenuValidationError) Error ¶
func (e ListMenuReply_MenuValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuReply_MenuValidationError) ErrorName ¶
func (e ListMenuReply_MenuValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuReply_MenuValidationError) Field ¶
func (e ListMenuReply_MenuValidationError) Field() string
Field function returns field value.
func (ListMenuReply_MenuValidationError) Key ¶
func (e ListMenuReply_MenuValidationError) Key() bool
Key function returns key value.
func (ListMenuReply_MenuValidationError) Reason ¶
func (e ListMenuReply_MenuValidationError) Reason() string
Reason function returns reason value.
type ListMenuRequest ¶
type ListMenuRequest struct { Order *string `protobuf:"bytes,1,opt,name=order,proto3,oneof" json:"order,omitempty"` OrderBy *string `protobuf:"bytes,2,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"` Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"` // contains filtered or unexported fields }
func (*ListMenuRequest) Descriptor
deprecated
func (*ListMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuRequest.ProtoReflect.Descriptor instead.
func (*ListMenuRequest) GetOrder ¶
func (x *ListMenuRequest) GetOrder() string
func (*ListMenuRequest) GetOrderBy ¶
func (x *ListMenuRequest) GetOrderBy() string
func (*ListMenuRequest) GetTitle ¶
func (x *ListMenuRequest) GetTitle() 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 获取菜单信息列表 ListMenu(ctx context.Context, in *ListMenuRequest, opts ...grpc.CallOption) (*ListMenuReply, error) // ListMenuByCurRole 获取菜单信息列表 ListMenuByCurRole(ctx context.Context, in *ListMenuByCurRoleRequest, opts ...grpc.CallOption) (*ListMenuByCurRoleReply, 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) }
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) ListMenu(ctx context.Context, req *ListMenuRequest, opts ...http.CallOption) (rsp *ListMenuReply, err error) ListMenuByCurRole(ctx context.Context, req *ListMenuByCurRoleRequest, opts ...http.CallOption) (rsp *ListMenuByCurRoleReply, 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) ListMenu ¶
func (c *MenuHTTPClientImpl) ListMenu(ctx context.Context, in *ListMenuRequest, opts ...http.CallOption) (*ListMenuReply, error)
func (*MenuHTTPClientImpl) ListMenuByCurRole ¶
func (c *MenuHTTPClientImpl) ListMenuByCurRole(ctx context.Context, in *ListMenuByCurRoleRequest, opts ...http.CallOption) (*ListMenuByCurRoleReply, 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) // ListMenu ListMenu 获取菜单信息列表 ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error) // ListMenuByCurRole ListMenuByCurRole 获取菜单信息列表 ListMenuByCurRole(context.Context, *ListMenuByCurRoleRequest) (*ListMenuByCurRoleReply, error) // UpdateMenu UpdateMenu 更新菜单信息 UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuReply, error) }
type MenuServer ¶
type MenuServer interface { // ListMenu 获取菜单信息列表 ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error) // ListMenuByCurRole 获取菜单信息列表 ListMenuByCurRole(context.Context, *ListMenuByCurRoleRequest) (*ListMenuByCurRoleReply, error) // CreateMenu 创建菜单信息 CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuReply, error) // UpdateMenu 更新菜单信息 UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuReply, error) // DeleteMenu 删除菜单信息 DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error) // contains filtered or unexported methods }
MenuServer is the server API for Menu service. All implementations must embed UnimplementedMenuServer for forward compatibility
type UnimplementedMenuServer ¶
type UnimplementedMenuServer struct { }
UnimplementedMenuServer must be embedded to have forward compatible implementations.
func (UnimplementedMenuServer) CreateMenu ¶
func (UnimplementedMenuServer) CreateMenu(context.Context, *CreateMenuRequest) (*CreateMenuReply, error)
func (UnimplementedMenuServer) DeleteMenu ¶
func (UnimplementedMenuServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error)
func (UnimplementedMenuServer) ListMenu ¶
func (UnimplementedMenuServer) ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error)
func (UnimplementedMenuServer) ListMenuByCurRole ¶
func (UnimplementedMenuServer) ListMenuByCurRole(context.Context, *ListMenuByCurRoleRequest) (*ListMenuByCurRoleReply, 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" 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"` 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=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"` // 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) 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.