123456789101112131415161718192021222324252627282930313233 |
- using System.Threading.Tasks;
- using GxPress.Repository.Interface;
- using GxPress.Request.Department;
- using GxPress.Result.Department;
- using Microsoft.AspNetCore.Authorization;
- using Microsoft.AspNetCore.Mvc;
- namespace GxPress.Api.AppControllers
- {
- [Route("api/app/department")]
- [ApiController]
- [Authorize]
- public class DepartmentController : ControllerBase
- {
- private readonly IDepartmentRepository _departmentRepository;
- public DepartmentController(IDepartmentRepository departmentRepository)
- {
- _departmentRepository = departmentRepository;
- }
-
-
-
-
-
- [HttpPost("user-list")]
- public async Task<DepartmentUserResult> GetDepartmentUserResult(DepartmentUserRequest request)
- {
- return await _departmentRepository.GetDepartmentUserResultAsync(request);
- }
- }
- }
|