using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 机构信息服务 /// [ApiDescriptionSettings(Name = "sys-org")] [Route("sys/org")] public class SysOrgAppService : IDynamicApiController { private readonly ISysOrgService _sysOrgService; public SysOrgAppService(ISysOrgService sysOrgService) { _sysOrgService = sysOrgService; } /// /// 添加机构 /// /// /// public async Task Add(AddSysOrgInput input) { await _sysOrgService.Add(input); } /// /// 更新机构 /// /// /// public async Task Update(UpdateSysOrgInput input) { await _sysOrgService.Update(input); } /// /// 删除机构 /// /// /// public async Task Del(BaseId input) { await _sysOrgService.Del(input); } /// /// 启用禁用机构 /// /// /// public async Task ChangeStatus(BaseId input) { await _sysOrgService.ChangeStatus(input); } /// /// 根据ID获取机构 /// /// /// public async Task GetById([FromQuery][Required] short id) { return await _sysOrgService.GetById(id); } /// /// 查询机构列表 /// /// /// public async Task> QueryList(QuerySysOrgInput input) { return await _sysOrgService.QueryList(input); } /// /// 分页查询机构列表 /// /// /// public async Task> QueryPageList(SysOrgPageInput input) { return await _sysOrgService.QueryPageList(input); } /// /// 获取全部机构列表 /// /// public async Task> GetAllList() { return await _sysOrgService.GetAllList(); } /// /// 根据学校ID获取校区列表 /// /// /// public async Task> GetOrgBranchByOrgId([FromQuery][Required] short orgId) { return await _sysOrgService.GetOrgBranchByOrgId(orgId); } }