13 lines
356 B
Protocol Buffer
13 lines
356 B
Protocol Buffer
|
|
// 通用数据结构
|
|||
|
|
// 一般用于简单的响应,只需要知道是否成功,而不需要特定数据结构
|
|||
|
|
syntax = "proto3";
|
|||
|
|
package main;
|
|||
|
|
option go_package = "./spb";
|
|||
|
|
|
|||
|
|
message GenericResp {
|
|||
|
|
// 代码,用于区分特定错误,无错误为0
|
|||
|
|
int32 Code = 2;
|
|||
|
|
// 消息,成功为ok,失败为错误消息
|
|||
|
|
string message = 4;
|
|||
|
|
}
|