新增菜单结构体字段,新增了两个
This commit is contained in:
@@ -4,4 +4,5 @@ package controller
|
||||
type Api struct {
|
||||
Basic // 基础数据
|
||||
Role // 角色数据
|
||||
Menu // 菜单数据
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"hospital-admin-api/api/responses"
|
||||
)
|
||||
|
||||
type Menu struct{}
|
||||
|
||||
// GetMenuList 获取菜单列表
|
||||
func (r *Menu) GetMenuList(c *gin.Context) {
|
||||
responses.Ok(c)
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user