diff --git a/README.md b/README.md index 3aa2f3b..2cd8fb9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ 1. 支持 [gorm](https://gorm.io/gorm) 数据库组件 1. 支持 [go-redis](https://github.com/go-redis/redis/v7) 组件 1. 支持 RESTful API 返回值规范 -1. 支持 gormgen、handlergen 代码生成工具 +1. 支持 生成数据表 CURD、控制器方法 等代码生成器 1. 支持 web 界面,使用的 [Light Year Admin 模板](https://gitee.com/yinqi/Light-Year-Admin-Using-Iframe) diff --git a/assets/bootstrap/images/qr-code.png b/assets/bootstrap/images/qr-code.png new file mode 100644 index 0000000..34dd9aa Binary files /dev/null and b/assets/bootstrap/images/qr-code.png differ diff --git a/assets/bootstrap/js/httpclient/httpclient.js b/assets/bootstrap/js/httpclient/httpclient.js index 88fbdf9..5bb0812 100644 --- a/assets/bootstrap/js/httpclient/httpclient.js +++ b/assets/bootstrap/js/httpclient/httpclient.js @@ -3,7 +3,7 @@ document.write(''); document.write(''); document.write(''); - +document.write('
'); function GenerateAuthorization(path, method, params) { let key = "admin"; diff --git a/assets/templates/admin/admin_list.html b/assets/templates/admin/admin_list.html index e2735a8..61cad85 100644 --- a/assets/templates/admin/admin_list.html +++ b/assets/templates/admin/admin_list.html @@ -131,6 +131,9 @@ ' 重置密码\n' + + ' 菜单授权\n' + ' 删除\n' + @@ -272,6 +275,11 @@ }); }); + // 菜单授权 + $(document).on('click', '.btn-menu', function () { + location.href = "/admin/action/" + $(this).attr('data-id'); + }); + // 删除 $(document).on('click', '.btn-confirm', function () { const id = $(this).attr('data-id'); diff --git a/assets/templates/admin/admin_login.html b/assets/templates/admin/admin_login.html index 1757e8c..b0a4cea 100644 --- a/assets/templates/admin/admin_login.html +++ b/assets/templates/admin/admin_login.html @@ -115,7 +115,7 @@ AjaxForm( "POST", - "/login/web", + "/api/login", postData, function () { }, diff --git a/assets/templates/admin/admin_menu.html b/assets/templates/admin/admin_menu.html new file mode 100644 index 0000000..870b7d1 --- /dev/null +++ b/assets/templates/admin/admin_menu.html @@ -0,0 +1,213 @@ + + + + + + + + + + + + + +