1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| 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;
| }
|
|
| }
|
|