新增api重启系统(支持非windows)

修改
- server/api/v1/sys_system.go
- server/router/sys_system.go
This commit is contained in:
songzhibin97
2021-02-27 12:03:28 +08:00
parent 62bc8092e2
commit 4af1627116
2 changed files with 17 additions and 6 deletions
+1
View File
@@ -12,5 +12,6 @@ func InitSystemRouter(Router *gin.RouterGroup) {
SystemRouter.POST("getSystemConfig", v1.GetSystemConfig) // 获取配置文件内容
SystemRouter.POST("setSystemConfig", v1.SetSystemConfig) // 设置配置文件内容
SystemRouter.POST("getServerInfo", v1.GetServerInfo) // 获取服务器信息
SystemRouter.POST("reloadSystem", v1.ReloadSystem) // 获取服务器信息
}
}