gitee.com/h79/goutils@v1.22.10/common/file/alyoss/result.go (about)

     1  package alyoss
     2  
     3  type Error struct {
     4  	RequestId string
     5  	HostId    string
     6  	Code      string
     7  	Message   string
     8  }
     9  
    10  // SubmitResult 提交转码返回结果
    11  type SubmitResult struct {
    12  	RequestId string
    13  	JobResult JobResultList `json:"JobResultList"`
    14  }
    15  
    16  type JobResultList struct {
    17  	JobResults []JobResult `json:"result"`
    18  }
    19  
    20  type JobResult struct {
    21  	Success string
    22  	Code    string
    23  	Message string
    24  	Job     Job
    25  }
    26  
    27  // QueryJobResult 查询转码状态结果
    28  type QueryJobResult struct {
    29  	RequestId string
    30  	JobList   JobList
    31  }
    32  
    33  type JobList struct {
    34  	Jobs []Job `json:"Job"`
    35  }
    36  
    37  // MediaInfoResult 媒体信息返回结果
    38  type MediaInfoResult struct {
    39  	RequestId string
    40  	MediaInfo []MediaInfo `json:"MediaInfoJob"`
    41  }
    42  
    43  // SnapshotResult 截图返回结果
    44  type SnapshotResult struct {
    45  	RequestId string
    46  	Snapshot  Snapshot `json:"SnapshotJob"`
    47  }