reportformat.go 238 B

1234567891011121314
  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. }