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

     1  namespace go kitex.test.server
     2  
     3  enum TestEnum {
     4       Zero = 0
     5       First = 1
     6  }
     7  
     8  struct Elem {
     9      1: bool ok
    10  }
    11  
    12  struct Message {
    13      1: i8 tiny
    14      2: i64 large
    15      3: TestEnum tenum
    16      4: string str
    17      5: map<string, Elem> elems
    18      6: list<Elem> els
    19      // 7: map<i32, Elem> els = {12: {"ok": true}}
    20  }
    21  
    22  service ExampleService {
    23      Message Echo(1: Message req) (api.get = '/Echo', api.baseurl = 'example.com')
    24  }