You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
1.1 KiB

using NFine.Application.SystemSecurity;
using NFine.Code;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace NFine.Web.Areas.SystemSecurity.Controllers
{
public class LogController : ControllerBase
{
private LogApp logApp = new LogApp();
[HttpGet]
public ActionResult RemoveLog()
{
return View();
}
[HttpGet]
[HandlerAjaxOnly]
public ActionResult GetGridJson(Pagination pagination, string queryJson)
{
var data = new
{
rows = logApp.GetList(pagination, queryJson),
total = pagination.total,
page = pagination.page,
records = pagination.records
};
return Content(data.ToJson());
}
[HttpPost]
[HandlerAjaxOnly]
[HandlerAuthorize]
[ValidateAntiForgeryToken]
public ActionResult SubmitRemoveLog(string keepTime)
{
logApp.RemoveLog(keepTime);
return Success("清空成功。");
}
}
}