28 lines
571 B
Plaintext
28 lines
571 B
Plaintext
syntax = "v1"
|
|||
|
|
|
||
|
|
type (
|
||
|
|
// === 调度(对齐 frontend-api.md 8.1 节)===
|
||
|
|
|
||
|
|
ReadyJobsReply {
|
||
|
|
Jobs []ReadyJobReply `json:"jobs"`
|
||
|
|
}
|
||
|
|
ReadyJobReply {
|
||
|
|
JobId int `json:"jobId"`
|
||
|
|
WorkOrderId int `json:"workOrderId"`
|
||
|
|
Status string `json:"status"`
|
||
|
|
Priority int `json:"priority"`
|
||
|
|
Reason string `json:"reason"`
|
||
|
|
QueuedAt string `json:"queuedAt"`
|
||
|
|
}
|
||
|
|
)
|
||
|
|
|
||
|
|
@server (
|
||
|
|
jwt: Auth
|
||
|
|
group: scheduler
|
||
|
|
prefix: /api/v1
|
||
|
|
)
|
||
|
|
service hougai-api {
|
||
|
|
@doc "当前调度队列"
|
||
|
|
@handler readyJobs
|
||
|
|
get /scheduler/ready-jobs returns (ReadyJobsReply)
|
||
|
|
}
|