返回分类标签
This commit is contained in:
@@ -583,4 +583,29 @@ public class UrlAndCateController {
|
||||
return JSONObject.toJSONString(result);
|
||||
}
|
||||
|
||||
@RequestMapping("/insertCateByUser")
|
||||
public String disposeBookmarkToJsonByUserId(UrlCateList urlCateList)
|
||||
{
|
||||
int flag = 0;
|
||||
Date date = new Date();
|
||||
urlCateList.setCreatetime(date.getTime());
|
||||
urlCateList.setUrlNumber(Long.valueOf(0));
|
||||
urlCateList.setRootCateId(0);
|
||||
HashMap<String, Object> result = new HashMap<>();
|
||||
flag = urlCateListService.insertSelective(urlCateList);
|
||||
if(flag == 1)
|
||||
{
|
||||
result.put("code", 200);
|
||||
result.put("msg", "处理成功");
|
||||
result.put("data", result);
|
||||
}else{
|
||||
result.put("code", 500);
|
||||
result.put("msg", "处理失败");
|
||||
result.put("data", result);
|
||||
}
|
||||
return JSONObject.toJSONString(result);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user