v1

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Service_GetMenuTree_FullMethodName         = "/manager_menu.Service/GetMenuTree"
	Service_GetMenuTreeFromRole_FullMethodName = "/manager_menu.Service/GetMenuTreeFromRole"
	Service_AddMenu_FullMethodName             = "/manager_menu.Service/AddMenu"
	Service_UpdateMenu_FullMethodName          = "/manager_menu.Service/UpdateMenu"
	Service_DeleteMenu_FullMethodName          = "/manager_menu.Service/DeleteMenu"
)
View Source
const OperationServiceAddMenu = "/manager_menu.Service/AddMenu"
View Source
const OperationServiceDeleteMenu = "/manager_menu.Service/DeleteMenu"
View Source
const OperationServiceGetMenuTree = "/manager_menu.Service/GetMenuTree"
View Source
const OperationServiceGetMenuTreeFromRole = "/manager_menu.Service/GetMenuTreeFromRole"
View Source
const OperationServiceUpdateMenu = "/manager_menu.Service/UpdateMenu"

Variables

View Source
var File_manager_menu_proto protoreflect.FileDescriptor
View Source
var File_manager_menu_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager_menu.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMenuTree",
			Handler:    _Service_GetMenuTree_Handler,
		},
		{
			MethodName: "GetMenuTreeFromRole",
			Handler:    _Service_GetMenuTreeFromRole_Handler,
		},
		{
			MethodName: "AddMenu",
			Handler:    _Service_AddMenu_Handler,
		},
		{
			MethodName: "UpdateMenu",
			Handler:    _Service_UpdateMenu_Handler,
		},
		{
			MethodName: "DeleteMenu",
			Handler:    _Service_DeleteMenu_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "manager_menu_service.proto",
}

Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServiceHTTPServer

func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type AddMenuReply

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

func (*AddMenuReply) Descriptor deprecated

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

Deprecated: Use AddMenuReply.ProtoReflect.Descriptor instead.

func (*AddMenuReply) GetId

func (x *AddMenuReply) GetId() uint32

func (*AddMenuReply) ProtoMessage

func (*AddMenuReply) ProtoMessage()

func (*AddMenuReply) ProtoReflect

func (x *AddMenuReply) ProtoReflect() protoreflect.Message

func (*AddMenuReply) Reset

func (x *AddMenuReply) Reset()

func (*AddMenuReply) String

func (x *AddMenuReply) String() string

func (*AddMenuReply) Validate

func (m *AddMenuReply) Validate() error

Validate checks the field values on AddMenuReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddMenuReply) ValidateAll

func (m *AddMenuReply) ValidateAll() error

ValidateAll checks the field values on AddMenuReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddMenuReplyMultiError, or nil if none found.

type AddMenuReplyMultiError

type AddMenuReplyMultiError []error

AddMenuReplyMultiError is an error wrapping multiple validation errors returned by AddMenuReply.ValidateAll() if the designated constraints aren't met.

func (AddMenuReplyMultiError) AllErrors

func (m AddMenuReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddMenuReplyMultiError) Error

