类的使用
io.eden.common.core.Hashids
| 程序包 | 说明 |
|---|---|
| io.eden.common.core |
-
io.eden.common.core中Hashids的使用
参数类型为Hashids的io.eden.common.core中的方法 修饰符和类型 方法 说明 static LongHashids. decodeWithSnowFlake(Hashids hashids, String encode)将 hashid 恢复成 snowflake 数字static StringHashids. encodeWithSnowFlake(Hashids hashids, Long snowFlake)将 snowflake 数字转换为 hashid