推荐网址

This commit is contained in:
cyk
2023-12-25 13:28:47 +08:00
parent f7269cc5e2
commit 0dde2afb6c
5 changed files with 47 additions and 0 deletions

View File

@@ -101,4 +101,22 @@ public class UrlListController {
}
return JSONObject.toJSONString(result);
}
@RequestMapping("/recommendLatestUrl")
public String recommendLatestUrl()
{
HashMap<String, Object> result = new HashMap<>();
result.put("code", 200);
result.put("msg", "处理成功");
result.put("data",urlListService.latestEight());
return JSONObject.toJSONString(result);
}
@RequestMapping("/recommendTopEightUrl")
public String recommendTopEightUrl()
{
HashMap<String, Object> result = new HashMap<>();
result.put("code", 200);
result.put("msg", "处理成功");
result.put("data",urlListService.TopEight());
return JSONObject.toJSONString(result);
}
}