/
var
/
www
/
greso.tech
/
server
/
nsm
/
responseModels
/
extra
/
/var/www/greso.tech/server/nsm/responseModels/extra
mkdir
upload
Name
Size
Mode
Actions
extra.model.js
277
0644
edit
dl
rm
extraList.model.js
501
0644
edit
dl
rm
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 } }
Save
cmd:
run