package com.crm.custom.service; import com.crm.rely.backend.core.dto.country.SysCountryDto; import com.crm.rely.backend.core.entity.country.SysCountryEntity; import com.crm.rely.backend.core.pojo.table.SysCountryTable; import com.crm.rely.backend.core.exception.ServiceException; import java.util.List; /** * 国家 */ public interface SysCountryService { /** * 根据pid获取国家或者城市列表 * * @param entity * @return * @throws ServiceException */ List getByPid(SysCountryEntity entity) throws ServiceException; /** * 根据code获取数据 * * @param code * @return * @throws ServiceException */ SysCountryTable getByCode(String code) throws ServiceException; /** * 根据IP获取国家code * @param ip * @return * @throws Exception */ String getCodeByIp(String ip) throws Exception; }