|
|
|
@ -34,6 +34,63 @@ const (
|
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
|
|
|
|
|
|
type SetMenuSortArg struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
//菜单ID
|
|
|
|
|
MenuId string `protobuf:"bytes,1,opt,name=MenuId,proto3" json:"MenuId,omitempty"`
|
|
|
|
|
//调整顺序的方向 1:向上 2:向下
|
|
|
|
|
Direction int32 `protobuf:"varint,2,opt,name=Direction,proto3" json:"Direction,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SetMenuSortArg) Reset() {
|
|
|
|
|
*x = SetMenuSortArg{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[0]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SetMenuSortArg) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*SetMenuSortArg) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *SetMenuSortArg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_BaseMenu_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 SetMenuSortArg.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*SetMenuSortArg) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_BaseMenu_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SetMenuSortArg) GetMenuId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MenuId
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SetMenuSortArg) GetDirection() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Direction
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ModelArg struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
@ -70,7 +127,7 @@ type ModelArg struct {
|
|
|
|
|
func (x *ModelArg) Reset() {
|
|
|
|
|
*x = ModelArg{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[0]
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[1]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
@ -83,7 +140,7 @@ func (x *ModelArg) String() string {
|
|
|
|
|
func (*ModelArg) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *ModelArg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[0]
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[1]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
@ -96,7 +153,7 @@ func (x *ModelArg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use ModelArg.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ModelArg) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_BaseMenu_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
return file_BaseMenu_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ModelArg) GetMenuId() string {
|
|
|
|
@ -205,7 +262,7 @@ type QueryArg struct {
|
|
|
|
|
func (x *QueryArg) Reset() {
|
|
|
|
|
*x = QueryArg{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[1]
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[2]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
@ -218,7 +275,7 @@ func (x *QueryArg) String() string {
|
|
|
|
|
func (*QueryArg) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *QueryArg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[1]
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[2]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
@ -231,7 +288,7 @@ func (x *QueryArg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use QueryArg.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*QueryArg) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_BaseMenu_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
return file_BaseMenu_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *QueryArg) GetAppId() string {
|
|
|
|
@ -263,7 +320,7 @@ type Reply struct {
|
|
|
|
|
func (x *Reply) Reset() {
|
|
|
|
|
*x = Reply{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[2]
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[3]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
@ -276,7 +333,7 @@ func (x *Reply) String() string {
|
|
|
|
|
func (*Reply) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *Reply) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[2]
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[3]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
@ -289,7 +346,7 @@ func (x *Reply) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use Reply.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*Reply) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_BaseMenu_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
return file_BaseMenu_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Reply) GetSuccess() bool {
|
|
|
|
@ -333,7 +390,7 @@ type DeleteIdsArg struct {
|
|
|
|
|
func (x *DeleteIdsArg) Reset() {
|
|
|
|
|
*x = DeleteIdsArg{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[3]
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[4]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
@ -346,7 +403,7 @@ func (x *DeleteIdsArg) String() string {
|
|
|
|
|
func (*DeleteIdsArg) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteIdsArg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[3]
|
|
|
|
|
mi := &file_BaseMenu_proto_msgTypes[4]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
@ -359,7 +416,7 @@ func (x *DeleteIdsArg) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use DeleteIdsArg.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*DeleteIdsArg) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_BaseMenu_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
return file_BaseMenu_proto_rawDescGZIP(), []int{4}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DeleteIdsArg) GetIds() []string {
|
|
|
|
@ -374,69 +431,78 @@ var File_BaseMenu_proto protoreflect.FileDescriptor
|
|
|
|
|
var file_BaseMenu_proto_rawDesc = []byte{
|
|
|
|
|
0x0a, 0x0e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
|
0x12, 0x0d, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x22,
|
|
|
|
|
0xfc, 0x02, 0x0a, 0x08, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x12, 0x16, 0x0a, 0x06,
|
|
|
|
|
0x4d, 0x65, 0x6e, 0x75, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x4d, 0x65,
|
|
|
|
|
0x6e, 0x75, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x49, 0x64, 0x49, 0x6e, 0x74, 0x18, 0x02, 0x20,
|
|
|
|
|
0x01, 0x28, 0x05, 0x52, 0x05, 0x49, 0x64, 0x49, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x41, 0x70,
|
|
|
|
|
0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64,
|
|
|
|
|
0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01,
|
|
|
|
|
0x28, 0x09, 0x52, 0x08, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a,
|
|
|
|
|
0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05,
|
|
|
|
|
0x52, 0x0a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
|
|
0x4d, 0x65, 0x6e, 0x75, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
|
|
|
0x4d, 0x65, 0x6e, 0x75, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x6e, 0x75,
|
|
|
|
|
0x43, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x6e, 0x75,
|
|
|
|
|
0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x6e, 0x75, 0x55, 0x72, 0x6c, 0x18,
|
|
|
|
|
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x6e, 0x75, 0x55, 0x72, 0x6c, 0x12, 0x1a,
|
|
|
|
|
0x0a, 0x08, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x63, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
|
0x52, 0x08, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x63, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f,
|
|
|
|
|
0x72, 0x74, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x6f, 0x72, 0x74,
|
|
|
|
|
0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x42, 0x55, 0x73, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05,
|
|
|
|
|
0x52, 0x04, 0x42, 0x55, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70,
|
|
|
|
|
0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
|
0x0f, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65,
|
|
|
|
|
0x12, 0x2c, 0x0a, 0x11, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46,
|
|
|
|
|
0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x46, 0x6f, 0x72,
|
|
|
|
|
0x63, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x40,
|
|
|
|
|
0x0a, 0x08, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x41, 0x70,
|
|
|
|
|
0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64,
|
|
|
|
|
0x12, 0x1e, 0x0a, 0x0a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x02,
|
|
|
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 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, 0x22, 0x20, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
|
|
|
|
0x65, 0x49, 0x64, 0x73, 0x41, 0x72, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x49, 0x64, 0x73, 0x18, 0x01,
|
|
|
|
|
0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x49, 0x64, 0x73, 0x32, 0xdb, 0x02, 0x0a, 0x0e, 0x42, 0x61,
|
|
|
|
|
0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x0b,
|
|
|
|
|
0x47, 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x12, 0x17, 0x2e, 0x42, 0x61,
|
|
|
|
|
0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65,
|
|
|
|
|
0x6c, 0x41, 0x72, 0x67, 0x1a, 0x14, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50,
|
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0b,
|
|
|
|
|
0x41, 0x64, 0x64, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x12, 0x17, 0x2e, 0x42, 0x61,
|
|
|
|
|
0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65,
|
|
|
|
|
0x6c, 0x41, 0x72, 0x67, 0x1a, 0x14, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50,
|
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0e,
|
|
|
|
|
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x12, 0x1b,
|
|
|
|
|
0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44,
|
|
|
|
|
0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x73, 0x41, 0x72, 0x67, 0x1a, 0x14, 0x2e, 0x42, 0x61,
|
|
|
|
|
0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c,
|
|
|
|
|
0x79, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x73,
|
|
|
|
|
0x65, 0x4d, 0x65, 0x6e, 0x75, 0x12, 0x17, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75,
|
|
|
|
|
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x14,
|
|
|
|
|
0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52,
|
|
|
|
|
0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0c, 0x50, 0x61, 0x67, 0x65, 0x42, 0x61,
|
|
|
|
|
0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x12, 0x17, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e,
|
|
|
|
|
0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x1a,
|
|
|
|
|
0x14, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
|
|
|
|
|
0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x38, 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, 0x08, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x01, 0x5a, 0x0f, 0x2e,
|
|
|
|
|
0x3b, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0xa2, 0x02,
|
|
|
|
|
0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
0x46, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x4d, 0x65, 0x6e, 0x75, 0x53, 0x6f, 0x72, 0x74, 0x41, 0x72,
|
|
|
|
|
0x67, 0x12, 0x16, 0x0a, 0x06, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x06, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x44, 0x69, 0x72,
|
|
|
|
|
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x44, 0x69,
|
|
|
|
|
0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xfc, 0x02, 0x0a, 0x08, 0x4d, 0x6f, 0x64, 0x65,
|
|
|
|
|
0x6c, 0x41, 0x72, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x64, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05,
|
|
|
|
|
0x49, 0x64, 0x49, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x49, 0x64, 0x49,
|
|
|
|
|
0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x72, 0x65,
|
|
|
|
|
0x6e, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x61, 0x72, 0x65,
|
|
|
|
|
0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
|
|
|
|
|
0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
|
|
|
|
|
0x74, 0x79, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x6e, 0x75, 0x4e, 0x61, 0x6d, 0x65,
|
|
|
|
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x6e, 0x75, 0x4e, 0x61, 0x6d, 0x65,
|
|
|
|
|
0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x6e, 0x75, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01,
|
|
|
|
|
0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x6e, 0x75, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07,
|
|
|
|
|
0x4d, 0x65, 0x6e, 0x75, 0x55, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4d,
|
|
|
|
|
0x65, 0x6e, 0x75, 0x55, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x63,
|
|
|
|
|
0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x63,
|
|
|
|
|
0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01,
|
|
|
|
|
0x28, 0x05, 0x52, 0x06, 0x53, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x42, 0x55,
|
|
|
|
|
0x73, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x42, 0x55, 0x73, 0x65, 0x12, 0x28,
|
|
|
|
|
0x0a, 0x0f, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d,
|
|
|
|
|
0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x4c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64,
|
|
|
|
|
0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x46, 0x6f, 0x72, 0x63,
|
|
|
|
|
0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x0d, 0x20,
|
|
|
|
|
0x03, 0x28, 0x09, 0x52, 0x11, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
|
|
|
|
0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x40, 0x0a, 0x08, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41,
|
|
|
|
|
0x72, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x49, 0x64, 0x65, 0x6e,
|
|
|
|
|
0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x49, 0x64,
|
|
|
|
|
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 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, 0x22,
|
|
|
|
|
0x20, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x73, 0x41, 0x72, 0x67, 0x12,
|
|
|
|
|
0x10, 0x0a, 0x03, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x49, 0x64,
|
|
|
|
|
0x73, 0x32, 0xa1, 0x03, 0x0a, 0x0e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x4d, 0x61,
|
|
|
|
|
0x6e, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x42, 0x61, 0x73, 0x65, 0x4d,
|
|
|
|
|
0x65, 0x6e, 0x75, 0x12, 0x17, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72,
|
|
|
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x14, 0x2e, 0x42,
|
|
|
|
|
0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70,
|
|
|
|
|
0x6c, 0x79, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x42, 0x61, 0x73, 0x65, 0x4d,
|
|
|
|
|
0x65, 0x6e, 0x75, 0x12, 0x17, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72,
|
|
|
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x14, 0x2e, 0x42,
|
|
|
|
|
0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70,
|
|
|
|
|
0x6c, 0x79, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x61,
|
|
|
|
|
0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x12, 0x1b, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e,
|
|
|
|
|
0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x73,
|
|
|
|
|
0x41, 0x72, 0x67, 0x1a, 0x14, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72,
|
|
|
|
|
0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x41, 0x0a, 0x0e, 0x55,
|
|
|
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x12, 0x17, 0x2e,
|
|
|
|
|
0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f,
|
|
|
|
|
0x64, 0x65, 0x6c, 0x41, 0x72, 0x67, 0x1a, 0x14, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e,
|
|
|
|
|
0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3f,
|
|
|
|
|
0x0a, 0x0c, 0x50, 0x61, 0x67, 0x65, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x12, 0x17,
|
|
|
|
|
0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x51,
|
|
|
|
|
0x75, 0x65, 0x72, 0x79, 0x41, 0x72, 0x67, 0x1a, 0x14, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65,
|
|
|
|
|
0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12,
|
|
|
|
|
0x44, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x4d, 0x65, 0x6e, 0x75, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x1d,
|
|
|
|
|
0x2e, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53,
|
|
|
|
|
0x65, 0x74, 0x4d, 0x65, 0x6e, 0x75, 0x53, 0x6f, 0x72, 0x74, 0x41, 0x72, 0x67, 0x1a, 0x14, 0x2e,
|
|
|
|
|
0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65,
|
|
|
|
|
0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x38, 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,
|
|
|
|
|
0x08, 0x42, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x01, 0x5a, 0x0f, 0x2e, 0x3b, 0x42,
|
|
|
|
|
0x61, 0x73, 0x65, 0x4d, 0x65, 0x6e, 0x75, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0xa2, 0x02, 0x00, 0x62,
|
|
|
|
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
@ -451,26 +517,29 @@ func file_BaseMenu_proto_rawDescGZIP() []byte {
|
|
|
|
|
return file_BaseMenu_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var file_BaseMenu_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
|
|
var file_BaseMenu_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
|
|
|
var file_BaseMenu_proto_goTypes = []interface{}{
|
|
|
|
|
(*ModelArg)(nil), // 0: BaseMenuProto.ModelArg
|
|
|
|
|
(*QueryArg)(nil), // 1: BaseMenuProto.QueryArg
|
|
|
|
|
(*Reply)(nil), // 2: BaseMenuProto.Reply
|
|
|
|
|
(*DeleteIdsArg)(nil), // 3: BaseMenuProto.DeleteIdsArg
|
|
|
|
|
(*SetMenuSortArg)(nil), // 0: BaseMenuProto.SetMenuSortArg
|
|
|
|
|
(*ModelArg)(nil), // 1: BaseMenuProto.ModelArg
|
|
|
|
|
(*QueryArg)(nil), // 2: BaseMenuProto.QueryArg
|
|
|
|
|
(*Reply)(nil), // 3: BaseMenuProto.Reply
|
|
|
|
|
(*DeleteIdsArg)(nil), // 4: BaseMenuProto.DeleteIdsArg
|
|
|
|
|
}
|
|
|
|
|
var file_BaseMenu_proto_depIdxs = []int32{
|
|
|
|
|
0, // 0: BaseMenuProto.BaseMenuManage.GetBaseMenu:input_type -> BaseMenuProto.ModelArg
|
|
|
|
|
0, // 1: BaseMenuProto.BaseMenuManage.AddBaseMenu:input_type -> BaseMenuProto.ModelArg
|
|
|
|
|
3, // 2: BaseMenuProto.BaseMenuManage.DeleteBaseMenu:input_type -> BaseMenuProto.DeleteIdsArg
|
|
|
|
|
0, // 3: BaseMenuProto.BaseMenuManage.UpdateBaseMenu:input_type -> BaseMenuProto.ModelArg
|
|
|
|
|
1, // 4: BaseMenuProto.BaseMenuManage.PageBaseMenu:input_type -> BaseMenuProto.QueryArg
|
|
|
|
|
2, // 5: BaseMenuProto.BaseMenuManage.GetBaseMenu:output_type -> BaseMenuProto.Reply
|
|
|
|
|
2, // 6: BaseMenuProto.BaseMenuManage.AddBaseMenu:output_type -> BaseMenuProto.Reply
|
|
|
|
|
2, // 7: BaseMenuProto.BaseMenuManage.DeleteBaseMenu:output_type -> BaseMenuProto.Reply
|
|
|
|
|
2, // 8: BaseMenuProto.BaseMenuManage.UpdateBaseMenu:output_type -> BaseMenuProto.Reply
|
|
|
|
|
2, // 9: BaseMenuProto.BaseMenuManage.PageBaseMenu:output_type -> BaseMenuProto.Reply
|
|
|
|
|
5, // [5:10] is the sub-list for method output_type
|
|
|
|
|
0, // [0:5] is the sub-list for method input_type
|
|
|
|
|
1, // 0: BaseMenuProto.BaseMenuManage.GetBaseMenu:input_type -> BaseMenuProto.ModelArg
|
|
|
|
|
1, // 1: BaseMenuProto.BaseMenuManage.AddBaseMenu:input_type -> BaseMenuProto.ModelArg
|
|
|
|
|
4, // 2: BaseMenuProto.BaseMenuManage.DeleteBaseMenu:input_type -> BaseMenuProto.DeleteIdsArg
|
|
|
|
|
1, // 3: BaseMenuProto.BaseMenuManage.UpdateBaseMenu:input_type -> BaseMenuProto.ModelArg
|
|
|
|
|
2, // 4: BaseMenuProto.BaseMenuManage.PageBaseMenu:input_type -> BaseMenuProto.QueryArg
|
|
|
|
|
0, // 5: BaseMenuProto.BaseMenuManage.SetMenuSort:input_type -> BaseMenuProto.SetMenuSortArg
|
|
|
|
|
3, // 6: BaseMenuProto.BaseMenuManage.GetBaseMenu:output_type -> BaseMenuProto.Reply
|
|
|
|
|
3, // 7: BaseMenuProto.BaseMenuManage.AddBaseMenu:output_type -> BaseMenuProto.Reply
|
|
|
|
|
3, // 8: BaseMenuProto.BaseMenuManage.DeleteBaseMenu:output_type -> BaseMenuProto.Reply
|
|
|
|
|
3, // 9: BaseMenuProto.BaseMenuManage.UpdateBaseMenu:output_type -> BaseMenuProto.Reply
|
|
|
|
|
3, // 10: BaseMenuProto.BaseMenuManage.PageBaseMenu:output_type -> BaseMenuProto.Reply
|
|
|
|
|
3, // 11: BaseMenuProto.BaseMenuManage.SetMenuSort:output_type -> BaseMenuProto.Reply
|
|
|
|
|
6, // [6:12] is the sub-list for method output_type
|
|
|
|
|
0, // [0:6] 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
|
|
|
|
@ -483,7 +552,7 @@ func file_BaseMenu_proto_init() {
|
|
|
|
|
}
|
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
|
file_BaseMenu_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*ModelArg); i {
|
|
|
|
|
switch v := v.(*SetMenuSortArg); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
@ -495,7 +564,7 @@ func file_BaseMenu_proto_init() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_BaseMenu_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*QueryArg); i {
|
|
|
|
|
switch v := v.(*ModelArg); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
@ -507,7 +576,7 @@ func file_BaseMenu_proto_init() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_BaseMenu_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*Reply); i {
|
|
|
|
|
switch v := v.(*QueryArg); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
@ -519,6 +588,18 @@ func file_BaseMenu_proto_init() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_BaseMenu_proto_msgTypes[3].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
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_BaseMenu_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*DeleteIdsArg); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
@ -537,7 +618,7 @@ func file_BaseMenu_proto_init() {
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: file_BaseMenu_proto_rawDesc,
|
|
|
|
|
NumEnums: 0,
|
|
|
|
|
NumMessages: 4,
|
|
|
|
|
NumMessages: 5,
|
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 1,
|
|
|
|
|
},
|
|
|
|
@ -573,6 +654,8 @@ type BaseMenuManageClient interface {
|
|
|
|
|
UpdateBaseMenu(ctx context.Context, in *ModelArg, opts ...grpc.CallOption) (*Reply, error)
|
|
|
|
|
//查询(不分页)
|
|
|
|
|
PageBaseMenu(ctx context.Context, in *QueryArg, opts ...grpc.CallOption) (*Reply, error)
|
|
|
|
|
//设置菜单排序
|
|
|
|
|
SetMenuSort(ctx context.Context, in *SetMenuSortArg, opts ...grpc.CallOption) (*Reply, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type baseMenuManageClient struct {
|
|
|
|
@ -628,6 +711,15 @@ func (c *baseMenuManageClient) PageBaseMenu(ctx context.Context, in *QueryArg, o
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *baseMenuManageClient) SetMenuSort(ctx context.Context, in *SetMenuSortArg, opts ...grpc.CallOption) (*Reply, error) {
|
|
|
|
|
out := new(Reply)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/BaseMenuProto.BaseMenuManage/SetMenuSort", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BaseMenuManageServer is the server API for BaseMenuManage service.
|
|
|
|
|
type BaseMenuManageServer interface {
|
|
|
|
|
//获取单条
|
|
|
|
@ -640,6 +732,8 @@ type BaseMenuManageServer interface {
|
|
|
|
|
UpdateBaseMenu(context.Context, *ModelArg) (*Reply, error)
|
|
|
|
|
//查询(不分页)
|
|
|
|
|
PageBaseMenu(context.Context, *QueryArg) (*Reply, error)
|
|
|
|
|
//设置菜单排序
|
|
|
|
|
SetMenuSort(context.Context, *SetMenuSortArg) (*Reply, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnimplementedBaseMenuManageServer can be embedded to have forward compatible implementations.
|
|
|
|
@ -661,6 +755,9 @@ func (*UnimplementedBaseMenuManageServer) UpdateBaseMenu(context.Context, *Model
|
|
|
|
|
func (*UnimplementedBaseMenuManageServer) PageBaseMenu(context.Context, *QueryArg) (*Reply, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method PageBaseMenu not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedBaseMenuManageServer) SetMenuSort(context.Context, *SetMenuSortArg) (*Reply, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SetMenuSort not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func RegisterBaseMenuManageServer(s *grpc.Server, srv BaseMenuManageServer) {
|
|
|
|
|
s.RegisterService(&_BaseMenuManage_serviceDesc, srv)
|
|
|
|
@ -756,6 +853,24 @@ func _BaseMenuManage_PageBaseMenu_Handler(srv interface{}, ctx context.Context,
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _BaseMenuManage_SetMenuSort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(SetMenuSortArg)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(BaseMenuManageServer).SetMenuSort(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/BaseMenuProto.BaseMenuManage/SetMenuSort",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(BaseMenuManageServer).SetMenuSort(ctx, req.(*SetMenuSortArg))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _BaseMenuManage_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
ServiceName: "BaseMenuProto.BaseMenuManage",
|
|
|
|
|
HandlerType: (*BaseMenuManageServer)(nil),
|
|
|
|
@ -780,6 +895,10 @@ var _BaseMenuManage_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
MethodName: "PageBaseMenu",
|
|
|
|
|
Handler: _BaseMenuManage_PageBaseMenu_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "SetMenuSort",
|
|
|
|
|
Handler: _BaseMenuManage_SetMenuSort_Handler,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
|
Metadata: "BaseMenu.proto",
|
|
|
|
|