src/KopSoftWms/Controllers/LogController.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using IServices;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using YL.NetCore.Attributes;
using YL.NetCore.NetCoreApp;
using YL.Utils.Pub;
using YL.Utils.Table;
namespace KopSoftWms.Controllers
{
public class LogController : BaseController
{
private readonly ISys_logServices _logServices;
private readonly SqlSugarClient _client;
public LogController(SqlSugarClient client, ISys_logServices logServices)
{
_client = client;
_logServices = logServices;
}
[HttpGet]
[CheckMenu]
public IActionResult Index()
{
return View();
}
[HttpPost]
public ContentResult List([FromForm] Bootstrap.BootstrapParams bootstrap)
{
var sd = _logServices.PageList(bootstrap);
return Content(sd);
}
//[HttpDelete] axios
//'Content-Type': 'application/json; charset=UTF-8' FromBody 修饰的每个操作,最多可以有一个参数
[HttpPost]
public IActionResult Delete([FromBody] long[] Id)
{
var flag = _logServices.Delete(Id.ToArray());
return BootJsonH(flag ? (flag, PubConst.Delete1) : (flag, PubConst.Delete2));
}
[HttpGet]
[CheckMenu]
public IActionResult Bar()
{
return View();
}
[HttpPost]
[OperationLog(LogType.select)]
public ContentResult Bar([FromForm] Bootstrap.BootstrapParams bootstrap)
{
var str = _logServices.EChart(bootstrap);
return Content(str);
}
}
后面还有 1 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。