返回分类标签

This commit is contained in:
cyk 2023-12-24 15:52:12 +08:00
parent 25670f56f8
commit 7351b4c19f

View File

@ -504,13 +504,14 @@ public class UrlAndCateController {
public String returnCateByUserId(String userId) public String returnCateByUserId(String userId)
{ {
HashMap<String, Object> result = new HashMap<>(); HashMap<String, Object> result = new HashMap<>();
result.put("code", 500); result.put("code", 200);
result.put("msg", "下载失败"); result.put("msg", "返回成功");
List<UrlCateList> urlCateLists = urlCateListService.selectUrListByUserId(Integer.valueOf(userId)); List<UrlCateList> urlCateLists = urlCateListService.selectUrListByUserId(Integer.valueOf(userId));
result.put("data", urlCateLists); result.put("data", urlCateLists);
return JSONObject.toJSONString(result); return JSONObject.toJSONString(result);
} }
@RequestMapping("/disposeBookmarkToJsonByUserId") @RequestMapping("/disposeBookmarkToJsonByUserId")
public String disposeBookmarkToJsonByUserId(String userId) public String disposeBookmarkToJsonByUserId(String userId)
{ {