fix: bindings for excel module

This commit is contained in:
2025-03-13 14:24:38 +07:00
parent 7ae38ccd78
commit a475be9cb2
14 changed files with 360 additions and 550 deletions

View File

@@ -11,7 +11,7 @@ type ExcelModule struct{}
var ExcelService = application.NewService(&ExcelModule{})
func ImportAllEntities() error {
func (s *ExcelModule) ImportAllEntities() error {
postTypeService := PostTypeService{}
filepath, err := dialogs.OpenFileDialog("Импорт данных")
if err != nil {
@@ -41,7 +41,7 @@ func ImportAllEntities() error {
return nil
}
func ExportAllEntities() error {
func (s *ExcelModule) ExportAllEntities() error {
postService := PostService{}
exporter := excel.Exporter[Post]{
SheetName: "Посты",