github.com/cloudwego/kitex@v0.9.0/pkg/generic/json_test/idl/baseline.thrift (about)

     1  namespace go baseline
     2  
     3  struct Simple {
     4      1: byte ByteField
     5      2: i64 I64Field
     6      3: double DoubleField
     7      4: i32 I32Field
     8      5: string StringField,
     9      6: binary BinaryField
    10  }
    11  
    12  struct Nesting {
    13      1: string String
    14      2: list<Simple> ListSimple
    15      3: double Double
    16      4: i32 I32
    17      5: list<i32> ListI32
    18      6: i64 I64
    19      7: map<string, string> MapStringString
    20      8: Simple SimpleStruct
    21      9: map<i32, i64> MapI32I64
    22      10: list<string> ListString
    23      11: binary Binary
    24      12: map<i64, string> MapI64String
    25      13: list<i64> ListI64
    26      14: byte Byte
    27      15: map<string, Simple> MapStringSimple
    28  }
    29  
    30  service BaselineService {
    31      Simple SimpleMethod(1: Simple req)
    32      Nesting NestingMethod(1: Nesting req)
    33  }