Documentation ¶
Index ¶
- func NewAttribute(db *mongo.Database) (chat.AttributeInterface, error)
- type Attribute
- func (o *Attribute) Create(ctx context.Context, attribute ...*chat.Attribute) error
- func (o *Attribute) Find(ctx context.Context, userIds []string) ([]*chat.Attribute, error)
- func (o *Attribute) FindAccount(ctx context.Context, accounts []string) ([]*chat.Attribute, error)
- func (o *Attribute) Search(ctx context.Context, keyword string, genders []int32, ...) (int64, []*chat.Attribute, error)
- func (o *Attribute) SearchNormalUser(ctx context.Context, keyword string, forbiddenIDs []string, gender int32, ...) (int64, []*chat.Attribute, error)
- func (o *Attribute) SearchUser(ctx context.Context, keyword string, userIDs []string, genders []int32, ...) (int64, []*chat.Attribute, error)
- func (o *Attribute) SearchUserID(ctx context.Context, keyword string, userIDs []string, ...) (int64, []string, error)
- func (o *Attribute) Take(ctx context.Context, userID string) (*chat.Attribute, error)
- func (o *Attribute) TakeAccount(ctx context.Context, account string) (*chat.Attribute, error)
- func (o *Attribute) TakeEmail(ctx context.Context, email string) (*chat.Attribute, error)
- func (o *Attribute) TakePhone(ctx context.Context, areaCode string, phoneNumber string) (*chat.Attribute, error)
- func (o *Attribute) Update(ctx context.Context, userID string, data map[string]any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAttribute ¶
func NewAttribute(db *mongo.Database) (chat.AttributeInterface, error)
Types ¶
type Attribute ¶
type Attribute struct {
// contains filtered or unexported fields
}
func (*Attribute) FindAccount ¶
func (*Attribute) SearchNormalUser ¶
func (*Attribute) SearchUser ¶
func (*Attribute) SearchUserID ¶
func (o *Attribute) SearchUserID(ctx context.Context, keyword string, userIDs []string, pagination pagination.Pagination) (int64, []string, error)
func (*Attribute) TakeAccount ¶
Click to show internal directories.
Click to hide internal directories.