public interface IShortCodeService
用途:邀请码、短链接码、...等等
| Modifier and Type | Method and Description |
|---|---|
String |
toCode(Long id)
long型ID 转换为 短字符串
|
long |
toId(String shortCode)
短字符串 转换为 long长整形ID
|
@NonNull String toCode(@NonNull Long id)
id - ID(必须大于等于0)IllegalArgumentException - ID为null 或 ID小于0long toId(@NonNull
String shortCode)
shortCode - 短字符串IllegalArgumentException - shortCode为nullCopyright © 2021–2022 EasyJ????. All rights reserved.