diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 1c2fda5..0000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# Default ignored files
-/shelf/
-/workspace.xml
-# Editor-based HTTP Client requests
-/httpRequests/
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml
diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml
deleted file mode 100644
index 362c030..0000000
--- a/.idea/dataSources.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- mariadb
- true
- org.mariadb.jdbc.Driver
- jdbc:mariadb://fadinglight.cn:3306
- $ProjectFileDir$
-
-
-
\ No newline at end of file
diff --git a/.idea/docker-mariadb-clean-arch.iml b/.idea/docker-mariadb-clean-arch.iml
deleted file mode 100644
index 338a266..0000000
--- a/.idea/docker-mariadb-clean-arch.iml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
index 4926257..3818ac1 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -2,7 +2,7 @@
-
+
\ No newline at end of file
diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml
deleted file mode 100644
index aa51b62..0000000
--- a/.idea/sqldialects.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/cmd/bill-server/main.go b/cmd/bill-server/main.go
index df6a64a..f9adbcd 100644
--- a/cmd/bill-server/main.go
+++ b/cmd/bill-server/main.go
@@ -1,6 +1,6 @@
package main
-import "bill-go-fiber/internal/infrastructure"
+import "bill-server/internal/infrastructure"
func main() {
infrastructure.Run()
diff --git a/go.mod b/go.mod
index 2f5b13e..098465d 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module bill-go-fiber
+module bill-server
go 1.20
diff --git a/internal/city/domain.go b/internal/city/domain.go
index c739e0d..c90e21c 100644
--- a/internal/city/domain.go
+++ b/internal/city/domain.go
@@ -1,7 +1,7 @@
package city
import (
- "bill-go-fiber/internal/user"
+ "bill-server/internal/user"
"context"
)
diff --git a/internal/city/handler.go b/internal/city/handler.go
index 03684a2..b48e33f 100644
--- a/internal/city/handler.go
+++ b/internal/city/handler.go
@@ -1,7 +1,7 @@
package city
import (
- "bill-go-fiber/internal/auth"
+ "bill-server/internal/auth"
"context"
"github.com/gofiber/fiber/v2"
diff --git a/internal/infrastructure/fiber.go b/internal/infrastructure/fiber.go
index bbef8c2..c7469c6 100644
--- a/internal/infrastructure/fiber.go
+++ b/internal/infrastructure/fiber.go
@@ -1,14 +1,14 @@
package infrastructure
import (
- "bill-go-fiber/internal/bill"
- "bill-go-fiber/internal/label"
- "bill-go-fiber/internal/misc"
+ "bill-server/internal/bill"
+ "bill-server/internal/label"
+ "bill-server/internal/misc"
"fmt"
+ "github.com/gofiber/fiber/v2"
"log"
_ "github.com/go-sql-driver/mysql"
- "github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/compress"
"github.com/gofiber/fiber/v2/middleware/cors"
"github.com/gofiber/fiber/v2/middleware/etag"
@@ -30,7 +30,7 @@ func Run() {
// Creates a new Fiber instance.
app := fiber.New(fiber.Config{
- AppName: "Docker MariaDB Clean Arch",
+ AppName: "Bill Server",
ServerHeader: "Fiber",
})
diff --git a/internal/infrastructure/sqlite.go b/internal/infrastructure/sqlite.go
index b5bb893..923253d 100644
--- a/internal/infrastructure/sqlite.go
+++ b/internal/infrastructure/sqlite.go
@@ -1,8 +1,8 @@
package infrastructure
import (
- "bill-go-fiber/internal/bill"
- "bill-go-fiber/internal/label"
+ "bill-server/internal/bill"
+ "bill-server/internal/label"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"log"