src/KopSoftWms/Controllers/UserController.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using FluentValidation.Results;
using IServices;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.IO;
using System.Linq;
using YL.Core.Entity;
using YL.Core.Entity.Fluent.Validation;
using YL.NetCore.Attributes;
using YL.NetCore.NetCoreApp;
using YL.Utils.Delegate;
using YL.Utils.Extensions;
using YL.Utils.Pub;
using YL.Utils.Security;
using YL.Utils.Table;
namespace KopSoftWms.Controllers
{
public class UserController : BaseController
{
private readonly ISys_userServices _userServices;
private readonly ISys_deptServices _deptServices;
private readonly ISys_roleServices _roleServices;
public UserController(ISys_roleServices roleServices, ISys_deptServices deptServices, ISys_userServices userServices)
{
_roleServices = roleServices;
_deptServices = deptServices;
_userServices = userServices;
}
[HttpGet]
[CheckMenu]
public IActionResult Index()
{
return View();
}
[HttpPost]
[OperationLog(LogType.select)]
public ContentResult List([FromForm] Bootstrap.BootstrapParams bootstrap)
{
//单表
//var express = ExpressionExt.Init<Sys_user>();
//express.And(c => c.IsDel == 1);
//var order = ExpressionExt.InitO<Sys_user>(bootstrap.sort);
//if (!bootstrap.search.IsEmpty())
//{
// express.And(c => c.UserName == bootstrap.search && c.UserNickname == bootstrap.search);
//}
//var list = _userServices.QueryableToPage(express, order, bootstrap.order, bootstrap.offset, bootstrap.limit);
var sd = _userServices.PageList(bootstrap);
return Content(sd);
}
public IActionResult Add(string id)
{
ViewBag.Dept = _deptServices.QueryableToList(c => c.IsDel == 1);
后面还有 139 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。