func (m *MockService) GetByUsername(ctx context.Context, username string) (*model.User, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetByUsername", ctx, username)
	ret0, _ := ret[0].(*model.User)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}
GetByUsername mocks base method
package mock_user
import (
	context "context"
	gomock "github.com/golang/mock/gomock"
	user "github.com/qreasio/go-starter-kit/internal/user"
	model "github.com/qreasio/go-starter-kit/pkg/model"
	reflect "reflect"
)
type MockService struct {
	ctrl     *gomock.Controller
	recorder *MockServiceMockRecorder
}
type MockServiceMockRecorder struct {
	mock *MockService
}
func NewMockService(ctrl *gomock.Controller) *MockService {
	mock := &MockService{ctrl: ctrl}
	mock.recorder = &MockServiceMockRecorder{mock}
	return mock
}
func (m *MockService) EXPECT() *MockServiceMockRecorder {
	return m.recorder
}
func (m *MockService) ListUsers(ctx context.Context, listRequest *user.ListUsersRequest) ([]model.User, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListUsers", ctx, listRequest)
	ret0, _ := ret[0].([]model.User)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}
func (mr *MockServiceMockRecorder) ListUsers(ctx, listRequest interface{}) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsers", reflect.TypeOf((*MockService)(nil).ListUsers), ctx, listRequest)
}