IpInterfaceService.java 1.7 KB

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