:poop:代码改进

This commit is contained in:
coward
2024-03-14 15:23:16 +08:00
parent 91a1e61334
commit 8dfef5192e
23 changed files with 443 additions and 83 deletions

View File

@@ -9,8 +9,7 @@ import (
func ServerApi(r *gin.RouterGroup) {
apiGroup := r.Group("server", middleware.Authorization())
{
apiGroup.GET("", api.Server().GetServer) // 获取服务端信息
apiGroup.GET("global-setting", api.Server().GetGlobalSetting) // 获取服务端全局配置
apiGroup.POST("", api.Server().SaveServer) // 新增/更新服务端信息
apiGroup.GET("", api.Server().GetServer) // 获取服务端信息
apiGroup.POST("", api.Server().SaveServer) // 新增/更新服务端信息
}
}