mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-12 12:09:56 +01:00
27 lines
514 B
Go
27 lines
514 B
Go
package domain
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type BrowserExtension struct {
|
|
gorm.Model
|
|
|
|
Id uuid.UUID `gorm:"primarykey"`
|
|
Name string
|
|
BrowserName string
|
|
BrowserVersion string
|
|
PublicKey string
|
|
}
|
|
|
|
func NewBrowserExtension() *BrowserExtension {
|
|
return &BrowserExtension{}
|
|
}
|
|
|
|
type BrowserExtensionRepository interface {
|
|
Save(extension *BrowserExtension) error
|
|
Update(extension *BrowserExtension) error
|
|
FindById(id uuid.UUID) (*BrowserExtension, error)
|
|
}
|