Skip to content

Commit

Permalink
审核冻结参数;直播审核转存参数
Browse files Browse the repository at this point in the history
  • Loading branch information
mossju committed Dec 27, 2022
1 parent c57d309 commit 1380145
Showing 1 changed file with 46 additions and 18 deletions.
64 changes: 46 additions & 18 deletions ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,17 @@ type UserExtraInfo struct {
Role string `xml:",omitempty"`
}

// FreezeConf is auto freeze options
type FreezeConf struct {
PornScore string `xml:",omitempty"`
IllegalScore string `xml:",omitempty"`
TerrorismScore string `xml:",omitempty"`
PoliticsScore string `xml:",omitempty"`
AdsScore string `xml:",omitempty"`
AbuseScore string `xml:",omitempty"`
TeenagerScore string `xml:",omitempty"`
}

// ImageAuditingInputOptions is the option of BatchImageAuditingOptions
type ImageAuditingInputOptions struct {
DataId string `xml:",omitempty"`
Expand All @@ -229,10 +240,11 @@ type ImageAuditingInputOptions struct {

// ImageAuditingJobConf is the config of BatchImageAuditingOptions
type ImageAuditingJobConf struct {
DetectType string `xml:",omitempty"`
BizType string `xml:",omitempty"`
Async int `xml:",omitempty"`
Callback string `xml:",omitempty"`
DetectType string `xml:",omitempty"`
BizType string `xml:",omitempty"`
Async int `xml:",omitempty"`
Callback string `xml:",omitempty"`
Freeze *FreezeConf `xml:",omitempty"`
}

// BatchImageAuditingOptions is the option of BatchImageAuditing
Expand Down Expand Up @@ -265,6 +277,7 @@ type ImageAuditingResult struct {
CompressionResult int `xml:",omitempty"`
UserInfo *UserExtraInfo `xml:",omitempty"`
ListInfo *UserListInfo `xml:",omitempty"`
ForbidState int `xml:",omitempty"`
}

// BatchImageAuditingJobResult is the result of BatchImageAuditing
Expand Down Expand Up @@ -317,6 +330,7 @@ type PutVideoAuditingJobOptions struct {
InputUserInfo *UserExtraInfo `xml:"Input>UserInfo,omitempty"`
Conf *VideoAuditingJobConf `xml:"Conf"`
Type string `xml:"Type,omitempty"`
StorageConf *StorageConf `xml:"StorageConf,omitempty"`
}

// VideoAuditingJobConf is the config of PutVideoAuditingJobOptions
Expand All @@ -328,6 +342,7 @@ type VideoAuditingJobConf struct {
CallbackType int `xml:",omitempty"`
BizType string `xml:",omitempty"`
DetectContent int `xml:",omitempty"`
Freeze *FreezeConf `xml:",omitempty"`
}

// PutVideoAuditingJobSnapshot is the snapshot config of VideoAuditingJobConf
Expand All @@ -337,6 +352,11 @@ type PutVideoAuditingJobSnapshot struct {
TimeInterval float32 `xml:",omitempty"`
}

// StorageConf is live video storage config of PutVideoAuditingJobOptions
type StorageConf struct {
Path string `xml:",omitempty"`
}

// PutVideoAuditingJobResult is the result of PutVideoAuditingJob
type PutVideoAuditingJobResult struct {
XMLName xml.Name `xml:"Response"`
Expand Down Expand Up @@ -394,6 +414,7 @@ type AuditingJobDetail struct {
UserInfo *UserExtraInfo `xml:",omitempty"`
Type string `xml:",omitempty"`
ListInfo *UserListInfo `xml:",omitempty"`
ForbidState int `xml:",omitempty"`
}

// GetVideoAuditingJobSnapshot is the snapshot result of AuditingJobDetail
Expand All @@ -417,6 +438,7 @@ type AudioSectionResult struct {
OffsetTime int `xml:",omitempty"`
Duration int `xml:",omitempty"`
Label string `xml:",omitempty"`
SubLabel string `xml:",omitempty"`
Result int `xml:",omitempty"`
PornInfo *RecognitionInfo `xml:",omitempty"`
TerrorismInfo *RecognitionInfo `xml:",omitempty"`
Expand Down Expand Up @@ -464,11 +486,12 @@ type PutAudioAuditingJobOptions struct {

// AudioAuditingJobConf is the config of PutAudioAuditingJobOptions
type AudioAuditingJobConf struct {
DetectType string `xml:",omitempty"`
Callback string `xml:",omitempty"`
CallbackVersion string `xml:",omitempty"`
CallbackType int `xml:",omitempty"`
BizType string `xml:",omitempty"`
DetectType string `xml:",omitempty"`
Callback string `xml:",omitempty"`
CallbackVersion string `xml:",omitempty"`
CallbackType int `xml:",omitempty"`
BizType string `xml:",omitempty"`
Freeze *FreezeConf `xml:",omitempty"`
}

// PutAudioAuditingJobResult is the result of PutAudioAuditingJob
Expand Down Expand Up @@ -517,6 +540,7 @@ type AudioAuditingJobDetail struct {
Section []AudioSectionResult `xml:",omitempty"`
UserInfo *UserExtraInfo `xml:",omitempty"`
ListInfo *UserListInfo `xml:",omitempty"`
ForbidState int `xml:",omitempty"`
}

// LanguageResult 语种识别结果
Expand Down Expand Up @@ -553,11 +577,12 @@ type PutTextAuditingJobOptions struct {

// TextAuditingJobConf is the config of PutAudioAuditingJobOptions
type TextAuditingJobConf struct {
DetectType string `xml:",omitempty"`
Callback string `xml:",omitempty"`
CallbackVersion string `xml:",omitempty"`
BizType string `xml:",omitempty"`
CallbackType int `xml:",omitempty"`
DetectType string `xml:",omitempty"`
Callback string `xml:",omitempty"`
CallbackVersion string `xml:",omitempty"`
BizType string `xml:",omitempty"`
CallbackType int `xml:",omitempty"`
Freeze *FreezeConf `xml:",omitempty"`
}

// PutTextAuditingJobResult is the result of PutTextAuditingJob
Expand Down Expand Up @@ -607,6 +632,7 @@ type TextAuditingJobDetail struct {
Section []TextSectionResult `xml:",omitempty"`
UserInfo *UserExtraInfo `xml:",omitempty"`
ListInfo *UserListInfo `xml:",omitempty"`
ForbidState int `xml:",omitempty"`
}

// TextLibResult
Expand Down Expand Up @@ -666,10 +692,11 @@ type PutDocumentAuditingJobOptions struct {

// DocumentAuditingJobConf is the config of PutDocumentAuditingJobOptions
type DocumentAuditingJobConf struct {
DetectType string `xml:",omitempty"`
Callback string `xml:",omitempty"`
BizType string `xml:",omitempty"`
CallbackType int `xml:",omitempty"`
DetectType string `xml:",omitempty"`
Callback string `xml:",omitempty"`
BizType string `xml:",omitempty"`
CallbackType int `xml:",omitempty"`
Freeze *FreezeConf `xml:",omitempty"`
}

// PutDocumentAuditingJobResult is the result of PutDocumentAuditingJob
Expand Down Expand Up @@ -713,6 +740,7 @@ type DocumentAuditingJobDetail struct {
PageSegment *DocumentPageSegmentInfo `xml:",omitempty"`
UserInfo *UserExtraInfo `xml:",omitempty"`
ListInfo *UserListInfo `xml:",omitempty"`
ForbidState int `xml:",omitempty"`
}

// DocumentResultInfo
Expand Down

0 comments on commit 1380145

Please sign in to comment.