Migrate emojiStore to use request.CTX instead of context.Context (#24514)
* migrate emojistore to request.ctx * use mlog.CreateConsoleTestLogger * Add comment to WithMaster and RequestContextWithMaster
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e9cc03c1c8
Коммит
f65dad83bb
@@ -662,9 +662,9 @@ type DesktopTokensStore interface {
|
||||
|
||||
type EmojiStore interface {
|
||||
Save(emoji *model.Emoji) (*model.Emoji, error)
|
||||
Get(ctx context.Context, id string, allowFromCache bool) (*model.Emoji, error)
|
||||
GetByName(ctx context.Context, name string, allowFromCache bool) (*model.Emoji, error)
|
||||
GetMultipleByName(ctx context.Context, names []string) ([]*model.Emoji, error)
|
||||
Get(ctx request.CTX, id string, allowFromCache bool) (*model.Emoji, error)
|
||||
GetByName(ctx request.CTX, name string, allowFromCache bool) (*model.Emoji, error)
|
||||
GetMultipleByName(ctx request.CTX, names []string) ([]*model.Emoji, error)
|
||||
GetList(offset, limit int, sort string) ([]*model.Emoji, error)
|
||||
Delete(emoji *model.Emoji, timestamp int64) error
|
||||
Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, error)
|
||||
|
||||
Ссылка в новой задаче
Block a user