FileSqlServerSync/Server/Common/Message.cs
ZhaoLei fa64f0c6d5 fix&feat: c# 上传文件存在最大限制。消息优化和更改,现在减少用户使用时的担心,它更加人性化
```csharp
// 使用默认的Kestrel  服务器部署,将默认限制最大文件的上传,使用这个取消限制
 [DisableRequestSizeLimit]
 [HttpPost("/UploadFile")]
 public async Task<IActionResult> UploadFile(IFormFile file)
 {

```
2024-10-29 18:08:34 +08:00

34 lines
491 B
C#

namespace Common;
public enum SyncMsgType
{
Error = 0,
General = 1,
//进度消息
Process = 2,
//文件展示消息
DirFileDiff = 3
}
public enum SyncProcessStep
{
Connect = 1,
DeployProject = 2,
DiffFileAndPack = 3,
PackSqlServer = 4,
UploadAndUnpack = 5,
Publish = 6,
Close = 7
}
public class SyncMsg
{
public SyncMsgType Type { get; set; }
public SyncProcessStep Step { get; set; }
public required string Body { get; set; }
}