public interface IDwzTemplate
| 限定符和类型 | 方法和说明 |
|---|---|
DwzResponse |
createShortUrl(DwzRequest request)
生成短链接
|
default DwzResponse |
createShortUrl(String longUrl)
生成短链接
|
default DwzResponse |
createShortUrl(String longUrl,
Map<String,String> config)
生成短链接
|
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,String> config) throws DwzSdkException
longUrl - 长链接config - 可配置参数(主要为了考虑多种实现的不同入参需求)DwzSdkException - SDK异常IllegalArgumentException - 参数有误的异常Copyright © 2021 EasyJ寮�婧愮ぞ鍖�. All rights reserved.