using Long.Common.Basedata; using Long.Core.Api; using Long.Core.Query; using Long.Service.AdminService.Basedata; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace WebApi.Controllers.Basedata; [Route("api/Basedata/[controller]")] [ApiController] public class SystemUserController : AdminControllerBase { private readonly ISystemUserService _systemUserService; /// /// 构造 /// /// public SystemUserController(ISystemUserService systemUserService) { _systemUserService = systemUserService; } /// /// 获取系统用户列表 /// /// 查询参数 /// 系统用户列表 [HttpGet("Get")] public async Task>> Get([FromQuery] QueryParamenter queryParamater) { var output = new ApiResult>(); output.Result = await _systemUserService.Get(queryParamater); return output; } /// /// 获取当前用户 /// /// 当前用户 [HttpGet("GetCurrent")] public async Task> GetCurrent() { var result = new ApiResult(); result.Result = await _systemUserService.GetById(CurrentUserId); return result; } }