HM-SPMS/product/src/idl_files/FileSyncBySvn.proto
2025-03-12 14:17:53 +08:00

45 lines
1.9 KiB
Protocol Buffer
Raw 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.

//========================================================================================
// @file FileSyncBySvn.proto
// @brief 基于SVN的文件同步服务结构体
// @author chenmeng
//========================================================================================
syntax="proto2";
package iot_idl;
enum enFileSyncMsgType
{
SVN_COMMIT_SUCCESS =1; //成功提交的消息类型
SVN_UPDATE_SUCCESS =2; //成功更新文件消息类型
}
message fileSyncNotice
{
repeated string relativeFileName =1; //相对路径的文件名可以是多个相对于ISCS6000_HOME
required string hostName =2; //发送端的主机名
required int32 domainId =3; //发送端域ID
required int32 locationId =4; //发送locationID
required int32 appId =5; //发送端的应用ID
repeated string others =6; //其他信息,备用
}
enum enUpdateType
{
UPDATE_ADD =1; //增加 成功
UPDATE_DELETE =2; //删除 成功
UPDATE_UPDATE =3; //修改后的更新 成功
UPDATE_CONFLICT =4; //冲突---需要人工介入
UPDATE_MERGE =5; //合并成功 成功
}
//指的是文件是增加、删除
message messageFileInfo
{
required string fileName =1; //文件名
required enUpdateType type =2; //类型见enUpdateType的定义
}
message updateSuccessNotice
{
repeated messageFileInfo fileInfo =1; //更新的文件名和
}