Merge branch 'main' of git.mstar.dev:mstar/linstrom
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Melody Becker 2025-04-05 12:23:38 +02:00
commit 9cca79ec4c
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8
25 changed files with 3882 additions and 55 deletions

View file

@ -4,6 +4,7 @@ import (
"database/sql"
"time"
"gorm.io/gen"
"gorm.io/gorm"
"git.mstar.dev/mstar/linstrom/config"
@ -97,3 +98,10 @@ func BuildLinstromUser() *User {
BannerId: sql.NullString{Valid: false},
}
}
type IUser interface {
// Get a user by a username
//
// SELECT * FROM @@table WHERE username = @username LIMIT 1
GetByUsername(username string) (*gen.T, error)
}