edb/proto/api.proto

28 lines
461 B
Protocol Buffer
Raw Permalink Normal View History

2020-03-04 10:09:19 +00:00
syntax = "proto3";
2020-03-04 21:12:38 +00:00
package goproto;
2020-03-04 10:09:19 +00:00
// 服务端定义
service EasyData {
// 服务端返馈信息方法
2020-03-05 10:10:40 +00:00
rpc CreateTable(TableRequest) returns (Reply) {}
2020-03-04 10:09:19 +00:00
}
// 包含用户名的请求信息
2020-03-05 10:10:40 +00:00
message Field {
string name = 1;
string type = 2;
int64 size = 3;
}
2020-03-04 10:09:19 +00:00
message TableRequest {
2020-03-05 10:10:40 +00:00
string name = 1;
repeated Field field = 2;
2020-03-04 10:09:19 +00:00
}
// 服务端响应信息
2020-03-05 10:10:40 +00:00
message Reply {
int64 status = 1;
string msg = 2;
repeated string content = 3;
2020-03-04 10:09:19 +00:00
}