53 lines
1.7 KiB
Go
53 lines
1.7 KiB
Go
package model
|
|
|
|
import (
|
|
green20220302 "github.com/alibabacloud-go/green-20220302/v2/client"
|
|
)
|
|
|
|
// VideoScanRequest 视频审核请求结构
|
|
type VideoScanRequest struct {
|
|
Tasks []VideoTask `json:"tasks"`
|
|
Services []string `json:"services"` // 2.0版本使用services而不是scenes
|
|
}
|
|
|
|
// VideoTask 视频任务结构
|
|
type VideoTask struct {
|
|
DataID string `json:"dataId"`
|
|
URL string `json:"url"`
|
|
Interval int `json:"interval,omitempty"` // 截帧间隔,单位秒
|
|
MaxFrames int `json:"maxFrames,omitempty"` // 最大截帧数
|
|
}
|
|
|
|
// VideoScanResponse 视频审核响应结构
|
|
type VideoScanResponse struct {
|
|
Code int32 `json:"code"`
|
|
Message string `json:"message"`
|
|
Data []VideoScanData `json:"data"`
|
|
}
|
|
|
|
// VideoScanData 视频审核数据
|
|
type VideoScanData struct {
|
|
Code int32 `json:"code"`
|
|
Message string `json:"message"`
|
|
DataID string `json:"dataId"`
|
|
TaskID string `json:"taskId"`
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
// VideoResultResponse 视频审核结果响应结构
|
|
type VideoResultResponse struct {
|
|
Code int32 `json:"code"`
|
|
Message string `json:"message"`
|
|
Data []VideoResultData `json:"data"`
|
|
}
|
|
|
|
// VideoResultData 视频审核结果数据
|
|
type VideoResultData struct {
|
|
Code int32 `json:"code"`
|
|
Message string `json:"message"`
|
|
DataID string `json:"dataId"`
|
|
TaskID string `json:"taskId"`
|
|
Status string `json:"status"`
|
|
Results *green20220302.VideoModerationResultResponseBodyData `json:"results"`
|
|
}
|