|
@@ -55,7 +55,7 @@ func CateSave(c *gin.Context) { |
|
|
} |
|
|
} |
|
|
data.Name = req.Name |
|
|
data.Name = req.Name |
|
|
data.Sort = utils.StrToInt(req.Sort) |
|
|
data.Sort = utils.StrToInt(req.Sort) |
|
|
db.Db.Where("id=?", data.Id).Update(data) |
|
|
|
|
|
|
|
|
db.Db.Where("id=?", data.Id).AllCols().Update(data) |
|
|
e.OutSuc(c, "success", nil) |
|
|
e.OutSuc(c, "success", nil) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|