13 lines
356 B
Protocol Buffer
Raw Normal View History

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