feat(backend): add text translation handler and update task mapping for new translation functionality

This commit is contained in:
keven1024
2026-04-07 08:46:31 +08:00
parent 3f5f8b3c97
commit 6a7e8f85ac
3 changed files with 166 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ import (
var handleTaskMap = map[string]func(c *echo.Context) ([]byte, error){
"image:compress": task.HandleImageCompress,
"image:convert": task.HandleImageConvert,
"text:translate": task.HandleTextTranslate,
}
func CreateTask(c *echo.Context) error {