处理分享2

This commit is contained in:
2024-09-29 14:52:42 +08:00
parent 077b94ff99
commit 6431aa890b
7 changed files with 127 additions and 58 deletions
+3 -3
View File
@@ -13,9 +13,9 @@ type res struct {
}
func result(code int, data interface{}, msg string, c *gin.Context) {
if data == nil {
data = gin.H{}
}
//if data == nil {
// data = gin.H{}
//}
c.JSON(http.StatusOK, res{
code,
data,