v1

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var File_api_manager_menu_manager_menu_proto protoreflect.FileDescriptor
View Source
var File_api_manager_menu_manager_menu_service_proto protoreflect.FileDescriptor
View Source
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

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 {
	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

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 {
	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

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 {
	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

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 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 (*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

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

Cause function returns cause value.

func (ListMenuByCurRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (ListMenuByCurRoleReplyValidationError) ErrorName

ErrorName returns error name.

func (ListMenuByCurRoleReplyValidationError) Field

Field function returns field value.

func (ListMenuByCurRoleReplyValidationError) Key

Key function returns key value.

func (ListMenuByCurRoleReplyValidationError) Reason

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 (*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 (*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 (*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

AllErrors returns a list of validation violation errors.

func (ListMenuByCurRoleReply_MenuMultiError) Error

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

Cause function returns cause value.

func (ListMenuByCurRoleReply_MenuValidationError) Error

Error satisfies the builtin error interface

func (ListMenuByCurRoleReply_MenuValidationError) ErrorName

ErrorName returns error name.

func (ListMenuByCurRoleReply_MenuValidationError) Field

Field function returns field value.

func (ListMenuByCurRoleReply_MenuValidationError) Key

Key function returns key value.

func (ListMenuByCurRoleReply_MenuValidationError) Reason

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

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

Cause function returns cause value.

func (ListMenuByCurRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (ListMenuByCurRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (ListMenuByCurRoleRequestValidationError) Field

Field function returns field value.

func (ListMenuByCurRoleRequestValidationError) Key

Key function returns key value.

func (ListMenuByCurRoleRequestValidationError) Reason

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

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_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

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

Cause function returns cause value.

func (ListMenuReply_MenuValidationError) Error

Error satisfies the builtin error interface

func (ListMenuReply_MenuValidationError) ErrorName

ErrorName returns error name.

func (ListMenuReply_MenuValidationError) Field

Field function returns field value.

func (ListMenuReply_MenuValidationError) Key

Key function returns key value.

func (ListMenuReply_MenuValidationError) Reason

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

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 获取菜单信息列表
	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 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 struct {
	// contains filtered or unexported fields
}
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 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) DeleteMenu

func (UnimplementedMenuServer) ListMenu

func (UnimplementedMenuServer) ListMenuByCurRole

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" 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

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