更新API端点从WebChatUpgrade改为Upgrade_V2,同时将响应字段Data更名为Message 修改涉及README文档、API规范、控制器和客户端代码,保持接口变更的一致性
22 lines
534 B
Markdown
22 lines
534 B
Markdown
# RCU Upgrade Service
|
|
|
|
## Overview
|
|
Node.js backend service to manage RCU firmware upgrades.
|
|
Triggers upgrades via `Upgrade_V2` API and polls status via `QueryUpdateHostProgressBar`.
|
|
|
|
## Setup
|
|
1. Install dependencies: `npm install`
|
|
2. Configure `.env` (see `.env.example` or documentation)
|
|
3. Setup PostgreSQL database `test_upgrade`.
|
|
|
|
## Running
|
|
- Dev: `npm run dev`
|
|
- Production: `pm2 start pm2.json`
|
|
|
|
## Spec & Validation
|
|
- Lint Spec: `npm run spec:lint`
|
|
- Validate Spec: `npm run spec:validate`
|
|
|
|
## Testing
|
|
- Run tests: `npm test`
|