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

  1. package servers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "net/http"
  5. )
  6. func ReportFormat(c *gin.Context, success bool, msg string, json gin.H) {
  7. c.JSON(http.StatusOK, gin.H{
  8. "success": success,
  9. "msg": msg,
  10. "data": json,
  11. })
  12. }