|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取用户自定义配置(批量)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="typeArr"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet("/DjyUserConfig/multi")]
|
|
|
|
|
public async Task<List<DjyUserConfig>> Multi(string[] typeArr)
|
|
|
|
|
{
|
|
|
|
|
return await _rep.ToListAsync(u => u.CreatedUserId == UserManager.UserId && typeArr.Contains(u.Type));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|