feat: 模型列表返回中新增图标地址字段
在模型列表 DTO 中新增 IconUrl 属性,并在 AiChatService 查询映射时返回模型图标地址,支持前端展示模型图标。
This commit is contained in:
@@ -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; }
|
||||||
}
|
}
|
||||||
@@ -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 =>
|
||||||
|
|||||||
Reference in New Issue
Block a user