menu

package
v0.0.0-...-d36d6b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	OperationMenuCreateMenu      = "/manager.api.menu.Menu/CreateMenu"
	OperationMenuDeleteMenu      = "/manager.api.menu.Menu/DeleteMenu"
	OperationMenuListCurrentMenu = "/manager.api.menu.Menu/ListCurrentMenu"
	OperationMenuListMenu        = "/manager.api.menu.Menu/ListMenu"
	OperationMenuUpdateMenu      = "/manager.api.menu.Menu/UpdateMenu"
)

Variables

View Source
var File_api_menu_proto_menu_proto protoreflect.FileDescriptor
View Source
var File_api_menu_proto_menu_service_proto protoreflect.FileDescriptor
View Source
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,
		},
	},
	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

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

Cause function returns cause value.

func (CreateMenuReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateMenuReplyValidationError) ErrorName

func (e CreateMenuReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateMenuReplyValidationError) Field

Field function returns field value.

func (CreateMenuReplyValidationError) Key

Key function returns key value.

func (CreateMenuReplyValidationError) Reason

Reason function returns reason value.

type CreateMenuRequest

type CreateMenuRequest struct {
	AppId      uint32  `protobuf:"varint,1,opt,name=appId,proto3" json:"appId,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) GetAppId

func (x *CreateMenuRequest) GetAppId() uint32

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

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

Cause function returns cause value.

func (CreateMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateMenuRequestValidationError) Field

Field function returns field value.

func (CreateMenuRequestValidationError) Key

Key function returns key value.

func (CreateMenuRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteMenuReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteMenuReplyValidationError) ErrorName

func (e DeleteMenuReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteMenuReplyValidationError) Field

Field function returns field value.

func (DeleteMenuReplyValidationError) Key

Key function returns key value.

func (DeleteMenuReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteMenuRequestValidationError) Field

Field function returns field value.

func (DeleteMenuRequestValidationError) Key

Key function returns key value.

func (DeleteMenuRequestValidationError) Reason

Reason function returns reason value.

type ListCurrentMenuRequest

type ListCurrentMenuRequest struct {
	AppId    *uint32 `protobuf:"varint,1,opt,name=appId,proto3,oneof" json:"appId,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) GetAppId

func (x *ListCurrentMenuRequest) GetAppId() uint32

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

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

Cause function returns cause value.

func (ListCurrentMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (ListCurrentMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (ListCurrentMenuRequestValidationError) Field

Field function returns field value.

func (ListCurrentMenuRequestValidationError) Key

Key function returns key value.

func (ListCurrentMenuRequestValidationError) Reason

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

Cause function returns cause value.

func (ListMenuReplyValidationError) Error

Error satisfies the builtin error interface

func (ListMenuReplyValidationError) ErrorName

func (e ListMenuReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListMenuReplyValidationError) Field

Field function returns field value.

func (ListMenuReplyValidationError) Key

Key function returns key value.

func (ListMenuReplyValidationError) Reason

Reason function returns reason value.

type ListMenuReply_Data

type ListMenuReply_Data struct {
	Id         uint32                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	AppId      uint32                `protobuf:"varint,2,opt,name=appId,proto3" json:"appId,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) GetAppId

func (x *ListMenuReply_Data) GetAppId() uint32

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

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

Cause function returns cause value.

func (ListMenuReply_DataValidationError) Error

Error satisfies the builtin error interface

func (ListMenuReply_DataValidationError) ErrorName

ErrorName returns error name.

func (ListMenuReply_DataValidationError) Field

Field function returns field value.

func (ListMenuReply_DataValidationError) Key

Key function returns key value.

func (ListMenuReply_DataValidationError) Reason

Reason function returns reason value.

type ListMenuRequest

type ListMenuRequest struct {
	AppId uint32 `protobuf:"varint,1,opt,name=appId,proto3" json:"appId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMenuRequest) Descriptor deprecated

func (*ListMenuRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListMenuRequest.ProtoReflect.Descriptor instead.

func (*ListMenuRequest) GetAppId

func (x *ListMenuRequest) GetAppId() uint32

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

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

Cause function returns cause value.

func (ListMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (ListMenuRequestValidationError) ErrorName

func (e ListMenuRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListMenuRequestValidationError) Field

Field function returns field value.

func (ListMenuRequestValidationError) Key

Key function returns key value.

func (ListMenuRequestValidationError) Reason

Reason function returns reason value.

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)
}

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 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)
	UpdateMenu(ctx context.Context, req *UpdateMenuRequest, opts ...http.CallOption) (rsp *UpdateMenuReply, err error)
}

func NewMenuHTTPClient

func NewMenuHTTPClient(client *http.Client) MenuHTTPClient
type MenuHTTPClientImpl struct {
	// contains filtered or unexported fields
}
func (c *MenuHTTPClientImpl) ListCurrentMenu(ctx context.Context, in *ListCurrentMenuRequest, opts ...http.CallOption) (*ListMenuReply, error)
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)
	// UpdateMenu UpdateMenu 更新菜单信息
	UpdateMenu(context.Context, *UpdateMenuRequest) (*UpdateMenuReply, error)
}
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)
	// 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) DeleteMenu

func (UnimplementedMenuServer) ListCurrentMenu

func (UnimplementedMenuServer) ListMenu

func (UnimplementedMenuServer) UpdateMenu

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

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

Cause function returns cause value.

func (UpdateMenuReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateMenuReplyValidationError) ErrorName

func (e UpdateMenuReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateMenuReplyValidationError) Field

Field function returns field value.

func (UpdateMenuReplyValidationError) Key

Key function returns key value.

func (UpdateMenuReplyValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateMenuRequestValidationError) Field

Field function returns field value.

func (UpdateMenuRequestValidationError) Key

Key function returns key value.

func (UpdateMenuRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL