add gorm backend

This commit is contained in:
2025-02-10 13:00:41 +01:00
parent b83d236d65
commit 593815b923
7 changed files with 94 additions and 34 deletions

View File

@ -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{