aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/Mapper/IMapper.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-28 19:20:40 +0800
committercrupest <crupest@outlook.com>2021-04-28 19:20:40 +0800
commitd922b3241245c9bc1ca6cff8ac69dd7659a958f1 (patch)
treeecad89ac4933980a54b643d899c339c7d86ae900 /BackEnd/Timeline/Services/Mapper/IMapper.cs
parent66835dcd6812d40bca8d271a7773637f74aaa8d4 (diff)
downloadtimeline-d922b3241245c9bc1ca6cff8ac69dd7659a958f1.tar.gz
timeline-d922b3241245c9bc1ca6cff8ac69dd7659a958f1.tar.bz2
timeline-d922b3241245c9bc1ca6cff8ac69dd7659a958f1.zip
refator: ...
Diffstat (limited to 'BackEnd/Timeline/Services/Mapper/IMapper.cs')
-rw-r--r--BackEnd/Timeline/Services/Mapper/IMapper.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/Mapper/IMapper.cs b/BackEnd/Timeline/Services/Mapper/IMapper.cs
new file mode 100644
index 00000000..ef1b619f
--- /dev/null
+++ b/BackEnd/Timeline/Services/Mapper/IMapper.cs
@@ -0,0 +1,11 @@
+using Microsoft.AspNetCore.Mvc;
+using System.Security.Claims;
+using System.Threading.Tasks;
+
+namespace Timeline.Services.Mapper
+{
+ public interface IMapper<TSource, TDestination>
+ {
+ Task<TDestination> MapAsync(TSource source, IUrlHelper urlHelper, ClaimsPrincipal? user);
+ }
+}