37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
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"`
|
|
UserID int64 `json:"-"`
|
|
}
|
|
|
|
type TaskListDTO struct {
|
|
TaskID string `json:"task_id"`
|
|
FileName string `json:"file_name"`
|
|
Status string `json:"status"`
|
|
Path string `json:"path"`
|
|
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"`
|
|
}
|
|
|
|
type TaskListResponse struct {
|
|
TaskList []*TaskListDTO `json:"task_list"`
|
|
Total int64 `json:"total"`
|
|
}
|