feat(voice): 提升桌面端语音交互与本地任务执行支持
This commit is contained in:
@@ -15,9 +15,11 @@ import (
|
||||
)
|
||||
|
||||
// App 经 Wails v3 的 Service 绑定暴露给前端,承载只有桌面端能做的原生能力:
|
||||
// 文件读写、系统"另存为"框、用系统默认应用打开、原生通知。
|
||||
// 文件读写、系统"另存为"框、用系统默认应用打开、原生通知、本地执行 runner(JARVIS 的手)。
|
||||
// v3 中不再需要注入 ctx——对话框经 application.Get().Dialog 获取。
|
||||
type App struct{}
|
||||
type App struct {
|
||||
runner LocalRunner // 本地执行器(localrunner.go):用户显式开启才连接
|
||||
}
|
||||
|
||||
// Ping 供前端探活 Go 桥是否就绪。
|
||||
func (a *App) Ping() string { return "sundynix-desktop ok" }
|
||||
|
||||
Reference in New Issue
Block a user