refactor: use common taskSubmitReq

This commit is contained in:
feitianbubu
2025-09-12 22:43:03 +08:00
parent 59d6ff0caf
commit e55c84f599
5 changed files with 92 additions and 76 deletions
+8
View File
@@ -486,6 +486,14 @@ type TaskSubmitReq struct {
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
func (t TaskSubmitReq) GetPrompt() string {
return t.Prompt
}
func (t TaskSubmitReq) GetImage() string {
return t.Image
}
type TaskInfo struct {
Code int `json:"code"`
TaskID string `json:"task_id"`