feature(1.2.8): 新增 websocket 模块

- import gorilla/websocket
- 新增 实用工具箱->WebSocket 栏目
This commit is contained in:
新亮
2021-09-20 19:18:15 +08:00
parent 77e8d58298
commit 17be120c06
31 changed files with 848 additions and 19 deletions
@@ -49,7 +49,8 @@ func CreateAdminMenuTableDataSql() (sql string) {
sql += "(21, 1, 2, 'init'),"
sql += "(22, 1, 22, 'init'),"
sql += "(23, 1, 23, 'init'),"
sql += "(24, 1, 24, 'init');"
sql += "(24, 1, 24, 'init'),"
sql += "(25, 1, 25, 'init');"
return
}
@@ -63,7 +63,8 @@ func CreateMenuTableDataSql() (sql string) {
sql += "(21, 16, '接口指标', '/metrics', '', 2, 706, 'init'),"
sql += "(22, 16, '服务升级', '/upgrade', '', 2, 701, 'init'),"
sql += "(23, 0, '后台任务', '', 'mdi-av-timer', 1, 40, 'init'),"
sql += "(24, 23, '任务列表', '/cron/list', '', 2, 401, 'init');"
sql += "(24, 23, '任务列表', '/cron/list', '', 2, 401, 'init'),"
sql += "(25, 16, 'WebSocket', '/tool/websocket', '', 2, 707, 'init');"
return
}
@@ -80,7 +80,8 @@ func CreateMenuActionTableDataSql() (sql string) {
sql += "(44, 24, 'GET', '/api/cron', 'init'),"
sql += "(45, 24, 'GET', '/api/cron/*', 'init'),"
sql += "(46, 24, 'PATCH', '/api/cron/used', 'init'),"
sql += "(47, 24, 'PATCH', '/api/cron/exec/*', 'init');"
sql += "(47, 24, 'PATCH', '/api/cron/exec/*', 'init'),"
sql += "(48, 25, 'POST', '/api/tool/send_message', 'init');"
return
}