package com.mindskip.xzs.service;
|
|
import com.mindskip.xzs.domain.Department;
|
import com.mindskip.xzs.domain.vo.*;
|
import com.mindskip.xzs.viewmodel.admin.department.DepartmentResponseVM;
|
|
import java.util.List;
|
|
public interface DepartmentService extends BaseService<Department>{
|
|
/**
|
* 添加部门
|
* @param name
|
* @return
|
*/
|
Integer add(Department model);
|
|
/**
|
* 删除部门
|
* @param id
|
* @return
|
*/
|
Integer remove(Integer id);
|
|
/**
|
* 修改部门
|
* @param department
|
* @return
|
*/
|
Integer update(Department department);
|
|
/**
|
* 查询所有部门
|
* @return
|
*/
|
List<DepartmentResponseVM> gets(DepartmentResponseVM departmentResponseVM);
|
|
Department getById(Integer id);
|
|
DepartmentEditVO getByIdVO(Integer id);
|
|
List<Department> gets(List<Integer> deptId);
|
|
Department getName(String name);
|
|
List<BaseSelect> getDeptUserList(Integer deptId);
|
|
/**
|
* 修改部门管理员
|
* @param form
|
*/
|
void updateAdmin(UpdateDeptAdminVO form);
|
|
/**
|
* 级联选择器数据
|
*
|
* @return
|
*/
|
List<CascaderDataVO> cascader();
|
}
|