UserDepartmentService.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package com.crm.manager.service;
  2. import com.crm.rely.backend.core.dto.base.BaseResultDto;
  3. import com.crm.rely.backend.core.exception.ServiceException;
  4. import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
  5. import com.crm.rely.backend.core.dto.user.department.UserDepartmentSearchDto;
  6. import com.crm.rely.backend.model.entity.user.department.UserDepartmentAddEntity;
  7. import com.crm.rely.backend.model.entity.user.department.UserDepartmentDeleteEntity;
  8. import com.crm.rely.backend.model.entity.user.department.UserDepartmentSearchEntity;
  9. import com.crm.rely.backend.model.entity.user.department.UserDepartmentUpdateEntity;
  10. /**
  11. * @program: crm-backend
  12. * @description:
  13. * @author: houn
  14. * @create: 2019-07-25 13:56
  15. */
  16. public interface UserDepartmentService {
  17. /**
  18. * 添加部门
  19. *
  20. * @param entity
  21. * @throws ServiceException
  22. */
  23. void add(UserDepartmentAddEntity entity) throws ServiceException;
  24. /**
  25. * 更新部门信息
  26. *
  27. * @param entity
  28. * @throws ServiceException
  29. */
  30. void update(UserDepartmentUpdateEntity entity) throws ServiceException;
  31. /**
  32. * 删除部门(批量)
  33. *
  34. * @param entity
  35. * @throws ServiceException
  36. */
  37. void delete(UserDepartmentDeleteEntity entity) throws ServiceException;
  38. /**
  39. * 根据条件搜索列表
  40. *
  41. * @param entity
  42. * @return
  43. * @throws ServiceException
  44. */
  45. BaseResultWithPagerDto searchPage(UserDepartmentSearchEntity entity) throws ServiceException;
  46. BaseResultDto searchList() throws ServiceException;
  47. /**
  48. * 根据id查询
  49. *
  50. * @param id
  51. * @return
  52. * @throws ServiceException
  53. */
  54. UserDepartmentSearchDto searchSingle(Long id) throws ServiceException;
  55. }