Documentation ¶
Index ¶
- type Mongo
- func (m *Mongo) BatchUpdate(ctx context.Context, data []entity.UserManga) (int, error)
- func (m *Mongo) DeleteByMangaID(ctx context.Context, mangaID int64) (int, error)
- func (m *Mongo) DeleteNotInList(ctx context.Context, username string, ids []int64) (int, error)
- func (m *Mongo) Get(ctx context.Context, data entity.GetUserMangaRequest) ([]*entity.UserManga, int, int, error)
- func (m *Mongo) GetOldUsernames(ctx context.Context) ([]string, int, error)
- func (m *Mongo) IsOld(ctx context.Context, username string) (bool, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
Mongo contains functions for user_manga mongodb.
func (*Mongo) BatchUpdate ¶
BatchUpdate to batch update.
func (*Mongo) DeleteByMangaID ¶
DeleteByMangaID to delete by manga id.
func (*Mongo) DeleteNotInList ¶
DeleteNotInList to delete not in list.
func (*Mongo) Get ¶
func (m *Mongo) Get(ctx context.Context, data entity.GetUserMangaRequest) ([]*entity.UserManga, int, int, error)
Get to get user manga.
func (*Mongo) GetOldUsernames ¶
GetOldUsernames to get old usernames.
Click to show internal directories.
Click to hide internal directories.