mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
21 lines
No EOL
397 B
Java
21 lines
No EOL
397 B
Java
package xiaozhi.common.utils;
|
|
|
|
import lombok.Data;
|
|
/**
|
|
* JSON-RPC2.0 格式规范对象
|
|
*/
|
|
@Data
|
|
public class JsonRpcTwo {
|
|
private String jsonrpc = "2.0";
|
|
private String method;
|
|
private Object params;
|
|
private Integer id;
|
|
|
|
public JsonRpcTwo(String method, Object params, Integer id) {
|
|
this.method = method;
|
|
this.params = params;
|
|
this.id = id;
|
|
}
|
|
|
|
|
|
} |