mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-15 10:34:14 +01:00
add EF core db migrations, add banned + forbidden uploads db entries, adjust authentication to include characternamehash to check for bans, prepare for message sending from client to other clients
This commit is contained in:
parent
1ac5e2655e
commit
906f719879
20 changed files with 1026 additions and 61 deletions
|
|
@ -7,5 +7,6 @@
|
|||
public bool IsSynced { get; set; }
|
||||
public bool IsPausedFromOthers { get; set; }
|
||||
public bool IsRemoved { get; set; }
|
||||
public bool AllowReceiveMessages { get; set; }
|
||||
}
|
||||
}
|
||||
17
MareSynchronosServer/MareSynchronos.API/DownloadFileDto.cs
Normal file
17
MareSynchronosServer/MareSynchronos.API/DownloadFileDto.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MareSynchronos.API
|
||||
{
|
||||
public class DownloadFileDto
|
||||
{
|
||||
public bool FileExists { get; set; } = true;
|
||||
public string Hash { get; set; } = string.Empty;
|
||||
public long Size { get; set; } = 0;
|
||||
public bool IsForbidden { get; set; } = false;
|
||||
public string ForbiddenBy { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
15
MareSynchronosServer/MareSynchronos.API/UploadFileDto.cs
Normal file
15
MareSynchronosServer/MareSynchronos.API/UploadFileDto.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MareSynchronos.API
|
||||
{
|
||||
public class UploadFileDto
|
||||
{
|
||||
public string Hash { get; set; } = string.Empty;
|
||||
public bool IsForbidden { get; set; } = false;
|
||||
public string ForbiddenBy { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue