/var/www/greso.tech/server/nsm/responseModels/valuation
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
}
}