常见的方法和请求

This commit is contained in:
王涛 2023-06-01 10:27:56 +08:00
parent 51498cde8a
commit 74831d9d8b
2 changed files with 3 additions and 1 deletions

View File

@ -8,10 +8,13 @@ import io.vertx.core.json.JsonObject;
* @author wt
* @date 2023/06/01
*/
@FunctionalInterface
public interface SendMsg<T> extends java.io.Serializable{
default JsonObject toJson(){
return JsonObject.mapFrom(this);
}
T of();
}

View File

@ -45,6 +45,5 @@ class HttpAsyncUtilTest {
void exec2() {
}
}