/var/www/greso.tech/server/nsm/responseModels/merchant
NameSizeModeActions
merchant.model.js3160644editdlrm
merchantList.model.js5000644editdlrm
Edit: /var/www/greso.tech/server/nsm/responseModels/merchant/merchantList.model.js (500B)
module.exports = class MerchantListModel { constructor({ rows, time, page, limit, count, isSu }) { this.list = rows ? rows.map((item) => { const { id, companyId, name, type, emailLink, xKey, xVersion } = item return { id, companyId, name, emailLink, type, xKey: isSu ? xKey??'' : '', xVersion, } }) : [] this.count = count || 0 this.page = page ? page : 1 this.limit = limit ? limit : 10 this.time = time ? time : 0 } }