1 Star 0 Fork 12

chnj1981/SwooleDistributed

forked from 白_猫/SwooleDistributed 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
protobuf.proto 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
白_猫 提交于 2016-09-02 12:15 . version 1.1
package youwo;
import "php.proto";
import "descriptor.proto";
option (php.package) = "app.Protobuf";
enum CMD_SERVICE{
Account = 0x00000001;
}
enum CMD_METHOD {
Login = 0x00000001;
}
message Message
{
required CMD_SERVICE cmd_service = 1;
required CMD_METHOD cmd_method = 2;
required int32 token = 3;
optional Request request = 4;
optional Response response = 5;
}
message Request
{// 包含所有的Request消息
optional Login_Request mLoginRequest = 1;
}
message Response
{// 包含所有的Response消息
optional Login_Response mLoginResponse = 1;
}
message Login_Request
{
optional CMD_SERVICE cmd_service = 100 [default = Account];
optional CMD_METHOD cmd_method = 101 [default = Login];
required string username = 1;
required string password = 2;
}
message Login_Response
{
optional CMD_SERVICE cmd_service = 100 [default = Account];
optional CMD_METHOD cmd_method = 101 [default = Login];
required string username = 1;
required string password = 2;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/chnj1981/SwooleDistributed.git
git@gitee.com:chnj1981/SwooleDistributed.git
chnj1981
SwooleDistributed
SwooleDistributed
master

搜索帮助