init repo
This commit is contained in:
36
internal/model/task/request.go
Normal file
36
internal/model/task/request.go
Normal file
@@ -0,0 +1,36 @@
|
||||
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"`
|
||||
}
|
||||
|
||||
type PdfInfo struct {
|
||||
PageCount int `json:"page_count"`
|
||||
PageWidth int `json:"page_width"`
|
||||
PageHeight int `json:"page_height"`
|
||||
}
|
||||
|
||||
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"`
|
||||
PdfInfo PdfInfo `json:"pdf_info"`
|
||||
}
|
||||
|
||||
type TaskListResponse struct {
|
||||
TaskList []*TaskListDTO `json:"task_list"`
|
||||
HasMore bool `json:"has_more"`
|
||||
NextPage int `json:"next_page"`
|
||||
}
|
||||
Reference in New Issue
Block a user