rename field
This commit is contained in:
4
main.go
4
main.go
@@ -3,16 +3,16 @@ package main
|
|||||||
import (
|
import (
|
||||||
"astra-file-storage/config"
|
"astra-file-storage/config"
|
||||||
uuid2 "github.com/google/uuid"
|
uuid2 "github.com/google/uuid"
|
||||||
|
"github.com/labstack/echo/v4"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
|
||||||
"github.com/labstack/echo/v4/middleware"
|
"github.com/labstack/echo/v4/middleware"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FileSuccess struct {
|
type FileSuccess struct {
|
||||||
FileName string `json:"fileName"`
|
FileName string `json:"file_name"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func upload(c echo.Context) error {
|
func upload(c echo.Context) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user