| 12345678910111213 |
- using Furion.JsonSerialization;
- using YBEE.EQM.Core;
- namespace YBEE.EQM.Application;
- public class ExamAbsentReplaceMapper : IRegister
- {
- public void Register(TypeAdapterConfig config)
- {
- config.ForType<ExamAbsentReplace, ExamAbsentReplaceOutput>().Map(d => d.AbsentCourseList, s => JSON.Deserialize<List<CourseMiniOutput>>(s.AbsentCourses, null));
- config.ForType<ExamAbsentReplace, ExamAbsentReplaceFullOutput>().Map(d => d.AbsentCourseList, s => JSON.Deserialize<List<CourseMiniOutput>>(s.AbsentCourses, null));
- }
- }
|