You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

463 lines
16 KiB

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: BaseRoleMenu.proto
//在web层重新生成pb.go的方法
//
//protoc -I Business/BaseRoleMenu/BaseRoleMenuProto/ Business/BaseRoleMenu/BaseRoleMenuProto/BaseRoleMenu.proto --go_out=plugins=grpc:Business/BaseRoleMenu/BaseRoleMenuProto
package BaseRoleMenuProto
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type SetCorrArg struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
//角色ID
RoleId string `protobuf:"bytes,1,opt,name=RoleId,proto3" json:"RoleId,omitempty"`
//菜单ID
MenuId []string `protobuf:"bytes,2,rep,name=MenuId,proto3" json:"MenuId,omitempty"`
}
func (x *SetCorrArg) Reset() {
*x = SetCorrArg{}
if protoimpl.UnsafeEnabled {
mi := &file_BaseRoleMenu_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetCorrArg) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetCorrArg) ProtoMessage() {}
func (x *SetCorrArg) ProtoReflect() protoreflect.Message {
mi := &file_BaseRoleMenu_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetCorrArg.ProtoReflect.Descriptor instead.
func (*SetCorrArg) Descriptor() ([]byte, []int) {
return file_BaseRoleMenu_proto_rawDescGZIP(), []int{0}
}
func (x *SetCorrArg) GetRoleId() string {
if x != nil {
return x.RoleId
}
return ""
}
func (x *SetCorrArg) GetMenuId() []string {
if x != nil {
return x.MenuId
}
return nil
}
type GetCorrArg struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
//角色ID
RoleId string `protobuf:"bytes,1,opt,name=RoleId,proto3" json:"RoleId,omitempty"`
}
func (x *GetCorrArg) Reset() {
*x = GetCorrArg{}
if protoimpl.UnsafeEnabled {
mi := &file_BaseRoleMenu_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetCorrArg) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetCorrArg) ProtoMessage() {}
func (x *GetCorrArg) ProtoReflect() protoreflect.Message {
mi := &file_BaseRoleMenu_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetCorrArg.ProtoReflect.Descriptor instead.
func (*GetCorrArg) Descriptor() ([]byte, []int) {
return file_BaseRoleMenu_proto_rawDescGZIP(), []int{1}
}
func (x *GetCorrArg) GetRoleId() string {
if x != nil {
return x.RoleId
}
return ""
}
// 查询请求响应
type Reply struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=Count,proto3" json:"Count,omitempty"`
List string `protobuf:"bytes,4,opt,name=List,proto3" json:"List,omitempty"`
}
func (x *Reply) Reset() {
*x = Reply{}
if protoimpl.UnsafeEnabled {
mi := &file_BaseRoleMenu_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Reply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Reply) ProtoMessage() {}
func (x *Reply) ProtoReflect() protoreflect.Message {
mi := &file_BaseRoleMenu_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Reply.ProtoReflect.Descriptor instead.
func (*Reply) Descriptor() ([]byte, []int) {
return file_BaseRoleMenu_proto_rawDescGZIP(), []int{2}
}
func (x *Reply) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *Reply) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *Reply) GetCount() int32 {
if x != nil {
return x.Count
}
return 0
}
func (x *Reply) GetList() string {
if x != nil {
return x.List
}
return ""
}
var File_BaseRoleMenu_proto protoreflect.FileDescriptor
var file_BaseRoleMenu_proto_rawDesc = []byte{
0x0a, 0x12, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x4d, 0x65,
0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x43, 0x6f,
0x72, 0x72, 0x41, 0x72, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x52, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a,
0x06, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x4d,
0x65, 0x6e, 0x75, 0x49, 0x64, 0x22, 0x24, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x72,
0x41, 0x72, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x06, 0x52, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x05, 0x52,
0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18,
0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18,
0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x43, 0x6f, 0x75, 0x6e,
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12,
0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4c, 0x69,
0x73, 0x74, 0x32, 0xb8, 0x01, 0x0a, 0x12, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x4d,
0x65, 0x6e, 0x75, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x12, 0x50, 0x0a, 0x13, 0x47, 0x65, 0x74,
0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x43, 0x6f, 0x72, 0x72,
0x12, 0x1d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x72, 0x41, 0x72, 0x67, 0x1a,
0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72,
0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x13, 0x53,
0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x43, 0x6f,
0x72, 0x72, 0x12, 0x1d, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x4d, 0x65, 0x6e,
0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x72, 0x41, 0x72,
0x67, 0x1a, 0x18, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x4d, 0x65, 0x6e, 0x75,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x40, 0x0a,
0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x73, 0x69, 0x64, 0x65, 0x61, 0x6c, 0x2e, 0x64, 0x73, 0x6d,
0x69, 0x6e, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x42, 0x0c, 0x42, 0x61, 0x73, 0x65, 0x52, 0x6f, 0x6c,
0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x01, 0x5a, 0x13, 0x2e, 0x3b, 0x42, 0x61, 0x73, 0x65, 0x52,
0x6f, 0x6c, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0xa2, 0x02, 0x00, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_BaseRoleMenu_proto_rawDescOnce sync.Once
file_BaseRoleMenu_proto_rawDescData = file_BaseRoleMenu_proto_rawDesc
)
func file_BaseRoleMenu_proto_rawDescGZIP() []byte {
file_BaseRoleMenu_proto_rawDescOnce.Do(func() {
file_BaseRoleMenu_proto_rawDescData = protoimpl.X.CompressGZIP(file_BaseRoleMenu_proto_rawDescData)
})
return file_BaseRoleMenu_proto_rawDescData
}
var file_BaseRoleMenu_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_BaseRoleMenu_proto_goTypes = []interface{}{
(*SetCorrArg)(nil), // 0: BaseRoleMenuProto.SetCorrArg
(*GetCorrArg)(nil), // 1: BaseRoleMenuProto.GetCorrArg
(*Reply)(nil), // 2: BaseRoleMenuProto.Reply
}
var file_BaseRoleMenu_proto_depIdxs = []int32{
1, // 0: BaseRoleMenuProto.BaseRoleMenuManage.GetBaseRoleMenuCorr:input_type -> BaseRoleMenuProto.GetCorrArg
0, // 1: BaseRoleMenuProto.BaseRoleMenuManage.SetBaseRoleMenuCorr:input_type -> BaseRoleMenuProto.SetCorrArg
2, // 2: BaseRoleMenuProto.BaseRoleMenuManage.GetBaseRoleMenuCorr:output_type -> BaseRoleMenuProto.Reply
2, // 3: BaseRoleMenuProto.BaseRoleMenuManage.SetBaseRoleMenuCorr:output_type -> BaseRoleMenuProto.Reply
2, // [2:4] is the sub-list for method output_type
0, // [0:2] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_BaseRoleMenu_proto_init() }
func file_BaseRoleMenu_proto_init() {
if File_BaseRoleMenu_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_BaseRoleMenu_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetCorrArg); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_BaseRoleMenu_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetCorrArg); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_BaseRoleMenu_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Reply); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_BaseRoleMenu_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_BaseRoleMenu_proto_goTypes,
DependencyIndexes: file_BaseRoleMenu_proto_depIdxs,
MessageInfos: file_BaseRoleMenu_proto_msgTypes,
}.Build()
File_BaseRoleMenu_proto = out.File
file_BaseRoleMenu_proto_rawDesc = nil
file_BaseRoleMenu_proto_goTypes = nil
file_BaseRoleMenu_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// BaseRoleMenuManageClient is the client API for BaseRoleMenuManage service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BaseRoleMenuManageClient interface {
//获取角色菜单对应关系
GetBaseRoleMenuCorr(ctx context.Context, in *GetCorrArg, opts ...grpc.CallOption) (*Reply, error)
//设置角色菜单对应关系
SetBaseRoleMenuCorr(ctx context.Context, in *SetCorrArg, opts ...grpc.CallOption) (*Reply, error)
}
type baseRoleMenuManageClient struct {
cc grpc.ClientConnInterface
}
func NewBaseRoleMenuManageClient(cc grpc.ClientConnInterface) BaseRoleMenuManageClient {
return &baseRoleMenuManageClient{cc}
}
func (c *baseRoleMenuManageClient) GetBaseRoleMenuCorr(ctx context.Context, in *GetCorrArg, opts ...grpc.CallOption) (*Reply, error) {
out := new(Reply)
err := c.cc.Invoke(ctx, "/BaseRoleMenuProto.BaseRoleMenuManage/GetBaseRoleMenuCorr", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *baseRoleMenuManageClient) SetBaseRoleMenuCorr(ctx context.Context, in *SetCorrArg, opts ...grpc.CallOption) (*Reply, error) {
out := new(Reply)
err := c.cc.Invoke(ctx, "/BaseRoleMenuProto.BaseRoleMenuManage/SetBaseRoleMenuCorr", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// BaseRoleMenuManageServer is the server API for BaseRoleMenuManage service.
type BaseRoleMenuManageServer interface {
//获取角色菜单对应关系
GetBaseRoleMenuCorr(context.Context, *GetCorrArg) (*Reply, error)
//设置角色菜单对应关系
SetBaseRoleMenuCorr(context.Context, *SetCorrArg) (*Reply, error)
}
// UnimplementedBaseRoleMenuManageServer can be embedded to have forward compatible implementations.
type UnimplementedBaseRoleMenuManageServer struct {
}
func (*UnimplementedBaseRoleMenuManageServer) GetBaseRoleMenuCorr(context.Context, *GetCorrArg) (*Reply, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBaseRoleMenuCorr not implemented")
}
func (*UnimplementedBaseRoleMenuManageServer) SetBaseRoleMenuCorr(context.Context, *SetCorrArg) (*Reply, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetBaseRoleMenuCorr not implemented")
}
func RegisterBaseRoleMenuManageServer(s *grpc.Server, srv BaseRoleMenuManageServer) {
s.RegisterService(&_BaseRoleMenuManage_serviceDesc, srv)
}
func _BaseRoleMenuManage_GetBaseRoleMenuCorr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetCorrArg)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BaseRoleMenuManageServer).GetBaseRoleMenuCorr(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/BaseRoleMenuProto.BaseRoleMenuManage/GetBaseRoleMenuCorr",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BaseRoleMenuManageServer).GetBaseRoleMenuCorr(ctx, req.(*GetCorrArg))
}
return interceptor(ctx, in, info, handler)
}
func _BaseRoleMenuManage_SetBaseRoleMenuCorr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetCorrArg)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BaseRoleMenuManageServer).SetBaseRoleMenuCorr(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/BaseRoleMenuProto.BaseRoleMenuManage/SetBaseRoleMenuCorr",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BaseRoleMenuManageServer).SetBaseRoleMenuCorr(ctx, req.(*SetCorrArg))
}
return interceptor(ctx, in, info, handler)
}
var _BaseRoleMenuManage_serviceDesc = grpc.ServiceDesc{
ServiceName: "BaseRoleMenuProto.BaseRoleMenuManage",
HandlerType: (*BaseRoleMenuManageServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetBaseRoleMenuCorr",
Handler: _BaseRoleMenuManage_GetBaseRoleMenuCorr_Handler,
},
{
MethodName: "SetBaseRoleMenuCorr",
Handler: _BaseRoleMenuManage_SetBaseRoleMenuCorr_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "BaseRoleMenu.proto",
}