Files
zmkgC/api/webodm/res.go

65 lines
2.4 KiB
Go
Raw Normal View History

2025-07-07 20:11:59 +08:00
package webodm
// 项目列表响应
type ProjectListRes struct {
ProjectsResponse
}
type ProjectsResponse struct {
Count int `json:"count"`
Next *string `json:"next"`
Previous *string `json:"previous"`
Results []Project `json:"results"`
}
type Project struct {
ID int `json:"id"`
Tasks []string `json:"tasks"`
CreatedAt string `json:"created_at"`
Permissions []string `json:"permissions"`
Name string `json:"name"`
Description string `json:"description"`
}
// 发起任务响应
type TaskCreateRes struct {
TaskId string `json:"taskId" dc:"任务ID"`
}
// 获取某个任务的进度
type TaskProcessRes struct {
TaskProcessResponse
}
type TaskProcessResponse struct {
ID string `json:"id"`
Project int `json:"project"`
ProcessingNode int `json:"processing_node"`
ProcessingNodeName string `json:"processing_node_name"`
CanRerunFrom []string `json:"can_rerun_from"`
Statistics map[string]interface{} `json:"statistics"`
UUID string `json:"uuid"`
Name interface{} `json:"name"`
ProcessingTime int `json:"processing_time"`
AutoProcessingNode bool `json:"auto_processing_node"`
Status int `json:"status"`
LastError interface{} `json:"last_error"`
Options map[string]interface{} `json:"options"`
AvailableAssets []string `json:"available_assets"`
CreatedAt string `json:"created_at"`
PendingAction interface{} `json:"pending_action"`
Public bool `json:"public"`
ResizeTo int `json:"resize_to"`
UploadProgress float64 `json:"upload_progress"`
ResizeProgress float64 `json:"resize_progress"`
RunningProgress float64 `json:"running_progress"`
ImportURL string `json:"import_url"`
ImagesCount int `json:"images_count"`
Partial bool `json:"partial"`
PotreeScene map[string]interface{} `json:"potree_scene"`
EPSG interface{} `json:"epsg"`
}
// 下载任务
type TaskDownloadRes struct {
FileUrl string `json:"fileUrl"`
}