package com.zhongshu.card.client.service.org;

import com.github.microservice.net.ResultContent;
import com.zhongshu.card.client.model.org.DepartmentModel;
import com.zhongshu.card.client.model.org.DepartmentParam;
import com.zhongshu.card.client.model.org.DepartmentSimpleModel;
import com.zhongshu.card.client.utils.ITree;

import java.util.List;

/**
 * @author TRX
 * @date 2024/6/3
 */
public interface DepartmentService {

    ResultContent addDepartment(DepartmentParam param);

    ResultContent<List<ITree>> getDepartmentTree(String oid);

    // 查询所有上级部门
    List<DepartmentSimpleModel> getParents(String id);

    // 删除部门
    ResultContent deleteDepartment(String id);

    ResultContent<List<ITree>> getCurrentProjectDepartmentTree();

}
