导出事件数据
()
| 210 | |
| 211 | /** 导出事件数据 */ |
| 212 | async exportEvents(): Promise<string> { |
| 213 | const events = await this.getAllEvents(); |
| 214 | return JSON.stringify(events, null, 2); |
| 215 | } |
| 216 | |
| 217 | /** 导入事件数据 */ |
| 218 | async importEvents(jsonData: string): Promise<boolean> { |
nothing calls this directly
no test coverage detected