syntax = "proto3"; package goproto; // 服务端定义 service EasyData { // 服务端返馈信息方法 rpc CreateTable(TableRequest) returns (Reply) {} } // 包含用户名的请求信息 message Field { string name = 1; string type = 2; int64 size = 3; } message TableRequest { string name = 1; repeated Field field = 2; } // 服务端响应信息 message Reply { int64 status = 1; string msg = 2; repeated string content = 3; }