From b2337b621dd82399b2d9419309a8fa4bf915c385 Mon Sep 17 00:00:00 2001 From: imirazimi Date: Wed, 20 Dec 2023 12:17:03 +0330 Subject: [PATCH] fix(niki): update folder structure --- cmd/.gitkeep | 0 delivery/{httpserver => http_server}/server.go | 2 +- repository/mysql/{mysqlpiggybank => mysql_kind_box}/db.go | 4 ++-- repository/mysql/mysql_kind_box/kind_box.go | 1 + repository/mysql/mysqlpiggybank/piggy_bank.go | 1 - 5 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 cmd/.gitkeep rename delivery/{httpserver => http_server}/server.go (99%) rename repository/mysql/{mysqlpiggybank => mysql_kind_box}/db.go (85%) create mode 100644 repository/mysql/mysql_kind_box/kind_box.go delete mode 100644 repository/mysql/mysqlpiggybank/piggy_bank.go diff --git a/cmd/.gitkeep b/cmd/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/delivery/httpserver/server.go b/delivery/http_server/server.go similarity index 99% rename from delivery/httpserver/server.go rename to delivery/http_server/server.go index 5a120cb..60665b5 100644 --- a/delivery/httpserver/server.go +++ b/delivery/http_server/server.go @@ -14,4 +14,4 @@ func New(config config.Config) Server { func (s Server) Serve() { -} +} \ No newline at end of file diff --git a/repository/mysql/mysqlpiggybank/db.go b/repository/mysql/mysql_kind_box/db.go similarity index 85% rename from repository/mysql/mysqlpiggybank/db.go rename to repository/mysql/mysql_kind_box/db.go index 63819c1..911cc8a 100644 --- a/repository/mysql/mysqlpiggybank/db.go +++ b/repository/mysql/mysql_kind_box/db.go @@ -1,4 +1,4 @@ -package mysqlkindBoxbank +package mysqlkindbox import "git.gocasts.ir/ebhomengo/niki/repository/mysql" @@ -10,4 +10,4 @@ func New(conn *mysql.MySQLDB) *DB { return &DB{ conn: conn, } -} +} \ No newline at end of file diff --git a/repository/mysql/mysql_kind_box/kind_box.go b/repository/mysql/mysql_kind_box/kind_box.go new file mode 100644 index 0000000..1100ef3 --- /dev/null +++ b/repository/mysql/mysql_kind_box/kind_box.go @@ -0,0 +1 @@ +package mysqlkindbox \ No newline at end of file diff --git a/repository/mysql/mysqlpiggybank/piggy_bank.go b/repository/mysql/mysqlpiggybank/piggy_bank.go deleted file mode 100644 index dd76f52..0000000 --- a/repository/mysql/mysqlpiggybank/piggy_bank.go +++ /dev/null @@ -1 +0,0 @@ -package mysqlkindBoxbank