| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- /*
- * Auto Update Config API List
- * /autoUpdateConfig/option - GET 获取配置选项
- * /autoUpdateConfig/packageInfo - GET 获取包信息 - 通过升级包名
- * /autoUpdateConfig/packageInfo/create/:type - POST 创建自动升级包信息
- * /autoUpdateConfig/packageInfo/update/:id - POST 更新自动升级包信息
- * /autoUpdateConfig/packageInfo/delete/:type/:id - DELETE 删除自动升级包信息
- * /autoUpdateConfig/aPowerVersion - GET 获取aPower版本信息 - 通过硬件版本号
- * /autoUpdateConfig/aPowerVersion/:version - POST 新增&更新aPower版本信息 - 通过硬件版本号
- * /autoUpdateConfig/aPowerVersion/:version - DELETE 删除aPower版本信息 - 通过硬件版本号
- * /autoUpdateConfig/config - GET 获取配置 - 通过aGate硬件版本
- * /autoUpdateConfig/config/:aGate - POST 新增&更新配置 - 通过aGate硬件版本
- * /autoUpdateConfig/config/:aGate - DELETE 删除配置 - 通过aGate硬件版本
- * /autoUpdateConfig/config/special/:aGate - POST 新增特殊配置 - 通过aGate硬件版本
- * /autoUpdateConfig/config/special/:aGate/:id - DELETE 删除特殊配置 - 通过aGate硬件版本
- * /autoUpdateConfig/configFile - GET 获取配置文件列表
- * /autoUpdateConfig/configFile/create - POST 创建配置文件
- * /autoUpdateConfig/configFile/download/:fileName - GET 下载配置文件列表
- */
- package routes
- import (
- "fwh-toolbox-server/controllers"
- "github.com/gofiber/fiber/v2"
- )
- func AutoUpdateConfigSetup(api fiber.Router) {
- // 获取自动升级配置选项
- api.Get("/autoUpdateConfig/option", controllers.GetAutoUpdateConfigOption)
- // 获取自动升级包信息 - 通过升级包名
- api.Get("/autoUpdateConfig/packageInfo", controllers.GetAutoUpdatePackageInfo)
- // 创建自动升级包信息
- api.Post("/autoUpdateConfig/packageInfo/create/:type", controllers.CreateAutoUpdatePackageInfo)
- // 更新自动升级包信息
- api.Post("/autoUpdateConfig/packageInfo/update/:id", controllers.UpdateAutoUpdatePackageInfo)
- // 删除自动升级包信息
- api.Delete("/autoUpdateConfig/packageInfo/delete/:type/:id", controllers.DeleteAutoUpdatePackageInfo)
- // 获取aPower版本信息 - 通过硬件版本号
- api.Get("/autoUpdateConfig/aPowerVersion", controllers.GetAutoUpdateAPowerVersion)
- // 新增&更新aPower版本信息 - 通过硬件版本号
- api.Post("/autoUpdateConfig/aPowerVersion/:version", controllers.UpdateAutoUpdateAPowerVersion)
- // 删除aPower版本信息 - 通过硬件版本号
- api.Delete("/autoUpdateConfig/aPowerVersion/:version", controllers.DeleteAutoUpdateAPowerVersion)
- // 获取自动升级配置 - 通过aGate硬件版本
- api.Get("/autoUpdateConfig/config", controllers.GetAutoUpdateConfig)
- // 新增&更新配置 - 通过aGate硬件版本
- api.Post("/autoUpdateConfig/config/:aGate", controllers.UpdateAutoUpdateConfig)
- // 删除配置 - 通过aGate硬件版本
- api.Delete("/autoUpdateConfig/config/:aGate", controllers.DeleteAutoUpdateConfig)
- // 新增特殊配置 - 通过aGate硬件版本
- api.Post("/autoUpdateConfig/config/special/:aGate", controllers.CreateAutoUpdateSpecialConfig)
- // 删除特殊配置 - 通过aGate硬件版本
- api.Delete("/autoUpdateConfig/config/special/:aGate/:id", controllers.DeleteAutoUpdateSpecialConfig)
- // 获取配置文件列表
- api.Get("/autoUpdateConfig/configFile", controllers.GetAutoUpdateConfigFileInfo)
- // 创建配置文件
- api.Post("/autoUpdateConfig/configFile/create", controllers.CreateAutoUpdateConfigFile)
- // 下载配置文件列表
- api.Get("/autoUpdateConfig/configFile/download/:fileName", controllers.DownloadAutoUpdateConfigFile)
- }
|