cmdproto 0.1.0

Protobuf message definitions for WebSocket-based applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
syntax = "proto3";
package cmdproto.msg;

// cmd 1001 - 登录

// client → server
message M1001Tos {
    string username = 1;
    string password = 2;
}

// server → client
message M1001Toc {
    int32  code    = 1;  // 0 = 成功
    string token   = 2;
    string message = 3;
}