github.com/cloudwego/kitex@v0.9.0/pkg/generic/http_test/idl/http_annotation.thrift (about) 1 namespace go http 2 3 struct ReqItem{ 4 1: optional i64 id(api.js_conv = '', go.tag = "json:\"MyID\"") 5 2: optional string text 6 } 7 8 struct BizRequest { 9 1: optional i64 v_int64(api.query = 'v_int64', api.vd = "$>0&&$<200") 10 2: optional string text(api.body = 'text') 11 3: optional i32 token(api.header = 'token') 12 4: optional map<i64, ReqItem> req_items_map (api.body='req_items_map') 13 5: optional ReqItem some(api.body = 'some') 14 6: optional list<string> req_items(api.query = 'req_items') 15 7: optional i32 api_version(api.path = 'action') 16 8: optional i64 uid(api.path = 'biz') 17 9: optional list<i64> cids(api.query = 'cids') 18 10: optional list<string> vids(api.query = 'vids') 19 11: optional string cookie (api.cookie = "cookie"), 20 } 21 22 struct RspItem{ 23 1: optional i64 item_id 24 2: optional string text 25 } 26 27 struct BizResponse { 28 1: optional map<i64, RspItem> rsp_items(api.body='rsp_items') 29 2: optional i32 v_enum(api.none = '') 30 3: optional list<RspItem> rsp_item_list(api.body = 'rsp_item_list') 31 4: optional i32 http_code(api.http_code = '') 32 5: optional bool b(api.header='b') 33 6: optional i8 eight(api.header='eight') 34 7: optional i16 sixteen(api.header='sixteen') 35 8: optional i32 thirtytwo(api.header='thirtytwo') 36 9: optional i64 sixtyfour(api.header='sixtyfour') 37 10: optional double d(api.header='d') 38 11: optional string T(api.header= 'T') 39 12: optional list<i64> item_count(api.header = 'item_count') 40 13: optional map<string, i64> header_map(api.header = 'header_map') 41 14: optional RspItem header_struct(api.header = 'header_struct') 42 15: optional set<string> string_set(api.header = 'string_set') 43 } 44 45 service BizService { 46 BizResponse BizMethod1(1: BizRequest req)(api.get = '/life/client/:action/:biz', api.baseurl = 'ib.snssdk.com', api.param = 'true') 47 }