refactor, go work
This commit is contained in:
19
app/BotService.go
Normal file
19
app/BotService.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package app
|
||||
|
||||
import "github.com/wailsapp/wails/v3/pkg/application"
|
||||
|
||||
type BotService struct{}
|
||||
|
||||
var excelFilePath string
|
||||
|
||||
func (g *BotService) ClaimFile() string {
|
||||
|
||||
dialog := application.OpenFileDialog()
|
||||
dialog.SetTitle("Lütfen yüklenecek Excel dosyanızı seçiniz")
|
||||
file, err := dialog.PromptForSingleSelection()
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
excelFilePath = file
|
||||
return file
|
||||
}
|
||||
Reference in New Issue
Block a user