syntax = "proto3"; package initialize; option go_package = "./;initialize"; // initialize-数据 service Data{ // 获取应用的相关配置信息 rpc Configure(ConfigureRequest) returns (ConfigureReply) {} // 系统区域数据 rpc Areas(Empty) returns (AreasReply) {} // 系统标签数据 rpc Tags(Empty) returns (TagsReply) {} } message Empty{ } message ConfigureRequest { string app = 1; // 应用程序名称 <必填> string os = 2; // 操作系统 <必填> } message ConfigureReply { repeated ConfigureItem data=1; // 配置参数列表 } message ConfigureItem { string Identity=1; //唯一标识 string key=2; //配置键 string value=3; //配置值 int64 version=4; //版本号 } message AreasReply { repeated AreasItem areas=1; } message AreasItem { string id =1; string pid=2; string deep=3; string name=4; string pinyin_prefix=5; string pinyin=6; string ext_id=7; string ext_name=8; } message TagsReply { repeated TagsItem tags=1; } message TagsItem { int64 id =1; int32 type=2; string key=3; string title=4; string remark=5; string icon=6; }