Files
doc_ai_backed/internal/model/task/request.go

37 lines
1.2 KiB
Go
Raw Normal View History

2025-12-10 18:33:37 +08:00
package task
type EvaluateTaskRequest struct {
TaskNo string `json:"task_no" binding:"required"` // 任务编号
Satisfied int `json:"satisfied"` // 0: 不满意, 1: 满意
Suggestion []string `json:"suggestion"` // 建议 1. 公式无法渲染 2. 公式渲染错误
Feedback string `json:"feedback"` // 反馈
}
type TaskListRequest struct {
TaskType string `json:"task_type" form:"task_type" binding:"required"`
Page int `json:"page" form:"page"`
PageSize int `json:"page_size" form:"page_size"`
2025-12-18 12:39:50 +08:00
UserID int64 `json:"-"`
2025-12-10 18:33:37 +08:00
}
type TaskListDTO struct {
2025-12-18 12:39:50 +08:00
TaskID string `json:"task_id"`
FileName string `json:"file_name"`
2025-12-18 15:14:42 +08:00
Status int `json:"status"`
OriginURL string `json:"origin_url"`
2025-12-18 12:39:50 +08:00
TaskType string `json:"task_type"`
CreatedAt string `json:"created_at"`
Latex string `json:"latex"`
Markdown string `json:"markdown"`
MathML string `json:"mathml"`
MathMLMW string `json:"mathml_mw"`
ImageBlob string `json:"image_blob"`
DocxURL string `json:"docx_url"`
PDFURL string `json:"pdf_url"`
2025-12-10 18:33:37 +08:00
}
type TaskListResponse struct {
TaskList []*TaskListDTO `json:"task_list"`
2025-12-18 12:39:50 +08:00
Total int64 `json:"total"`
2025-12-10 18:33:37 +08:00
}