feat: 新增宠物封面图支持,优化补偿任务查询与宠物模板创建流程
1. 新增PetSkinImageTypeEnum.Cover枚举,添加封面图类型支持 2. 为PetSkin、PetTemplate实体添加封面图片地址字段 3. 新增补偿任务按用户ID筛选功能,优化UsersService查询逻辑 4. 重构宠物模板创建流程,支持批量创建进化链与图片 5. 移除PetEvolution实体的基础属性字段,简化进化形态结构 6. 新增OSS域名辅助工具与SDK注册扩展类 7. 优化宠物皮肤、进化阶段的DTO与服务层逻辑
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\QYZH.InteractiveMagazine.Common\QYZH.InteractiveMagazine.Common.csproj" />
|
||||
|
||||
25
QYZH.InteractiveMagazine.Infrastructure/SDK/SDKExtensions.cs
Normal file
25
QYZH.InteractiveMagazine.Infrastructure/SDK/SDKExtensions.cs
Normal file
@ -0,0 +1,25 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user