初始提交
This commit is contained in:
30
Services/Hncore.Pass.Vpn/Service/UserService.cs
Normal file
30
Services/Hncore.Pass.Vpn/Service/UserService.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Hncore.Infrastructure.Service;
|
||||
using Hncore.Infrastructure.WebApi;
|
||||
using Hncore.Pass.Vpn.Domain;
|
||||
using Hncore.Pass.Vpn.Request.Product;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using System;
|
||||
using Hncore.Infrastructure.Common;
|
||||
using System.Collections.Generic;
|
||||
using Hncore.Pass.BaseInfo.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Hncore.Pass.Vpn.Service
|
||||
{
|
||||
public class UserService : ServiceBase<UserEntity>, IFindService
|
||||
{
|
||||
CourseContext m_DbContext;
|
||||
public UserService(CourseContext dbContext
|
||||
,IHttpContextAccessor httpContextAccessor) : base(dbContext, httpContextAccessor)
|
||||
{
|
||||
m_DbContext = dbContext;
|
||||
}
|
||||
|
||||
public async Task<List<UserEntity>> GetByIds(List<int> userids)
|
||||
{
|
||||
return await this.Query(m => userids.Contains(m.Id)).ToListAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user