IpInterfaceService.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package com.hr.service;
  2. import com.github.pagehelper.PageInfo;
  3. import com.hr.param.InterfaceConfigParam;
  4. import com.hr.param.IpInterfaceParam;
  5. import com.hr.param.SwitchStatusParam;
  6. import com.hr.repository.domain.IpInterfacePO;
  7. import com.hr.vo.IpInterfaceVO;
  8. import com.hr.vo.NameValueVO;
  9. import com.yy.basedevelop.common.data.BasePageResult;
  10. import org.springframework.data.domain.Page;
  11. import java.util.List;
  12. /**
  13. * 接口表;(ip_interface)表服务接口
  14. * @author : http://www.yonsum.com
  15. * @date : 2025-10-10
  16. */
  17. public interface IpInterfaceService{
  18. /**
  19. * 通过ID查询单条数据
  20. *
  21. * @param iid 主键
  22. * @return 实例对象
  23. */
  24. IpInterfaceVO queryById(Long iid);
  25. /**
  26. * 分页查询
  27. *
  28. * @param interfaceParam 筛选条件
  29. * @param current 当前页码
  30. * @param size 每页大小
  31. * @return
  32. */
  33. BasePageResult<IpInterfaceVO> paginQuery(IpInterfaceParam interfaceParam, Integer current, Integer size);
  34. /**
  35. * 新增数据
  36. *
  37. * @param IpInterfacePO 实例对象
  38. * @return 实例对象
  39. */
  40. void insert(IpInterfacePO IpInterfacePO);
  41. /**
  42. * 更新数据
  43. *
  44. * @param IpInterfacePO 实例对象
  45. * @return 实例对象
  46. */
  47. void update(IpInterfacePO IpInterfacePO);
  48. /**
  49. * 通过主键删除数据
  50. *
  51. * @param iid 主键
  52. * @return 是否成功
  53. */
  54. boolean deleteById(Long iid);
  55. void saveOrUpdate(IpInterfaceParam ipInterfaceParam, String username, Long userid);
  56. Boolean switchStatus(SwitchStatusParam switchStatusParam);
  57. List<NameValueVO> optionList();
  58. void interfaceConfig(InterfaceConfigParam param);
  59. IpInterfaceVO queryByInterfaceCode(String interfaceCode);
  60. }