Files
QYZH.InteractiveMagazine/QYZH.InteractiveMagazine.Infrastructure/SDK/SDKExtensions.cs
glz badf68a8f8 feat: 新增宠物封面图支持,优化补偿任务查询与宠物模板创建流程
1.  新增PetSkinImageTypeEnum.Cover枚举,添加封面图类型支持
2.  为PetSkin、PetTemplate实体添加封面图片地址字段
3.  新增补偿任务按用户ID筛选功能,优化UsersService查询逻辑
4.  重构宠物模板创建流程,支持批量创建进化链与图片
5.  移除PetEvolution实体的基础属性字段,简化进化形态结构
6.  新增OSS域名辅助工具与SDK注册扩展类
7.  优化宠物皮肤、进化阶段的DTO与服务层逻辑
2026-06-09 16:15:22 +08:00

26 lines
843 B
C#

using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using QYZH.InteractiveMagazine.Common.Helpers;
using QYZH.InteractiveMagazine.Infrastructure.OSS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QYZH.InteractiveMagazine.Infrastructure.SDK
{
public static class SDKExtensions
{
public static void AddSDKService(this IServiceCollection services, IConfiguration configuration)
{
services.Configure<OSSOptions>(configuration.GetSection(OSSOptions.Section));
DomainHelper.OssDomain = configuration.GetSection(OSSOptions.Section).Get<OSSOptions>()!.Domain;
services.AddSingleton<OssService>();
services.AddSingleton<OssIMMService>();
}
}
}