| | |
| | | /** |
| | | * 服务注册 |
| | | */ |
| | | public void serverRegiste() { |
| | | // |
| | | public String serverRegister(String name, String serverUri, String type, HttpServletRequest req) { |
| | | String url = getUrl("resource/res/item", req); |
| | | |
| | | List<NameValueEntity> list = new ArrayList<>(); |
| | | list.add(new NameValueEntity("tags", new String[]{name})); |
| | | list.add(new NameValueEntity("name", name)); |
| | | list.add(new NameValueEntity("address", serverUri)); |
| | | list.add(new NameValueEntity("detailUrl", serverUri)); |
| | | list.add(new NameValueEntity("type", type)); |
| | | list.add(new NameValueEntity("description", name)); |
| | | list.add(new NameValueEntity("isrequest", true)); |
| | | |
| | | return RestHelper.postForRest(url, list); |
| | | } |
| | | |
| | | /** |