116 lines
3.8 KiB
Go
116 lines
3.8 KiB
Go
|
// Code generated by MockGen. DO NOT EDIT.
|
||
|
// Source: ./internal/model/user_role_model_gen.go
|
||
|
//
|
||
|
// Generated by this command:
|
||
|
//
|
||
|
// mockgen -source=./internal/model/user_role_model_gen.go -destination=./internal/mock/model/user_role_model_gen.go -package=mock
|
||
|
//
|
||
|
|
||
|
// Package mock is a generated GoMock package.
|
||
|
package mock
|
||
|
|
||
|
import (
|
||
|
model "app-cloudep-permission-server/internal/model"
|
||
|
context "context"
|
||
|
sql "database/sql"
|
||
|
reflect "reflect"
|
||
|
|
||
|
gomock "go.uber.org/mock/gomock"
|
||
|
)
|
||
|
|
||
|
// MockuserRoleModel is a mock of userRoleModel interface.
|
||
|
type MockuserRoleModel struct {
|
||
|
ctrl *gomock.Controller
|
||
|
recorder *MockuserRoleModelMockRecorder
|
||
|
}
|
||
|
|
||
|
// MockuserRoleModelMockRecorder is the mock recorder for MockuserRoleModel.
|
||
|
type MockuserRoleModelMockRecorder struct {
|
||
|
mock *MockuserRoleModel
|
||
|
}
|
||
|
|
||
|
// NewMockuserRoleModel creates a new mock instance.
|
||
|
func NewMockuserRoleModel(ctrl *gomock.Controller) *MockuserRoleModel {
|
||
|
mock := &MockuserRoleModel{ctrl: ctrl}
|
||
|
mock.recorder = &MockuserRoleModelMockRecorder{mock}
|
||
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
||
|
func (m *MockuserRoleModel) EXPECT() *MockuserRoleModelMockRecorder {
|
||
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// Delete mocks base method.
|
||
|
func (m *MockuserRoleModel) 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 *MockuserRoleModelMockRecorder) Delete(ctx, id any) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockuserRoleModel)(nil).Delete), ctx, id)
|
||
|
}
|
||
|
|
||
|
// FindOne mocks base method.
|
||
|
func (m *MockuserRoleModel) FindOne(ctx context.Context, id int64) (*model.UserRole, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "FindOne", ctx, id)
|
||
|
ret0, _ := ret[0].(*model.UserRole)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// FindOne indicates an expected call of FindOne.
|
||
|
func (mr *MockuserRoleModelMockRecorder) FindOne(ctx, id any) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOne", reflect.TypeOf((*MockuserRoleModel)(nil).FindOne), ctx, id)
|
||
|
}
|
||
|
|
||
|
// FindOneByUid mocks base method.
|
||
|
func (m *MockuserRoleModel) FindOneByUid(ctx context.Context, uid string) (*model.UserRole, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "FindOneByUid", ctx, uid)
|
||
|
ret0, _ := ret[0].(*model.UserRole)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// FindOneByUid indicates an expected call of FindOneByUid.
|
||
|
func (mr *MockuserRoleModelMockRecorder) FindOneByUid(ctx, uid any) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOneByUid", reflect.TypeOf((*MockuserRoleModel)(nil).FindOneByUid), ctx, uid)
|
||
|
}
|
||
|
|
||
|
// Insert mocks base method.
|
||
|
func (m *MockuserRoleModel) Insert(ctx context.Context, data *model.UserRole) (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 *MockuserRoleModelMockRecorder) Insert(ctx, data any) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockuserRoleModel)(nil).Insert), ctx, data)
|
||
|
}
|
||
|
|
||
|
// Update mocks base method.
|
||
|
func (m *MockuserRoleModel) Update(ctx context.Context, data *model.UserRole) 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 *MockuserRoleModelMockRecorder) Update(ctx, data any) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockuserRoleModel)(nil).Update), ctx, data)
|
||
|
}
|