116 lines
4.0 KiB
Go
116 lines
4.0 KiB
Go
|
// Code generated by MockGen. DO NOT EDIT.
|
||
|
// Source: ./internal/model/account_to_uid_model.go
|
||
|
//
|
||
|
// Generated by this command:
|
||
|
//
|
||
|
// mockgen -source=./internal/model/account_to_uid_model.go -destination=./internal/mock/model/account_to_uidmodel.go -package=mock
|
||
|
//
|
||
|
|
||
|
// Package mock is a generated GoMock package.
|
||
|
package mock
|
||
|
|
||
|
import (
|
||
|
model "app-cloudep-member-server/internal/model"
|
||
|
context "context"
|
||
|
sql "database/sql"
|
||
|
reflect "reflect"
|
||
|
|
||
|
gomock "go.uber.org/mock/gomock"
|
||
|
)
|
||
|
|
||
|
// MockAccountToUidModel is a mock of AccountToUidModel interface.
|
||
|
type MockAccountToUidModel struct {
|
||
|
ctrl *gomock.Controller
|
||
|
recorder *MockAccountToUidModelMockRecorder
|
||
|
}
|
||
|
|
||
|
// MockAccountToUidModelMockRecorder is the mock recorder for MockAccountToUidModel.
|
||
|
type MockAccountToUidModelMockRecorder struct {
|
||
|
mock *MockAccountToUidModel
|
||
|
}
|
||
|
|
||
|
// NewMockAccountToUidModel creates a new mock instance.
|
||
|
func NewMockAccountToUidModel(ctrl *gomock.Controller) *MockAccountToUidModel {
|
||
|
mock := &MockAccountToUidModel{ctrl: ctrl}
|
||
|
mock.recorder = &MockAccountToUidModelMockRecorder{mock}
|
||
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
||
|
func (m *MockAccountToUidModel) EXPECT() *MockAccountToUidModelMockRecorder {
|
||
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// Delete mocks base method.
|
||
|
func (m *MockAccountToUidModel) Delete(ctx context.Context, id int64) error {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Delete", ctx, id)
|
||
|
ret0, _ := ret[0].(error)
|
||
|
return ret0
|
||
|
}
|
||
|
|
||
|
// Delete indicates an expected call of Delete.
|
||
|
func (mr *MockAccountToUidModelMockRecorder) Delete(ctx, id any) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAccountToUidModel)(nil).Delete), ctx, id)
|
||
|
}
|
||
|
|
||
|
// FindOne mocks base method.
|
||
|
func (m *MockAccountToUidModel) FindOne(ctx context.Context, id int64) (*model.AccountToUid, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "FindOne", ctx, id)
|
||
|
ret0, _ := ret[0].(*model.AccountToUid)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// FindOne indicates an expected call of FindOne.
|
||
|
func (mr *MockAccountToUidModelMockRecorder) FindOne(ctx, id any) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOne", reflect.TypeOf((*MockAccountToUidModel)(nil).FindOne), ctx, id)
|
||
|
}
|
||
|
|
||
|
// FindOneByAccount mocks base method.
|
||
|
func (m *MockAccountToUidModel) FindOneByAccount(ctx context.Context, account string) (*model.AccountToUid, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "FindOneByAccount", ctx, account)
|
||
|
ret0, _ := ret[0].(*model.AccountToUid)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// FindOneByAccount indicates an expected call of FindOneByAccount.
|
||
|
func (mr *MockAccountToUidModelMockRecorder) FindOneByAccount(ctx, account any) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOneByAccount", reflect.TypeOf((*MockAccountToUidModel)(nil).FindOneByAccount), ctx, account)
|
||
|
}
|
||
|
|
||
|
// Insert mocks base method.
|
||
|
func (m *MockAccountToUidModel) Insert(ctx context.Context, data *model.AccountToUid) (sql.Result, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Insert", ctx, data)
|
||
|
ret0, _ := ret[0].(sql.Result)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Insert indicates an expected call of Insert.
|
||
|
func (mr *MockAccountToUidModelMockRecorder) Insert(ctx, data any) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockAccountToUidModel)(nil).Insert), ctx, data)
|
||
|
}
|
||
|
|
||
|
// Update mocks base method.
|
||
|
func (m *MockAccountToUidModel) Update(ctx context.Context, data *model.AccountToUid) error {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Update", ctx, data)
|
||
|
ret0, _ := ret[0].(error)
|
||
|
return ret0
|
||
|
}
|
||
|
|
||
|
// Update indicates an expected call of Update.
|
||
|
func (mr *MockAccountToUidModelMockRecorder) Update(ctx, data any) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockAccountToUidModel)(nil).Update), ctx, data)
|
||
|
}
|