updata->update

Updata->Update
This commit is contained in:
rainyan
2020-04-02 20:35:19 +08:00
parent abc88cdbe0
commit 40ef40afa8
24 changed files with 74 additions and 74 deletions

View File

@@ -163,11 +163,11 @@ func DeleteBaseMenu(c *gin.Context) {
// @Produce application/json
// @Param data body sysModel.SysBaseMenu true "更新菜单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /menu/updataBaseMen [post]
func UpdataBaseMenu(c *gin.Context) {
// @Router /menu/updateBaseMen [post]
func UpdateBaseMenu(c *gin.Context) {
var menu sysModel.SysBaseMenu
_ = c.ShouldBindJSON(&menu)
err := menu.UpdataBaseMenu()
err := menu.UpdateBaseMenu()
if err != nil {
servers.ReportFormat(c, false, fmt.Sprintf("修改失败:%v", err), gin.H{})
} else {