|
@@ -3,7 +3,6 @@ package controller
|
|
|
import (
|
|
import (
|
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/gin-gonic/gin"
|
|
|
"iot_manager_service/app/middleware"
|
|
"iot_manager_service/app/middleware"
|
|
|
- "iot_manager_service/app/system/dao"
|
|
|
|
|
"iot_manager_service/app/system/model"
|
|
"iot_manager_service/app/system/model"
|
|
|
"iot_manager_service/app/system/service"
|
|
"iot_manager_service/app/system/service"
|
|
|
"iot_manager_service/util/common"
|
|
"iot_manager_service/util/common"
|
|
@@ -62,7 +61,7 @@ func (c *menu) LazyMenuList(ctx *gin.Context) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (c *menu) Submit(ctx *gin.Context) {
|
|
func (c *menu) Submit(ctx *gin.Context) {
|
|
|
- var req dao.Menu
|
|
|
|
|
|
|
+ var req model.MenuSubmit
|
|
|
if err := ctx.ShouldBindJSON(&req); err != nil {
|
|
if err := ctx.ShouldBindJSON(&req); err != nil {
|
|
|
ctx.JSON(http.StatusOK, common.ParamsInvalidResponse(err.Error(), nil))
|
|
ctx.JSON(http.StatusOK, common.ParamsInvalidResponse(err.Error(), nil))
|
|
|
return
|
|
return
|