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

     1  namespace go baseline
     2  
     3  struct Simple {
     4      1: byte ByteField
     5      2: i64 I64Field (api.js_conv = "")
     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 (api.header = "String")
    14      2: list<Simple> ListSimple
    15      3: double Double (api.path = "double")
    16      4: i32 I32 (api.body = "I32")
    17      5: list<i32> ListI32 (api.query = "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 (api.cookie = "list_i64")
    26      14: byte Byte
    27      15: map<string, Simple> MapStringSimple
    28  }
    29  
    30  service BaselineService {
    31      Simple SimpleMethod(1: Simple req) (api.post = "/simple", api.baseurl = 'example.com')
    32      Nesting NestingMethod(1: Nesting req) (api.post = "/nesting/:double", api.baseurl = 'example.com')
    33  }