|
@@ -335,6 +335,58 @@ func (ForagePlanType_Kind) EnumDescriptor() ([]byte, []int) {
|
|
return file_backend_operation_enum_proto_rawDescGZIP(), []int{5, 0}
|
|
return file_backend_operation_enum_proto_rawDescGZIP(), []int{5, 0}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+type DataSource_Kind int32
|
|
|
|
+
|
|
|
|
+const (
|
|
|
|
+ DataSource_INVALID DataSource_Kind = 0 // 无
|
|
|
|
+ DataSource_BACKGROUND_ADD DataSource_Kind = 1 // 后台手动添加
|
|
|
|
+ DataSource_EXCEL_IMPORT DataSource_Kind = 2 // excel报表导入
|
|
|
|
+ DataSource_FROM_PASTURE DataSource_Kind = 3 // 来自牧场
|
|
|
|
+)
|
|
|
|
+
|
|
|
|
+// Enum value maps for DataSource_Kind.
|
|
|
|
+var (
|
|
|
|
+ DataSource_Kind_name = map[int32]string{
|
|
|
|
+ 0: "INVALID",
|
|
|
|
+ 1: "BACKGROUND_ADD",
|
|
|
|
+ 2: "EXCEL_IMPORT",
|
|
|
|
+ 3: "FROM_PASTURE",
|
|
|
|
+ }
|
|
|
|
+ DataSource_Kind_value = map[string]int32{
|
|
|
|
+ "INVALID": 0,
|
|
|
|
+ "BACKGROUND_ADD": 1,
|
|
|
|
+ "EXCEL_IMPORT": 2,
|
|
|
|
+ "FROM_PASTURE": 3,
|
|
|
|
+ }
|
|
|
|
+)
|
|
|
|
+
|
|
|
|
+func (x DataSource_Kind) Enum() *DataSource_Kind {
|
|
|
|
+ p := new(DataSource_Kind)
|
|
|
|
+ *p = x
|
|
|
|
+ return p
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x DataSource_Kind) String() string {
|
|
|
|
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (DataSource_Kind) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
+ return file_backend_operation_enum_proto_enumTypes[6].Descriptor()
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (DataSource_Kind) Type() protoreflect.EnumType {
|
|
|
|
+ return &file_backend_operation_enum_proto_enumTypes[6]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x DataSource_Kind) Number() protoreflect.EnumNumber {
|
|
|
|
+ return protoreflect.EnumNumber(x)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// Deprecated: Use DataSource_Kind.Descriptor instead.
|
|
|
|
+func (DataSource_Kind) EnumDescriptor() ([]byte, []int) {
|
|
|
|
+ return file_backend_operation_enum_proto_rawDescGZIP(), []int{6, 0}
|
|
|
|
+}
|
|
|
|
+
|
|
// 字段类型
|
|
// 字段类型
|
|
type IsShow struct {
|
|
type IsShow struct {
|
|
state protoimpl.MessageState
|
|
state protoimpl.MessageState
|
|
@@ -568,6 +620,44 @@ func (*ForagePlanType) Descriptor() ([]byte, []int) {
|
|
return file_backend_operation_enum_proto_rawDescGZIP(), []int{5}
|
|
return file_backend_operation_enum_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+type DataSource struct {
|
|
|
|
+ state protoimpl.MessageState
|
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *DataSource) Reset() {
|
|
|
|
+ *x = DataSource{}
|
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
|
+ mi := &file_backend_operation_enum_proto_msgTypes[6]
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (x *DataSource) String() string {
|
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (*DataSource) ProtoMessage() {}
|
|
|
|
+
|
|
|
|
+func (x *DataSource) ProtoReflect() protoreflect.Message {
|
|
|
|
+ mi := &file_backend_operation_enum_proto_msgTypes[6]
|
|
|
|
+ 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 DataSource.ProtoReflect.Descriptor instead.
|
|
|
|
+func (*DataSource) Descriptor() ([]byte, []int) {
|
|
|
|
+ return file_backend_operation_enum_proto_rawDescGZIP(), []int{6}
|
|
|
|
+}
|
|
|
|
+
|
|
var File_backend_operation_enum_proto protoreflect.FileDescriptor
|
|
var File_backend_operation_enum_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_backend_operation_enum_proto_rawDesc = []byte{
|
|
var file_backend_operation_enum_proto_rawDesc = []byte{
|
|
@@ -607,8 +697,14 @@ var file_backend_operation_enum_proto_rawDesc = []byte{
|
|
0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44,
|
|
0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44,
|
|
0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4f, 0x52, 0x4b, 0x4c, 0x49, 0x46, 0x54, 0x10, 0x01,
|
|
0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4f, 0x52, 0x4b, 0x4c, 0x49, 0x46, 0x54, 0x10, 0x01,
|
|
0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x4e, 0x43, 0x45, 0x4e, 0x54, 0x52, 0x41, 0x54, 0x45, 0x10,
|
|
0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x4e, 0x43, 0x45, 0x4e, 0x54, 0x52, 0x41, 0x54, 0x45, 0x10,
|
|
- 0x02, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x3b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
- 0x50, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
|
+ 0x02, 0x22, 0x59, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22,
|
|
|
|
+ 0x4b, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c,
|
|
|
|
+ 0x49, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x41, 0x43, 0x4b, 0x47, 0x52, 0x4f, 0x55,
|
|
|
|
+ 0x4e, 0x44, 0x5f, 0x41, 0x44, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x58, 0x43, 0x45,
|
|
|
|
+ 0x4c, 0x5f, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x52,
|
|
|
|
+ 0x4f, 0x4d, 0x5f, 0x50, 0x41, 0x53, 0x54, 0x55, 0x52, 0x45, 0x10, 0x03, 0x42, 0x0f, 0x5a, 0x0d,
|
|
|
|
+ 0x2e, 0x3b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x62, 0x62, 0x06, 0x70,
|
|
|
|
+ 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
}
|
|
|
|
|
|
var (
|
|
var (
|
|
@@ -623,8 +719,8 @@ func file_backend_operation_enum_proto_rawDescGZIP() []byte {
|
|
return file_backend_operation_enum_proto_rawDescData
|
|
return file_backend_operation_enum_proto_rawDescData
|
|
}
|
|
}
|
|
|
|
|
|
-var file_backend_operation_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
|
|
|
|
-var file_backend_operation_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
|
|
|
|
+var file_backend_operation_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 7)
|
|
|
|
+var file_backend_operation_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
var file_backend_operation_enum_proto_goTypes = []interface{}{
|
|
var file_backend_operation_enum_proto_goTypes = []interface{}{
|
|
(IsShow_Kind)(0), // 0: backend.operation.IsShow.Kind
|
|
(IsShow_Kind)(0), // 0: backend.operation.IsShow.Kind
|
|
(CattleCategoryParent_Kind)(0), // 1: backend.operation.CattleCategoryParent.Kind
|
|
(CattleCategoryParent_Kind)(0), // 1: backend.operation.CattleCategoryParent.Kind
|
|
@@ -632,12 +728,14 @@ var file_backend_operation_enum_proto_goTypes = []interface{}{
|
|
(ForageSource_Kind)(0), // 3: backend.operation.ForageSource.Kind
|
|
(ForageSource_Kind)(0), // 3: backend.operation.ForageSource.Kind
|
|
(JumpDelaType_Kind)(0), // 4: backend.operation.JumpDelaType.Kind
|
|
(JumpDelaType_Kind)(0), // 4: backend.operation.JumpDelaType.Kind
|
|
(ForagePlanType_Kind)(0), // 5: backend.operation.ForagePlanType.Kind
|
|
(ForagePlanType_Kind)(0), // 5: backend.operation.ForagePlanType.Kind
|
|
- (*IsShow)(nil), // 6: backend.operation.IsShow
|
|
|
|
- (*CattleCategoryParent)(nil), // 7: backend.operation.CattleCategoryParent
|
|
|
|
- (*ForageCategoryParent)(nil), // 8: backend.operation.ForageCategoryParent
|
|
|
|
- (*ForageSource)(nil), // 9: backend.operation.ForageSource
|
|
|
|
- (*JumpDelaType)(nil), // 10: backend.operation.JumpDelaType
|
|
|
|
- (*ForagePlanType)(nil), // 11: backend.operation.ForagePlanType
|
|
|
|
|
|
+ (DataSource_Kind)(0), // 6: backend.operation.DataSource.Kind
|
|
|
|
+ (*IsShow)(nil), // 7: backend.operation.IsShow
|
|
|
|
+ (*CattleCategoryParent)(nil), // 8: backend.operation.CattleCategoryParent
|
|
|
|
+ (*ForageCategoryParent)(nil), // 9: backend.operation.ForageCategoryParent
|
|
|
|
+ (*ForageSource)(nil), // 10: backend.operation.ForageSource
|
|
|
|
+ (*JumpDelaType)(nil), // 11: backend.operation.JumpDelaType
|
|
|
|
+ (*ForagePlanType)(nil), // 12: backend.operation.ForagePlanType
|
|
|
|
+ (*DataSource)(nil), // 13: backend.operation.DataSource
|
|
}
|
|
}
|
|
var file_backend_operation_enum_proto_depIdxs = []int32{
|
|
var file_backend_operation_enum_proto_depIdxs = []int32{
|
|
0, // [0:0] is the sub-list for method output_type
|
|
0, // [0:0] is the sub-list for method output_type
|
|
@@ -725,14 +823,26 @@ func file_backend_operation_enum_proto_init() {
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ file_backend_operation_enum_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
+ switch v := v.(*DataSource); i {
|
|
|
|
+ case 0:
|
|
|
|
+ return &v.state
|
|
|
|
+ case 1:
|
|
|
|
+ return &v.sizeCache
|
|
|
|
+ case 2:
|
|
|
|
+ return &v.unknownFields
|
|
|
|
+ default:
|
|
|
|
+ return nil
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
type x struct{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_backend_operation_enum_proto_rawDesc,
|
|
RawDescriptor: file_backend_operation_enum_proto_rawDesc,
|
|
- NumEnums: 6,
|
|
|
|
- NumMessages: 6,
|
|
|
|
|
|
+ NumEnums: 7,
|
|
|
|
+ NumMessages: 7,
|
|
NumExtensions: 0,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
NumServices: 0,
|
|
},
|
|
},
|