using BPA.SAAS.Manage.Application.Org.Dtos.Organize;
using BPA.SAAS.Manage.Application.Org.Interface;
using BPA.SAAS.Manage.Core.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BPA.SAAS.Manage.Application.Org
{
[ApiDescriptionSettings("Org", Tag = "组织机构管理")]
public class OrganizeServices: IDynamicApiController
{
IOrganizeService _organizeService;
public OrganizeServices(IOrganizeService organizeService)
{
_organizeService=organizeService;
}
///
/// 分页查询
///
///
///
[HttpPost("/api/organize/page")]
public async Task QueryOrgPageList([FromBody]OrgPageInput input)
{
return await _organizeService.QueryOrgPageList(input);
}
///
/// 获取列表
///
///
///
[HttpPost("/api/organize/getorglist")]
public async Task> GetOrgList(OrgListInput input)
{
return await _organizeService.GetOrgList(input);
}
///
/// 添加
///
///
///
[HttpPost("/api/organize/addorg")]
public async Task AddOrg(OrgAddInput input)
{
return await _organizeService.AddOrg(input);
}
///
/// 删除
///
///
///
[HttpGet("/api/organize/deleteorg")]
public async Task DeleteOrg(string id)
{
return await _organizeService.DeleteOrg(id);
}
///
/// 修改
///
///
///
[HttpPost("/api/organize/updateorg")]
public async Task UpdateOrg(UpdateOrgInput input)
{
return await _organizeService.UpdateOrg(input);
}
///
/// 获取组织机构树
///
///
[HttpGet("/api/organize/tree")]
public async Task GetOrgTree()
{
return await _organizeService.GetOrgTree();
}
[HttpGet("/api/organize/getorglist")]
public async Task> GetOrgList()
{
return await _organizeService.GetOrgList();
}
}
}