SysCountryService.java 932 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.crm.custom.service;
  2. import com.crm.rely.backend.core.dto.country.SysCountryDto;
  3. import com.crm.rely.backend.core.entity.country.SysCountryEntity;
  4. import com.crm.rely.backend.core.pojo.table.SysCountryTable;
  5. import com.crm.rely.backend.core.exception.ServiceException;
  6. import java.util.List;
  7. /**
  8. * 国家
  9. */
  10. public interface SysCountryService {
  11. /**
  12. * 根据pid获取国家或者城市列表
  13. *
  14. * @param entity
  15. * @return
  16. * @throws ServiceException
  17. */
  18. List<SysCountryDto> getByPid(SysCountryEntity entity) throws ServiceException;
  19. /**
  20. * 根据code获取数据
  21. *
  22. * @param code
  23. * @return
  24. * @throws ServiceException
  25. */
  26. SysCountryTable getByCode(String code) throws ServiceException;
  27. /**
  28. * 根据IP获取国家code
  29. * @param ip
  30. * @return
  31. * @throws Exception
  32. */
  33. String getCodeByIp(String ip) throws Exception;
  34. }