fix: module name

This commit is contained in:
2025-03-16 12:40:13 +07:00
parent e95f7bd342
commit 670906d926
10 changed files with 25 additions and 15 deletions

11
.idea/workspace.xml generated
View File

@@ -5,7 +5,16 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="0f2c8145-9000-45fe-a871-9ff0914e0e13" name="Changes" comment=""> <list default="true" id="0f2c8145-9000-45fe-a871-9ff0914e0e13" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/go.mod" beforeDir="false" afterPath="$PROJECT_DIR$/go.mod" afterDir="false" />
<change beforePath="$PROJECT_DIR$/internal/addons/excel/export.go" beforeDir="false" afterPath="$PROJECT_DIR$/internal/addons/excel/export.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/internal/database/database.go" beforeDir="false" afterPath="$PROJECT_DIR$/internal/database/database.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/internal/gen/gen.go" beforeDir="false" afterPath="$PROJECT_DIR$/internal/gen/gen.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/internal/services/default_data.go" beforeDir="false" afterPath="$PROJECT_DIR$/internal/services/default_data.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/internal/services/migrator.go" beforeDir="false" afterPath="$PROJECT_DIR$/internal/services/migrator.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/internal/services/post.go" beforeDir="false" afterPath="$PROJECT_DIR$/internal/services/post.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/internal/utils/search.go" beforeDir="false" afterPath="$PROJECT_DIR$/internal/utils/search.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/internal/utils/sorting.go" beforeDir="false" afterPath="$PROJECT_DIR$/internal/utils/sorting.go" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />

2
go.mod
View File

@@ -1,4 +1,4 @@
module app module git.gogacoder.ru/NTO/boilerplate
go 1.23.0 go 1.23.0

View File

@@ -1,9 +1,9 @@
package excel package excel
import ( import (
"app/internal/dialogs"
"errors" "errors"
"fmt" "fmt"
"git.gogacoder.ru/NTO/boilerplate/internal/dialogs"
"github.com/kuzgoga/fogg" "github.com/kuzgoga/fogg"
"github.com/xuri/excelize/v2" "github.com/xuri/excelize/v2"
"golang.org/x/text/language" "golang.org/x/text/language"

View File

@@ -1,9 +1,9 @@
package database package database
import ( import (
"app/internal/dal"
"context" "context"
"database/sql" "database/sql"
"git.gogacoder.ru/NTO/boilerplate/internal/dal"
"github.com/ncruces/go-sqlite3" "github.com/ncruces/go-sqlite3"
"github.com/ncruces/go-sqlite3/driver" "github.com/ncruces/go-sqlite3/driver"
"log" "log"

View File

@@ -1,7 +1,7 @@
package main package main
import ( import (
"app/internal/models" "git.gogacoder.ru/NTO/boilerplate/internal/models"
"gorm.io/gen" "gorm.io/gen"
) )

View File

@@ -1,8 +1,9 @@
package services package services
import ( import (
"app/internal/dialogs"
"fmt" "fmt"
"git.gogacoder.ru/NTO/boilerplate/internal/dialogs"
"git.gogacoder.ru/NTO/boilerplate/internal/models"
) )
func InsertDefaultData() { func InsertDefaultData() {
@@ -22,7 +23,7 @@ func InsertDefaultData() {
//} //}
func insertPosts() { func insertPosts() {
InsertDefaultEntityData(&PostService{}, []Post{ InsertDefaultEntityData(&PostService{}, []models.Post{
{Text: "В Кузбассе начали строить дома выше, чтобы их жители стали ближе к Богу."}, {Text: "В Кузбассе начали строить дома выше, чтобы их жители стали ближе к Богу."},
}) })
} }

View File

@@ -1,11 +1,11 @@
package services package services
import ( import (
"app/internal/database"
"app/internal/models"
"context" "context"
"crypto/sha256" "crypto/sha256"
"fmt" "fmt"
"git.gogacoder.ru/NTO/boilerplate/internal/database"
"git.gogacoder.ru/NTO/boilerplate/internal/models"
"io" "io"
"log/slog" "log/slog"
"os" "os"

View File

@@ -1,11 +1,11 @@
package services package services
import ( import (
"app/internal/dal"
"app/internal/database"
"app/internal/models"
"app/internal/utils"
"errors" "errors"
"git.gogacoder.ru/NTO/boilerplate/internal/dal"
"git.gogacoder.ru/NTO/boilerplate/internal/database"
"git.gogacoder.ru/NTO/boilerplate/internal/models"
"git.gogacoder.ru/NTO/boilerplate/internal/utils"
"gorm.io/gen/field" "gorm.io/gen/field"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@@ -1,8 +1,8 @@
package utils package utils
import ( import (
"app/internal/database"
"fmt" "fmt"
"git.gogacoder.ru/NTO/boilerplate/internal/database"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
"reflect" "reflect"
) )

View File

@@ -1,9 +1,9 @@
package utils package utils
import ( import (
"app/internal/database"
"errors" "errors"
"fmt" "fmt"
"git.gogacoder.ru/NTO/boilerplate/internal/database"
"github.com/kuzgoga/fogg" "github.com/kuzgoga/fogg"
"golang.org/x/text/language" "golang.org/x/text/language"
"golang.org/x/text/message" "golang.org/x/text/message"