更新事件状态
(id: string, status: MarketEvent['status'])
| 201 | |
| 202 | /** 更新事件状态 */ |
| 203 | async updateEventStatus(id: string, status: MarketEvent['status']): Promise<boolean> { |
| 204 | const event = await this.getEvent(id); |
| 205 | if (!event) return false; |
| 206 | return this.saveEvent({ ...event, status }); |
| 207 | } |
| 208 | |
| 209 | // ==================== 导出功能 ==================== |
| 210 |