From 8044e80a0265af94c2756637b228c64d8de208bb Mon Sep 17 00:00:00 2001 From: pwh-pwh Date: Fri, 26 Jul 2024 17:25:26 +0800 Subject: [PATCH] 1.add todo --- app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.go b/app.go index ccae4c2..054567f 100644 --- a/app.go +++ b/app.go @@ -45,6 +45,7 @@ func (a *App) startup(ctx context.Context) { InitWithApp() } +// todo 对接 /loadconf func (a *App) ReloadConf() string { conf := types.Config{} bytesData, _ := utils.ReadFile("app.json") @@ -69,6 +70,7 @@ func (a *App) DoChat(msg []types.Message) string { return a.chat.Dochat(msg) } +// todo 对接 /opconf func (a *App) OpenConfigFolder() { utils.OpenFolder(utils.GetCurrentPath()) }