招聘后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

46 lines
1.5 KiB

using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using Znyc.Recruitment.Admin.Commons.Core.Dtos;
using Znyc.Recruitment.Admin.Commons.Entitys;
using Znyc.Recruitment.Admin.Commons.IServices;
using Znyc.Recruitment.Admin.Security.Dtos;
using Znyc.Recruitment.Admin.Security.Entitys;
namespace Znyc.Recruitment.Admin.Security.IServices
{
/// <summary>
/// 组织机构
/// </summary>
public interface IOrganizeService : IService<OrganizeEntity, OrganizeOutputDto, long>
{
/// <summary>
/// 获取组织机构适用于Vue 树形列表
/// </summary>
/// <returns></returns>
Task<List<OrganizeOutputDto>> GetAllOrganizeTreeTable();
/// <summary>
/// 获取根节点组织
/// </summary>
/// <param name="id">组织Id</param>
/// <returns></returns>
OrganizeEntity GetRootOrganize(long id);
/// <summary>
/// 按条件批量删除
/// </summary>
/// <param name="ids">主键Id集合</param>
/// <param name="trans">事务对象</param>
/// <returns></returns>
CommonResult DeleteBatchWhere(DeletesInputDto ids, IDbTransaction trans = null);
/// <summary>
/// 异步按条件批量删除
/// </summary>
/// <param name="ids">主键Id集合</param>
/// <param name="trans">事务对象</param>
/// <returns></returns>
Task<CommonResult> DeleteBatchWhereAsync(DeletesInputDto ids, IDbTransaction trans = null);
}
}