feat(proto):add proto auto_tool

This commit is contained in:
yu_lang 2021-09-21 09:44:22 +08:00
parent f410738b27
commit 53fe26db48
2 changed files with 1 additions and 4 deletions

View File

@ -1,7 +1,6 @@
syntax = "proto3";
import "base.proto";
option go_package = "pkg/proto";
message LSetRequest {
BaseKey key = 1;
}

View File

@ -24,8 +24,6 @@ def load_conf():
key = to_camel(key).lower()
cfg_camel[key] = [to_camel(v) for v in val]
# print(cfg_camel)
return cfg, cfg_camel
@ -73,7 +71,6 @@ def mkdir(cfg_camel):
else: # 如果这个文件存在
with open(proto_path) as f:
line = f.readlines()
# print(line)
f.close()
for v in value:
function = v + 'Request'
@ -109,6 +106,7 @@ def mkdir(cfg_camel):
file.write(l)
file.close()
if __name__ == "__main__":
conf, cfg_camel = load_conf()
print(cfg_camel)