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
|
{
|
/// <summary>
|
/// UserLoginLog
|
/// </summary>
|
[Route("User/UserLoginLog")]
|
[ApiDescriptionSettings("User",Name = "用户登录日志", Order =1)]
|
public class UserLoginLog_Controller : IDynamicApiController
|
{
|
private readonly Service.UserLoginLog _service = new Service.UserLoginLog();
|
|
/// <summary>
|
/// 获取用户登录日志
|
/// </summary>
|
[HttpGet]
|
[Route("GetUserPageList@V1.0")]
|
public PageListOutput<Model.UserLoginLog> 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<Model.UserLoginLog>() { Total=total,List=list};
|
|
}
|
|
/// <summary>
|
/// 获取客户用户登录日志
|
/// </summary>
|
[HttpGet]
|
[Route("GetCorpPageList@V1.0")]
|
public PageListOutput<Model.UserLoginLog> 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<Model.UserLoginLog>() { Total = total, List = list };
|
}
|
|
|
|
|
}
|
}
|