Initial open source release
This commit is contained in:
commit
74992e893f
377 changed files with 118084 additions and 0 deletions
19
internal/store/account.go
Normal file
19
internal/store/account.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package store
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"telesrv/internal/domain"
|
||||
)
|
||||
|
||||
// PasswordStore 持久化账号 2FA/SRP 配置。
|
||||
type PasswordStore interface {
|
||||
GetByUser(ctx context.Context, userID int64) (domain.PasswordSettings, bool, error)
|
||||
Save(ctx context.Context, userID int64, settings domain.PasswordSettings) error
|
||||
}
|
||||
|
||||
// AccountReactionSettingsStore persists account-level reaction preferences.
|
||||
type AccountReactionSettingsStore interface {
|
||||
GetReactionSettings(ctx context.Context, userID int64) (domain.AccountReactionSettings, bool, error)
|
||||
SaveReactionSettings(ctx context.Context, userID int64, settings domain.AccountReactionSettings) error
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue