serve frontend from go

This commit is contained in:
u80864958
2025-05-05 10:00:50 +02:00
parent a06444c4df
commit 73a62b63ae
88 changed files with 76 additions and 36 deletions

View File

@ -0,0 +1,22 @@
package users
import (
"gorm.io/gorm"
)
// Service Represents a service with a database connection.
type Service struct {
db *gorm.DB
}
// Service - Creates a new Service instance, initializing it with a GORM database connection.
func New(db *gorm.DB) *Service {
return &Service{
db: db,
}
}
// Password struct represents a user's password with a JSON tag.
type Password struct {
Password string `json:"password"`
}