chore(deps): upgrade echo framework from v4 to v5 and remove custom context middleware

This commit is contained in:
keven1024
2026-02-26 16:09:47 +08:00
parent e9d0848f87
commit b98853ebe1
20 changed files with 64 additions and 125 deletions

View File

@@ -1,16 +1,17 @@
package task
import (
"backend/middleware"
"encoding/json"
"errors"
"github.com/labstack/echo/v5"
)
type GenCompressImageRequest struct {
FileId string `json:"file_id"`
}
func HandleImageCompress(c *middleware.CustomContext) ([]byte, error) {
func HandleImageCompress(c *echo.Context) ([]byte, error) {
r := new(GenCompressImageRequest)
if err := c.Bind(r); err != nil {