/
var
/
www
/
greso.tech
/
server
/
nsm
/
responseModels
/
valuation
/
/var/www/greso.tech/server/nsm/responseModels/valuation
mkdir
upload
Name
Size
Mode
Actions
valuation.model.js
166
0644
edit
dl
rm
valuationList.model.js
383
0644
edit
dl
rm
Edit:
/var/www/greso.tech/server/nsm/responseModels/valuation/valuationList.model.js
(383B)
module.exports = class ValuationListModel { constructor({ rows, time, page, limit, count }) { this.list = rows ? rows.map((item) => { const { id, companyId, json } = item return { id, companyId, json, } }) : [] this.count = count || 0 this.page = page ? page : 1 this.limit = limit ? limit : 10 this.time = time ? time : 0 } }
Save
cmd:
run