删除排序
parent
6bfc8fab0b
commit
dd4ea9a45b
|
@ -5,7 +5,7 @@ import com.muyu.cloud.background.domin.realname.RealNameReq;
|
|||
import com.muyu.cloud.background.domin.realname.RealNameResp;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.boot.configurationprocessor.json.JSONException;
|
||||
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
|
|
@ -10,7 +10,6 @@ import com.muyu.cloud.background.domin.realname.ali.RealNameAliReq;
|
|||
import com.muyu.cloud.background.domin.realname.ali.RealNameAliResp;
|
||||
import com.muyu.data.mart.util.HttpUtils;
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.springframework.boot.configurationprocessor.json.JSONException;
|
||||
import org.springframework.boot.configurationprocessor.json.JSONObject;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -34,7 +33,7 @@ public class RealNameServiceImpl implements BasicApi<RealNameReq, RealNameResp>
|
|||
AliResult<RealNameAliResp> realNameAliRespAliResult = null;
|
||||
try {
|
||||
realNameAliRespAliResult = sendApi(realNameAliReq);
|
||||
} catch (JSONException e) {
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
return RealNameResp.builder()
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
package com.muyu.cloud.background.common;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.checkerframework.checker.units.qual.N;
|
||||
import org.springframework.boot.configurationprocessor.json.JSONException;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* @Author:weiran
|
||||
|
@ -23,5 +16,5 @@ public interface BasicApi<REQ,RES> {
|
|||
* @param req 请求对象
|
||||
* @return 响应结果
|
||||
*/
|
||||
RES send(REQ req) throws IOException, JSONException;
|
||||
RES send(REQ req) ;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ import com.muyu.cloud.background.domin.realname.juhe.RealNameJuHeResp;
|
|||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.boot.configurationprocessor.json.JSONException;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
|
Loading…
Reference in New Issue