func (m AddMenuReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AddMenuReplyValidationError

type AddMenuReplyValidationError struct {
	// contains filtered or unexported fields
}

AddMenuReplyValidationError is the validation error returned by AddMenuReply.Validate if the designated constraints aren't met.

func (AddMenuReplyValidationError) Cause

Cause function returns cause value.

func (AddMenuReplyValidationError) Error

Error satisfies the builtin error interface

func (AddMenuReplyValidationError) ErrorName

func (e AddMenuReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddMenuReplyValidationError) Field

Field function returns field value.

func (AddMenuReplyValidationError) Key

Key function returns key value.

func (AddMenuReplyValidationError) Reason

Reason function returns reason value.

type AddMenuRequest

type AddMenuRequest struct {
	ParentId        uint32  `protobuf:"varint,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	App             string  `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
	Title           string  `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Type            string  `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Icon            *string `protobuf:"bytes,5,opt,name=icon,proto3,oneof" json:"icon,omitempty"`
	Path            *string `protobuf:"bytes,6,opt,name=path,proto3,oneof" json:"path,omitempty"`
	Keyword         *string `protobuf:"bytes,7,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	Permission      *string `protobuf:"bytes,8,opt,name=permission,proto3,oneof" json:"permission,omitempty"`
	Component       *string `protobuf:"bytes,9,opt,name=component,proto3,oneof" json:"component,omitempty"`
	Api             *string `protobuf:"bytes,10,opt,name=api,proto3,oneof" json:"api,omitempty"`
	Method          *string `protobuf:"bytes,11,opt,name=method,proto3,oneof" json:"method,omitempty"`
	Redirect        *string `protobuf:"bytes,12,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"`
	Weight          *int32  `protobuf:"varint,13,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
	IsHidden        *bool   `protobuf:"varint,14,opt,name=is_hidden,json=isHidden,proto3,oneof" json:"is_hidden,omitempty"`
	IsCache         *bool   `protobuf:"varint,15,opt,name=is_cache,json=isCache,proto3,oneof" json:"is_cache,omitempty"`
	IsHome          *bool   `protobuf:"varint,16,opt,name=is_home,json=isHome,proto3,oneof" json:"is_home,omitempty"`
	IsAffix         *bool   `protobuf:"varint,17,opt,name=is_affix,json=isAffix,proto3,oneof" json:"is_affix,omitempty"`
	CheckObject     *bool   `protobuf:"varint,18,opt,name=check_object,json=checkObject,proto3,oneof" json:"check_object,omitempty"`
	CheckObjectRule *string `protobuf:"bytes,19,opt,name=check_object_rule,json=checkObjectRule,proto3,oneof" json:"check_object_rule,omitempty"`
	// contains filtered or unexported fields
}

func (*AddMenuRequest) Descriptor deprecated

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

Deprecated: Use AddMenuRequest.ProtoReflect.Descriptor instead.

func (*AddMenuRequest) GetApi

func (x *AddMenuRequest) GetApi() string

func (*AddMenuRequest) GetApp

func (x *AddMenuRequest) GetApp() string

func (*AddMenuRequest) GetCheckObject

func (x *AddMenuRequest) GetCheckObject() bool

func (*AddMenuRequest) GetCheckObjectRule

func (x *AddMenuRequest) GetCheckObjectRule() string

func (*AddMenuRequest) GetComponent

func (x *AddMenuRequest) GetComponent() string

func (*AddMenuRequest) GetIcon

func (x *AddMenuRequest) GetIcon() string

func (*AddMenuRequest) GetIsAffix

func (x *AddMenuRequest) GetIsAffix() bool

func (*AddMenuRequest) GetIsCache

func (x *AddMenuRequest) GetIsCache() bool

func (*AddMenuRequest) GetIsHidden

func (x *AddMenuRequest) GetIsHidden() bool

func (*AddMenuRequest) GetIsHome

func (x *AddMenuRequest) GetIsHome() bool

func (*AddMenuRequest) GetKeyword

func (x *AddMenuRequest) GetKeyword() string

func (*AddMenuRequest) GetMethod

func (x *AddMenuRequest) GetMethod() string

func (*AddMenuRequest) GetParentId

func (x *AddMenuRequest) GetParentId() uint32

func (*AddMenuRequest) GetPath

func (x *AddMenuRequest) GetPath() string

func (*AddMenuRequest) GetPermission

func (x *AddMenuRequest) GetPermission() string

func (*AddMenuRequest) GetRedirect

func (x *AddMenuRequest) GetRedirect() string

func (*AddMenuRequest) GetTitle

func (x *AddMenuRequest) GetTitle() string

func (*AddMenuRequest) GetType

func (x *AddMenuRequest) GetType() string

func (*AddMenuRequest) GetWeight

func (x *AddMenuRequest) GetWeight() int32

func (*AddMenuRequest) ProtoMessage

func (*AddMenuRequest) ProtoMessage()

func (*AddMenuRequest) ProtoReflect

func (x *AddMenuRequest) ProtoReflect() protoreflect.Message

func (*AddMenuRequest) Reset

func (x *AddMenuRequest) Reset()

func (*AddMenuRequest) String

func (x *AddMenuRequest) String() string

func (*AddMenuRequest) Validate

func (m *AddMenuRequest) Validate() error

Validate checks the field values on AddMenuRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddMenuRequest) ValidateAll

