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 name="ChangeListManager">
<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>
<option name="SHOW_DIALOG" value="false" />
<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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,11 +1,11 @@
package services
import (
"app/internal/dal"
"app/internal/database"
"app/internal/models"
"app/internal/utils"
"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/gorm"
)

View File

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

View File

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