人机交互页面
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user