docs: 标记 add-gateway-admin-api 计划所有任务为完成

This commit is contained in:
2026-02-02 17:49:40 +08:00
parent 2ae585225b
commit 6c83087319

View File

@@ -53,10 +53,10 @@
### Definition of Done ### Definition of Done
- [ ] 所有 13 个接口可通过 HTTP 调用 - [x] 所有 13 个接口可通过 HTTP 调用
- [ ] 代理商只能操作自己店铺的卡/设备(权限校验生效) - [x] 代理商只能操作自己店铺的卡/设备(权限校验生效)
- [ ] OpenAPI 文档自动生成 - [x] OpenAPI 文档自动生成
- [ ] 集成测试覆盖所有接口 - [x] 集成测试覆盖所有接口
### Must Have ### Must Have
@@ -117,7 +117,7 @@ Critical Path: Task 1 → Task 3/4 → Task 6
## TODOs ## TODOs
- [ ] 1. 修改 Bootstrap 注入 Gateway Client 依赖 - [x] 1. 修改 Bootstrap 注入 Gateway Client 依赖
**What to do**: **What to do**:
- 修改 `internal/bootstrap/handlers.go`,为 `IotCardHandler``DeviceHandler` 注入 `gateway.Client` - 修改 `internal/bootstrap/handlers.go`,为 `IotCardHandler``DeviceHandler` 注入 `gateway.Client`
@@ -154,7 +154,7 @@ Critical Path: Task 1 → Task 3/4 → Task 6
--- ---
- [ ] 2. 扩展 IotCardHandler 添加 6 个 Gateway 接口方法 - [x] 2. 扩展 IotCardHandler 添加 6 个 Gateway 接口方法
**What to do**: **What to do**:
-`internal/handler/admin/iot_card.go` 中添加以下方法: -`internal/handler/admin/iot_card.go` 中添加以下方法:
@@ -198,7 +198,7 @@ Critical Path: Task 1 → Task 3/4 → Task 6
--- ---
- [ ] 3. 扩展 DeviceHandler 添加 7 个 Gateway 接口方法 - [x] 3. 扩展 DeviceHandler 添加 7 个 Gateway 接口方法
**What to do**: **What to do**:
-`internal/handler/admin/device.go` 中添加以下方法: -`internal/handler/admin/device.go` 中添加以下方法:
@@ -243,7 +243,7 @@ Critical Path: Task 1 → Task 3/4 → Task 6
--- ---
- [ ] 4. 注册卡 Gateway 路由6个 - [x] 4. 注册卡 Gateway 路由6个
**What to do**: **What to do**:
-`internal/routes/iot_card.go``registerIotCardRoutes` 函数中添加: -`internal/routes/iot_card.go``registerIotCardRoutes` 函数中添加:
@@ -288,7 +288,7 @@ Critical Path: Task 1 → Task 3/4 → Task 6
--- ---
- [ ] 5. 注册设备 Gateway 路由7个 - [x] 5. 注册设备 Gateway 路由7个
**What to do**: **What to do**:
- 在 `internal/routes/device.go` 的 `registerDeviceRoutes` 函数中添加: - 在 `internal/routes/device.go` 的 `registerDeviceRoutes` 函数中添加:
@@ -333,7 +333,7 @@ Critical Path: Task 1 → Task 3/4 → Task 6
--- ---
- [ ] 6. 添加集成测试 - [x] 6. 添加集成测试
**What to do**: **What to do**:
- 创建或扩展 `tests/integration/iot_card_gateway_test.go` - 创建或扩展 `tests/integration/iot_card_gateway_test.go`
@@ -405,7 +405,7 @@ source .env.local && go test -v ./tests/integration/... -run TestGateway
### Final Checklist ### Final Checklist
- [ ] 所有 13 个接口可访问 - [x] 所有 13 个接口可访问
- [ ] 权限校验生效 - [x] 权限校验生效
- [ ] OpenAPI 文档包含新接口 - [x] OpenAPI 文档包含新接口
- [ ] 集成测试通过 - [x] 集成测试通过