|
@@ -113,6 +113,18 @@ public class ArticleController {
|
|
return articleService.getOfficialAccountByPaging(map);
|
|
return articleService.getOfficialAccountByPaging(map);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @GetMapping("getSortAticleByTitlePage")
|
|
|
|
+ public Map<String, Object> getSortAticleByTitlePage(Integer page, Integer limit, String title) {
|
|
|
|
+ if (Blank.isEmpty(limit, page) || page < 1 || limit < 1) {
|
|
|
|
+ return SendUtil.send(false, ConstStr.REQUEST_WRONGPARAMS);
|
|
|
|
+ }
|
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
|
+ map.put("title", title);
|
|
|
|
+ map.put("page", (page - 1) * limit);
|
|
|
|
+ map.put("limit", limit);
|
|
|
|
+ return articleService.getSortAticleByTitlePage(map);
|
|
|
|
+ }
|
|
|
|
+
|
|
@GetMapping("getRegionOfficialAccountByPaging")
|
|
@GetMapping("getRegionOfficialAccountByPaging")
|
|
public Map<String, Object> getRegionOfficialAccountByPaging(String name, Integer page, Integer limit) {
|
|
public Map<String, Object> getRegionOfficialAccountByPaging(String name, Integer page, Integer limit) {
|
|
if (Blank.isEmpty(limit, page)) {
|
|
if (Blank.isEmpty(limit, page)) {
|