| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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<SysCountryDto> 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;
- }
|