/* * Copyright 2025 coze-dev Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Code generated by MockGen. DO NOT EDIT. // Source: contract.go // // Generated by this command: // // mockgen -destination ../../internal/mock/crossdomain/crossuser/crossuser.go --package mockCrossUser -source contract.go // // Package mockCrossUser is a generated GoMock package. package mockCrossUser import ( context "context" reflect "reflect" crossuser "github.com/coze-dev/coze-studio/backend/crossdomain/user" gomock "go.uber.org/mock/gomock" ) // MockUser is a mock of User interface. type MockUser struct { ctrl *gomock.Controller recorder *MockUserMockRecorder isgomock struct{} } // MockUserMockRecorder is the mock recorder for MockUser. type MockUserMockRecorder struct { mock *MockUser } // NewMockUser creates a new mock instance. func NewMockUser(ctrl *gomock.Controller) *MockUser { mock := &MockUser{ctrl: ctrl} mock.recorder = &MockUserMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockUser) EXPECT() *MockUserMockRecorder { return m.recorder } // GetUserSpaceBySpaceID mocks base method. func (m *MockUser) GetUserSpaceBySpaceID(ctx context.Context, spaceID []int64) ([]*crossuser.EntitySpace, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUserSpaceBySpaceID", ctx, spaceID) ret0, _ := ret[0].([]*crossuser.EntitySpace) ret1, _ := ret[1].(error) return ret0, ret1 } // GetUserSpaceBySpaceID indicates an expected call of GetUserSpaceBySpaceID. func (mr *MockUserMockRecorder) GetUserSpaceBySpaceID(ctx, spaceID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserSpaceBySpaceID", reflect.TypeOf((*MockUser)(nil).GetUserSpaceBySpaceID), ctx, spaceID) } // GetUserSpaceList mocks base method. func (m *MockUser) GetUserSpaceList(ctx context.Context, userID int64) ([]*crossuser.EntitySpace, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUserSpaceList", ctx, userID) ret0, _ := ret[0].([]*crossuser.EntitySpace) ret1, _ := ret[1].(error) return ret0, ret1 } // GetUserSpaceList indicates an expected call of GetUserSpaceList. func (mr *MockUserMockRecorder) GetUserSpaceList(ctx, userID any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserSpaceList", reflect.TypeOf((*MockUser)(nil).GetUserSpaceList), ctx, userID) }