迁移到 Ant Design 并优化 DNS 接口

将项目从 Fluent UI 迁移到 Ant Design Blazor:
- 替换 UI 组件,更新样式和脚本。
- 移除 Fluent UI 相关依赖,添加 Ant Design 依赖。

优化 DNS 解析接口:
- 将解析接口从 POST 改为 GET,简化参数结构。
- 更新 `DnsResponse` 和配置文件结构。

数据库模型优化:
- 为 JSON 数据存储添加 `JArray` 映射支持。

初始化逻辑重构:
- 简化 `AutoInit` 初始化逻辑,提升代码可读性。

其他改动:
- 升级依赖包版本。
- 移除无用命名空间和属性。
This commit is contained in:
Megghy
2025-09-25 17:15:57 +08:00
parent 5863336e20
commit b2c648c3e6
14 changed files with 256 additions and 324 deletions

View File

@@ -2,6 +2,7 @@
using System.Web;
using FreeSql.DataAnnotations;
using MegghysAPI.Attributes;
using Newtonsoft.Json.Linq;
using static MegghysAPI.Modules.PixivFavoriteDownloader.Pixiv;
namespace MegghysAPI.Modules
@@ -184,19 +185,18 @@ namespace MegghysAPI.Modules
public long Id { get; set; }
public PixivImgType Type { get; set; }
public string Title { get; set; }
[JsonMap]
public PixivRestrictInfo Restrict { get; set; }
[Column(DbType = "text")]
public string Description { get; set; }
[JsonMap]
public PixivAuthorInfo Author { get; set; }
public bool R18 => Restrict != PixivRestrictInfo.Normal;
[JsonMap]
[JsonMap, Column(MapType = typeof(JArray))]
public List<PixivTagInfo> Tags { get; set; } = [];
[JsonMap]
[JsonMap, Column(MapType = typeof(JArray))]
public List<PixivURLInfo> URL { get; set; } = [];
[JsonMap]
[JsonMap, Column(MapType = typeof(JArray))]
public List<PixivURLInfo> S3URL { get; set; } = [];
public int Width { get; set; }
public int Height { get; set; }