FileSqlServerSync/Server/Common/Message.cs

34 lines
491 B
C#
Raw Permalink Normal View History

2024-07-31 09:14:07 +00:00
namespace Common;
2024-09-05 01:59:57 +00:00
public enum SyncMsgType
2024-07-31 09:14:07 +00:00
{
2024-09-05 01:59:57 +00:00
Error = 0,
General = 1,
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
2024-09-05 01:59:57 +00:00
Process = 2,
//<2F>ļ<EFBFBD>չʾ<D5B9><CABE>Ϣ
DirFileDiff = 3
2024-09-05 01:59:57 +00:00
}
2024-09-05 01:59:57 +00:00
public enum SyncProcessStep
{
Connect = 1,
DeployProject = 2,
DiffFileAndPack = 3,
PackSqlServer = 4,
UploadAndUnpack = 5,
Publish = 6,
Close = 7
2024-09-05 01:59:57 +00:00
}
public class SyncMsg
2024-09-05 01:59:57 +00:00
{
public SyncMsgType Type { get; set; }
2024-09-05 01:59:57 +00:00
public SyncProcessStep Step { get; set; }
2024-09-05 01:59:57 +00:00
public required string Body { get; set; }
2024-07-31 09:14:07 +00:00
}