|
@@ -18,42 +18,42 @@ public class CountryEndpoint {
|
|
|
public CountryEndpoint(CountryRepository countryRepository) {
|
|
|
this.countryRepository = countryRepository;
|
|
|
}
|
|
|
-//
|
|
|
-// @PayloadRoot(namespace = NAMESPACE_URI, localPart = "getCountryRequest")
|
|
|
-// @ResponsePayload
|
|
|
-// public GetCountryResponse getCountry(@RequestPayload GetCountryRequest request) {
|
|
|
-// GetCountryResponse response = new GetCountryResponse();
|
|
|
-// response.setCountry(countryRepository.findCountry(request.getName()));
|
|
|
-// return response;
|
|
|
-// }
|
|
|
-
|
|
|
- @PayloadRoot(namespace = NAMESPACE_URI, localPart = "getSchemaRequest")
|
|
|
- @ResponsePayload
|
|
|
- public String GetSchema(String schemaCode)
|
|
|
- {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- @PayloadRoot(namespace = NAMESPACE_URI, localPart = "getSchemaListRequest")
|
|
|
- @ResponsePayload
|
|
|
- public String GetSchemaList()
|
|
|
- {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- @PayloadRoot(namespace = NAMESPACE_URI, localPart = "getListRequest")
|
|
|
- @ResponsePayload
|
|
|
- public String GetList(String userCode, String schemaCode, String filter)
|
|
|
- {
|
|
|
- return null;
|
|
|
- }
|
|
|
|
|
|
- //氚云后端调用的方法名
|
|
|
- @PayloadRoot(namespace = NAMESPACE_URI, localPart = "invokeRequest")
|
|
|
+ @PayloadRoot(namespace = NAMESPACE_URI, localPart = "getCountryRequest")
|
|
|
@ResponsePayload
|
|
|
- public String Invoke(String userCode, String schemaCode, String methodName, String param)
|
|
|
- {
|
|
|
- //书写调用第三方接口方法
|
|
|
- return null;
|
|
|
+ public GetCountryResponse getCountry(@RequestPayload GetCountryRequest request) {
|
|
|
+ GetCountryResponse response = new GetCountryResponse();
|
|
|
+ response.setCountry(countryRepository.findCountry(request.getName()));
|
|
|
+ return response;
|
|
|
}
|
|
|
+//
|
|
|
+// @PayloadRoot(namespace = NAMESPACE_URI, localPart = "getSchemaRequest")
|
|
|
+// @ResponsePayload
|
|
|
+// public String GetSchema(String schemaCode)
|
|
|
+// {
|
|
|
+// return null;
|
|
|
+// }
|
|
|
+//
|
|
|
+// @PayloadRoot(namespace = NAMESPACE_URI, localPart = "getSchemaListRequest")
|
|
|
+// @ResponsePayload
|
|
|
+// public String GetSchemaList()
|
|
|
+// {
|
|
|
+// return null;
|
|
|
+// }
|
|
|
+//
|
|
|
+// @PayloadRoot(namespace = NAMESPACE_URI, localPart = "getListRequest")
|
|
|
+// @ResponsePayload
|
|
|
+// public String GetList(String userCode, String schemaCode, String filter)
|
|
|
+// {
|
|
|
+// return null;
|
|
|
+// }
|
|
|
+//
|
|
|
+// //氚云后端调用的方法名
|
|
|
+// @PayloadRoot(namespace = NAMESPACE_URI, localPart = "invokeRequest")
|
|
|
+// @ResponsePayload
|
|
|
+// public String Invoke(String userCode, String schemaCode, String methodName, String param)
|
|
|
+// {
|
|
|
+// //书写调用第三方接口方法
|
|
|
+// return null;
|
|
|
+// }
|
|
|
}
|