123456789101112131415161718192021222324252627 |
- syntax = "proto3";
- package codeservice;
- option go_package = "./codeservice";
- message Request {
- }
- message Response {
- int64 ErrorCode = 1; // 响应代码
- string ErrorMsg = 2; // 响应信息
- TypeStruct Data = 3;//数据
- }
- //返回数据
- message TypeStruct{
- map<string,string> Area = 1;
- map<string,string> City = 2;
- map<string,string> Subtype = 3;
- map<string,string> Buyerclass = 4;
- map<string,string> Subscopeclass = 5;
- }
- service CodeService {
- rpc CodeTransformation(Request) returns(Response);
- }
|