diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml
index 4005199c..1dc60362 100644
--- a/Myshipping.Core/Myshipping.Core.xml
+++ b/Myshipping.Core/Myshipping.Core.xml
@@ -11231,6 +11231,13 @@
+
+
+ 获取用户自定义配置(批量)
+
+
+
+
自定义配置输入参数
diff --git a/Myshipping.Core/Service/DjyUserConfig/DjyUserConfigService.cs b/Myshipping.Core/Service/DjyUserConfig/DjyUserConfigService.cs
index bc86af4a..8be71fb7 100644
--- a/Myshipping.Core/Service/DjyUserConfig/DjyUserConfigService.cs
+++ b/Myshipping.Core/Service/DjyUserConfig/DjyUserConfigService.cs
@@ -7,6 +7,7 @@ using SqlSugar;
using System.Linq;
using System.Threading.Tasks;
using Myshipping.Core.Entity;
+using System.Collections.Generic;
namespace Myshipping.Core.Service
{
@@ -95,5 +96,16 @@ namespace Myshipping.Core.Service
return await _rep.FirstOrDefaultAsync(u => u.CreatedUserId == UserManager.UserId && u.Type == type);
}
+ ///
+ /// 获取用户自定义配置(批量)
+ ///
+ ///
+ ///
+ [HttpGet("/DjyUserConfig/multi")]
+ public async Task> Multi(string[] typeArr)
+ {
+ return await _rep.ToListAsync(u => u.CreatedUserId == UserManager.UserId && typeArr.Contains(u.Type));
+
+ }
}
}
diff --git a/Myshipping.Core/Service/DjyUserConfig/IDjyUserConfigService.cs b/Myshipping.Core/Service/DjyUserConfig/IDjyUserConfigService.cs
index 981d26c5..b13de44a 100644
--- a/Myshipping.Core/Service/DjyUserConfig/IDjyUserConfigService.cs
+++ b/Myshipping.Core/Service/DjyUserConfig/IDjyUserConfigService.cs
@@ -2,6 +2,7 @@
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Myshipping.Core.Entity;
+using System.Collections.Generic;
namespace Myshipping.Core.Service
{
@@ -12,5 +13,6 @@ namespace Myshipping.Core.Service
Task Update(UpdateDjyUserConfigInput input);
Task Delete(GetDjyUserConfigInput input);
Task Get([FromQuery] string type);
+ Task> Multi(string[] typeArr);
}
}
\ No newline at end of file