/** * 类别词esglisgAb唯一性验证 * * @param esglisgAb * @return */ @RequestMapping( method = RequestMethod.GET, value = "/uniqueValid", headers = "Accept=application/json") public @ResponseBody boolean uniqueValid(String esglisgAb) { return categoryWordService.uniqueValid(esglisgAb); }
/** * 类别词chineseWord唯一性验证 * * @param chineseWord * @return */ @RequestMapping( method = RequestMethod.GET, value = "/uniqueValidName", headers = "Accept=application/json") public @ResponseBody boolean uniqueValidName(String chineseWord) { Map<String, String> map = new HashMap<String, String>(); try { chineseWord = URLDecoder.decode(chineseWord, "UTF-8"); } catch (UnsupportedEncodingException e) { } map.put("chineseWord", chineseWord); return categoryWordService.uniqueValid(map); }