feat 协议
This commit is contained in:
@@ -6,9 +6,9 @@ package mocks
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
context "context"
|
context "context"
|
||||||
grpc_pb "git.hlsq.asia/mmorpg/service-common/proto/ss/grpc_pb"
|
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
|
||||||
|
grpc_pb "git.hlsq.asia/mmorpg/service-common/proto/ss/grpc_pb"
|
||||||
gomock "github.com/golang/mock/gomock"
|
gomock "github.com/golang/mock/gomock"
|
||||||
grpc "google.golang.org/grpc"
|
grpc "google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
@@ -36,6 +36,26 @@ func (m *MockUserClient) EXPECT() *MockUserClientMockRecorder {
|
|||||||
return m.recorder
|
return m.recorder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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()
|
||||||
|
varargs := []interface{}{ctx, in}
|
||||||
|
for _, a := range opts {
|
||||||
|
varargs = append(varargs, a)
|
||||||
|
}
|
||||||
|
ret := m.ctrl.Call(m, "GenerateQuestion", varargs...)
|
||||||
|
ret0, _ := ret[0].(*grpc_pb.GenerateQuestionResp)
|
||||||
|
ret1, _ := ret[1].(error)
|
||||||
|
return ret0, ret1
|
||||||
|
}
|
||||||
|
|
||||||
|
// GenerateQuestion indicates an expected call of GenerateQuestion.
|
||||||
|
func (mr *MockUserClientMockRecorder) GenerateQuestion(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, "GenerateQuestion", reflect.TypeOf((*MockUserClient)(nil).GenerateQuestion), varargs...)
|
||||||
|
}
|
||||||
|
|
||||||
// GetUserInfo mocks base method.
|
// GetUserInfo mocks base method.
|
||||||
func (m *MockUserClient) GetUserInfo(ctx context.Context, in *grpc_pb.GetUserInfoReq, opts ...grpc.CallOption) (*grpc_pb.GetUserInfoResp, error) {
|
func (m *MockUserClient) GetUserInfo(ctx context.Context, in *grpc_pb.GetUserInfoReq, opts ...grpc.CallOption) (*grpc_pb.GetUserInfoResp, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
@@ -99,6 +119,21 @@ func (m *MockUserServer) EXPECT() *MockUserServerMockRecorder {
|
|||||||
return m.recorder
|
return m.recorder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GenerateQuestion mocks base method.
|
||||||
|
func (m *MockUserServer) GenerateQuestion(arg0 context.Context, arg1 *grpc_pb.GenerateQuestionReq) (*grpc_pb.GenerateQuestionResp, error) {
|
||||||
|
m.ctrl.T.Helper()
|
||||||
|
ret := m.ctrl.Call(m, "GenerateQuestion", arg0, arg1)
|
||||||
|
ret0, _ := ret[0].(*grpc_pb.GenerateQuestionResp)
|
||||||
|
ret1, _ := ret[1].(error)
|
||||||
|
return ret0, ret1
|
||||||
|
}
|
||||||
|
|
||||||
|
// GenerateQuestion indicates an expected call of GenerateQuestion.
|
||||||
|
func (mr *MockUserServerMockRecorder) GenerateQuestion(arg0, arg1 interface{}) *gomock.Call {
|
||||||
|
mr.mock.ctrl.T.Helper()
|
||||||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateQuestion", reflect.TypeOf((*MockUserServer)(nil).GenerateQuestion), arg0, arg1)
|
||||||
|
}
|
||||||
|
|
||||||
// GetUserInfo mocks base method.
|
// GetUserInfo mocks base method.
|
||||||
func (m *MockUserServer) GetUserInfo(arg0 context.Context, arg1 *grpc_pb.GetUserInfoReq) (*grpc_pb.GetUserInfoResp, error) {
|
func (m *MockUserServer) GetUserInfo(arg0 context.Context, arg1 *grpc_pb.GetUserInfoReq) (*grpc_pb.GetUserInfoResp, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
|
|||||||
Reference in New Issue
Block a user