/
var
/
www
/
greso.tech
/
server
/
nsm
/
responseModels
/
document
/
/var/www/greso.tech/server/nsm/responseModels/document
mkdir
upload
Name
Size
Mode
Actions
document.model.js
407
0644
edit
dl
rm
documentList.model.js
514
0644
edit
dl
rm
Edit:
/var/www/greso.tech/server/nsm/responseModels/document/documentList.model.js
(514B)
module.exports = class ProviderListModel { constructor({ rows, time, page, limit, count }) { this.list = rows ? rows.map((item) => { const { id, rootDocumentId, companyId, providerId, emailTemplateId, name, objects } = item return { id, rootDocumentId, companyId, providerId, emailTemplateId, name, objects, } }) : [] this.count = count || 0 this.page = page ? page : 1 this.limit = limit ? limit : 10 this.time = time ? time : 0 } }
Save
cmd:
run