From cf3b619b201cd73eaf29b495c3eb8362d8d8a49e Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Tue, 27 May 2025 22:15:15 +0700 Subject: [PATCH] updated from form to auth_service --- .gitignore | 3 ++- api/token.go | 4 ++-- api/users.go | 4 ++-- database/db.go | 2 +- database/users.go | 2 +- go.mod | 2 +- main.go | 4 ++-- 7 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 48e1934..9d9c5fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ users.db -go.sum \ No newline at end of file +go.sum +auth_service \ No newline at end of file diff --git a/api/token.go b/api/token.go index 8aec8d8..925841b 100644 --- a/api/token.go +++ b/api/token.go @@ -1,10 +1,10 @@ package api import ( + "auth_service/database" + "auth_service/model" "encoding/json" "fmt" - "form/database" - "form/model" "maps" "net/http" "time" diff --git a/api/users.go b/api/users.go index a70361b..3c05df9 100644 --- a/api/users.go +++ b/api/users.go @@ -1,10 +1,10 @@ package api import ( + "auth_service/database" + "auth_service/model" "encoding/json" "fmt" - "form/database" - "form/model" "net/http" "github.com/google/uuid" diff --git a/database/db.go b/database/db.go index 8ff1f86..112e01e 100644 --- a/database/db.go +++ b/database/db.go @@ -1,8 +1,8 @@ package database import ( + "auth_service/model" "fmt" - "form/model" "os" "gorm.io/driver/sqlite" diff --git a/database/users.go b/database/users.go index 5089954..9c318f0 100644 --- a/database/users.go +++ b/database/users.go @@ -1,10 +1,10 @@ package database import ( + "auth_service/model" "encoding/json" "errors" "fmt" - "form/model" "os" "strings" diff --git a/go.mod b/go.mod index 0cd5223..0f7cbba 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module form +module auth_service go 1.24.3 diff --git a/main.go b/main.go index c58705a..7e7d194 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,8 @@ package main import ( - "form/api" - "form/database" + "auth_service/api" + "auth_service/database" "log" "net/http" "os"