deving
This commit is contained in:
47
proto/check.proto
Normal file
47
proto/check.proto
Normal file
@@ -0,0 +1,47 @@
|
||||
syntax = "proto3";
|
||||
package initial;
|
||||
option go_package = ".;initial";
|
||||
|
||||
|
||||
|
||||
// initial-检测是否有新版或新的配置
|
||||
service Check{
|
||||
|
||||
// HELLO
|
||||
rpc Hello(Crc) returns (StatusReply){}
|
||||
|
||||
// 检查更新
|
||||
rpc Updates(CheckForUpdatesRequest) returns (CheckForUpdatesReply) {}
|
||||
|
||||
|
||||
}
|
||||
|
||||
message Crc{
|
||||
string code = 1;
|
||||
}
|
||||
|
||||
message StatusReply{
|
||||
int64 status = 1; // 状态码
|
||||
string identity=2; // 标识码
|
||||
string message=3; //状态说明
|
||||
int64 timeseq=4; // 响应时间序列
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
message CheckForUpdatesRequest {
|
||||
string app = 1; // 应用程序名称 <必填>
|
||||
string os = 2; // 操作系统 <必填>
|
||||
string arch = 3; // 构架名称 <必填>
|
||||
string version = 4; // 版本号 <必填>
|
||||
}
|
||||
|
||||
|
||||
message CheckForUpdatesReply {
|
||||
string identity = 1; // 唯一码
|
||||
string version = 2; // 版本号
|
||||
string summary = 3; // 更析说明
|
||||
string files = 4; // 更新文件以及文件hash
|
||||
string pubdate =5; // 发布时间
|
||||
}
|
||||
Reference in New Issue
Block a user