12 lines
156 B
Go
12 lines
156 B
Go
|
package auth
|
||
|
|
||
|
import "gorm.io/gorm"
|
||
|
|
||
|
type Authentication struct {
|
||
|
db *gorm.DB
|
||
|
}
|
||
|
|
||
|
func NewAuth(db *gorm.DB) *Authentication {
|
||
|
return &Authentication{db}
|
||
|
}
|