Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
cicada.departdriver.config.MemberTaskService Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package cicada.departdriver.config;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-06-19")
public class MemberTaskService {
public interface Iface {
public ResultInfo CreateTask(MemberTaskCreateParas para) throws org.apache.thrift.TException;
public ResultInfo CompleteTask(MemberTaskCompleteParas para) throws org.apache.thrift.TException;
public ResultInfo CompleteAndCreateTask(MemberTaskCompleteAndCreateParas para) throws org.apache.thrift.TException;
public java.util.List GetMemberInfo(java.lang.String enterpriseID, java.lang.String userIDs) throws org.apache.thrift.TException;
public java.util.List GetMemberByAuth(java.lang.String enterpriseID, java.lang.String auths) throws org.apache.thrift.TException;
public ResultInfo SyncOrganInfo(java.lang.String oid, java.lang.String oName, java.lang.String userIDs, int type) throws org.apache.thrift.TException;
public ResultInfo SyncOrganName(java.lang.String oid, int type, java.lang.String oName) throws org.apache.thrift.TException;
public ResultInfo OrganAdd(java.lang.String oid, java.lang.String oName, java.lang.String userID, int type) throws org.apache.thrift.TException;
public ResultInfo OrganDelete(java.lang.String oid, java.lang.String userID, int type) throws org.apache.thrift.TException;
public ResultInfo OrganAllDelete(java.lang.String oid, int type) throws org.apache.thrift.TException;
public ResultInfo EnterpriseMemberAdd(MemberUserInfo member) throws org.apache.thrift.TException;
public ResultInfo EnterpriseMemberUpdate(MemberUserInfo member) throws org.apache.thrift.TException;
public ResultInfo WorkReportAdd(WorkReportInfo report) throws org.apache.thrift.TException;
public ResultInfo GetLingYiUserInfo(java.lang.String userID) throws org.apache.thrift.TException;
public java.util.List GetLingYiUserList() throws org.apache.thrift.TException;
public java.util.List GetEnterpriseList(java.util.List idList) throws org.apache.thrift.TException;
public ResultInfo SetUserYFAuth(java.util.List userAuth) throws org.apache.thrift.TException;
public ResultInfo SetUserSystemAuth(java.util.List userAuth, java.lang.String sysCode) throws org.apache.thrift.TException;
public ResultInfo SetLYManageAuth(java.util.List lyUserAuth) throws org.apache.thrift.TException;
public java.util.List GetSaleOrder(OrderStatusCodeEnum status, java.lang.String enterpriseName, java.lang.String orderID, java.lang.String saleUserID, java.lang.String beginDy, java.lang.String endDay, int pageIndex, int pageSize) throws org.apache.thrift.TException;
}
public interface AsyncIface {
public void CreateTask(MemberTaskCreateParas para, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void CompleteTask(MemberTaskCompleteParas para, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void CompleteAndCreateTask(MemberTaskCompleteAndCreateParas para, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void GetMemberInfo(java.lang.String enterpriseID, java.lang.String userIDs, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
public void GetMemberByAuth(java.lang.String enterpriseID, java.lang.String auths, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
public void SyncOrganInfo(java.lang.String oid, java.lang.String oName, java.lang.String userIDs, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void SyncOrganName(java.lang.String oid, int type, java.lang.String oName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void OrganAdd(java.lang.String oid, java.lang.String oName, java.lang.String userID, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void OrganDelete(java.lang.String oid, java.lang.String userID, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void OrganAllDelete(java.lang.String oid, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void EnterpriseMemberAdd(MemberUserInfo member, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void EnterpriseMemberUpdate(MemberUserInfo member, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void WorkReportAdd(WorkReportInfo report, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void GetLingYiUserInfo(java.lang.String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void GetLingYiUserList(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
public void GetEnterpriseList(java.util.List idList, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
public void SetUserYFAuth(java.util.List userAuth, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void SetUserSystemAuth(java.util.List userAuth, java.lang.String sysCode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void SetLYManageAuth(java.util.List lyUserAuth, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void GetSaleOrder(OrderStatusCodeEnum status, java.lang.String enterpriseName, java.lang.String orderID, java.lang.String saleUserID, java.lang.String beginDy, java.lang.String endDay, int pageIndex, int pageSize, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
public static class Factory implements org.apache.thrift.TServiceClientFactory {
public Factory() {}
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
public Client(org.apache.thrift.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public ResultInfo CreateTask(MemberTaskCreateParas para) throws org.apache.thrift.TException
{
send_CreateTask(para);
return recv_CreateTask();
}
public void send_CreateTask(MemberTaskCreateParas para) throws org.apache.thrift.TException
{
CreateTask_args args = new CreateTask_args();
args.setPara(para);
sendBase("CreateTask", args);
}
public ResultInfo recv_CreateTask() throws org.apache.thrift.TException
{
CreateTask_result result = new CreateTask_result();
receiveBase(result, "CreateTask");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CreateTask failed: unknown result");
}
public ResultInfo CompleteTask(MemberTaskCompleteParas para) throws org.apache.thrift.TException
{
send_CompleteTask(para);
return recv_CompleteTask();
}
public void send_CompleteTask(MemberTaskCompleteParas para) throws org.apache.thrift.TException
{
CompleteTask_args args = new CompleteTask_args();
args.setPara(para);
sendBase("CompleteTask", args);
}
public ResultInfo recv_CompleteTask() throws org.apache.thrift.TException
{
CompleteTask_result result = new CompleteTask_result();
receiveBase(result, "CompleteTask");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CompleteTask failed: unknown result");
}
public ResultInfo CompleteAndCreateTask(MemberTaskCompleteAndCreateParas para) throws org.apache.thrift.TException
{
send_CompleteAndCreateTask(para);
return recv_CompleteAndCreateTask();
}
public void send_CompleteAndCreateTask(MemberTaskCompleteAndCreateParas para) throws org.apache.thrift.TException
{
CompleteAndCreateTask_args args = new CompleteAndCreateTask_args();
args.setPara(para);
sendBase("CompleteAndCreateTask", args);
}
public ResultInfo recv_CompleteAndCreateTask() throws org.apache.thrift.TException
{
CompleteAndCreateTask_result result = new CompleteAndCreateTask_result();
receiveBase(result, "CompleteAndCreateTask");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "CompleteAndCreateTask failed: unknown result");
}
public java.util.List GetMemberInfo(java.lang.String enterpriseID, java.lang.String userIDs) throws org.apache.thrift.TException
{
send_GetMemberInfo(enterpriseID, userIDs);
return recv_GetMemberInfo();
}
public void send_GetMemberInfo(java.lang.String enterpriseID, java.lang.String userIDs) throws org.apache.thrift.TException
{
GetMemberInfo_args args = new GetMemberInfo_args();
args.setEnterpriseID(enterpriseID);
args.setUserIDs(userIDs);
sendBase("GetMemberInfo", args);
}
public java.util.List recv_GetMemberInfo() throws org.apache.thrift.TException
{
GetMemberInfo_result result = new GetMemberInfo_result();
receiveBase(result, "GetMemberInfo");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetMemberInfo failed: unknown result");
}
public java.util.List GetMemberByAuth(java.lang.String enterpriseID, java.lang.String auths) throws org.apache.thrift.TException
{
send_GetMemberByAuth(enterpriseID, auths);
return recv_GetMemberByAuth();
}
public void send_GetMemberByAuth(java.lang.String enterpriseID, java.lang.String auths) throws org.apache.thrift.TException
{
GetMemberByAuth_args args = new GetMemberByAuth_args();
args.setEnterpriseID(enterpriseID);
args.setAuths(auths);
sendBase("GetMemberByAuth", args);
}
public java.util.List recv_GetMemberByAuth() throws org.apache.thrift.TException
{
GetMemberByAuth_result result = new GetMemberByAuth_result();
receiveBase(result, "GetMemberByAuth");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetMemberByAuth failed: unknown result");
}
public ResultInfo SyncOrganInfo(java.lang.String oid, java.lang.String oName, java.lang.String userIDs, int type) throws org.apache.thrift.TException
{
send_SyncOrganInfo(oid, oName, userIDs, type);
return recv_SyncOrganInfo();
}
public void send_SyncOrganInfo(java.lang.String oid, java.lang.String oName, java.lang.String userIDs, int type) throws org.apache.thrift.TException
{
SyncOrganInfo_args args = new SyncOrganInfo_args();
args.setOid(oid);
args.setOName(oName);
args.setUserIDs(userIDs);
args.setType(type);
sendBase("SyncOrganInfo", args);
}
public ResultInfo recv_SyncOrganInfo() throws org.apache.thrift.TException
{
SyncOrganInfo_result result = new SyncOrganInfo_result();
receiveBase(result, "SyncOrganInfo");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "SyncOrganInfo failed: unknown result");
}
public ResultInfo SyncOrganName(java.lang.String oid, int type, java.lang.String oName) throws org.apache.thrift.TException
{
send_SyncOrganName(oid, type, oName);
return recv_SyncOrganName();
}
public void send_SyncOrganName(java.lang.String oid, int type, java.lang.String oName) throws org.apache.thrift.TException
{
SyncOrganName_args args = new SyncOrganName_args();
args.setOid(oid);
args.setType(type);
args.setOName(oName);
sendBase("SyncOrganName", args);
}
public ResultInfo recv_SyncOrganName() throws org.apache.thrift.TException
{
SyncOrganName_result result = new SyncOrganName_result();
receiveBase(result, "SyncOrganName");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "SyncOrganName failed: unknown result");
}
public ResultInfo OrganAdd(java.lang.String oid, java.lang.String oName, java.lang.String userID, int type) throws org.apache.thrift.TException
{
send_OrganAdd(oid, oName, userID, type);
return recv_OrganAdd();
}
public void send_OrganAdd(java.lang.String oid, java.lang.String oName, java.lang.String userID, int type) throws org.apache.thrift.TException
{
OrganAdd_args args = new OrganAdd_args();
args.setOid(oid);
args.setOName(oName);
args.setUserID(userID);
args.setType(type);
sendBase("OrganAdd", args);
}
public ResultInfo recv_OrganAdd() throws org.apache.thrift.TException
{
OrganAdd_result result = new OrganAdd_result();
receiveBase(result, "OrganAdd");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "OrganAdd failed: unknown result");
}
public ResultInfo OrganDelete(java.lang.String oid, java.lang.String userID, int type) throws org.apache.thrift.TException
{
send_OrganDelete(oid, userID, type);
return recv_OrganDelete();
}
public void send_OrganDelete(java.lang.String oid, java.lang.String userID, int type) throws org.apache.thrift.TException
{
OrganDelete_args args = new OrganDelete_args();
args.setOid(oid);
args.setUserID(userID);
args.setType(type);
sendBase("OrganDelete", args);
}
public ResultInfo recv_OrganDelete() throws org.apache.thrift.TException
{
OrganDelete_result result = new OrganDelete_result();
receiveBase(result, "OrganDelete");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "OrganDelete failed: unknown result");
}
public ResultInfo OrganAllDelete(java.lang.String oid, int type) throws org.apache.thrift.TException
{
send_OrganAllDelete(oid, type);
return recv_OrganAllDelete();
}
public void send_OrganAllDelete(java.lang.String oid, int type) throws org.apache.thrift.TException
{
OrganAllDelete_args args = new OrganAllDelete_args();
args.setOid(oid);
args.setType(type);
sendBase("OrganAllDelete", args);
}
public ResultInfo recv_OrganAllDelete() throws org.apache.thrift.TException
{
OrganAllDelete_result result = new OrganAllDelete_result();
receiveBase(result, "OrganAllDelete");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "OrganAllDelete failed: unknown result");
}
public ResultInfo EnterpriseMemberAdd(MemberUserInfo member) throws org.apache.thrift.TException
{
send_EnterpriseMemberAdd(member);
return recv_EnterpriseMemberAdd();
}
public void send_EnterpriseMemberAdd(MemberUserInfo member) throws org.apache.thrift.TException
{
EnterpriseMemberAdd_args args = new EnterpriseMemberAdd_args();
args.setMember(member);
sendBase("EnterpriseMemberAdd", args);
}
public ResultInfo recv_EnterpriseMemberAdd() throws org.apache.thrift.TException
{
EnterpriseMemberAdd_result result = new EnterpriseMemberAdd_result();
receiveBase(result, "EnterpriseMemberAdd");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "EnterpriseMemberAdd failed: unknown result");
}
public ResultInfo EnterpriseMemberUpdate(MemberUserInfo member) throws org.apache.thrift.TException
{
send_EnterpriseMemberUpdate(member);
return recv_EnterpriseMemberUpdate();
}
public void send_EnterpriseMemberUpdate(MemberUserInfo member) throws org.apache.thrift.TException
{
EnterpriseMemberUpdate_args args = new EnterpriseMemberUpdate_args();
args.setMember(member);
sendBase("EnterpriseMemberUpdate", args);
}
public ResultInfo recv_EnterpriseMemberUpdate() throws org.apache.thrift.TException
{
EnterpriseMemberUpdate_result result = new EnterpriseMemberUpdate_result();
receiveBase(result, "EnterpriseMemberUpdate");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "EnterpriseMemberUpdate failed: unknown result");
}
public ResultInfo WorkReportAdd(WorkReportInfo report) throws org.apache.thrift.TException
{
send_WorkReportAdd(report);
return recv_WorkReportAdd();
}
public void send_WorkReportAdd(WorkReportInfo report) throws org.apache.thrift.TException
{
WorkReportAdd_args args = new WorkReportAdd_args();
args.setReport(report);
sendBase("WorkReportAdd", args);
}
public ResultInfo recv_WorkReportAdd() throws org.apache.thrift.TException
{
WorkReportAdd_result result = new WorkReportAdd_result();
receiveBase(result, "WorkReportAdd");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "WorkReportAdd failed: unknown result");
}
public ResultInfo GetLingYiUserInfo(java.lang.String userID) throws org.apache.thrift.TException
{
send_GetLingYiUserInfo(userID);
return recv_GetLingYiUserInfo();
}
public void send_GetLingYiUserInfo(java.lang.String userID) throws org.apache.thrift.TException
{
GetLingYiUserInfo_args args = new GetLingYiUserInfo_args();
args.setUserID(userID);
sendBase("GetLingYiUserInfo", args);
}
public ResultInfo recv_GetLingYiUserInfo() throws org.apache.thrift.TException
{
GetLingYiUserInfo_result result = new GetLingYiUserInfo_result();
receiveBase(result, "GetLingYiUserInfo");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetLingYiUserInfo failed: unknown result");
}
public java.util.List GetLingYiUserList() throws org.apache.thrift.TException
{
send_GetLingYiUserList();
return recv_GetLingYiUserList();
}
public void send_GetLingYiUserList() throws org.apache.thrift.TException
{
GetLingYiUserList_args args = new GetLingYiUserList_args();
sendBase("GetLingYiUserList", args);
}
public java.util.List recv_GetLingYiUserList() throws org.apache.thrift.TException
{
GetLingYiUserList_result result = new GetLingYiUserList_result();
receiveBase(result, "GetLingYiUserList");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetLingYiUserList failed: unknown result");
}
public java.util.List GetEnterpriseList(java.util.List idList) throws org.apache.thrift.TException
{
send_GetEnterpriseList(idList);
return recv_GetEnterpriseList();
}
public void send_GetEnterpriseList(java.util.List idList) throws org.apache.thrift.TException
{
GetEnterpriseList_args args = new GetEnterpriseList_args();
args.setIdList(idList);
sendBase("GetEnterpriseList", args);
}
public java.util.List recv_GetEnterpriseList() throws org.apache.thrift.TException
{
GetEnterpriseList_result result = new GetEnterpriseList_result();
receiveBase(result, "GetEnterpriseList");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetEnterpriseList failed: unknown result");
}
public ResultInfo SetUserYFAuth(java.util.List userAuth) throws org.apache.thrift.TException
{
send_SetUserYFAuth(userAuth);
return recv_SetUserYFAuth();
}
public void send_SetUserYFAuth(java.util.List userAuth) throws org.apache.thrift.TException
{
SetUserYFAuth_args args = new SetUserYFAuth_args();
args.setUserAuth(userAuth);
sendBase("SetUserYFAuth", args);
}
public ResultInfo recv_SetUserYFAuth() throws org.apache.thrift.TException
{
SetUserYFAuth_result result = new SetUserYFAuth_result();
receiveBase(result, "SetUserYFAuth");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "SetUserYFAuth failed: unknown result");
}
public ResultInfo SetUserSystemAuth(java.util.List userAuth, java.lang.String sysCode) throws org.apache.thrift.TException
{
send_SetUserSystemAuth(userAuth, sysCode);
return recv_SetUserSystemAuth();
}
public void send_SetUserSystemAuth(java.util.List userAuth, java.lang.String sysCode) throws org.apache.thrift.TException
{
SetUserSystemAuth_args args = new SetUserSystemAuth_args();
args.setUserAuth(userAuth);
args.setSysCode(sysCode);
sendBase("SetUserSystemAuth", args);
}
public ResultInfo recv_SetUserSystemAuth() throws org.apache.thrift.TException
{
SetUserSystemAuth_result result = new SetUserSystemAuth_result();
receiveBase(result, "SetUserSystemAuth");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "SetUserSystemAuth failed: unknown result");
}
public ResultInfo SetLYManageAuth(java.util.List lyUserAuth) throws org.apache.thrift.TException
{
send_SetLYManageAuth(lyUserAuth);
return recv_SetLYManageAuth();
}
public void send_SetLYManageAuth(java.util.List lyUserAuth) throws org.apache.thrift.TException
{
SetLYManageAuth_args args = new SetLYManageAuth_args();
args.setLyUserAuth(lyUserAuth);
sendBase("SetLYManageAuth", args);
}
public ResultInfo recv_SetLYManageAuth() throws org.apache.thrift.TException
{
SetLYManageAuth_result result = new SetLYManageAuth_result();
receiveBase(result, "SetLYManageAuth");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "SetLYManageAuth failed: unknown result");
}
public java.util.List GetSaleOrder(OrderStatusCodeEnum status, java.lang.String enterpriseName, java.lang.String orderID, java.lang.String saleUserID, java.lang.String beginDy, java.lang.String endDay, int pageIndex, int pageSize) throws org.apache.thrift.TException
{
send_GetSaleOrder(status, enterpriseName, orderID, saleUserID, beginDy, endDay, pageIndex, pageSize);
return recv_GetSaleOrder();
}
public void send_GetSaleOrder(OrderStatusCodeEnum status, java.lang.String enterpriseName, java.lang.String orderID, java.lang.String saleUserID, java.lang.String beginDy, java.lang.String endDay, int pageIndex, int pageSize) throws org.apache.thrift.TException
{
GetSaleOrder_args args = new GetSaleOrder_args();
args.setStatus(status);
args.setEnterpriseName(enterpriseName);
args.setOrderID(orderID);
args.setSaleUserID(saleUserID);
args.setBeginDy(beginDy);
args.setEndDay(endDay);
args.setPageIndex(pageIndex);
args.setPageSize(pageSize);
sendBase("GetSaleOrder", args);
}
public java.util.List recv_GetSaleOrder() throws org.apache.thrift.TException
{
GetSaleOrder_result result = new GetSaleOrder_result();
receiveBase(result, "GetSaleOrder");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "GetSaleOrder failed: unknown result");
}
}
public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory {
private org.apache.thrift.async.TAsyncClientManager clientManager;
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
}
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
super(protocolFactory, clientManager, transport);
}
public void CreateTask(MemberTaskCreateParas para, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
CreateTask_call method_call = new CreateTask_call(para, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class CreateTask_call extends org.apache.thrift.async.TAsyncMethodCall {
private MemberTaskCreateParas para;
public CreateTask_call(MemberTaskCreateParas para, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.para = para;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CreateTask", org.apache.thrift.protocol.TMessageType.CALL, 0));
CreateTask_args args = new CreateTask_args();
args.setPara(para);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_CreateTask();
}
}
public void CompleteTask(MemberTaskCompleteParas para, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
CompleteTask_call method_call = new CompleteTask_call(para, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class CompleteTask_call extends org.apache.thrift.async.TAsyncMethodCall {
private MemberTaskCompleteParas para;
public CompleteTask_call(MemberTaskCompleteParas para, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.para = para;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CompleteTask", org.apache.thrift.protocol.TMessageType.CALL, 0));
CompleteTask_args args = new CompleteTask_args();
args.setPara(para);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_CompleteTask();
}
}
public void CompleteAndCreateTask(MemberTaskCompleteAndCreateParas para, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
CompleteAndCreateTask_call method_call = new CompleteAndCreateTask_call(para, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class CompleteAndCreateTask_call extends org.apache.thrift.async.TAsyncMethodCall {
private MemberTaskCompleteAndCreateParas para;
public CompleteAndCreateTask_call(MemberTaskCompleteAndCreateParas para, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.para = para;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("CompleteAndCreateTask", org.apache.thrift.protocol.TMessageType.CALL, 0));
CompleteAndCreateTask_args args = new CompleteAndCreateTask_args();
args.setPara(para);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_CompleteAndCreateTask();
}
}
public void GetMemberInfo(java.lang.String enterpriseID, java.lang.String userIDs, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
checkReady();
GetMemberInfo_call method_call = new GetMemberInfo_call(enterpriseID, userIDs, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetMemberInfo_call extends org.apache.thrift.async.TAsyncMethodCall> {
private java.lang.String enterpriseID;
private java.lang.String userIDs;
public GetMemberInfo_call(java.lang.String enterpriseID, java.lang.String userIDs, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.enterpriseID = enterpriseID;
this.userIDs = userIDs;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetMemberInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetMemberInfo_args args = new GetMemberInfo_args();
args.setEnterpriseID(enterpriseID);
args.setUserIDs(userIDs);
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetMemberInfo();
}
}
public void GetMemberByAuth(java.lang.String enterpriseID, java.lang.String auths, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
checkReady();
GetMemberByAuth_call method_call = new GetMemberByAuth_call(enterpriseID, auths, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetMemberByAuth_call extends org.apache.thrift.async.TAsyncMethodCall> {
private java.lang.String enterpriseID;
private java.lang.String auths;
public GetMemberByAuth_call(java.lang.String enterpriseID, java.lang.String auths, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.enterpriseID = enterpriseID;
this.auths = auths;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetMemberByAuth", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetMemberByAuth_args args = new GetMemberByAuth_args();
args.setEnterpriseID(enterpriseID);
args.setAuths(auths);
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetMemberByAuth();
}
}
public void SyncOrganInfo(java.lang.String oid, java.lang.String oName, java.lang.String userIDs, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
SyncOrganInfo_call method_call = new SyncOrganInfo_call(oid, oName, userIDs, type, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class SyncOrganInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String oid;
private java.lang.String oName;
private java.lang.String userIDs;
private int type;
public SyncOrganInfo_call(java.lang.String oid, java.lang.String oName, java.lang.String userIDs, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.oid = oid;
this.oName = oName;
this.userIDs = userIDs;
this.type = type;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("SyncOrganInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
SyncOrganInfo_args args = new SyncOrganInfo_args();
args.setOid(oid);
args.setOName(oName);
args.setUserIDs(userIDs);
args.setType(type);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_SyncOrganInfo();
}
}
public void SyncOrganName(java.lang.String oid, int type, java.lang.String oName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
SyncOrganName_call method_call = new SyncOrganName_call(oid, type, oName, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class SyncOrganName_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String oid;
private int type;
private java.lang.String oName;
public SyncOrganName_call(java.lang.String oid, int type, java.lang.String oName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.oid = oid;
this.type = type;
this.oName = oName;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("SyncOrganName", org.apache.thrift.protocol.TMessageType.CALL, 0));
SyncOrganName_args args = new SyncOrganName_args();
args.setOid(oid);
args.setType(type);
args.setOName(oName);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_SyncOrganName();
}
}
public void OrganAdd(java.lang.String oid, java.lang.String oName, java.lang.String userID, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
OrganAdd_call method_call = new OrganAdd_call(oid, oName, userID, type, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class OrganAdd_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String oid;
private java.lang.String oName;
private java.lang.String userID;
private int type;
public OrganAdd_call(java.lang.String oid, java.lang.String oName, java.lang.String userID, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.oid = oid;
this.oName = oName;
this.userID = userID;
this.type = type;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("OrganAdd", org.apache.thrift.protocol.TMessageType.CALL, 0));
OrganAdd_args args = new OrganAdd_args();
args.setOid(oid);
args.setOName(oName);
args.setUserID(userID);
args.setType(type);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_OrganAdd();
}
}
public void OrganDelete(java.lang.String oid, java.lang.String userID, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
OrganDelete_call method_call = new OrganDelete_call(oid, userID, type, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class OrganDelete_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String oid;
private java.lang.String userID;
private int type;
public OrganDelete_call(java.lang.String oid, java.lang.String userID, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.oid = oid;
this.userID = userID;
this.type = type;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("OrganDelete", org.apache.thrift.protocol.TMessageType.CALL, 0));
OrganDelete_args args = new OrganDelete_args();
args.setOid(oid);
args.setUserID(userID);
args.setType(type);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_OrganDelete();
}
}
public void OrganAllDelete(java.lang.String oid, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
OrganAllDelete_call method_call = new OrganAllDelete_call(oid, type, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class OrganAllDelete_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String oid;
private int type;
public OrganAllDelete_call(java.lang.String oid, int type, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.oid = oid;
this.type = type;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("OrganAllDelete", org.apache.thrift.protocol.TMessageType.CALL, 0));
OrganAllDelete_args args = new OrganAllDelete_args();
args.setOid(oid);
args.setType(type);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_OrganAllDelete();
}
}
public void EnterpriseMemberAdd(MemberUserInfo member, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
EnterpriseMemberAdd_call method_call = new EnterpriseMemberAdd_call(member, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class EnterpriseMemberAdd_call extends org.apache.thrift.async.TAsyncMethodCall {
private MemberUserInfo member;
public EnterpriseMemberAdd_call(MemberUserInfo member, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.member = member;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("EnterpriseMemberAdd", org.apache.thrift.protocol.TMessageType.CALL, 0));
EnterpriseMemberAdd_args args = new EnterpriseMemberAdd_args();
args.setMember(member);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_EnterpriseMemberAdd();
}
}
public void EnterpriseMemberUpdate(MemberUserInfo member, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
EnterpriseMemberUpdate_call method_call = new EnterpriseMemberUpdate_call(member, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class EnterpriseMemberUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
private MemberUserInfo member;
public EnterpriseMemberUpdate_call(MemberUserInfo member, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.member = member;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("EnterpriseMemberUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
EnterpriseMemberUpdate_args args = new EnterpriseMemberUpdate_args();
args.setMember(member);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_EnterpriseMemberUpdate();
}
}
public void WorkReportAdd(WorkReportInfo report, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
WorkReportAdd_call method_call = new WorkReportAdd_call(report, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class WorkReportAdd_call extends org.apache.thrift.async.TAsyncMethodCall {
private WorkReportInfo report;
public WorkReportAdd_call(WorkReportInfo report, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.report = report;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("WorkReportAdd", org.apache.thrift.protocol.TMessageType.CALL, 0));
WorkReportAdd_args args = new WorkReportAdd_args();
args.setReport(report);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_WorkReportAdd();
}
}
public void GetLingYiUserInfo(java.lang.String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
GetLingYiUserInfo_call method_call = new GetLingYiUserInfo_call(userID, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetLingYiUserInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.lang.String userID;
public GetLingYiUserInfo_call(java.lang.String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.userID = userID;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetLingYiUserInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetLingYiUserInfo_args args = new GetLingYiUserInfo_args();
args.setUserID(userID);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetLingYiUserInfo();
}
}
public void GetLingYiUserList(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
checkReady();
GetLingYiUserList_call method_call = new GetLingYiUserList_call(resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetLingYiUserList_call extends org.apache.thrift.async.TAsyncMethodCall> {
public GetLingYiUserList_call(org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetLingYiUserList", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetLingYiUserList_args args = new GetLingYiUserList_args();
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetLingYiUserList();
}
}
public void GetEnterpriseList(java.util.List idList, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
checkReady();
GetEnterpriseList_call method_call = new GetEnterpriseList_call(idList, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetEnterpriseList_call extends org.apache.thrift.async.TAsyncMethodCall> {
private java.util.List idList;
public GetEnterpriseList_call(java.util.List idList, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.idList = idList;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetEnterpriseList", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetEnterpriseList_args args = new GetEnterpriseList_args();
args.setIdList(idList);
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetEnterpriseList();
}
}
public void SetUserYFAuth(java.util.List userAuth, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
SetUserYFAuth_call method_call = new SetUserYFAuth_call(userAuth, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class SetUserYFAuth_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.util.List userAuth;
public SetUserYFAuth_call(java.util.List userAuth, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.userAuth = userAuth;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("SetUserYFAuth", org.apache.thrift.protocol.TMessageType.CALL, 0));
SetUserYFAuth_args args = new SetUserYFAuth_args();
args.setUserAuth(userAuth);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_SetUserYFAuth();
}
}
public void SetUserSystemAuth(java.util.List userAuth, java.lang.String sysCode, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
SetUserSystemAuth_call method_call = new SetUserSystemAuth_call(userAuth, sysCode, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class SetUserSystemAuth_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.util.List userAuth;
private java.lang.String sysCode;
public SetUserSystemAuth_call(java.util.List userAuth, java.lang.String sysCode, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.userAuth = userAuth;
this.sysCode = sysCode;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("SetUserSystemAuth", org.apache.thrift.protocol.TMessageType.CALL, 0));
SetUserSystemAuth_args args = new SetUserSystemAuth_args();
args.setUserAuth(userAuth);
args.setSysCode(sysCode);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_SetUserSystemAuth();
}
}
public void SetLYManageAuth(java.util.List lyUserAuth, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
SetLYManageAuth_call method_call = new SetLYManageAuth_call(lyUserAuth, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class SetLYManageAuth_call extends org.apache.thrift.async.TAsyncMethodCall {
private java.util.List lyUserAuth;
public SetLYManageAuth_call(java.util.List lyUserAuth, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.lyUserAuth = lyUserAuth;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("SetLYManageAuth", org.apache.thrift.protocol.TMessageType.CALL, 0));
SetLYManageAuth_args args = new SetLYManageAuth_args();
args.setLyUserAuth(lyUserAuth);
args.write(prot);
prot.writeMessageEnd();
}
public ResultInfo getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_SetLYManageAuth();
}
}
public void GetSaleOrder(OrderStatusCodeEnum status, java.lang.String enterpriseName, java.lang.String orderID, java.lang.String saleUserID, java.lang.String beginDy, java.lang.String endDay, int pageIndex, int pageSize, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
checkReady();
GetSaleOrder_call method_call = new GetSaleOrder_call(status, enterpriseName, orderID, saleUserID, beginDy, endDay, pageIndex, pageSize, resultHandler, this, ___protocolFactory, ___transport);
this.___currentMethod = method_call;
___manager.call(method_call);
}
public static class GetSaleOrder_call extends org.apache.thrift.async.TAsyncMethodCall> {
private OrderStatusCodeEnum status;
private java.lang.String enterpriseName;
private java.lang.String orderID;
private java.lang.String saleUserID;
private java.lang.String beginDy;
private java.lang.String endDay;
private int pageIndex;
private int pageSize;
public GetSaleOrder_call(OrderStatusCodeEnum status, java.lang.String enterpriseName, java.lang.String orderID, java.lang.String saleUserID, java.lang.String beginDy, java.lang.String endDay, int pageIndex, int pageSize, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
super(client, protocolFactory, transport, resultHandler, false);
this.status = status;
this.enterpriseName = enterpriseName;
this.orderID = orderID;
this.saleUserID = saleUserID;
this.beginDy = beginDy;
this.endDay = endDay;
this.pageIndex = pageIndex;
this.pageSize = pageSize;
}
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("GetSaleOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
GetSaleOrder_args args = new GetSaleOrder_args();
args.setStatus(status);
args.setEnterpriseName(enterpriseName);
args.setOrderID(orderID);
args.setSaleUserID(saleUserID);
args.setBeginDy(beginDy);
args.setEndDay(endDay);
args.setPageIndex(pageIndex);
args.setPageSize(pageSize);
args.write(prot);
prot.writeMessageEnd();
}
public java.util.List getResult() throws org.apache.thrift.TException {
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
throw new java.lang.IllegalStateException("Method call not finished!");
}
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
return (new Client(prot)).recv_GetSaleOrder();
}
}
}
public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new java.util.HashMap>()));
}
protected Processor(I iface, java.util.Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static java.util.Map> getProcessMap(java.util.Map> processMap) {
processMap.put("CreateTask", new CreateTask());
processMap.put("CompleteTask", new CompleteTask());
processMap.put("CompleteAndCreateTask", new CompleteAndCreateTask());
processMap.put("GetMemberInfo", new GetMemberInfo());
processMap.put("GetMemberByAuth", new GetMemberByAuth());
processMap.put("SyncOrganInfo", new SyncOrganInfo());
processMap.put("SyncOrganName", new SyncOrganName());
processMap.put("OrganAdd", new OrganAdd());
processMap.put("OrganDelete", new OrganDelete());
processMap.put("OrganAllDelete", new OrganAllDelete());
processMap.put("EnterpriseMemberAdd", new EnterpriseMemberAdd());
processMap.put("EnterpriseMemberUpdate", new EnterpriseMemberUpdate());
processMap.put("WorkReportAdd", new WorkReportAdd());
processMap.put("GetLingYiUserInfo", new GetLingYiUserInfo());
processMap.put("GetLingYiUserList", new GetLingYiUserList());
processMap.put("GetEnterpriseList", new GetEnterpriseList());
processMap.put("SetUserYFAuth", new SetUserYFAuth());
processMap.put("SetUserSystemAuth", new SetUserSystemAuth());
processMap.put("SetLYManageAuth", new SetLYManageAuth());
processMap.put("GetSaleOrder", new GetSaleOrder());
return processMap;
}
public static class CreateTask extends org.apache.thrift.ProcessFunction {
public CreateTask() {
super("CreateTask");
}
public CreateTask_args getEmptyArgsInstance() {
return new CreateTask_args();
}
protected boolean isOneway() {
return false;
}
public CreateTask_result getResult(I iface, CreateTask_args args) throws org.apache.thrift.TException {
CreateTask_result result = new CreateTask_result();
result.success = iface.CreateTask(args.para);
return result;
}
}
public static class CompleteTask extends org.apache.thrift.ProcessFunction {
public CompleteTask() {
super("CompleteTask");
}
public CompleteTask_args getEmptyArgsInstance() {
return new CompleteTask_args();
}
protected boolean isOneway() {
return false;
}
public CompleteTask_result getResult(I iface, CompleteTask_args args) throws org.apache.thrift.TException {
CompleteTask_result result = new CompleteTask_result();
result.success = iface.CompleteTask(args.para);
return result;
}
}
public static class CompleteAndCreateTask extends org.apache.thrift.ProcessFunction {
public CompleteAndCreateTask() {
super("CompleteAndCreateTask");
}
public CompleteAndCreateTask_args getEmptyArgsInstance() {
return new CompleteAndCreateTask_args();
}
protected boolean isOneway() {
return false;
}
public CompleteAndCreateTask_result getResult(I iface, CompleteAndCreateTask_args args) throws org.apache.thrift.TException {
CompleteAndCreateTask_result result = new CompleteAndCreateTask_result();
result.success = iface.CompleteAndCreateTask(args.para);
return result;
}
}
public static class GetMemberInfo extends org.apache.thrift.ProcessFunction {
public GetMemberInfo() {
super("GetMemberInfo");
}
public GetMemberInfo_args getEmptyArgsInstance() {
return new GetMemberInfo_args();
}
protected boolean isOneway() {
return false;
}
public GetMemberInfo_result getResult(I iface, GetMemberInfo_args args) throws org.apache.thrift.TException {
GetMemberInfo_result result = new GetMemberInfo_result();
result.success = iface.GetMemberInfo(args.enterpriseID, args.userIDs);
return result;
}
}
public static class GetMemberByAuth extends org.apache.thrift.ProcessFunction {
public GetMemberByAuth() {
super("GetMemberByAuth");
}
public GetMemberByAuth_args getEmptyArgsInstance() {
return new GetMemberByAuth_args();
}
protected boolean isOneway() {
return false;
}
public GetMemberByAuth_result getResult(I iface, GetMemberByAuth_args args) throws org.apache.thrift.TException {
GetMemberByAuth_result result = new GetMemberByAuth_result();
result.success = iface.GetMemberByAuth(args.enterpriseID, args.auths);
return result;
}
}
public static class SyncOrganInfo extends org.apache.thrift.ProcessFunction {
public SyncOrganInfo() {
super("SyncOrganInfo");
}
public SyncOrganInfo_args getEmptyArgsInstance() {
return new SyncOrganInfo_args();
}
protected boolean isOneway() {
return false;
}
public SyncOrganInfo_result getResult(I iface, SyncOrganInfo_args args) throws org.apache.thrift.TException {
SyncOrganInfo_result result = new SyncOrganInfo_result();
result.success = iface.SyncOrganInfo(args.oid, args.oName, args.userIDs, args.type);
return result;
}
}
public static class SyncOrganName extends org.apache.thrift.ProcessFunction {
public SyncOrganName() {
super("SyncOrganName");
}
public SyncOrganName_args getEmptyArgsInstance() {
return new SyncOrganName_args();
}
protected boolean isOneway() {
return false;
}
public SyncOrganName_result getResult(I iface, SyncOrganName_args args) throws org.apache.thrift.TException {
SyncOrganName_result result = new SyncOrganName_result();
result.success = iface.SyncOrganName(args.oid, args.type, args.oName);
return result;
}
}
public static class OrganAdd extends org.apache.thrift.ProcessFunction {
public OrganAdd() {
super("OrganAdd");
}
public OrganAdd_args getEmptyArgsInstance() {
return new OrganAdd_args();
}
protected boolean isOneway() {
return false;
}
public OrganAdd_result getResult(I iface, OrganAdd_args args) throws org.apache.thrift.TException {
OrganAdd_result result = new OrganAdd_result();
result.success = iface.OrganAdd(args.oid, args.oName, args.userID, args.type);
return result;
}
}
public static class OrganDelete extends org.apache.thrift.ProcessFunction {
public OrganDelete() {
super("OrganDelete");
}
public OrganDelete_args getEmptyArgsInstance() {
return new OrganDelete_args();
}
protected boolean isOneway() {
return false;
}
public OrganDelete_result getResult(I iface, OrganDelete_args args) throws org.apache.thrift.TException {
OrganDelete_result result = new OrganDelete_result();
result.success = iface.OrganDelete(args.oid, args.userID, args.type);
return result;
}
}
public static class OrganAllDelete extends org.apache.thrift.ProcessFunction {
public OrganAllDelete() {
super("OrganAllDelete");
}
public OrganAllDelete_args getEmptyArgsInstance() {
return new OrganAllDelete_args();
}
protected boolean isOneway() {
return false;
}
public OrganAllDelete_result getResult(I iface, OrganAllDelete_args args) throws org.apache.thrift.TException {
OrganAllDelete_result result = new OrganAllDelete_result();
result.success = iface.OrganAllDelete(args.oid, args.type);
return result;
}
}
public static class EnterpriseMemberAdd extends org.apache.thrift.ProcessFunction {
public EnterpriseMemberAdd() {
super("EnterpriseMemberAdd");
}
public EnterpriseMemberAdd_args getEmptyArgsInstance() {
return new EnterpriseMemberAdd_args();
}
protected boolean isOneway() {
return false;
}
public EnterpriseMemberAdd_result getResult(I iface, EnterpriseMemberAdd_args args) throws org.apache.thrift.TException {
EnterpriseMemberAdd_result result = new EnterpriseMemberAdd_result();
result.success = iface.EnterpriseMemberAdd(args.member);
return result;
}
}
public static class EnterpriseMemberUpdate extends org.apache.thrift.ProcessFunction {
public EnterpriseMemberUpdate() {
super("EnterpriseMemberUpdate");
}
public EnterpriseMemberUpdate_args getEmptyArgsInstance() {
return new EnterpriseMemberUpdate_args();
}
protected boolean isOneway() {
return false;
}
public EnterpriseMemberUpdate_result getResult(I iface, EnterpriseMemberUpdate_args args) throws org.apache.thrift.TException {
EnterpriseMemberUpdate_result result = new EnterpriseMemberUpdate_result();
result.success = iface.EnterpriseMemberUpdate(args.member);
return result;
}
}
public static class WorkReportAdd extends org.apache.thrift.ProcessFunction {
public WorkReportAdd() {
super("WorkReportAdd");
}
public WorkReportAdd_args getEmptyArgsInstance() {
return new WorkReportAdd_args();
}
protected boolean isOneway() {
return false;
}
public WorkReportAdd_result getResult(I iface, WorkReportAdd_args args) throws org.apache.thrift.TException {
WorkReportAdd_result result = new WorkReportAdd_result();
result.success = iface.WorkReportAdd(args.report);
return result;
}
}
public static class GetLingYiUserInfo extends org.apache.thrift.ProcessFunction {
public GetLingYiUserInfo() {
super("GetLingYiUserInfo");
}
public GetLingYiUserInfo_args getEmptyArgsInstance() {
return new GetLingYiUserInfo_args();
}
protected boolean isOneway() {
return false;
}
public GetLingYiUserInfo_result getResult(I iface, GetLingYiUserInfo_args args) throws org.apache.thrift.TException {
GetLingYiUserInfo_result result = new GetLingYiUserInfo_result();
result.success = iface.GetLingYiUserInfo(args.userID);
return result;
}
}
public static class GetLingYiUserList extends org.apache.thrift.ProcessFunction {
public GetLingYiUserList() {
super("GetLingYiUserList");
}
public GetLingYiUserList_args getEmptyArgsInstance() {
return new GetLingYiUserList_args();
}
protected boolean isOneway() {
return false;
}
public GetLingYiUserList_result getResult(I iface, GetLingYiUserList_args args) throws org.apache.thrift.TException {
GetLingYiUserList_result result = new GetLingYiUserList_result();
result.success = iface.GetLingYiUserList();
return result;
}
}
public static class GetEnterpriseList extends org.apache.thrift.ProcessFunction {
public GetEnterpriseList() {
super("GetEnterpriseList");
}
public GetEnterpriseList_args getEmptyArgsInstance() {
return new GetEnterpriseList_args();
}
protected boolean isOneway() {
return false;
}
public GetEnterpriseList_result getResult(I iface, GetEnterpriseList_args args) throws org.apache.thrift.TException {
GetEnterpriseList_result result = new GetEnterpriseList_result();
result.success = iface.GetEnterpriseList(args.idList);
return result;
}
}
public static class SetUserYFAuth extends org.apache.thrift.ProcessFunction {
public SetUserYFAuth() {
super("SetUserYFAuth");
}
public SetUserYFAuth_args getEmptyArgsInstance() {
return new SetUserYFAuth_args();
}
protected boolean isOneway() {
return false;
}
public SetUserYFAuth_result getResult(I iface, SetUserYFAuth_args args) throws org.apache.thrift.TException {
SetUserYFAuth_result result = new SetUserYFAuth_result();
result.success = iface.SetUserYFAuth(args.userAuth);
return result;
}
}
public static class SetUserSystemAuth extends org.apache.thrift.ProcessFunction {
public SetUserSystemAuth() {
super("SetUserSystemAuth");
}
public SetUserSystemAuth_args getEmptyArgsInstance() {
return new SetUserSystemAuth_args();
}
protected boolean isOneway() {
return false;
}
public SetUserSystemAuth_result getResult(I iface, SetUserSystemAuth_args args) throws org.apache.thrift.TException {
SetUserSystemAuth_result result = new SetUserSystemAuth_result();
result.success = iface.SetUserSystemAuth(args.userAuth, args.sysCode);
return result;
}
}
public static class SetLYManageAuth extends org.apache.thrift.ProcessFunction {
public SetLYManageAuth() {
super("SetLYManageAuth");
}
public SetLYManageAuth_args getEmptyArgsInstance() {
return new SetLYManageAuth_args();
}
protected boolean isOneway() {
return false;
}
public SetLYManageAuth_result getResult(I iface, SetLYManageAuth_args args) throws org.apache.thrift.TException {
SetLYManageAuth_result result = new SetLYManageAuth_result();
result.success = iface.SetLYManageAuth(args.lyUserAuth);
return result;
}
}
public static class GetSaleOrder extends org.apache.thrift.ProcessFunction {
public GetSaleOrder() {
super("GetSaleOrder");
}
public GetSaleOrder_args getEmptyArgsInstance() {
return new GetSaleOrder_args();
}
protected boolean isOneway() {
return false;
}
public GetSaleOrder_result getResult(I iface, GetSaleOrder_args args) throws org.apache.thrift.TException {
GetSaleOrder_result result = new GetSaleOrder_result();
result.success = iface.GetSaleOrder(args.status, args.enterpriseName, args.orderID, args.saleUserID, args.beginDy, args.endDay, args.pageIndex, args.pageSize);
return result;
}
}
}
public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor {
private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName());
public AsyncProcessor(I iface) {
super(iface, getProcessMap(new java.util.HashMap>()));
}
protected AsyncProcessor(I iface, java.util.Map> processMap) {
super(iface, getProcessMap(processMap));
}
private static java.util.Map> getProcessMap(java.util.Map> processMap) {
processMap.put("CreateTask", new CreateTask());
processMap.put("CompleteTask", new CompleteTask());
processMap.put("CompleteAndCreateTask", new CompleteAndCreateTask());
processMap.put("GetMemberInfo", new GetMemberInfo());
processMap.put("GetMemberByAuth", new GetMemberByAuth());
processMap.put("SyncOrganInfo", new SyncOrganInfo());
processMap.put("SyncOrganName", new SyncOrganName());
processMap.put("OrganAdd", new OrganAdd());
processMap.put("OrganDelete", new OrganDelete());
processMap.put("OrganAllDelete", new OrganAllDelete());
processMap.put("EnterpriseMemberAdd", new EnterpriseMemberAdd());
processMap.put("EnterpriseMemberUpdate", new EnterpriseMemberUpdate());
processMap.put("WorkReportAdd", new WorkReportAdd());
processMap.put("GetLingYiUserInfo", new GetLingYiUserInfo());
processMap.put("GetLingYiUserList", new GetLingYiUserList());
processMap.put("GetEnterpriseList", new GetEnterpriseList());
processMap.put("SetUserYFAuth", new SetUserYFAuth());
processMap.put("SetUserSystemAuth", new SetUserSystemAuth());
processMap.put("SetLYManageAuth", new SetLYManageAuth());
processMap.put("GetSaleOrder", new GetSaleOrder());
return processMap;
}
public static class CreateTask extends org.apache.thrift.AsyncProcessFunction {
public CreateTask() {
super("CreateTask");
}
public CreateTask_args getEmptyArgsInstance() {
return new CreateTask_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
CreateTask_result result = new CreateTask_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
CreateTask_result result = new CreateTask_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, CreateTask_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.CreateTask(args.para,resultHandler);
}
}
public static class CompleteTask extends org.apache.thrift.AsyncProcessFunction {
public CompleteTask() {
super("CompleteTask");
}
public CompleteTask_args getEmptyArgsInstance() {
return new CompleteTask_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
CompleteTask_result result = new CompleteTask_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
CompleteTask_result result = new CompleteTask_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, CompleteTask_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.CompleteTask(args.para,resultHandler);
}
}
public static class CompleteAndCreateTask extends org.apache.thrift.AsyncProcessFunction {
public CompleteAndCreateTask() {
super("CompleteAndCreateTask");
}
public CompleteAndCreateTask_args getEmptyArgsInstance() {
return new CompleteAndCreateTask_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
CompleteAndCreateTask_result result = new CompleteAndCreateTask_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
CompleteAndCreateTask_result result = new CompleteAndCreateTask_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, CompleteAndCreateTask_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.CompleteAndCreateTask(args.para,resultHandler);
}
}
public static class GetMemberInfo extends org.apache.thrift.AsyncProcessFunction> {
public GetMemberInfo() {
super("GetMemberInfo");
}
public GetMemberInfo_args getEmptyArgsInstance() {
return new GetMemberInfo_args();
}
public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback>() {
public void onComplete(java.util.List o) {
GetMemberInfo_result result = new GetMemberInfo_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetMemberInfo_result result = new GetMemberInfo_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, GetMemberInfo_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
iface.GetMemberInfo(args.enterpriseID, args.userIDs,resultHandler);
}
}
public static class GetMemberByAuth extends org.apache.thrift.AsyncProcessFunction> {
public GetMemberByAuth() {
super("GetMemberByAuth");
}
public GetMemberByAuth_args getEmptyArgsInstance() {
return new GetMemberByAuth_args();
}
public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback>() {
public void onComplete(java.util.List o) {
GetMemberByAuth_result result = new GetMemberByAuth_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
GetMemberByAuth_result result = new GetMemberByAuth_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, GetMemberByAuth_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
iface.GetMemberByAuth(args.enterpriseID, args.auths,resultHandler);
}
}
public static class SyncOrganInfo extends org.apache.thrift.AsyncProcessFunction {
public SyncOrganInfo() {
super("SyncOrganInfo");
}
public SyncOrganInfo_args getEmptyArgsInstance() {
return new SyncOrganInfo_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
SyncOrganInfo_result result = new SyncOrganInfo_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
SyncOrganInfo_result result = new SyncOrganInfo_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, SyncOrganInfo_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.SyncOrganInfo(args.oid, args.oName, args.userIDs, args.type,resultHandler);
}
}
public static class SyncOrganName extends org.apache.thrift.AsyncProcessFunction {
public SyncOrganName() {
super("SyncOrganName");
}
public SyncOrganName_args getEmptyArgsInstance() {
return new SyncOrganName_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
SyncOrganName_result result = new SyncOrganName_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
SyncOrganName_result result = new SyncOrganName_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, SyncOrganName_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.SyncOrganName(args.oid, args.type, args.oName,resultHandler);
}
}
public static class OrganAdd extends org.apache.thrift.AsyncProcessFunction {
public OrganAdd() {
super("OrganAdd");
}
public OrganAdd_args getEmptyArgsInstance() {
return new OrganAdd_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
OrganAdd_result result = new OrganAdd_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
OrganAdd_result result = new OrganAdd_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, OrganAdd_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.OrganAdd(args.oid, args.oName, args.userID, args.type,resultHandler);
}
}
public static class OrganDelete extends org.apache.thrift.AsyncProcessFunction {
public OrganDelete() {
super("OrganDelete");
}
public OrganDelete_args getEmptyArgsInstance() {
return new OrganDelete_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
OrganDelete_result result = new OrganDelete_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
OrganDelete_result result = new OrganDelete_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, OrganDelete_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.OrganDelete(args.oid, args.userID, args.type,resultHandler);
}
}
public static class OrganAllDelete extends org.apache.thrift.AsyncProcessFunction {
public OrganAllDelete() {
super("OrganAllDelete");
}
public OrganAllDelete_args getEmptyArgsInstance() {
return new OrganAllDelete_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
OrganAllDelete_result result = new OrganAllDelete_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
OrganAllDelete_result result = new OrganAllDelete_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, OrganAllDelete_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.OrganAllDelete(args.oid, args.type,resultHandler);
}
}
public static class EnterpriseMemberAdd extends org.apache.thrift.AsyncProcessFunction {
public EnterpriseMemberAdd() {
super("EnterpriseMemberAdd");
}
public EnterpriseMemberAdd_args getEmptyArgsInstance() {
return new EnterpriseMemberAdd_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
EnterpriseMemberAdd_result result = new EnterpriseMemberAdd_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
EnterpriseMemberAdd_result result = new EnterpriseMemberAdd_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, EnterpriseMemberAdd_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.EnterpriseMemberAdd(args.member,resultHandler);
}
}
public static class EnterpriseMemberUpdate extends org.apache.thrift.AsyncProcessFunction {
public EnterpriseMemberUpdate() {
super("EnterpriseMemberUpdate");
}
public EnterpriseMemberUpdate_args getEmptyArgsInstance() {
return new EnterpriseMemberUpdate_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
EnterpriseMemberUpdate_result result = new EnterpriseMemberUpdate_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
EnterpriseMemberUpdate_result result = new EnterpriseMemberUpdate_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, EnterpriseMemberUpdate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.EnterpriseMemberUpdate(args.member,resultHandler);
}
}
public static class WorkReportAdd extends org.apache.thrift.AsyncProcessFunction {
public WorkReportAdd() {
super("WorkReportAdd");
}
public WorkReportAdd_args getEmptyArgsInstance() {
return new WorkReportAdd_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(ResultInfo o) {
WorkReportAdd_result result = new WorkReportAdd_result();
result.success = o;
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
_LOGGER.error("TTransportException writing to internal frame buffer", e);
fb.close();
} catch (java.lang.Exception e) {
_LOGGER.error("Exception writing to internal frame buffer", e);
onError(e);
}
}
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
WorkReportAdd_result result = new WorkReportAdd_result();
if (e instanceof org.apache.thrift.transport.TTransportException) {
_LOGGER.error("TTransportException inside handler", e);
fb.close();
return;
} else if (e instanceof org.apache.thrift.TApplicationException) {
_LOGGER.error("TApplicationException inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TApplicationException)e;
} else {
_LOGGER.error("Exception inside handler", e);
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
} catch (java.lang.Exception ex) {
_LOGGER.error("Exception writing to internal frame buffer", ex);
fb.close();
}
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, WorkReportAdd_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
iface.WorkReportAdd(args.report,resultHandler);
}
}
public static class GetLingYiUserInfo