qnc init
This commit is contained in:
17
model/response/feature.go
Normal file
17
model/response/feature.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user