feat: new models, sorting fix

This commit is contained in:
2025-03-15 21:12:15 +07:00
parent db7076182e
commit 2b8df155d3
103 changed files with 16214 additions and 4048 deletions

View File

@@ -1,10 +1,29 @@
package services
import "github.com/wailsapp/wails/v3/pkg/application"
import (
"fmt"
"github.com/wailsapp/wails/v3/pkg/application"
)
var ExportedServices = []application.Service{
application.NewService(&PostService{}),
application.NewService(&AuthorService{}),
application.NewService(&CommentService{}),
application.NewService(&PostTypeService{}),
application.NewService(&CustomerService{}),
application.NewService(&OrderService{}),
application.NewService(&PrepTaskService{}),
application.NewService(&ProductTypeService{}),
application.NewService(&ShiftService{}),
application.NewService(&TaskService{}),
application.NewService(&TeamTaskService{}),
application.NewService(&TeamTypeService{}),
application.NewService(&WorkAreaService{}),
application.NewService(&WorkerService{}),
application.NewService(&WorkshopService{}),
}
func CreateServices(items ...any) []application.Service {
var services = make([]application.Service, len(items))
for i, item := range items {
services[i] = application.NewService(&item)
}
fmt.Printf("%#+v", services)
return services
}