Documentation ¶
Index ¶
- type AlbumRepo
- type FeedRepo
- type FileRepo
- type MatchingRepo
- func (_m *MatchingRepo) CreateOne(ctx context.Context, matching *entities.UserMatching) (*entities.UserMatching, error)
- func (_m *MatchingRepo) DeleteOne(ctx context.Context, userId int64, partnerId int64) error
- func (_m *MatchingRepo) ListMatching(ctx context.Context, userId int64, page int, limit int) ([]*entities.User, error)
- func (_m *MatchingRepo) WhoILike(ctx context.Context, userId int64) ([]*entities.User, error)
- func (_m *MatchingRepo) WhoLikeMe(ctx context.Context, partnerId int64) ([]*entities.User, error)
- type UserRepo
- func (_m *UserRepo) CreateOne(ctx context.Context, user *entities.User) (*entities.User, error)
- func (_m *UserRepo) DeleteOne(ctx context.Context, id int64) error
- func (_m *UserRepo) GetByPhone(ctx context.Context, phone string) (*entities.User, error)
- func (_m *UserRepo) GetOne(ctx context.Context, id int64) (*entities.User, error)
- func (_m *UserRepo) List(ctx context.Context, page int, offset int) ([]*entities.User, error)
- func (_m *UserRepo) UpdateOne(ctx context.Context, user *entities.User) (*entities.User, error)
- func (_m *UserRepo) VerifyPhone(ctx context.Context, phone string) (bool, error)
- type WalletRepo
- func (_m *WalletRepo) CreateOne(ctx context.Context, transaction *entities.WalletTransaction) (*entities.WalletTransaction, error)
- func (_m *WalletRepo) GetTotalAmount(ctx context.Context, userId int64) (decimal.Decimal, error)
- func (_m *WalletRepo) ListTransactions(ctx context.Context, userId int64, page int, limit int) ([]*entities.WalletTransaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumRepo ¶
AlbumRepo is an autogenerated mock type for the AlbumRepo type
func NewAlbumRepo ¶
NewAlbumRepo creates a new instance of AlbumRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AlbumRepo) CreateMany ¶
func (_m *AlbumRepo) CreateMany(ctx context.Context, imageFiles []*entities.File) ([]*entities.Image, error)
CreateMany provides a mock function with given fields: ctx, imageFiles
type FeedRepo ¶
FeedRepo is an autogenerated mock type for the FeedRepo type
func NewFeedRepo ¶
NewFeedRepo creates a new instance of FeedRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type FileRepo ¶
FileRepo is an autogenerated mock type for the FileRepo type
func NewFileRepo ¶
NewFileRepo creates a new instance of FileRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type MatchingRepo ¶
MatchingRepo is an autogenerated mock type for the MatchingRepo type
func NewMatchingRepo ¶
func NewMatchingRepo(t interface { mock.TestingT Cleanup(func()) }) *MatchingRepo
NewMatchingRepo creates a new instance of MatchingRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MatchingRepo) CreateOne ¶
func (_m *MatchingRepo) CreateOne(ctx context.Context, matching *entities.UserMatching) (*entities.UserMatching, error)
CreateOne provides a mock function with given fields: ctx, matching
func (*MatchingRepo) DeleteOne ¶
DeleteOne provides a mock function with given fields: ctx, userId, partnerId
func (*MatchingRepo) ListMatching ¶
func (_m *MatchingRepo) ListMatching(ctx context.Context, userId int64, page int, limit int) ([]*entities.User, error)
ListMatching provides a mock function with given fields: ctx, userId, page, limit
type UserRepo ¶
UserRepo is an autogenerated mock type for the UserRepo type
func NewUserRepo ¶
NewUserRepo creates a new instance of UserRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UserRepo) GetByPhone ¶
GetByPhone provides a mock function with given fields: ctx, phone
type WalletRepo ¶
WalletRepo is an autogenerated mock type for the WalletRepo type
func NewWalletRepo ¶
func NewWalletRepo(t interface { mock.TestingT Cleanup(func()) }) *WalletRepo
NewWalletRepo creates a new instance of WalletRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*WalletRepo) CreateOne ¶
func (_m *WalletRepo) CreateOne(ctx context.Context, transaction *entities.WalletTransaction) (*entities.WalletTransaction, error)
CreateOne provides a mock function with given fields: ctx, transaction
func (*WalletRepo) GetTotalAmount ¶
GetTotalAmount provides a mock function with given fields: ctx, userId
func (*WalletRepo) ListTransactions ¶
func (_m *WalletRepo) ListTransactions(ctx context.Context, userId int64, page int, limit int) ([]*entities.WalletTransaction, error)
ListTransactions provides a mock function with given fields: ctx, userId, page, limit