chore(go): migrate more models to codegen versions. For #3778

This commit is contained in:
Gabe Kangas
2025-02-12 21:18:13 -08:00
parent 8bdb52fd37
commit 4b627f0693
6 changed files with 17 additions and 34 deletions

View File

@@ -3,13 +3,13 @@ package authrepository
import (
"database/sql"
"github.com/owncast/owncast/models"
"github.com/owncast/owncast/webserver/handlers/generated"
)
type AuthRepository interface {
CreateBanIPTable(db *sql.DB)
BanIPAddress(address, note string) error
IsIPAddressBanned(address string) (bool, error)
GetIPAddressBans() ([]models.IPAddress, error)
GetIPAddressBans() ([]generated.IPAddress, error)
RemoveIPAddressBan(address string) error
}