85 lines
3.1 KiB
Go
85 lines
3.1 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: ./pkg/domain/repository/verify_code.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=./pkg/domain/repository/verify_code.go -destination=./pkg/mock/repository/verify_code.go -package=mock
|
|
//
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockVerifyCodeRepository is a mock of VerifyCodeRepository interface.
|
|
type MockVerifyCodeRepository struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockVerifyCodeRepositoryMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockVerifyCodeRepositoryMockRecorder is the mock recorder for MockVerifyCodeRepository.
|
|
type MockVerifyCodeRepositoryMockRecorder struct {
|
|
mock *MockVerifyCodeRepository
|
|
}
|
|
|
|
// NewMockVerifyCodeRepository creates a new mock instance.
|
|
func NewMockVerifyCodeRepository(ctrl *gomock.Controller) *MockVerifyCodeRepository {
|
|
mock := &MockVerifyCodeRepository{ctrl: ctrl}
|
|
mock.recorder = &MockVerifyCodeRepositoryMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockVerifyCodeRepository) EXPECT() *MockVerifyCodeRepositoryMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// DelVerifyCode mocks base method.
|
|
func (m *MockVerifyCodeRepository) DelVerifyCode(ctx context.Context, loginID, checkType string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DelVerifyCode", ctx, loginID, checkType)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// DelVerifyCode indicates an expected call of DelVerifyCode.
|
|
func (mr *MockVerifyCodeRepositoryMockRecorder) DelVerifyCode(ctx, loginID, checkType any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelVerifyCode", reflect.TypeOf((*MockVerifyCodeRepository)(nil).DelVerifyCode), ctx, loginID, checkType)
|
|
}
|
|
|
|
// IsVerifyCodeExist mocks base method.
|
|
func (m *MockVerifyCodeRepository) IsVerifyCodeExist(ctx context.Context, loginID, checkType string) (string, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IsVerifyCodeExist", ctx, loginID, checkType)
|
|
ret0, _ := ret[0].(string)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// IsVerifyCodeExist indicates an expected call of IsVerifyCodeExist.
|
|
func (mr *MockVerifyCodeRepositoryMockRecorder) IsVerifyCodeExist(ctx, loginID, checkType any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsVerifyCodeExist", reflect.TypeOf((*MockVerifyCodeRepository)(nil).IsVerifyCodeExist), ctx, loginID, checkType)
|
|
}
|
|
|
|
// SetVerifyCode mocks base method.
|
|
func (m *MockVerifyCodeRepository) SetVerifyCode(ctx context.Context, loginID, checkType, code string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SetVerifyCode", ctx, loginID, checkType, code)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// SetVerifyCode indicates an expected call of SetVerifyCode.
|
|
func (mr *MockVerifyCodeRepositoryMockRecorder) SetVerifyCode(ctx, loginID, checkType, code any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVerifyCode", reflect.TypeOf((*MockVerifyCodeRepository)(nil).SetVerifyCode), ctx, loginID, checkType, code)
|
|
}
|