github.com/dfklegend/cell2/utils@v0.0.0-20240402033734-a0a9f3d9335d/serialize/proto/msgs/testmsg.proto (about)

     1  syntax = "proto3";
     2  package prototestmsgs;
     3  option go_package = "github.com/dfklegend/cell2/utils/serialize/proto/msgs";
     4  
     5  // 用于测试
     6  message ServiceRequest {
     7    string Sender = 1;   //
     8    int32 ReqId = 2;        // 请求id
     9    string Type = 3;        // 数据类型
    10    bytes Body = 4;         // 序列化数据
    11  }
    12  
    13  message ServiceRequest1 {
    14    string Sender = 1;   //
    15    string Type = 2;        // 数据类型
    16    int32 ReqId = 3;        // 请求id
    17    bytes Body = 4;         // 序列化数据
    18  }
    19  
    20  message ServiceRequest2 {
    21    int32 ReqId = 1;        // 请求id
    22    string Sender = 2;   //
    23    string Type = 3;        // 数据类型
    24    bytes Body = 4;         // 序列化数据
    25  }
    26  
    27  message ServiceResponse {
    28    int32 ReqId = 1;
    29    string Type = 2;        // 数据类型
    30    bytes Body = 3;         // 序列化数据
    31    int32 ErrCode = 4;      // 0 - succ
    32    string ErrInfo = 5;     // 错误信息
    33  }
    34  
    35  // 用于单元测试
    36  message TestHello {
    37    int32 I = 1;
    38    string S = 2;
    39  }