mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-02-25 06:35:23 +00:00
23 lines
397 B
Java
23 lines
397 B
Java
package cn.qaiu.lz.common;
|
|
|
|
import io.vertx.core.json.JsonObject;
|
|
|
|
/**
|
|
* lz-web <br>
|
|
* 实现此接口 POJO转JSON对象
|
|
*
|
|
* @author <a href="https://qaiu.top">QAIU</a>
|
|
* <br>Create date 2021/8/27 11:40
|
|
*/
|
|
public interface ToJson {
|
|
|
|
/**
|
|
* POJO转JSON对象
|
|
*
|
|
* @return Json Object
|
|
*/
|
|
default JsonObject toJson() {
|
|
return JsonObject.mapFrom(this);
|
|
}
|
|
}
|