[feat] Partially implemented transmission system

This commit is contained in:
acite
2025-08-28 00:34:26 +08:00
parent 64aa7a2fdd
commit e27058626e
18 changed files with 512 additions and 64 deletions

View File

@@ -7,6 +7,7 @@ using Abyss.Model;
using Microsoft.Extensions.Caching.Memory;
using NSec.Cryptography;
using SQLite;
using Task = System.Threading.Tasks.Task;
namespace Abyss.Components.Services;
@@ -27,6 +28,8 @@ public class UserService
_database.CreateTableAsync<User>().Wait();
var rootUser = _database.Table<User>().Where(x => x.Name == "root").FirstOrDefaultAsync().Result;
_cache.Set("acite", $"acite@127.0.0.1", DateTimeOffset.Now.AddDays(1));
if (rootUser == null)
{
var key = GenerateKeyPair();