public interface IDwzTemplate
| Modifier and Type | Method and Description |
|---|---|
DwzResponse |
createShortUrl(DwzRequest request)
生成短链接
|
default DwzResponse |
createShortUrl(String longUrl)
生成短链接
|
default DwzResponse |
createShortUrl(String longUrl,
Map<String,Object> configs)
生成短链接
|
DwzResponse createShortUrl(DwzRequest request) throws DwzSdkException
request - 请求DwzSdkException - SDK异常IllegalArgumentException - 参数有误的异常default DwzResponse createShortUrl(String longUrl) throws DwzSdkException
longUrl - 长链接DwzSdkException - SDK异常IllegalArgumentException - 参数有误的异常default DwzResponse createShortUrl(String longUrl, Map<String,Object> configs) throws DwzSdkException
longUrl - 长链接configs - 可配置参数(主要为了考虑多种实现的不同入参需求)DwzSdkException - SDK异常IllegalArgumentException - 参数有误的异常Copyright © 2021–2022 EasyJ????. All rights reserved.