feat 协议
This commit is contained in:
@@ -36,6 +36,26 @@ func (m *MockUserClient) EXPECT() *MockUserClientMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// AnswerQuestion mocks base method.
|
||||
func (m *MockUserClient) AnswerQuestion(ctx context.Context, in *grpc_pb.AnswerQuestionReq, opts ...grpc.CallOption) (*grpc_pb.AnswerQuestionResp, error) {
|
||||
m.ctrl.T.Helper()
|
||||
varargs := []interface{}{ctx, in}
|
||||
for _, a := range opts {
|
||||
varargs = append(varargs, a)
|
||||
}
|
||||
ret := m.ctrl.Call(m, "AnswerQuestion", varargs...)
|
||||
ret0, _ := ret[0].(*grpc_pb.AnswerQuestionResp)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// AnswerQuestion indicates an expected call of AnswerQuestion.
|
||||
func (mr *MockUserClientMockRecorder) AnswerQuestion(ctx, in interface{}, opts ...interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
varargs := append([]interface{}{ctx, in}, opts...)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AnswerQuestion", reflect.TypeOf((*MockUserClient)(nil).AnswerQuestion), varargs...)
|
||||
}
|
||||
|
||||
// GenerateQuestion mocks base method.
|
||||
func (m *MockUserClient) GenerateQuestion(ctx context.Context, in *grpc_pb.GenerateQuestionReq, opts ...grpc.CallOption) (*grpc_pb.GenerateQuestionResp, error) {
|
||||
m.ctrl.T.Helper()
|
||||
@@ -56,6 +76,26 @@ func (mr *MockUserClientMockRecorder) GenerateQuestion(ctx, in interface{}, opts
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateQuestion", reflect.TypeOf((*MockUserClient)(nil).GenerateQuestion), varargs...)
|
||||
}
|
||||
|
||||
// GetQuestion mocks base method.
|
||||
func (m *MockUserClient) GetQuestion(ctx context.Context, in *grpc_pb.GetQuestionReq, opts ...grpc.CallOption) (*grpc_pb.GetQuestionResp, error) {
|
||||
m.ctrl.T.Helper()
|
||||
varargs := []interface{}{ctx, in}
|
||||
for _, a := range opts {
|
||||
varargs = append(varargs, a)
|
||||
}
|
||||
ret := m.ctrl.Call(m, "GetQuestion", varargs...)
|
||||
ret0, _ := ret[0].(*grpc_pb.GetQuestionResp)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetQuestion indicates an expected call of GetQuestion.
|
||||
func (mr *MockUserClientMockRecorder) GetQuestion(ctx, in interface{}, opts ...interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
varargs := append([]interface{}{ctx, in}, opts...)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQuestion", reflect.TypeOf((*MockUserClient)(nil).GetQuestion), varargs...)
|
||||
}
|
||||
|
||||
// GetUserInfo mocks base method.
|
||||
func (m *MockUserClient) GetUserInfo(ctx context.Context, in *grpc_pb.GetUserInfoReq, opts ...grpc.CallOption) (*grpc_pb.GetUserInfoResp, error) {
|
||||
m.ctrl.T.Helper()
|
||||
@@ -119,6 +159,21 @@ func (m *MockUserServer) EXPECT() *MockUserServerMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// AnswerQuestion mocks base method.
|
||||
func (m *MockUserServer) AnswerQuestion(arg0 context.Context, arg1 *grpc_pb.AnswerQuestionReq) (*grpc_pb.AnswerQuestionResp, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "AnswerQuestion", arg0, arg1)
|
||||
ret0, _ := ret[0].(*grpc_pb.AnswerQuestionResp)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// AnswerQuestion indicates an expected call of AnswerQuestion.
|
||||
func (mr *MockUserServerMockRecorder) AnswerQuestion(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AnswerQuestion", reflect.TypeOf((*MockUserServer)(nil).AnswerQuestion), arg0, arg1)
|
||||
}
|
||||
|
||||
// GenerateQuestion mocks base method.
|
||||
func (m *MockUserServer) GenerateQuestion(arg0 context.Context, arg1 *grpc_pb.GenerateQuestionReq) (*grpc_pb.GenerateQuestionResp, error) {
|
||||
m.ctrl.T.Helper()
|
||||
@@ -134,6 +189,21 @@ func (mr *MockUserServerMockRecorder) GenerateQuestion(arg0, arg1 interface{}) *
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateQuestion", reflect.TypeOf((*MockUserServer)(nil).GenerateQuestion), arg0, arg1)
|
||||
}
|
||||
|
||||
// GetQuestion mocks base method.
|
||||
func (m *MockUserServer) GetQuestion(arg0 context.Context, arg1 *grpc_pb.GetQuestionReq) (*grpc_pb.GetQuestionResp, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetQuestion", arg0, arg1)
|
||||
ret0, _ := ret[0].(*grpc_pb.GetQuestionResp)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetQuestion indicates an expected call of GetQuestion.
|
||||
func (mr *MockUserServerMockRecorder) GetQuestion(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQuestion", reflect.TypeOf((*MockUserServer)(nil).GetQuestion), arg0, arg1)
|
||||
}
|
||||
|
||||
// GetUserInfo mocks base method.
|
||||
func (m *MockUserServer) GetUserInfo(arg0 context.Context, arg1 *grpc_pb.GetUserInfoReq) (*grpc_pb.GetUserInfoResp, error) {
|
||||
m.ctrl.T.Helper()
|
||||
|
||||
Reference in New Issue
Block a user