Skip to content

Commit

Permalink
1.add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
pwh-pwh committed Jul 26, 2024
1 parent 7fe3a38 commit 8044e80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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())
}

0 comments on commit 8044e80

Please sign in to comment.