17 lines
455 B
Go
17 lines
455 B
Go
package domain
|
|
|
|
import "database/sql"
|
|
|
|
type Settings struct {
|
|
ChatModelID sql.NullString `db:"chat_model_id"`
|
|
DefaultLang string `db:"default_lang"`
|
|
RegisterEnabled bool `db:"register_enabled"`
|
|
PasswordEnabled bool `db:"password_enabled"`
|
|
VersionId string `db:"_version"`
|
|
}
|
|
|
|
type SettingsRepository interface {
|
|
GetSettings() (*Settings, error)
|
|
UpdateSettings(config *Settings) (*Settings, error)
|
|
}
|