增加更新重启逻辑

This commit is contained in:
2025-10-17 17:03:19 +08:00
parent 7184defc50
commit 248f9a28e7
24 changed files with 604 additions and 65 deletions

28
internal/service/os.go Normal file
View File

@@ -0,0 +1,28 @@
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
type (
IOS interface {
Load(title string, tooltip string, ico string)
Update(version string, server string)
}
)
var (
localOS IOS
)
func OS() IOS {
if localOS == nil {
panic("implement not found for interface IOS, forgot register?")
}
return localOS
}
func RegisterOS(i IOS) {
localOS = i
}