/var/www/greso.tech/server/nsm/responseModels/extra
NameSizeModeActions
extra.model.js2770644editdlrm
extraList.model.js5010644editdlrm
Edit: /var/www/greso.tech/server/nsm/responseModels/extra/extraList.model.js (501B)
module.exports = class ExtraListModel { constructor({ rows, time, page, limit, count }) { this.list = rows ? rows.map((item) => { const { id, name, description, type, companyId, direction, price, minSumm } = item return { id, companyId, name, description, type, direction, price, minSumm, } }) : [] this.count = count || 0 this.page = page ? page : 1 this.limit = limit ? limit : 10 this.time = time ? time : 0 } }