func (m *AddMenuRequest) ValidateAll() error

ValidateAll checks the field values on AddMenuRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddMenuRequestMultiError, or nil if none found.

type AddMenuRequestMultiError

type AddMenuRequestMultiError []error

AddMenuRequestMultiError is an error wrapping multiple validation errors returned by AddMenuRequest.ValidateAll() if the designated constraints aren't met.

func (AddMenuRequestMultiError) AllErrors

func (m AddMenuRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddMenuRequestMultiError) Error

func (m AddMenuRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AddMenuRequestValidationError

type AddMenuRequestValidationError struct {
	// contains filtered or unexported fields
}

AddMenuRequestValidationError is the validation error returned by AddMenuRequest.Validate if the designated constraints aren't met.

func (AddMenuRequestValidationError) Cause

Cause function returns cause value.

func (AddMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (AddMenuRequestValidationError) ErrorName

func (e AddMenuRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AddMenuRequestValidationError) Field

Field function returns field value.

func (AddMenuRequestValidationError) Key

Key function returns key value.

func (AddMenuRequestValidationError) 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 GetMenuTreeReply

type GetMenuTreeReply struct {
	List []*Menu `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMenuTreeReply) Descriptor deprecated

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

Deprecated: Use GetMenuTreeReply.ProtoReflect.Descriptor instead.

func (*GetMenuTreeReply) GetList

func (x *GetMenuTreeReply) GetList() []*Menu

func (*GetMenuTreeReply) ProtoMessage

func (*GetMenuTreeReply) ProtoMessage()

func (*GetMenuTreeReply) ProtoReflect

func (x *GetMenuTreeReply) ProtoReflect() protoreflect.Message

func (*GetMenuTreeReply) Reset

func (x *GetMenuTreeReply) Reset()

func (*GetMenuTreeReply) String

func (x *GetMenuTreeReply) String() string

func (*GetMenuTreeReply) Validate

func (m *GetMenuTreeReply) Validate() error

Validate checks the field values on GetMenuTreeReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetMenuTreeReply) ValidateAll

func (m *GetMenuTreeReply) ValidateAll() error

ValidateAll checks the field values on GetMenuTreeReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetMenuTreeReplyMultiError, or nil if none found.

type GetMenuTreeReplyMultiError

type GetMenuTreeReplyMultiError []error

GetMenuTreeReplyMultiError is an error wrapping multiple validation errors returned by GetMenuTreeReply.ValidateAll() if the designated constraints aren't met.

func (GetMenuTreeReplyMultiError) AllErrors

func (m GetMenuTreeReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetMenuTreeReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetMenuTreeReplyValidationError

type GetMenuTreeReplyValidationError struct {
	// contains filtered or unexported fields
}

GetMenuTreeReplyValidationError is the validation error returned by GetMenuTreeReply.Validate if the designated constraints aren't met.

func (GetMenuTreeReplyValidationError) Cause

Cause function returns cause value.

func (GetMenuTreeReplyValidationError) Error

Error satisfies the builtin error interface

func (GetMenuTreeReplyValidationError) ErrorName

ErrorName returns error name.

func (GetMenuTreeReplyValidationError) Field

Field function returns field value.

func (GetMenuTreeReplyValidationError) Key

Key function returns key value.

func (GetMenuTreeReplyValidationError) Reason

Reason function returns reason value.

type Menu struct {
	Id              uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId        uint32  `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	App             string  `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"`
	Title           string  `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	Type            string  `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	Icon            string  `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"`
	Keyword         string  `protobuf:"bytes,7,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Path            *string `protobuf:"bytes,8,opt,name=path,proto3,oneof" json:"path,omitempty"`
	Permission      *string `protobuf:"bytes,9,opt,name=permission,proto3,oneof" json:"permission,omitempty"`
	Component       *string `protobuf:"bytes,10,opt,name=component,proto3,oneof" json:"component,omitempty"`
	Api             *string `protobuf:"bytes,11,opt,name=api,proto3,oneof" json:"api,omitempty"`
	Method          *string `protobuf:"bytes,12,opt,name=method,proto3,oneof" json:"method,omitempty"`
	CheckObject     bool    `protobuf:"varint,13,opt,name=check_object,json=checkObject,proto3" json:"check_object,omitempty"`
	CheckObjectRule *string `protobuf:"bytes,14,opt,name=check_object_rule,json=checkObjectRule,proto3,oneof" json:"check_object_rule,omitempty"`
	Redirect        *string `protobuf:"bytes,15,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"`
	Weight          int32   `protobuf:"varint,16,opt,name=weight,proto3" json:"weight,omitempty"`
	IsHidden        bool    `protobuf:"varint,17,opt,name=is_hidden,json=isHidden,proto3" json:"is_hidden,omitempty"`
	IsCache         bool    `protobuf:"varint,18,opt,name=is_cache,json=isCache,proto3" json:"is_cache,omitempty"`
	IsHome          bool    `protobuf:"varint,19,opt,name=is_home,json=isHome,proto3" json:"is_home,omitempty"`
	IsAffix         bool    `protobuf:"varint,20,opt,name=is_affix,json=isAffix,proto3" json:"is_affix,omitempty"`
	Children        []*Menu `protobuf:"bytes,21,rep,name=children,proto3" json:"children,omitempty"`
	CreatedAt       uint32  `protobuf:"varint,22,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt       uint32  `protobuf:"varint,23,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}
func (*Menu) Descriptor() ([]byte, []int)

Deprecated: Use Menu.ProtoReflect.Descriptor instead.

func (x *Menu) GetApi() string
func (x *Menu) GetApp() string
func (x *Menu) GetCheckObject() bool
func (x *Menu) GetCheckObjectRule() string
func (x *Menu) GetChildren() []*Menu
func (x *Menu) GetComponent() string
func (x *Menu) GetCreatedAt() uint32
func (x *Menu) GetIcon() string
func (x *Menu) GetId() uint32
func (x *Menu) GetIsAffix() bool
func (x *Menu) GetIsCache() bool
func (x *Menu) GetIsHidden() bool
func (x *Menu) GetIsHome() bool
func (x *Menu) GetKeyword() string
func (x *Menu) GetMethod() string
func (x *Menu) GetParentId() uint32
func (x *Menu) GetPath() string
func (x *Menu) GetPermission() string
func (x *Menu) GetRedirect() string
func (x *Menu) GetTitle() string
func (x *Menu) GetType() string
func (x *Menu) GetUpdatedAt() uint32
func (x *Menu) GetWeight() int32
func (*Menu) ProtoMessage()
func (x *Menu) ProtoReflect() protoreflect.Message
func (x *Menu) Reset()
func (x *Menu) String() string
func (m *Menu) Validate() error

Validate checks the field values on Menu with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (m *Menu) ValidateAll() error

ValidateAll checks the field values on Menu with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MenuMultiError, or nil if none found.

type MenuMultiError []error

MenuMultiError is an error wrapping multiple validation errors returned by Menu.ValidateAll() if the designated constraints aren't met.

func (m MenuMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (m MenuMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MenuValidationError struct {
	// contains filtered or unexported fields
}

MenuValidationError is the validation error returned by Menu.Validate if the designated constraints aren't met.

func (e MenuValidationError) Cause() error

Cause function returns cause value.

func (e MenuValidationError) Error() string

Error satisfies the builtin error interface

func (e MenuValidationError) ErrorName() string

ErrorName returns error name.

func (e MenuValidationError) Field() string

Field function returns field value.

func (e MenuValidationError) Key() bool

Key function returns key value.

func (e MenuValidationError) Reason() string

Reason function returns reason value.

type ServiceClient

type ServiceClient interface {
	// GetMenuTree 获取菜单树
	GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeReply, error)
	// AllMenuFromRole 获取角色的全部菜单树
	GetMenuTreeFromRole(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeReply, error)
	// AddMenu 添加菜单
	AddMenu(ctx context.Context, in *AddMenuRequest, opts ...grpc.CallOption) (*AddMenuReply, error)
	// UpdateMenu 更新菜单
	UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// DeleteMenu 删除菜单
	DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceHTTPClient

type ServiceHTTPClient interface {
	AddMenu(ctx context.Context, req *AddMenuRequest, opts ...http.CallOption) (rsp *AddMenuReply, err error)
	DeleteMenu(ctx context.Context, req *DeleteMenuRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	GetMenuTree(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeReply, err error)
	GetMenuTreeFromRole(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeReply, err error)
	UpdateMenu(ctx context.Context, req *UpdateMenuRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewServiceHTTPClient

func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient

type ServiceHTTPClientImpl

type ServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*ServiceHTTPClientImpl) AddMenu

func (*ServiceHTTPClientImpl) DeleteMenu

func (*ServiceHTTPClientImpl) GetMenuTree

func (c *ServiceHTTPClientImpl) GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeReply, error)

func (*ServiceHTTPClientImpl) GetMenuTreeFromRole

func (c *ServiceHTTPClientImpl) GetMenuTreeFromRole(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeReply, error)

func (*ServiceHTTPClientImpl) UpdateMenu

type ServiceHTTPServer

type ServiceHTTPServer interface {
	// AddMenu AddMenu 添加菜单
	AddMenu(context.Context, *AddMenuRequest) (*AddMenuReply, error)
	// DeleteMenu DeleteMenu 删除菜单
	DeleteMenu(context.Context, *DeleteMenuRequest) (*emptypb.Empty, error)
	// GetMenuTree GetMenuTree 获取菜单树
	GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error)
	// GetMenuTreeFromRole AllMenuFromRole 获取角色的全部菜单树
	GetMenuTreeFromRole(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error)
	// UpdateMenu UpdateMenu 更新菜单
	UpdateMenu(context.Context, *UpdateMenuRequest) (*emptypb.Empty, error)
}

type ServiceServer

type ServiceServer interface {
	// GetMenuTree 获取菜单树
	GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error)
	// AllMenuFromRole 获取角色的全部菜单树
	GetMenuTreeFromRole(context.Context, *emptypb.Empty) (*GetMenuTreeReply, error)
	// AddMenu 添加菜单
	AddMenu(context.Context, *AddMenuRequest) (*AddMenuReply, error)
	// UpdateMenu 更新菜单
	UpdateMenu(context.Context, *UpdateMenuRequest) (*emptypb.Empty, error)
	// DeleteMenu 删除菜单
	DeleteMenu(context.Context, *DeleteMenuRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) AddMenu

func (UnimplementedServiceServer) DeleteMenu

func (UnimplementedServiceServer) GetMenuTree

func (UnimplementedServiceServer) GetMenuTreeFromRole

func (UnimplementedServiceServer) UpdateMenu

type UnsafeServiceServer

type UnsafeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.

type UpdateMenuRequest

type UpdateMenuRequest struct {
	Id              uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId        uint32  `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Title           string  `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Type            string  `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Icon            *string `protobuf:"bytes,5,opt,name=icon,proto3,oneof" json:"icon,omitempty"`
	Path            *string `protobuf:"bytes,6,opt,name=path,proto3,oneof" json:"path,omitempty"`
	Keyword         *string `protobuf:"bytes,7,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	Permission      *string `protobuf:"bytes,8,opt,name=permission,proto3,oneof" json:"permission,omitempty"`
	Component       *string `protobuf:"bytes,9,opt,name=component,proto3,oneof" json:"component,omitempty"`
	Api             *string `protobuf:"bytes,10,opt,name=api,proto3,oneof" json:"api,omitempty"`
	Method          *string `protobuf:"bytes,11,opt,name=method,proto3,oneof" json:"method,omitempty"`
	Redirect        *string `protobuf:"bytes,12,opt,name=redirect,proto3,oneof" json:"redirect,omitempty"`
	Weight          *int32  `protobuf:"varint,13,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
	IsHidden        *bool   `protobuf:"varint,14,opt,name=is_hidden,json=isHidden,proto3,oneof" json:"is_hidden,omitempty"`
	IsCache         *bool   `protobuf:"varint,15,opt,name=is_cache,json=isCache,proto3,oneof" json:"is_cache,omitempty"`
	IsHome          *bool   `protobuf:"varint,16,opt,name=is_home,json=isHome,proto3,oneof" json:"is_home,omitempty"`
	IsAffix         *bool   `protobuf:"varint,17,opt,name=is_affix,json=isAffix,proto3,oneof" json:"is_affix,omitempty"`
	CheckObject     *bool   `protobuf:"varint,18,opt,name=check_object,json=checkObject,proto3,oneof" json:"check_object,omitempty"`
	CheckObjectRule *string `protobuf:"bytes,19,opt,name=check_object_rule,json=checkObjectRule,proto3,oneof" json:"check_object_rule,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMenuRequest) Descriptor deprecated

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

Deprecated: Use UpdateMenuRequest.ProtoReflect.Descriptor instead.

func (*UpdateMenuRequest) GetApi

func (x *UpdateMenuRequest) GetApi() string

func (*UpdateMenuRequest) GetCheckObject

func (x *UpdateMenuRequest) GetCheckObject() bool

func (*UpdateMenuRequest) GetCheckObjectRule

func (x *UpdateMenuRequest) GetCheckObjectRule() string

func (*UpdateMenuRequest) GetComponent

func (x *UpdateMenuRequest) GetComponent() string

func (*UpdateMenuRequest) GetIcon

func (x *UpdateMenuRequest) GetIcon() string

func (*UpdateMenuRequest) GetId

func (x *UpdateMenuRequest) GetId() uint32

func (*UpdateMenuRequest) GetIsAffix

func (x *UpdateMenuRequest) GetIsAffix() bool

func (*UpdateMenuRequest) GetIsCache

func (x *UpdateMenuRequest) GetIsCache() bool

func (*UpdateMenuRequest) GetIsHidden

func (x *UpdateMenuRequest) GetIsHidden() bool

func (*UpdateMenuRequest) GetIsHome

func (x *UpdateMenuRequest) GetIsHome() bool

func (*UpdateMenuRequest) GetKeyword

func (x *UpdateMenuRequest) GetKeyword() string

func (*UpdateMenuRequest) GetMethod

func (x *UpdateMenuRequest) GetMethod() string

func (*UpdateMenuRequest) GetParentId

func (x *UpdateMenuRequest) GetParentId() uint32

func (*UpdateMenuRequest) GetPath

func (x *UpdateMenuRequest) GetPath() string

func (*UpdateMenuRequest) GetPermission

func (x *UpdateMenuRequest) GetPermission() string

func (*UpdateMenuRequest) GetRedirect

func (x *UpdateMenuRequest) GetRedirect() string

func (*UpdateMenuRequest) GetTitle

func (x *UpdateMenuRequest) GetTitle() string

func (*UpdateMenuRequest) GetType

func (x *UpdateMenuRequest) GetType() string

func (*UpdateMenuRequest) GetWeight

func (x *UpdateMenuRequest) GetWeight() int32

func (*UpdateMenuRequest) ProtoMessage

func (*UpdateMenuRequest) ProtoMessage()

func (*UpdateMenuRequest) ProtoReflect

func (x *UpdateMenuRequest) ProtoReflect() protoreflect.Message

func (*UpdateMenuRequest) Reset

func (x *UpdateMenuRequest) Reset()

func (*UpdateMenuRequest) String

func (x *UpdateMenuRequest) String() string

func (*UpdateMenuRequest) Validate

func (m *UpdateMenuRequest) Validate() error

Validate checks the field values on UpdateMenuRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateMenuRequest) ValidateAll

func (m *UpdateMenuRequest) ValidateAll() error

ValidateAll checks the field values on UpdateMenuRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateMenuRequestMultiError, or nil if none found.

type UpdateMenuRequestMultiError

type UpdateMenuRequestMultiError []error

UpdateMenuRequestMultiError is an error wrapping multiple validation errors returned by UpdateMenuRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateMenuRequestMultiError) AllErrors

func (m UpdateMenuRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateMenuRequestMultiError) Error

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