IOrgService.java 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.xunmei.system.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  4. import com.xunmei.common.core.web.domain.AjaxResult;
  5. import com.xunmei.system.api.domain.Org;
  6. /**
  7. * <p>
  8. * 服务类
  9. * </p>
  10. *
  11. * @author luojun
  12. * @since 2023-08-07
  13. */
  14. public interface IOrgService extends IService<Org> {
  15. /**
  16. * 查询分页数据
  17. *
  18. * @param page 页码
  19. * @param org 每页条数
  20. * @return AjaxResult
  21. */
  22. AjaxResult findListByPage(Page<Org> page,Org org);
  23. /**
  24. * 添加
  25. *
  26. * @param org
  27. * @return JsonBean
  28. */
  29. AjaxResult add(Org org);
  30. /**
  31. * 删除
  32. *
  33. * @param id 主键
  34. * @return AjaxResult
  35. */
  36. AjaxResult delete(Long id);
  37. /**
  38. * 修改
  39. *
  40. * @param org
  41. * @return AjaxResult
  42. */
  43. AjaxResult updateData(Org org);
  44. /**
  45. * id查询数据
  46. *
  47. * @param id id
  48. * @return AjaxResult
  49. */
  50. AjaxResult findById(Long id);
  51. }