/var/www/greso.tech/server/nsm/responseModels/config
Edit: /var/www/greso.tech/server/nsm/responseModels/config/configList.model.js (394B)
module.exports = class ConfigListModel {
constructor({ rows, time, page, limit, count }) {
this.list = rows
? rows.map((item) => {
const { id, key, value, comment } = item
return {
id,
key,
value,
comment,
}
})
: []
this.count = count || 0
this.page = page ? page : 1
this.limit = limit ? limit : 10
this.time = time ? time : 0
}
}