feat(htyproc): IMAGE_FORM_COMPRESS task posts form_image_compress_audit to ai-api
Made-with: Cursor
This commit is contained in:
@@ -12,6 +12,8 @@ pub enum TaskType {
|
||||
AudioFileAiScore,
|
||||
Watermark,
|
||||
VideoCompression,
|
||||
/// 机构首页等经 OpenResty `form_upload_to_compress` 已落又拍后的登记任务;载荷见 `payload.url`。
|
||||
ImageFormCompress,
|
||||
TestUpyunRemove,
|
||||
}
|
||||
|
||||
@@ -27,6 +29,7 @@ impl FromStr for TaskType {
|
||||
"AUDIO_FILE_AI_SCORE" => Ok(Self::AudioFileAiScore),
|
||||
"WATERMARK" => Ok(Self::Watermark),
|
||||
"VIDEO_COMPRESSION" => Ok(Self::VideoCompression),
|
||||
"IMAGE_FORM_COMPRESS" => Ok(Self::ImageFormCompress),
|
||||
"TEST_UPYUN_REMOVE" => Ok(Self::TestUpyunRemove),
|
||||
_ => Err(format!("unknown TaskType: {s}")),
|
||||
}
|
||||
@@ -45,6 +48,7 @@ impl TaskType {
|
||||
Self::AudioFileAiScore => "AUDIO_FILE_AI_SCORE",
|
||||
Self::Watermark => "WATERMARK",
|
||||
Self::VideoCompression => "VIDEO_COMPRESSION",
|
||||
Self::ImageFormCompress => "IMAGE_FORM_COMPRESS",
|
||||
Self::TestUpyunRemove => "TEST_UPYUN_REMOVE",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user