init: 初始化项目

This commit is contained in:
0264408
2026-03-10 16:26:48 +08:00
commit 57e0ef2cf6
79 changed files with 8943 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package handler
import (
"nebula/internal/api/response"
"nebula/internal/updater"
"github.com/gin-gonic/gin"
)
func (h *Handler) CheckUpdate(c *gin.Context) {
req := updater.CheckRequest{
App: c.Query("app"),
Version: c.Query("version"),
Platform: c.Query("platform"),
Arch: c.Query("arch"),
}
resp, err := updater.CheckUpdate(h.db, req)
if err != nil {
response.FailServer(c, err.Error())
return
}
response.Ok(c, resp)
}