重构:模块重命名 u-desk,更新所有依赖到最新版本
This commit is contained in:
12
app.go
12
app.go
@@ -3,11 +3,11 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"go-desk/internal/api"
|
||||
"go-desk/internal/database"
|
||||
"go-desk/internal/filesystem"
|
||||
"go-desk/internal/storage"
|
||||
"go-desk/internal/system"
|
||||
"u-desk/internal/api"
|
||||
"u-desk/internal/database"
|
||||
"u-desk/internal/filesystem"
|
||||
"u-desk/internal/storage"
|
||||
"u-desk/internal/system"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -52,7 +52,7 @@ func (a *App) Startup(ctx context.Context) {
|
||||
|
||||
// 4. 异步初始化:UpdateAPI(涉及网络请求,完全异步)
|
||||
go func() {
|
||||
if updateAPI, err := api.NewUpdateAPI("https://img.1216.top/go-desk/last-version.json"); err == nil {
|
||||
if updateAPI, err := api.NewUpdateAPI("https://img.1216.top/u-desk/last-version.json"); err == nil {
|
||||
a.updateAPI = updateAPI
|
||||
a.updateAPI.SetContext(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user