Dictionary Thrift IDL语法错误-接受和返回映射
我正在写一个储蓄服务器。其中一个函数应该接受Dictionary Thrift IDL语法错误-接受和返回映射,dictionary,thrift,idl,Dictionary,Thrift,Idl,我正在写一个储蓄服务器。其中一个函数应该接受map,并返回map 以下是我的旧档案: service base{ map<string, string> method_1(1: map<string, double>) } service child extends base{ map<string, string> method_1(1: map<string, double>), void
map
,并返回map
以下是我的旧档案:
service base{
map<string, string> method_1(1: map<string, double>)
}
service child extends base{
map<string, string> method_1(1: map<string, double>),
void method_2(1:string path)
}
我不知道语法有什么错误 你必须说出你的论点
service base{
map<string, string> method_1(1: map<string, double> arg1)
}
service child extends base{
map<string, string> method_1(1: map<string, double> arg1),
void method_2(1:string path)
}
服务基础{
映射方法_1(1:map arg1)
}
服务子扩展基{
映射方法_1(1:map arg1),
void方法_2(1:字符串路径)
}
您已经在参数为(1:string path)
的方法_2
中正确执行了该操作,但随后您在方法_1(1:map)
中忘记了它-这是不够的
顺便说一句,它与地图毫无关系。你必须说出你的论点
service base{
map<string, string> method_1(1: map<string, double> arg1)
}
service child extends base{
map<string, string> method_1(1: map<string, double> arg1),
void method_2(1:string path)
}
服务基础{
映射方法_1(1:map arg1)
}
服务子扩展基{
映射方法_1(1:map arg1),
void方法_2(1:字符串路径)
}
您已经在参数为(1:string path)
的方法_2
中正确执行了该操作,但随后您在方法_1(1:map)
中忘记了它-这是不够的
顺便说一句,它与地图毫无关系。我不知道这个语法有什么错,我输入了两个地图,它就工作了。我仍然有兴趣知道这个有什么问题不知道这个语法有什么问题,我输入了两个映射,它工作了。我仍然有兴趣知道这有什么问题