Documentation ¶
Overview ¶
Package domain_mock is a generated GoMock package.
Package domain_mock is a generated GoMock package.
Index ¶
- type MockInteractionRepository
- func (m *MockInteractionRepository) BatchIncrReadCount(c context.Context, biz []string, id []int64) error
- func (m *MockInteractionRepository) CancelCollect(c context.Context, biz string, bizID, userID, collectionID int64) error
- func (m *MockInteractionRepository) CancelLike(c context.Context, biz string, bizID, userID int64) error
- func (m *MockInteractionRepository) Collect(c context.Context, biz string, bizID, userID, collectionID int64) error
- func (m *MockInteractionRepository) EXPECT() *MockInteractionRepositoryMockRecorder
- func (m *MockInteractionRepository) GetByIDs(c context.Context, biz string, id []int64) (map[int64]domain.Interaction, error)
- func (m *MockInteractionRepository) IncrReadCount(c context.Context, biz string, id int64) error
- func (m *MockInteractionRepository) Like(c context.Context, biz string, bizID, userID int64) error
- func (m *MockInteractionRepository) Stat(c context.Context, biz string, bizID, userID int64) (domain.Interaction, domain.UserInteractionStat, error)
- type MockInteractionRepositoryMockRecorder
- func (mr *MockInteractionRepositoryMockRecorder) BatchIncrReadCount(c, biz, id any) *gomock.Call
- func (mr *MockInteractionRepositoryMockRecorder) CancelCollect(c, biz, bizID, userID, collectionID any) *gomock.Call
- func (mr *MockInteractionRepositoryMockRecorder) CancelLike(c, biz, bizID, userID any) *gomock.Call
- func (mr *MockInteractionRepositoryMockRecorder) Collect(c, biz, bizID, userID, collectionID any) *gomock.Call
- func (mr *MockInteractionRepositoryMockRecorder) GetByIDs(c, biz, id any) *gomock.Call
- func (mr *MockInteractionRepositoryMockRecorder) IncrReadCount(c, biz, id any) *gomock.Call
- func (mr *MockInteractionRepositoryMockRecorder) Like(c, biz, bizID, userID any) *gomock.Call
- func (mr *MockInteractionRepositoryMockRecorder) Stat(c, biz, bizID, userID any) *gomock.Call
- type MockInteractionUseCase
- func (m *MockInteractionUseCase) CancelCollect(c context.Context, biz string, bizID, userID, collectionID int64) error
- func (m *MockInteractionUseCase) CancelLike(c context.Context, biz string, bizID, userID int64) error
- func (m *MockInteractionUseCase) Collect(c context.Context, biz string, bizID, userID, collectionID int64) error
- func (m *MockInteractionUseCase) EXPECT() *MockInteractionUseCaseMockRecorder
- func (m *MockInteractionUseCase) IncrReadCount(c context.Context, biz string, id int64) error
- func (m *MockInteractionUseCase) Info(c context.Context, biz string, bizID, userID int64) (domain.Interaction, domain.UserInteractionStat, error)
- func (m *MockInteractionUseCase) Like(c context.Context, biz string, bizID, userID int64) error
- type MockInteractionUseCaseMockRecorder
- func (mr *MockInteractionUseCaseMockRecorder) CancelCollect(c, biz, bizID, userID, collectionID any) *gomock.Call
- func (mr *MockInteractionUseCaseMockRecorder) CancelLike(c, biz, bizID, userID any) *gomock.Call
- func (mr *MockInteractionUseCaseMockRecorder) Collect(c, biz, bizID, userID, collectionID any) *gomock.Call
- func (mr *MockInteractionUseCaseMockRecorder) IncrReadCount(c, biz, id any) *gomock.Call
- func (mr *MockInteractionUseCaseMockRecorder) Info(c, biz, bizID, userID any) *gomock.Call
- func (mr *MockInteractionUseCaseMockRecorder) Like(c, biz, bizID, userID any) *gomock.Call
- type MockPostRepository
- func (m *MockPostRepository) Count(c context.Context, filter any) (int64, error)
- func (m *MockPostRepository) Create(c context.Context, post domain.Post) error
- func (m *MockPostRepository) EXPECT() *MockPostRepositoryMockRecorder
- func (m *MockPostRepository) FindMany(c context.Context, filter any) ([]domain.Post, error)
- func (m *MockPostRepository) FindTopNPage(c context.Context, page, size int, begin time.Time) ([]domain.Post, error)
- func (m *MockPostRepository) GetByID(c context.Context, id int64) (domain.Post, error)
- func (m *MockPostRepository) List(c context.Context, filter any, page, size int) ([]domain.Post, error)
- type MockPostRepositoryMockRecorder
- func (mr *MockPostRepositoryMockRecorder) Count(c, filter any) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) Create(c, post any) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) FindMany(c, filter any) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) FindTopNPage(c, page, size, begin any) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) GetByID(c, id any) *gomock.Call
- func (mr *MockPostRepositoryMockRecorder) List(c, filter, page, size any) *gomock.Call
- type MockPostUsecase
- func (m *MockPostUsecase) Create(c context.Context, post domain.Post) error
- func (m *MockPostUsecase) EXPECT() *MockPostUsecaseMockRecorder
- func (m *MockPostUsecase) Info(c context.Context, postID int64) (domain.Post, error)
- func (m *MockPostUsecase) List(c context.Context, filter any, page, size int) ([]domain.Post, int64, error)
- type MockPostUsecaseMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInteractionRepository ¶
type MockInteractionRepository struct {
// contains filtered or unexported fields
}
MockInteractionRepository is a mock of InteractionRepository interface.
func NewMockInteractionRepository ¶
func NewMockInteractionRepository(ctrl *gomock.Controller) *MockInteractionRepository
NewMockInteractionRepository creates a new mock instance.
func (*MockInteractionRepository) BatchIncrReadCount ¶
func (m *MockInteractionRepository) BatchIncrReadCount(c context.Context, biz []string, id []int64) error
BatchIncrReadCount mocks base method.
func (*MockInteractionRepository) CancelCollect ¶
func (m *MockInteractionRepository) CancelCollect(c context.Context, biz string, bizID, userID, collectionID int64) error
CancelCollect mocks base method.
func (*MockInteractionRepository) CancelLike ¶
func (m *MockInteractionRepository) CancelLike(c context.Context, biz string, bizID, userID int64) error
CancelLike mocks base method.
func (*MockInteractionRepository) Collect ¶
func (m *MockInteractionRepository) Collect(c context.Context, biz string, bizID, userID, collectionID int64) error
Collect mocks base method.
func (*MockInteractionRepository) EXPECT ¶
func (m *MockInteractionRepository) EXPECT() *MockInteractionRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInteractionRepository) GetByIDs ¶
func (m *MockInteractionRepository) GetByIDs(c context.Context, biz string, id []int64) (map[int64]domain.Interaction, error)
GetByIDs mocks base method.
func (*MockInteractionRepository) IncrReadCount ¶
IncrReadCount mocks base method.
func (*MockInteractionRepository) Stat ¶
func (m *MockInteractionRepository) Stat(c context.Context, biz string, bizID, userID int64) (domain.Interaction, domain.UserInteractionStat, error)
Stat mocks base method.
type MockInteractionRepositoryMockRecorder ¶
type MockInteractionRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockInteractionRepositoryMockRecorder is the mock recorder for MockInteractionRepository.
func (*MockInteractionRepositoryMockRecorder) BatchIncrReadCount ¶
func (mr *MockInteractionRepositoryMockRecorder) BatchIncrReadCount(c, biz, id any) *gomock.Call
BatchIncrReadCount indicates an expected call of BatchIncrReadCount.
func (*MockInteractionRepositoryMockRecorder) CancelCollect ¶
func (mr *MockInteractionRepositoryMockRecorder) CancelCollect(c, biz, bizID, userID, collectionID any) *gomock.Call
CancelCollect indicates an expected call of CancelCollect.
func (*MockInteractionRepositoryMockRecorder) CancelLike ¶
func (mr *MockInteractionRepositoryMockRecorder) CancelLike(c, biz, bizID, userID any) *gomock.Call
CancelLike indicates an expected call of CancelLike.
func (*MockInteractionRepositoryMockRecorder) Collect ¶
func (mr *MockInteractionRepositoryMockRecorder) Collect(c, biz, bizID, userID, collectionID any) *gomock.Call
Collect indicates an expected call of Collect.
func (*MockInteractionRepositoryMockRecorder) GetByIDs ¶
func (mr *MockInteractionRepositoryMockRecorder) GetByIDs(c, biz, id any) *gomock.Call
GetByIDs indicates an expected call of GetByIDs.
func (*MockInteractionRepositoryMockRecorder) IncrReadCount ¶
func (mr *MockInteractionRepositoryMockRecorder) IncrReadCount(c, biz, id any) *gomock.Call
IncrReadCount indicates an expected call of IncrReadCount.
type MockInteractionUseCase ¶
type MockInteractionUseCase struct {
// contains filtered or unexported fields
}
MockInteractionUseCase is a mock of InteractionUseCase interface.
func NewMockInteractionUseCase ¶
func NewMockInteractionUseCase(ctrl *gomock.Controller) *MockInteractionUseCase
NewMockInteractionUseCase creates a new mock instance.
func (*MockInteractionUseCase) CancelCollect ¶
func (m *MockInteractionUseCase) CancelCollect(c context.Context, biz string, bizID, userID, collectionID int64) error
CancelCollect mocks base method.
func (*MockInteractionUseCase) CancelLike ¶
func (m *MockInteractionUseCase) CancelLike(c context.Context, biz string, bizID, userID int64) error
CancelLike mocks base method.
func (*MockInteractionUseCase) Collect ¶
func (m *MockInteractionUseCase) Collect(c context.Context, biz string, bizID, userID, collectionID int64) error
Collect mocks base method.
func (*MockInteractionUseCase) EXPECT ¶
func (m *MockInteractionUseCase) EXPECT() *MockInteractionUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInteractionUseCase) IncrReadCount ¶
IncrReadCount mocks base method.
func (*MockInteractionUseCase) Info ¶
func (m *MockInteractionUseCase) Info(c context.Context, biz string, bizID, userID int64) (domain.Interaction, domain.UserInteractionStat, error)
Info mocks base method.
type MockInteractionUseCaseMockRecorder ¶
type MockInteractionUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockInteractionUseCaseMockRecorder is the mock recorder for MockInteractionUseCase.
func (*MockInteractionUseCaseMockRecorder) CancelCollect ¶
func (mr *MockInteractionUseCaseMockRecorder) CancelCollect(c, biz, bizID, userID, collectionID any) *gomock.Call
CancelCollect indicates an expected call of CancelCollect.
func (*MockInteractionUseCaseMockRecorder) CancelLike ¶
func (mr *MockInteractionUseCaseMockRecorder) CancelLike(c, biz, bizID, userID any) *gomock.Call
CancelLike indicates an expected call of CancelLike.
func (*MockInteractionUseCaseMockRecorder) Collect ¶
func (mr *MockInteractionUseCaseMockRecorder) Collect(c, biz, bizID, userID, collectionID any) *gomock.Call
Collect indicates an expected call of Collect.
func (*MockInteractionUseCaseMockRecorder) IncrReadCount ¶
func (mr *MockInteractionUseCaseMockRecorder) IncrReadCount(c, biz, id any) *gomock.Call
IncrReadCount indicates an expected call of IncrReadCount.
type MockPostRepository ¶
type MockPostRepository struct {
// contains filtered or unexported fields
}
MockPostRepository is a mock of PostRepository interface.
func NewMockPostRepository ¶
func NewMockPostRepository(ctrl *gomock.Controller) *MockPostRepository
NewMockPostRepository creates a new mock instance.
func (*MockPostRepository) EXPECT ¶
func (m *MockPostRepository) EXPECT() *MockPostRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPostRepository) FindTopNPage ¶
func (m *MockPostRepository) FindTopNPage(c context.Context, page, size int, begin time.Time) ([]domain.Post, error)
FindTopNPage mocks base method.
type MockPostRepositoryMockRecorder ¶
type MockPostRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockPostRepositoryMockRecorder is the mock recorder for MockPostRepository.
func (*MockPostRepositoryMockRecorder) Count ¶
func (mr *MockPostRepositoryMockRecorder) Count(c, filter any) *gomock.Call
Count indicates an expected call of Count.
func (*MockPostRepositoryMockRecorder) Create ¶
func (mr *MockPostRepositoryMockRecorder) Create(c, post any) *gomock.Call
Create indicates an expected call of Create.
func (*MockPostRepositoryMockRecorder) FindMany ¶
func (mr *MockPostRepositoryMockRecorder) FindMany(c, filter any) *gomock.Call
FindMany indicates an expected call of FindMany.
func (*MockPostRepositoryMockRecorder) FindTopNPage ¶
func (mr *MockPostRepositoryMockRecorder) FindTopNPage(c, page, size, begin any) *gomock.Call
FindTopNPage indicates an expected call of FindTopNPage.
type MockPostUsecase ¶
type MockPostUsecase struct {
// contains filtered or unexported fields
}
MockPostUsecase is a mock of PostUsecase interface.
func NewMockPostUsecase ¶
func NewMockPostUsecase(ctrl *gomock.Controller) *MockPostUsecase
NewMockPostUsecase creates a new mock instance.
func (*MockPostUsecase) EXPECT ¶
func (m *MockPostUsecase) EXPECT() *MockPostUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPostUsecaseMockRecorder ¶
type MockPostUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockPostUsecaseMockRecorder is the mock recorder for MockPostUsecase.
func (*MockPostUsecaseMockRecorder) Create ¶
func (mr *MockPostUsecaseMockRecorder) Create(c, post any) *gomock.Call
Create indicates an expected call of Create.