Commit a2c232f
feat: 增加 CustomOneBotApi 类型,支持动态构建任意自定义API实例 (#249)
* feat(api): implement BasicOneBotApi and CustomOneBotApi with builder support
* feat(api): update .gitignore and add copyright management configuration
close #219
* feat(api): add default empty block parameter to CustomOneBotApiBuilder
* feat(api): refactor CustomOneBotApi and CustomOneBotApiBuilder for improved readability
---------
Co-authored-by: ForteScarlet <[email protected]>1 parent d941160 commit a2c232f
File tree
20 files changed
+1467
-511
lines changed- .idea
- copyright
- scopes
- buildSrc/src/main/kotlin
- simbot-component-onebot-v11/simbot-component-onebot-v11-core
- api
- src
- commonMain/kotlin/love/forte/simbot/component/onebot/v11/core
- api
- bot
- internal
- internal/api
- commonTest/kotlin/love/forte/simbot/component/onebot/v11/core/api
- jvmMain/kotlin/love/forte/simbot/component/onebot/v11/core
- api
- bot
20 files changed
+1467
-511
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
13 | 21 | | |
14 | | - | |
15 | | - | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
142 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
143 | 152 | | |
144 | 153 | | |
145 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
13 | 21 | | |
14 | | - | |
15 | | - | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
0 commit comments