Files
doc_ai_backed/internal/model/formula/response.go

30 lines
895 B
Go
Raw Normal View History

2025-12-10 18:33:37 +08:00
package formula
type CreateTaskResponse struct {
TaskNo string `json:"task_no"`
Status int `json:"status"`
}
type GetFormulaTaskResponse struct {
2026-02-05 10:44:11 +08:00
TaskNo string `json:"task_no"`
Status int `json:"status"`
Count int `json:"count"`
Latex string `json:"latex"`
Markdown string `json:"markdown"`
MathML string `json:"mathml"`
MML string `json:"mml"`
2025-12-10 18:33:37 +08:00
}
2025-12-15 23:29:28 +08:00
// FormulaRecognitionResponse 公式识别服务返回的响应
type FormulaRecognitionResponse struct {
Result string `json:"result"`
}
2025-12-31 17:53:12 +08:00
// ImageOCRResponse 图片OCR接口返回的响应
type ImageOCRResponse struct {
2026-02-05 10:44:11 +08:00
Markdown string `json:"markdown"` // Markdown 格式内容
Latex string `json:"latex"` // LaTeX 格式内容 (无公式时为空)
MathML string `json:"mathml"` // MathML 格式(无公式时为空)
MML string `json:"mml"` // MML 格式(无公式时为空)
2025-12-31 17:53:12 +08:00
}