yidun送检功能
This commit is contained in:
70
model/dto/yidun/content_check_dto.go
Normal file
70
model/dto/yidun/content_check_dto.go
Normal file
@@ -0,0 +1,70 @@
|
||||
package yidun
|
||||
|
||||
// ContentCheckConfig 送检配置
|
||||
type ContentCheckConfig struct {
|
||||
BatchSize int `json:"batch_size"`
|
||||
ImageEnabled bool `json:"image_enabled"`
|
||||
VideoEnabled bool `json:"video_enabled"`
|
||||
IntervalSeconds int `json:"interval_seconds"`
|
||||
}
|
||||
|
||||
// StartCheckReq 启动送检服务请求
|
||||
type StartCheckReq struct {
|
||||
BatchSize int `json:"batch_size"`
|
||||
IntervalSeconds int `json:"interval_seconds"`
|
||||
ImageEnabled bool `json:"image_enabled"`
|
||||
VideoEnabled bool `json:"video_enabled"`
|
||||
}
|
||||
|
||||
// EmptyReq 空请求
|
||||
type EmptyReq struct{}
|
||||
|
||||
// ProcessImageCallbackReq 处理图片回调请求
|
||||
type ProcessImageCallbackReq struct {
|
||||
CallbackData string `json:"callbackData"`
|
||||
}
|
||||
|
||||
// ProcessVideoCallbackReq 处理视频回调请求
|
||||
type ProcessVideoCallbackReq struct {
|
||||
CallbackData string `json:"callbackData"`
|
||||
}
|
||||
|
||||
// ProcessImageResultReq 查询图片检测结果请求
|
||||
type ProcessImageResultReq struct {
|
||||
TaskID string `json:"taskId"`
|
||||
}
|
||||
|
||||
// ProcessVideoResultReq 查询视频检测结果请求
|
||||
type ProcessVideoResultReq struct {
|
||||
TaskID string `json:"taskId"`
|
||||
}
|
||||
|
||||
// ManualSubmitImageByIDReq 手动提交图片送检请求
|
||||
type ManualSubmitImageByIDReq struct {
|
||||
ImageID string `json:"image_id" v:"required#图片ID不能为空"`
|
||||
}
|
||||
|
||||
// ManualSubmitVideoByIDReq 手动提交视频送检请求
|
||||
type ManualSubmitVideoByIDReq struct {
|
||||
VideoID string `json:"video_id" v:"required#视频ID不能为空"`
|
||||
}
|
||||
|
||||
// ManualSubmitRes 手动提交响应
|
||||
type ManualSubmitRes struct {
|
||||
TaskID string `json:"taskId"`
|
||||
}
|
||||
|
||||
// GetImageCheckLogsReq 获取图片送检日志请求
|
||||
type GetImageCheckLogsReq struct {
|
||||
ImageID string `json:"image_id" v:"required#图片ID不能为空"`
|
||||
}
|
||||
|
||||
// GetVideoCheckLogsReq 获取视频送检日志请求
|
||||
type GetVideoCheckLogsReq struct {
|
||||
VideoID string `json:"video_id" v:"required#视频ID不能为空"`
|
||||
}
|
||||
|
||||
// GetCheckLogsRes 获取送检日志响应
|
||||
type GetCheckLogsRes struct {
|
||||
List interface{} `json:"list"`
|
||||
}
|
||||
Reference in New Issue
Block a user