人机交互页面

This commit is contained in:
quowingwang
2025-12-11 15:52:39 +08:00
parent 9b1df66b9f
commit 0627546d79
8 changed files with 65 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
using Infrastructure;
using Infrastructure.Attribute;
using Infrastructure.Extensions;
using Infrastructure.Model;
using SqlSugar;
using System;
using System.Collections;
@@ -334,5 +335,24 @@ namespace ZR.Service
{
Update(new SysUser() { LoginIP = user.LoginIP, LoginDate = DateTime.Now, UserId = userId }, it => new { it.LoginIP, it.LoginDate });
}
public ApiResult GetUserPullDown()
{
try
{
var queryData = Queryable()
.Select(it => new UserPullDownDto
{
label = it.UserName,
value = it.UserId.ToString(),
}).ToList();
return new ApiResult() { Code = 200, Data = queryData };
}
catch (Exception ex)
{
return new ApiResult() { Code = 500, Msg = ex.Message };
}
}
}
}