svcmocks

package
v0.0.0-...-d13da26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockArticleService) GetById

func (m *MockArticleService) GetById(ctx context.Context, id int64) (domain.Article, error)

GetById mocks base method.

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.

func (*MockArticleService) Publish

func (m *MockArticleService) Publish(ctx context.Context, art domain.Article) (int64, error)

Publish mocks base method.

func (*MockArticleService) PublishV1

func (m *MockArticleService) PublishV1(ctx context.Context, art domain.Article) (int64, error)

PublishV1 mocks base method.

func (*MockArticleService) Save

Save mocks base method.

func (*MockArticleService) Withdraw

func (m *MockArticleService) Withdraw(ctx context.Context, art domain.Article) error

Withdraw 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.

func (*MockArticleServiceMockRecorder) Save

func (mr *MockArticleServiceMockRecorder) Save(ctx, art any) *gomock.Call

Save indicates an expected call of Save.

func (*MockArticleServiceMockRecorder) Withdraw

func (mr *MockArticleServiceMockRecorder) Withdraw(ctx, art any) *gomock.Call

Withdraw indicates an expected call of Withdraw.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCodeService) Send

func (m *MockCodeService) Send(ctx context.Context, biz, phone string) error

Send mocks base method.

func (*MockCodeService) Verify

func (m *MockCodeService) Verify(ctx context.Context, biz, phone, inputCode string) (bool, error)

Verify mocks base method.

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

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

func (m *MockInteractiveService) IncrReadCnt(ctx context.Context, biz string, bizId int64) error

IncrReadCnt mocks base method.

func (*MockInteractiveService) Like

func (m *MockInteractiveService) Like(ctx context.Context, biz string, bizId, uid int64) error

Like 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.

func (*MockInteractiveServiceMockRecorder) Like

func (mr *MockInteractiveServiceMockRecorder) Like(ctx, biz, bizId, uid any) *gomock.Call

Like indicates an expected call of Like.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserService) FindOrCreate

func (m *MockUserService) FindOrCreate(ctx context.Context, phone string) (domain.User, error)

FindOrCreate mocks base method.

func (*MockUserService) FindOrCreateByWechat

func (m *MockUserService) FindOrCreateByWechat(ctx context.Context, wechatInfo domain.WechatInfo) (domain.User, error)

FindOrCreateByWechat mocks base method.

func (*MockUserService) Login

func (m *MockUserService) Login(ctx context.Context, email, password string) (domain.User, error)

Login mocks base method.

func (*MockUserService) Profile

func (m *MockUserService) Profile(ctx context.Context, id int64) (domain.User, error)

Profile mocks base method.

func (*MockUserService) SignUp

func (m *MockUserService) SignUp(ctx context.Context, u domain.User) error

SignUp 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL