Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: article.go
Generated by this command:
mockgen -source=article.go -package=svcmocks -destination=mocks/article.mock.go ArticleService
Package svcmocks is a generated GoMock package.
Package svcmocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: ./interactive.go
Generated by this command:
mockgen -source=./interactive.go -package=svcmocks -destination=mocks/interactive.mock.go InteractiveService
Package svcmocks is a generated GoMock package.
Package svcmocks is a generated GoMock package.
Index ¶
- type MockArticleService
- func (m *MockArticleService) EXPECT() *MockArticleServiceMockRecorder
- func (m *MockArticleService) GetById(ctx context.Context, id int64) (domain.Article, error)
- func (m *MockArticleService) GetPublishedById(ctx context.Context, id, uid int64) (domain.Article, error)
- func (m *MockArticleService) List(ctx context.Context, uid int64, offset, limit int) ([]domain.Article, error)
- func (m *MockArticleService) ListPub(ctx context.Context, start time.Time, offset, limit int) ([]domain.Article, error)
- func (m *MockArticleService) Publish(ctx context.Context, art domain.Article) (int64, error)
- func (m *MockArticleService) PublishV1(ctx context.Context, art domain.Article) (int64, error)
- func (m *MockArticleService) Save(ctx context.Context, art domain.Article) (int64, error)
- func (m *MockArticleService) Withdraw(ctx context.Context, art domain.Article) error
- type MockArticleServiceMockRecorder
- func (mr *MockArticleServiceMockRecorder) GetById(ctx, id any) *gomock.Call
- func (mr *MockArticleServiceMockRecorder) GetPublishedById(ctx, id, uid any) *gomock.Call
- func (mr *MockArticleServiceMockRecorder) List(ctx, uid, offset, limit any) *gomock.Call
- func (mr *MockArticleServiceMockRecorder) ListPub(ctx, start, offset, limit any) *gomock.Call
- func (mr *MockArticleServiceMockRecorder) Publish(ctx, art any) *gomock.Call
- func (mr *MockArticleServiceMockRecorder) PublishV1(ctx, art any) *gomock.Call
- func (mr *MockArticleServiceMockRecorder) Save(ctx, art any) *gomock.Call
- func (mr *MockArticleServiceMockRecorder) Withdraw(ctx, art any) *gomock.Call
- type MockCodeService
- type MockCodeServiceMockRecorder
- type MockInteractiveService
- func (m *MockInteractiveService) CancelLike(ctx context.Context, biz string, bizId, uid int64) error
- func (m *MockInteractiveService) Collect(ctx context.Context, biz string, bizId, cid, uid int64) error
- func (m *MockInteractiveService) EXPECT() *MockInteractiveServiceMockRecorder
- func (m *MockInteractiveService) Get(ctx context.Context, biz string, bizId, uid int64) (domain.Interactive, error)
- func (m *MockInteractiveService) GetByIds(ctx context.Context, biz string, bizIds []int64) (map[int64]domain.Interactive, error)
- func (m *MockInteractiveService) IncrReadCnt(ctx context.Context, biz string, bizId int64) error
- func (m *MockInteractiveService) Like(ctx context.Context, biz string, bizId, uid int64) error
- type MockInteractiveServiceMockRecorder
- func (mr *MockInteractiveServiceMockRecorder) CancelLike(ctx, biz, bizId, uid any) *gomock.Call
- func (mr *MockInteractiveServiceMockRecorder) Collect(ctx, biz, bizId, cid, uid any) *gomock.Call
- func (mr *MockInteractiveServiceMockRecorder) Get(ctx, biz, bizId, uid any) *gomock.Call
- func (mr *MockInteractiveServiceMockRecorder) GetByIds(ctx, biz, bizIds any) *gomock.Call
- func (mr *MockInteractiveServiceMockRecorder) IncrReadCnt(ctx, biz, bizId any) *gomock.Call
- func (mr *MockInteractiveServiceMockRecorder) Like(ctx, biz, bizId, uid any) *gomock.Call
- type MockUserService
- func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
- func (m *MockUserService) FindOrCreate(ctx context.Context, phone string) (domain.User, error)
- func (m *MockUserService) FindOrCreateByWechat(ctx context.Context, wechatInfo domain.WechatInfo) (domain.User, error)
- func (m *MockUserService) Login(ctx context.Context, email, password string) (domain.User, error)
- func (m *MockUserService) Profile(ctx context.Context, id int64) (domain.User, error)
- func (m *MockUserService) SignUp(ctx context.Context, u domain.User) error
- type MockUserServiceMockRecorder
- func (mr *MockUserServiceMockRecorder) FindOrCreate(ctx, phone interface{}) *gomock.Call
- func (mr *MockUserServiceMockRecorder) FindOrCreateByWechat(ctx, wechatInfo interface{}) *gomock.Call
- func (mr *MockUserServiceMockRecorder) Login(ctx, email, password interface{}) *gomock.Call
- func (mr *MockUserServiceMockRecorder) Profile(ctx, id interface{}) *gomock.Call
- func (mr *MockUserServiceMockRecorder) SignUp(ctx, u interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockArticleService ¶
type MockArticleService struct {
// contains filtered or unexported fields
}
MockArticleService is a mock of ArticleService interface.
func NewMockArticleService ¶
func NewMockArticleService(ctrl *gomock.Controller) *MockArticleService
NewMockArticleService creates a new mock instance.
func (*MockArticleService) EXPECT ¶
func (m *MockArticleService) EXPECT() *MockArticleServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockArticleService) GetPublishedById ¶
func (m *MockArticleService) GetPublishedById(ctx context.Context, id, uid int64) (domain.Article, error)
GetPublishedById mocks base method.
func (*MockArticleService) List ¶
func (m *MockArticleService) List(ctx context.Context, uid int64, offset, limit int) ([]domain.Article, error)
List mocks base method.
func (*MockArticleService) ListPub ¶
func (m *MockArticleService) ListPub(ctx context.Context, start time.Time, offset, limit int) ([]domain.Article, error)
ListPub mocks base method.
type MockArticleServiceMockRecorder ¶
type MockArticleServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockArticleServiceMockRecorder is the mock recorder for MockArticleService.
func (*MockArticleServiceMockRecorder) GetById ¶
func (mr *MockArticleServiceMockRecorder) GetById(ctx, id any) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockArticleServiceMockRecorder) GetPublishedById ¶
func (mr *MockArticleServiceMockRecorder) GetPublishedById(ctx, id, uid any) *gomock.Call
GetPublishedById indicates an expected call of GetPublishedById.
func (*MockArticleServiceMockRecorder) List ¶
func (mr *MockArticleServiceMockRecorder) List(ctx, uid, offset, limit any) *gomock.Call
List indicates an expected call of List.
func (*MockArticleServiceMockRecorder) ListPub ¶
func (mr *MockArticleServiceMockRecorder) ListPub(ctx, start, offset, limit any) *gomock.Call
ListPub indicates an expected call of ListPub.
func (*MockArticleServiceMockRecorder) Publish ¶
func (mr *MockArticleServiceMockRecorder) Publish(ctx, art any) *gomock.Call
Publish indicates an expected call of Publish.
func (*MockArticleServiceMockRecorder) PublishV1 ¶
func (mr *MockArticleServiceMockRecorder) PublishV1(ctx, art any) *gomock.Call
PublishV1 indicates an expected call of PublishV1.
type MockCodeService ¶
type MockCodeService struct {
// contains filtered or unexported fields
}
MockCodeService is a mock of CodeService interface.
func NewMockCodeService ¶
func NewMockCodeService(ctrl *gomock.Controller) *MockCodeService
NewMockCodeService creates a new mock instance.
func (*MockCodeService) EXPECT ¶
func (m *MockCodeService) EXPECT() *MockCodeServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCodeServiceMockRecorder ¶
type MockCodeServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockCodeServiceMockRecorder is the mock recorder for MockCodeService.
func (*MockCodeServiceMockRecorder) Send ¶
func (mr *MockCodeServiceMockRecorder) Send(ctx, biz, phone interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockCodeServiceMockRecorder) Verify ¶
func (mr *MockCodeServiceMockRecorder) Verify(ctx, biz, phone, inputCode interface{}) *gomock.Call
Verify indicates an expected call of Verify.
type MockInteractiveService ¶
type MockInteractiveService struct {
// contains filtered or unexported fields
}
MockInteractiveService is a mock of InteractiveService interface.
func NewMockInteractiveService ¶
func NewMockInteractiveService(ctrl *gomock.Controller) *MockInteractiveService
NewMockInteractiveService creates a new mock instance.
func (*MockInteractiveService) CancelLike ¶
func (m *MockInteractiveService) CancelLike(ctx context.Context, biz string, bizId, uid int64) error
CancelLike mocks base method.
func (*MockInteractiveService) Collect ¶
func (m *MockInteractiveService) Collect(ctx context.Context, biz string, bizId, cid, uid int64) error
Collect mocks base method.
func (*MockInteractiveService) EXPECT ¶
func (m *MockInteractiveService) EXPECT() *MockInteractiveServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInteractiveService) Get ¶
func (m *MockInteractiveService) Get(ctx context.Context, biz string, bizId, uid int64) (domain.Interactive, error)
Get mocks base method.
func (*MockInteractiveService) GetByIds ¶
func (m *MockInteractiveService) GetByIds(ctx context.Context, biz string, bizIds []int64) (map[int64]domain.Interactive, error)
GetByIds mocks base method.
func (*MockInteractiveService) IncrReadCnt ¶
IncrReadCnt mocks base method.
type MockInteractiveServiceMockRecorder ¶
type MockInteractiveServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockInteractiveServiceMockRecorder is the mock recorder for MockInteractiveService.
func (*MockInteractiveServiceMockRecorder) CancelLike ¶
func (mr *MockInteractiveServiceMockRecorder) CancelLike(ctx, biz, bizId, uid any) *gomock.Call
CancelLike indicates an expected call of CancelLike.
func (*MockInteractiveServiceMockRecorder) Collect ¶
func (mr *MockInteractiveServiceMockRecorder) Collect(ctx, biz, bizId, cid, uid any) *gomock.Call
Collect indicates an expected call of Collect.
func (*MockInteractiveServiceMockRecorder) Get ¶
func (mr *MockInteractiveServiceMockRecorder) Get(ctx, biz, bizId, uid any) *gomock.Call
Get indicates an expected call of Get.
func (*MockInteractiveServiceMockRecorder) GetByIds ¶
func (mr *MockInteractiveServiceMockRecorder) GetByIds(ctx, biz, bizIds any) *gomock.Call
GetByIds indicates an expected call of GetByIds.
func (*MockInteractiveServiceMockRecorder) IncrReadCnt ¶
func (mr *MockInteractiveServiceMockRecorder) IncrReadCnt(ctx, biz, bizId any) *gomock.Call
IncrReadCnt indicates an expected call of IncrReadCnt.
type MockUserService ¶
type MockUserService struct {
// contains filtered or unexported fields
}
MockUserService is a mock of UserService interface.
func NewMockUserService ¶
func NewMockUserService(ctrl *gomock.Controller) *MockUserService
NewMockUserService creates a new mock instance.
func (*MockUserService) EXPECT ¶
func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserService) FindOrCreate ¶
FindOrCreate mocks base method.
func (*MockUserService) FindOrCreateByWechat ¶
func (m *MockUserService) FindOrCreateByWechat(ctx context.Context, wechatInfo domain.WechatInfo) (domain.User, error)
FindOrCreateByWechat mocks base method.
type MockUserServiceMockRecorder ¶
type MockUserServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockUserServiceMockRecorder is the mock recorder for MockUserService.
func (*MockUserServiceMockRecorder) FindOrCreate ¶
func (mr *MockUserServiceMockRecorder) FindOrCreate(ctx, phone interface{}) *gomock.Call
FindOrCreate indicates an expected call of FindOrCreate.
func (*MockUserServiceMockRecorder) FindOrCreateByWechat ¶
func (mr *MockUserServiceMockRecorder) FindOrCreateByWechat(ctx, wechatInfo interface{}) *gomock.Call
FindOrCreateByWechat indicates an expected call of FindOrCreateByWechat.
func (*MockUserServiceMockRecorder) Login ¶
func (mr *MockUserServiceMockRecorder) Login(ctx, email, password interface{}) *gomock.Call
Login indicates an expected call of Login.
func (*MockUserServiceMockRecorder) Profile ¶
func (mr *MockUserServiceMockRecorder) Profile(ctx, id interface{}) *gomock.Call
Profile indicates an expected call of Profile.
func (*MockUserServiceMockRecorder) SignUp ¶
func (mr *MockUserServiceMockRecorder) SignUp(ctx, u interface{}) *gomock.Call
SignUp indicates an expected call of SignUp.