forked from p93542168/wheat-cache
fix(gen-proto): update gen-proto shell
This commit is contained in:
parent
a323f7e8a9
commit
2c11d500fd
|
@ -40,6 +40,7 @@ def mk_structure(cfg_camel):
|
||||||
file.write('syntax = "proto3";\nimport "base.proto";\noption go_package = "pkg/proto";\n')
|
file.write('syntax = "proto3";\nimport "base.proto";\noption go_package = "pkg/proto";\n')
|
||||||
for v in value:
|
for v in value:
|
||||||
file.write('\nmessage ' + v + 'Request ' + '{\n BaseKey key = 1;\n}\n')
|
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()
|
file.close()
|
||||||
|
|
||||||
else: # 如果这个文件存在
|
else: # 如果这个文件存在
|
||||||
|
|
Loading…
Reference in New Issue