Jelajahi Sumber

feat(ocr): 更新 OCR 记录并添加详情接口

- 新增 updateContent 方法,用于更新 OCR 记录的内容
- 新增 updateDetail 方法,用于更新 OCR记录的详情
- 在路由中添加对应的 API 接口
wui 10 bulan lalu
induk
melakukan
75473694ca
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Controllers/Http/OcrRecordController.ts

+ 1 - 1
app/Controllers/Http/OcrRecordController.ts

@@ -59,7 +59,7 @@ export default class OcrRecordController {
             await record.save()
             return response.ok(record)
         } else {
-            return response.notFound({ message: 'Record not found' })
+            return response.notFound({ message: 'Record not found.' })
         }
     }