kunpolibrary/demo/proto/CommonMessage.proto
2025-07-28 14:26:19 +08:00

19 lines
453 B
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package com.kunpo.proto;
message CommonMessage {
// 请求命令类型: 0 心跳1 业务
int32 cmdCode=1;
// 业务路由
int32 protocolId=2;
// 业务数据
bytes data=3;
// 响应码: 0:成功, 其他为有错误
sint32 responseStatus=4;
// 错误消息、异常消息
string msg=5;
// 消息标记号;由前端请求时设置,服务器响应时会携带上
int32 msgId=6;
}