更新框架,增加云库搜索模块

This commit is contained in:
chfei committed 2026-09-18 18:40:10 +08:00
1 parent 8526e5e0d2
commit f2caec6083
192 files changed
+3626 -804

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
using Riok.Mapperly.Abstractions;
using Store.Framework.Models;
using StoreHub.Services.Dtos;
namespace StoreHub.Services.Mappers;
/// <summary>
/// User 实体 → UserDto 映射(Riok.Mapperly 源码生成)。
/// UserDto 只暴露部分字段,因此仅要求目标成员都被映射(忽略源端未映射警告)。
/// </summary>
[Mapper(RequiredMappingStrategy = RequiredMappingStrategy.Target)]
public static partial class UserMapper
{
/// <summary>
/// 将用户实体映射为用户 DTO。
/// </summary>
public static partial UserDto ToDto(User user);
}