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.

14 lines
238 B

package servers
import (
"github.com/gin-gonic/gin"
"net/http"
)
func ReportFormat(c *gin.Context, success bool, msg string, json gin.H) {
c.JSON(http.StatusOK, gin.H{
"success": success,
"msg": msg,
"data": json,
})
}