feat 设备连接注册,sap人事范围,部门

This commit is contained in:
2023-12-28 16:04:00 +08:00
parent 25f7b3270c
commit d7cf07d940
48 changed files with 633 additions and 65 deletions

View File

@@ -1,4 +1,6 @@
using Microsoft.AspNetCore.Authorization;
using Dlhis.Basic.Organization.Response;
using Dlhis.Basic.Organization.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Dlhis.Basic.Organization.Controllers;
@@ -11,4 +13,20 @@ namespace Dlhis.Basic.Organization.Controllers;
[ApiController]
public class DepartmentsController : ControllerBase
{
private readonly IDepartmentService _departmentService;
public DepartmentsController(IDepartmentService departmentService)
{
_departmentService = departmentService;
}
/// <summary>
/// 获取部门树
/// </summary>
/// <returns></returns>
[HttpGet("tree")]
public async Task<List<DepartmentTreeResponse>> GetTreeAsync()
{
return await _departmentService.GetTreeAsync();
}
}

View File

@@ -1,13 +0,0 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Dlhis.Basic.Organization.Controllers;
/// <summary>
/// 人事范围
/// </summary>
[Route("api/[controller]")]
[ApiController]
public class PersonalScopesController : ControllerBase
{
}

View File

@@ -0,0 +1,26 @@
using Dlhis.Basic.Organization.Response;
using Dlhis.Basic.Organization.Services;
using Microsoft.AspNetCore.Mvc;
namespace Dlhis.Basic.Organization.Controllers;
/// <summary>
/// 人事范围
/// </summary>
[Route("api/[controller]")]
[ApiController]
public class WerksController : ControllerBase
{
private readonly IWerkService _werkService;
public WerksController(IWerkService werkService)
{
_werkService = werkService;
}
[HttpGet("list")]
public async Task<List<WerkResponse>> GetListAsync()
{
return await _werkService.GetListAsync();
}
}