Commit 1607e123 authored by Hsinli's avatar Hsinli

add

parent e4d37704
Pipeline #19669 passed with stage
in 2 seconds
...@@ -32,7 +32,8 @@ class NewsService extends Service { ...@@ -32,7 +32,8 @@ class NewsService extends Service {
let ret = { let ret = {
list: list.rows, list: list.rows,
page: list.count, page: page,
total_count: list.count,
page_size: Math.ceil(list.count / limit) page_size: Math.ceil(list.count / limit)
} }
return ret; return ret;
......
...@@ -30,7 +30,8 @@ class PresellHouseService extends Service { ...@@ -30,7 +30,8 @@ class PresellHouseService extends Service {
let list = await ctx.realestateModel.CdNews.findAndCountAll(filter); let list = await ctx.realestateModel.CdNews.findAndCountAll(filter);
let ret = { let ret = {
list: list.rows, list: list.rows,
page: list.count, page: page,
total_count: list.count,
page_size: Math.ceil(list.count / limit) page_size: Math.ceil(list.count / limit)
} }
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment