|
@@ -1,7 +1,9 @@
|
|
|
package response
|
|
|
|
|
|
import (
|
|
|
+ "encoding/json"
|
|
|
"github.com/gin-gonic/gin"
|
|
|
+ "hongze/hongze_yb/global"
|
|
|
)
|
|
|
|
|
|
var (
|
|
@@ -18,8 +20,8 @@ type ResultData struct {
|
|
|
}
|
|
|
|
|
|
func result(code int, resultData ResultData, c *gin.Context) {
|
|
|
- //jsonByte, _ := json.Marshal(resultData)
|
|
|
- //global.LOG.Debug("resultData:", string(jsonByte))
|
|
|
+ jsonByte, _ := json.Marshal(resultData)
|
|
|
+ global.LOG.Debug("resultData:", string(jsonByte))
|
|
|
c.JSON(code, resultData)
|
|
|
c.Abort()
|
|
|
}
|