JSD-9115 OA接口集成
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

52 lines
1.3 KiB

package com.eco.plugin.xxxx.oats.handler;
import com.eco.plugin.xxxx.oats.config.PluginSimpleConfig;
import com.eco.plugin.xxxx.oats.utils.HttpUtils;
import com.eco.plugin.xxxx.oats.utils.ResponseUtils;
import com.eco.plugin.xxxx.oats.utils.Utils;
import com.fr.decision.fun.impl.BaseHttpHandler;
import com.fr.json.JSONObject;
import com.fr.plugin.transform.FunctionRecorder;
import com.fr.third.springframework.web.bind.annotation.RequestMethod;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@FunctionRecorder
public class DeleteRequestInfoByJson extends BaseHttpHandler {
public DeleteRequestInfoByJson() {
}
@Override
public RequestMethod getMethod() {
return RequestMethod.POST;
}
@Override
public String getPath() {
return "/ofs/deleteRequestInfoByJson";
}
@Override
public boolean isPublic() {
return true;
}
@Override
public void handle(HttpServletRequest req, HttpServletResponse res) throws Exception {
JSONObject json = Utils.getRequestBody(req);
String url = PluginSimpleConfig.getInstance().getDeleteRequestInfoByJson();
String result = HttpUtils.HttpPostJson(url,json.toString(),null);
ResponseUtils.response(res,new JSONObject(result));
}
}