You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
362 B

package callback
import (
"fmt"
"net/http"
"github.com/gin-gonic/gin"
)
type CallbackDto struct {
Filename string `json:"filename"`
Size string `json:"size"`
}
func CallbackAction(c *gin.Context) {
var in CallbackDto
if err := c.Bind(&in); err != nil {
fmt.Println(err)
}
fmt.Println(in)
c.JSON(http.StatusOK, gin.H{
"Status": "OK",
})
}