33 lines
1.0 KiB
C#
Raw Permalink Normal View History

2025-06-06 14:57:20 +08:00
using AutoMapper;
using VOL.Entity.DomainModels;
using YD_WeChatApplet.Api.Entitys;
using YD_WeChatApplet.Api.SmartSportsEntitys;
using YD_WeChatApplet.Commons.Dto.ClientSide;
using YD_WeChatApplet.Commons.Dto.HomeWork;
using YD_WeChatApplet.Commons.Dto.SportsTest;
namespace YD_WeChatApplet.Api.AutoMappers
{
public class MappingProfile : Profile
{
public MappingProfile()
{
// 建立对象之间的映射规则
// 如果有需要,您可以定义其他的映射规则
// CreateMap<SourceClass2, DestinationClass2>();
// ...
CreateMap<AddHomeWorkDto, S_HomeWork>();
CreateMap<HomeWorkStudentsDto, S_HomeWorkStudents>();
CreateMap<S_HomeWorkStudents, HomeWorkStudentsDto>();
CreateMap<N_SportsTestValue, SportsTestValueModel>();
CreateMap<Ai_SportsTestData, SportsTestValueModel>();
CreateMap<AddExerciseDataDto, WCA_ExerciseData>();
CreateMap<CreateGroupTaskDto, WCA_GroupTask>();
}
}
}