fix(gen-proto): update gen-proto shell

This commit is contained in:
bandl 2021-10-03 16:22:34 +08:00
parent a323f7e8a9
commit 2c11d500fd
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ def mk_structure(cfg_camel):
file.write('syntax = "proto3";\nimport "base.proto";\noption go_package = "pkg/proto";\n')
for v in value:
file.write('\nmessage ' + v + 'Request ' + '{\n BaseKey key = 1;\n}\n')
file.write('\nmessage ' + v + 'Response ' + '{\n int64 update_size = 1;\n}\n')
file.close()
else: # 如果这个文件存在