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