13 lines
356 B
Protocol Buffer
Raw Permalink 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 main;
option go_package = "./spb";
message GenericResp {
// 代码用于区分特定错误无错误为0
int32 Code = 2;
// 消息成功为ok失败为错误消息
string message = 4;
}