25 lines
686 B
C#
25 lines
686 B
C#
using Zxd.Core.Shared.Dto;
|
|
|
|
namespace Hg.Core.WebApi.Controllers
|
|
{
|
|
[ApiSignatureFilterForbid]
|
|
public class DepartmentController : BaseController
|
|
{
|
|
private readonly IDepartmentDomain _departmentDomain;
|
|
public DepartmentController(IDepartmentDomain departmentDomain)
|
|
{
|
|
_departmentDomain = departmentDomain;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取部门列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("list")]
|
|
public async Task<List<DeptmentDto>> GetDeptments([FromHeader] string? appid = null)
|
|
{
|
|
return await _departmentDomain.GetDeptments(appid);
|
|
}
|
|
}
|
|
}
|