/var/www/greso.tech/server/nsm/responseModels/condition
NameSizeModeActions
condition.model.js1940644editdlrm
conditionList.model.js3990644editdlrm
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 } }