Skip to content

Commit

Permalink
Create base.thrift
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jin-gou authored Dec 6, 2024
1 parent a299116 commit ba6d706
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions bizdemo/easy_note/idl/base.thrift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
namespace cpp base
namespace py base
namespace go base
namespace java base

struct TrafficEnv {
1: bool Open = false,
2: string Env = "",
}

struct Base {
1: string LogID = "",
2: string Caller = "",
3: string Addr = "",
4: string client = "",
5: optional TrafficEnv trafficEnv,
6: optional map<string, string> extra,
}

struct BaseResp {
1: string StatusMessage = "",
2: i32 StatusCode = 0,
3: optional map<string, string> Extra,
}

0 comments on commit ba6d706

Please sign in to comment.