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