Initial open source release
This commit is contained in:
commit
74992e893f
377 changed files with 118084 additions and 0 deletions
17
internal/store/contact.go
Normal file
17
internal/store/contact.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package store
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"telesrv/internal/domain"
|
||||
)
|
||||
|
||||
// ContactStore 持久化用户通讯录。
|
||||
type ContactStore interface {
|
||||
ListByUser(ctx context.Context, userID int64) (domain.ContactList, error)
|
||||
Get(ctx context.Context, userID, contactUserID int64) (domain.Contact, bool, error)
|
||||
Upsert(ctx context.Context, userID int64, input domain.ContactInput) (domain.Contact, error)
|
||||
UpsertMany(ctx context.Context, userID int64, inputs []domain.ContactInput) ([]domain.Contact, error)
|
||||
UpdateNote(ctx context.Context, userID, contactUserID int64, note string, entities []domain.MessageEntity) (domain.Contact, bool, error)
|
||||
Delete(ctx context.Context, userID int64, contactUserIDs []int64) (int, error)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue