Add user management and improve code organization with context structs

This commit is contained in:
2025-05-13 15:00:42 +03:30
parent 75bad5e091
commit 25d9b67be6
6 changed files with 33 additions and 1 deletions

8
internal/AppContext.go Normal file
View File

@@ -0,0 +1,8 @@
package internal
import "gorm.io/gorm"
type AppContext struct {
Db *gorm.DB
}

View File

@@ -0,0 +1,7 @@
package internal
import "github.com/gin-gonic/gin"
type AppWebContext struct {
GinEngine *gin.Engine
}

View File

@@ -0,0 +1,10 @@
package models
// Funny you are
type ComUser struct {
Id string
Username string
Password string
Email string
IsVerified bool
}

View File

@@ -0,0 +1 @@
package repositories

View File

@@ -0,0 +1 @@
package services