22 lines
662 B
C#
22 lines
662 B
C#
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();
|
|
}
|
|
}
|
|
} |