Skip to content

Commit

Permalink
Merge branch 'main' into feat/sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyJavaBean committed May 20, 2024
2 parents 45be7f2 + 5ef2d54 commit 0125858
Show file tree
Hide file tree
Showing 48 changed files with 4,555 additions and 2,165 deletions.
4 changes: 2 additions & 2 deletions descriptor.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ struct ServiceDescriptor{
2:required string name
3:required list<MethodDescriptor> methods
4:required map<string,list<string>> annotations
5:required string comments
5:required string comments
6:optional map<string,string> extra // extra info
7:optional ServiceDescriptor parent
7:optional string base = ""
}

struct FileDescriptor{
Expand Down
2 changes: 1 addition & 1 deletion descriptor_code_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

go run . -g go:gen_type_meta -o . descriptor.thrift
go run . -g go:gen_type_meta,no_processor -o . descriptor.thrift
4 changes: 1 addition & 3 deletions extension/thrift_option/option_idl/test.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,8 @@ struct PersonC{
entity.person_basic_info.valuei8 = '8'
entity.person_basic_info.valuei16 = '16'
entity.person_struct_info.valuestruct = '{email:"empty email"}'
// 简写不建议这样写,而且这行会被下面那行覆盖掉
entity.person_struct_info.valueteststruct.innerStruct = "{name: '123'},innerStruct:{email:'456'}"
entity.person_struct_info.valueteststruct.innerStruct.email = "no email"
entity.person_struct_info.valueteststruct.name = "lee"
entity.person_struct_info.valueteststruct.innerStruct.email = "no email"
)

enum MyEnum{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0125858

Please sign in to comment.