21 lines
339 B
Protocol Buffer
21 lines
339 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package base;
|
|
option go_package="base";
|
|
|
|
message WSData {
|
|
uint64 id = 1; // 消息id, 自增
|
|
uint32 message_type = 2; // 消息类型
|
|
uint32 client_code = 3; //
|
|
uint32 error_code = 4; //
|
|
bytes data = 5; // 业务数据
|
|
}
|
|
|
|
message UserInfo {
|
|
string name = 1;
|
|
uint64 user_id = 2;
|
|
string head_url = 3;
|
|
}
|
|
|
|
|