mirror of
https://github.com/serty2005/rmser.git
synced 2026-02-04 19:02:33 -06:00
start rmser
This commit is contained in:
13
internal/infrastructure/ocr_client/dto.go
Normal file
13
internal/infrastructure/ocr_client/dto.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package ocr_client
|
||||
|
||||
// RecognitionResult - ответ от Python сервиса
|
||||
type RecognitionResult struct {
|
||||
Items []RecognizedItem `json:"items"`
|
||||
}
|
||||
|
||||
type RecognizedItem struct {
|
||||
RawName string `json:"raw_name"` // Текст названия из чека
|
||||
Amount float64 `json:"amount"` // Кол-во
|
||||
Price float64 `json:"price"` // Цена
|
||||
Sum float64 `json:"sum"` // Сумма
|
||||
}
|
||||
Reference in New Issue
Block a user