add gorm backend
This commit is contained in:
6
main.go
6
main.go
@ -2,7 +2,8 @@ package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"wails-svelte-tailwind-ts/things"
|
||||
"wails-template/model"
|
||||
"wails-template/things"
|
||||
|
||||
"github.com/wailsapp/wails/v2"
|
||||
"github.com/wailsapp/wails/v2/pkg/options"
|
||||
@ -15,7 +16,8 @@ var assets embed.FS
|
||||
func main() {
|
||||
// Create an instance of the app structure
|
||||
app := NewApp()
|
||||
things := things.NewThingsService()
|
||||
db := model.InitDB()
|
||||
things := &things.Service{DB: db}
|
||||
|
||||
// Create application with options
|
||||
err := wails.Run(&options.App{
|
||||
|
Reference in New Issue
Block a user