Init commit of jobs output/error message peek project.

This commit is contained in:
Lei Chen 2026-05-09 16:57:54 +08:00
parent c772d7e601
commit d2b47e3985
38 changed files with 2267 additions and 21 deletions

View file

@ -515,3 +515,18 @@ func (e *ExitStatusValue) UnmarshalJSON(data []byte) error {
*e = ExitStatusValue(s)
return nil
}
// JobOutputResponse represents the response from the job output API.
type JobOutputResponse struct {
Code int `json:"code"`
Msg string `json:"msg"`
Data JobOutputData `json:"data"`
}
// JobOutputData represents the payload in a job output response.
type JobOutputData struct {
Content string `json:"content"`
Offset int64 `json:"offset"`
JobStatus string `json:"job_status"`
Done bool `json:"done"`
}