1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
syntax = "proto3"; package default; ///WorkwechatText服务的传递参数 message DefaultAction { string result=1; ///返回的结果 string error=2; ///返回的错误 } ///WorkwechatText服务 service DefaultService { ///固定方法 rpc Flow (DefaultAction) returns (DefaultAction); }