mirror of
https://github.com/keven1024/015.git
synced 2026-06-07 21:04:33 +00:00
chore(deps): upgrade echo framework from v4 to v5 and remove custom context middleware
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user