You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
webcrawler/web/src/main/java/org/pqh/thrift/QueryImp.java

18 lines
439 B

package org.pqh.thrift;
import org.apache.thrift.TException;
public class QueryImp implements TestQry.Iface {
@Override
public QryResult qryTest(int qryCode) throws TException {
QryResult result = new QryResult();
if(qryCode==1){
result.code = 1;
result.msg = "success";
}else{
result.code = 0;
result.msg = "fail";
}
return result;
}
}