mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-09 16:50:25 +08:00
31 lines
553 B
Protocol Buffer
31 lines
553 B
Protocol Buffer
|
|
syntax = "proto3";
|
||
|
|
option go_package = "./pb";
|
||
|
|
|
||
|
|
package pb;
|
||
|
|
|
||
|
|
import "rpc_messages.proto";
|
||
|
|
|
||
|
|
// 文件相关服务
|
||
|
|
service FileService {
|
||
|
|
// 创建文件
|
||
|
|
rpc createFile (CreateFileRequest) returns (CreateFileResponse);
|
||
|
|
|
||
|
|
// 将文件置为已完成
|
||
|
|
rpc updateFileFinished (UpdateFileFinishedRequest) returns (RPCUpdateSuccess);
|
||
|
|
}
|
||
|
|
|
||
|
|
// 创建文件
|
||
|
|
message CreateFileRequest {
|
||
|
|
string filename = 1;
|
||
|
|
int64 size = 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
message CreateFileResponse {
|
||
|
|
int64 fileId = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
// 将文件置为已完成
|
||
|
|
message UpdateFileFinishedRequest {
|
||
|
|
int64 fileId = 1;
|
||
|
|
}
|