|
@@ -5,6 +5,7 @@ import com.hrsk.cloud.eg.app.request.api.EgApiEndpointReq;
|
|
|
import com.hrsk.cloud.eg.app.request.api.EgApiLoanExtendReq;
|
|
|
import com.hrsk.cloud.eg.app.request.api.EgApiProductExtendReq;
|
|
|
import com.hrsk.cloud.eg.app.request.api.EgApiReq;
|
|
|
+import com.hrsk.cloud.eg.infrastructure.config.client.HessianUtils;
|
|
|
import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgApiDo;
|
|
|
import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgApiEndpointDo;
|
|
|
import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgApiLoanExtendDo;
|
|
@@ -68,6 +69,9 @@ public class EgOperateBusinessService {
|
|
|
}
|
|
|
copy.setApiName(apiDo.getApiName());
|
|
|
copy.setApiCode(apiDo.getApiCode());
|
|
|
+ copy.setApiConfig(HessianUtils.serialize(req.getApiConfig()));
|
|
|
+ copy.setRequestConfig(HessianUtils.serialize(req.getRequestConfig()));
|
|
|
+ copy.setResponseConfig(HessianUtils.serialize(req.getResponseConfig()));
|
|
|
egApiEndpointService.save(copy);
|
|
|
return copy.getId();
|
|
|
}
|