From 17308f6494c81fb5a5ee035724a414ec7da11936 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 22 八月 2024 08:38:45 +0800
Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/cylsg

---
 cylsg/cylsg.Application/Users/Dtos/Mapper.cs |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/cylsg/cylsg.Application/Users/Dtos/Mapper.cs b/cylsg/cylsg.Application/Users/Dtos/Mapper.cs
new file mode 100644
index 0000000..a905df2
--- /dev/null
+++ b/cylsg/cylsg.Application/Users/Dtos/Mapper.cs
@@ -0,0 +1,24 @@
+锘縰sing cylsg.Model.UserModel;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace cylsg.Application.Users.Dtos
+{
+    public class Mapper : IRegister
+    {
+        public void Register(TypeAdapterConfig config)
+        {
+            config.ForType<User, UserDto>();
+            config.ForType<UserDto, User>();
+
+            config.ForType<UserCompany, UserCompanyDto>();
+            config.ForType<UserCompanyDto, UserCompany>();
+
+            config.ForType<UserWorker, UserWorkerDto>();
+            config.ForType<UserWorkerDto, UserWorker>();
+        }
+    }
+}

--
Gitblit v1.9.1