132 lines
4.6 KiB
Go
132 lines
4.6 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: ./pkg/domain/repository/kyc.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=./pkg/domain/repository/kyc.go -destination=./pkg/mock/repository/kyc.go -package=mock
|
|
//
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
entity "code.30cm.net/digimon/app-cloudep-product-service/pkg/domain/entity"
|
|
repository "code.30cm.net/digimon/app-cloudep-product-service/pkg/domain/repository"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockKYCRepository is a mock of KYCRepository interface.
|
|
type MockKYCRepository struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockKYCRepositoryMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockKYCRepositoryMockRecorder is the mock recorder for MockKYCRepository.
|
|
type MockKYCRepositoryMockRecorder struct {
|
|
mock *MockKYCRepository
|
|
}
|
|
|
|
// NewMockKYCRepository creates a new mock instance.
|
|
func NewMockKYCRepository(ctrl *gomock.Controller) *MockKYCRepository {
|
|
mock := &MockKYCRepository{ctrl: ctrl}
|
|
mock.recorder = &MockKYCRepositoryMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockKYCRepository) EXPECT() *MockKYCRepositoryMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Create mocks base method.
|
|
func (m *MockKYCRepository) Create(ctx context.Context, kyc *entity.KYC) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Create", ctx, kyc)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Create indicates an expected call of Create.
|
|
func (mr *MockKYCRepositoryMockRecorder) Create(ctx, kyc any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockKYCRepository)(nil).Create), ctx, kyc)
|
|
}
|
|
|
|
// FindByID mocks base method.
|
|
func (m *MockKYCRepository) FindByID(ctx context.Context, id string) (*entity.KYC, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FindByID", ctx, id)
|
|
ret0, _ := ret[0].(*entity.KYC)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FindByID indicates an expected call of FindByID.
|
|
func (mr *MockKYCRepositoryMockRecorder) FindByID(ctx, id any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindByID", reflect.TypeOf((*MockKYCRepository)(nil).FindByID), ctx, id)
|
|
}
|
|
|
|
// FindLatestByUID mocks base method.
|
|
func (m *MockKYCRepository) FindLatestByUID(ctx context.Context, uid string) (*entity.KYC, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "FindLatestByUID", ctx, uid)
|
|
ret0, _ := ret[0].(*entity.KYC)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// FindLatestByUID indicates an expected call of FindLatestByUID.
|
|
func (mr *MockKYCRepositoryMockRecorder) FindLatestByUID(ctx, uid any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindLatestByUID", reflect.TypeOf((*MockKYCRepository)(nil).FindLatestByUID), ctx, uid)
|
|
}
|
|
|
|
// List mocks base method.
|
|
func (m *MockKYCRepository) List(ctx context.Context, params repository.KYCQueryParams) ([]*entity.KYC, int64, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "List", ctx, params)
|
|
ret0, _ := ret[0].([]*entity.KYC)
|
|
ret1, _ := ret[1].(int64)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// List indicates an expected call of List.
|
|
func (mr *MockKYCRepositoryMockRecorder) List(ctx, params any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockKYCRepository)(nil).List), ctx, params)
|
|
}
|
|
|
|
// UpdateKYCInfo mocks base method.
|
|
func (m *MockKYCRepository) UpdateKYCInfo(ctx context.Context, id string, update *repository.KYCUpdateParams) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UpdateKYCInfo", ctx, id, update)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// UpdateKYCInfo indicates an expected call of UpdateKYCInfo.
|
|
func (mr *MockKYCRepositoryMockRecorder) UpdateKYCInfo(ctx, id, update any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateKYCInfo", reflect.TypeOf((*MockKYCRepository)(nil).UpdateKYCInfo), ctx, id, update)
|
|
}
|
|
|
|
// UpdateStatus mocks base method.
|
|
func (m *MockKYCRepository) UpdateStatus(ctx context.Context, id, status, reason string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "UpdateStatus", ctx, id, status, reason)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// UpdateStatus indicates an expected call of UpdateStatus.
|
|
func (mr *MockKYCRepositoryMockRecorder) UpdateStatus(ctx, id, status, reason any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockKYCRepository)(nil).UpdateStatus), ctx, id, status, reason)
|
|
}
|