svcmock

package
v0.0.0-...-7efebb4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: internal/service/article.go

Generated by this command:

mockgen -source=internal/service/article.go -destination=internal/service/mocks/article.mock.go -package=svcmock

Package svcmock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: internal/service/code.go

Generated by this command:

mockgen -source=internal/service/code.go -destination=internal/service/mocks/code.mock.go -package=svcmock

Package svcmock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: internal/service/sms/async/service.go

Generated by this command:

mockgen -source=internal/service/sms/async/service.go -destination=internal/service/mocks/sms_service.mock.go -package=svcmock

Package svcmock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: internal/service/user.go

Generated by this command:

mockgen -source=internal/service/user.go -destination=internal/service/mocks/user.mock.go -package=svcmock

Package svcmock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: internal/service/user_activity.go

Generated by this command:

mockgen -source=internal/service/user_activity.go -destination=internal/service/mocks/user_activity.mock.go -package=svcmock

Package svcmock 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(arg0 context.Context, arg1 int64) (domain.Article, error)

GetById mocks base method.

func (*MockArticleService) GetPubById

func (m *MockArticleService) GetPubById(ctx context.Context, artId int64) (domain.PublishedArticle, error)

GetPubById mocks base method.

func (*MockArticleService) List

func (m *MockArticleService) List(ctx context.Context, authorId int64, limit, offset int) ([]domain.Article, error)

List mocks base method.

func (*MockArticleService) ListPub

func (m *MockArticleService) ListPub(ctx context.Context, start time.Time, offset, batchSize int) ([]domain.PublishedArticle, error)

ListPub mocks base method.

func (*MockArticleService) Publish

func (m *MockArticleService) Publish(arg0 context.Context, arg1 domain.Article) (int64, error)

Publish mocks base method.

func (*MockArticleService) Save

func (m *MockArticleService) Save(arg0 context.Context, arg1 domain.Article) (int64, error)

Save mocks base method.

func (*MockArticleService) WithDraw

func (m *MockArticleService) WithDraw(ctx context.Context, userId, artId int64) 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(arg0, arg1 any) *gomock.Call

GetById indicates an expected call of GetById.

func (*MockArticleServiceMockRecorder) GetPubById

func (mr *MockArticleServiceMockRecorder) GetPubById(ctx, artId any) *gomock.Call

GetPubById indicates an expected call of GetPubById.

func (*MockArticleServiceMockRecorder) List

func (mr *MockArticleServiceMockRecorder) List(ctx, authorId, limit, offset any) *gomock.Call

List indicates an expected call of List.

func (*MockArticleServiceMockRecorder) ListPub

func (mr *MockArticleServiceMockRecorder) ListPub(ctx, start, offset, batchSize any) *gomock.Call

ListPub indicates an expected call of ListPub.

func (*MockArticleServiceMockRecorder) Publish

func (mr *MockArticleServiceMockRecorder) Publish(arg0, arg1 any) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockArticleServiceMockRecorder) Save

func (mr *MockArticleServiceMockRecorder) Save(arg0, arg1 any) *gomock.Call

Save indicates an expected call of Save.

func (*MockArticleServiceMockRecorder) WithDraw

func (mr *MockArticleServiceMockRecorder) WithDraw(ctx, userId, artId 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 any) *gomock.Call

Send indicates an expected call of Send.

func (*MockCodeServiceMockRecorder) Verify

func (mr *MockCodeServiceMockRecorder) Verify(ctx, biz, phone, inputCode any) *gomock.Call

Verify indicates an expected call of Verify.

type MockUserActivityService

type MockUserActivityService struct {
	// contains filtered or unexported fields
}

MockUserActivityService is a mock of UserActivityService interface.

func NewMockUserActivityService

func NewMockUserActivityService(ctrl *gomock.Controller) *MockUserActivityService

NewMockUserActivityService creates a new mock instance.

func (*MockUserActivityService) EXPECT

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

func (*MockUserActivityService) GetReadByIds

func (m *MockUserActivityService) GetReadByIds(ctx context.Context, biz string, ids []int64) ([]domain.UserActivity, error)

GetReadByIds mocks base method.

func (*MockUserActivityService) IncrRead

func (m *MockUserActivityService) IncrRead(ctx context.Context, biz string, bizId int64) error

IncrRead mocks base method.

type MockUserActivityServiceMockRecorder

type MockUserActivityServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserActivityServiceMockRecorder is the mock recorder for MockUserActivityService.

func (*MockUserActivityServiceMockRecorder) GetReadByIds

func (mr *MockUserActivityServiceMockRecorder) GetReadByIds(ctx, biz, ids any) *gomock.Call

GetReadByIds indicates an expected call of GetReadByIds.

func (*MockUserActivityServiceMockRecorder) IncrRead

func (mr *MockUserActivityServiceMockRecorder) IncrRead(ctx, biz, bizId any) *gomock.Call

IncrRead indicates an expected call of IncrRead.

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) FindById

func (m *MockUserService) FindById(ctx context.Context, uid int64) (domain.User, error)

FindById mocks base method.

func (*MockUserService) FindOrCreate

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

FindOrCreate 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) Signup

func (m *MockUserService) Signup(arg0 context.Context, arg1 domain.User) error

Signup mocks base method.

func (*MockUserService) UpdateNonPII

func (m *MockUserService) UpdateNonPII(ctx context.Context, user domain.User) error

UpdateNonPII mocks base method.

type MockUserServiceMockRecorder

type MockUserServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserServiceMockRecorder is the mock recorder for MockUserService.

func (*MockUserServiceMockRecorder) FindById

func (mr *MockUserServiceMockRecorder) FindById(ctx, uid any) *gomock.Call

FindById indicates an expected call of FindById.

func (*MockUserServiceMockRecorder) FindOrCreate

func (mr *MockUserServiceMockRecorder) FindOrCreate(ctx, phone any) *gomock.Call

FindOrCreate indicates an expected call of FindOrCreate.

func (*MockUserServiceMockRecorder) Login

func (mr *MockUserServiceMockRecorder) Login(ctx, email, password any) *gomock.Call

Login indicates an expected call of Login.

func (*MockUserServiceMockRecorder) Signup

func (mr *MockUserServiceMockRecorder) Signup(arg0, arg1 any) *gomock.Call

Signup indicates an expected call of Signup.

func (*MockUserServiceMockRecorder) UpdateNonPII

func (mr *MockUserServiceMockRecorder) UpdateNonPII(ctx, user any) *gomock.Call

UpdateNonPII indicates an expected call of UpdateNonPII.

Jump to

Keyboard shortcuts

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