Sync telesrv commits 49f9bab and 04d9563 into the public mirror. Exclude private docs and runtime key material per sync rules.
17 lines
659 B
Go
17 lines
659 B
Go
package store
|
|
|
|
import (
|
|
"context"
|
|
|
|
"telesrv/internal/domain"
|
|
)
|
|
|
|
// LangPackStore 持久化客户端语言包。
|
|
type LangPackStore interface {
|
|
GetPack(ctx context.Context, langPack, langCode string, fromVersion int) (domain.LangPack, error)
|
|
GetStrings(ctx context.Context, langPack, langCode string, keys []string) (domain.LangPack, error)
|
|
ListLanguages(ctx context.Context, langPack string) ([]domain.LangPackLanguage, error)
|
|
GetSeedCatalog(ctx context.Context, catalog string) (domain.LangPackSeedCatalog, error)
|
|
ReconcileSeed(ctx context.Context, seed domain.LangPackSeed) (int, error)
|
|
UpsertPack(ctx context.Context, pack domain.LangPack) error
|
|
}
|