feat: 模型列表返回中新增图标地址字段

在模型列表 DTO 中新增 IconUrl 属性,并在 AiChatService 查询映射时返回模型图标地址,支持前端展示模型图标。
This commit is contained in:
ccnetcore
2026-01-11 13:53:33 +08:00
parent 5e37859157
commit a2da4c36fe
2 changed files with 6 additions and 0 deletions

View File

@@ -43,4 +43,9 @@ public class ModelGetListOutput
/// 模型Api类型现支持同一个模型id多种接口格式 /// 模型Api类型现支持同一个模型id多种接口格式
/// </summary> /// </summary>
public ModelApiTypeEnum ModelApiType { get; set; } public ModelApiTypeEnum ModelApiType { get; set; }
/// <summary>
/// 模型图标URL
/// </summary>
public string? IconUrl { get; set; }
} }

View File

@@ -110,6 +110,7 @@ public class AiChatService : ApplicationService
Remark = x.Description, Remark = x.Description,
IsPremiumPackage = x.IsPremium, IsPremiumPackage = x.IsPremium,
ModelApiType = x.ModelApiType, ModelApiType = x.ModelApiType,
IconUrl = x.IconUrl
}).ToListAsync(); }).ToListAsync();
output.ForEach(x => output.ForEach(x =>