owpengram-server/internal/store/langpack.go
2026-06-04 01:37:39 +08:00

14 lines
407 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)
UpsertPack(ctx context.Context, pack domain.LangPack) error
}