This commit is contained in:
2024-09-14 10:48:09 +08:00
commit a5fa833937
192 changed files with 87641 additions and 0 deletions

17
model/response/feature.go Normal file
View File

@@ -0,0 +1,17 @@
package response
// 成功的 OCR 响应结构
type OcrSuccessResponse struct {
WordsResult []struct {
Words string `json:"words"`
} `json:"words_result"`
WordsResultNum int `json:"words_result_num"`
LogID int `json:"log_id"`
}
// 失败的 OCR 响应结构
type OcrErrorResponse struct {
LogID string `json:"log_id"`
ErrorMsg string `json:"error_msg"`
ErrorCode int `json:"error_code"`
}