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.

16 lines
256 B

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