using Microsoft.AspNetCore.Mvc;
using System.Net;
using System.Net.Http.Headers;
using Microsoft.Extensions.Hosting.Internal;
using Microsoft.AspNetCore.Http.Extensions;
using IStation.Untity;
using Furion.DynamicApiController;
using System.ComponentModel.DataAnnotations;
namespace IStation.Application
{
///
/// UserLoginLog
///
[Route("User/UserLoginLog")]
[ApiDescriptionSettings("User",Name = "用户登录日志", Order =1)]
public class UserLoginLog_Controller : IDynamicApiController
{
private readonly Service.UserLoginLog _service = new Service.UserLoginLog();
///
/// 获取用户登录日志
///
[HttpGet]
[Route("GetUserPageList@V1.0")]
public PageListOutput GetUserPageList([FromQuery] QueryUserLoginLogPageListInput model)
{
int total=0;
var list = _service.GetUserPageList(model.UserID, model.StartTime, model.EndTime, model.PageIndex, model.PageSize, ref total);
return new PageListOutput() { Total=total,List=list};
}
///
/// 获取客户用户登录日志
///
[HttpGet]
[Route("GetCorpPageList@V1.0")]
public PageListOutput GetCorpPageList([FromQuery] QueryCorpLoginLogPageListInput model)
{
int total = 0;
var list = _service.GetCorpPageList(model.CorpID, model.StartTime, model.EndTime, model.PageIndex, model.PageSize, ref total);
return new PageListOutput() { Total = total, List = list };
}
}
}