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