1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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<ApiResult<IEnumerable<SystemUser>>> Get([FromQuery] QueryParamenter queryParamater)
- {
- var output = new ApiResult<IEnumerable<SystemUser>>();
- output.Result = await _systemUserService.Get(queryParamater);
- return output;
- }
-
-
-
-
- [HttpGet("GetCurrent")]
- public async Task<ApiResult<SystemUser>> GetCurrent()
- {
- var result = new ApiResult<SystemUser>();
- result.Result = await _systemUserService.GetById(CurrentUserId);
- return result;
- }
- }
|