Merge branch 'main' of git.mstar.dev:mstar/linstrom
Some checks are pending
/ test (push) Waiting to run
Some checks are pending
/ test (push) Waiting to run
This commit is contained in:
commit
9cca79ec4c
25 changed files with 3882 additions and 55 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue