初始提交
This commit is contained in:
22
Services/Hncore.Pass.BaseInfo/Service/WxAppService.cs
Normal file
22
Services/Hncore.Pass.BaseInfo/Service/WxAppService.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Hncore.Infrastructure.Service;
|
||||
using Hncore.Pass.BaseInfo.Models;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Hncore.Pass.BaseInfo.Service
|
||||
{
|
||||
|
||||
public partial class WxAppService : ServiceBase<WxAppEntity>, IFindService
|
||||
{
|
||||
public WxAppService(UserDbContext dbContext, IHttpContextAccessor httpContextAccessor) : base(dbContext, httpContextAccessor)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public async Task<WxAppEntity> GetApp(string appId,int appType=1)
|
||||
{
|
||||
return await this.Query(m => m.AppType == appType && m.Appid == appId).FirstOrDefaultAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user