/
var
/
www
/
greso.tech
/
server
/
nsm
/
responseModels
/
merchant
/
/var/www/greso.tech/server/nsm/responseModels/merchant
mkdir
upload
Name
Size
Mode
Actions
merchant.model.js
316
0644
edit
dl
rm
merchantList.model.js
500
0644
edit
dl
rm
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 } }
Save
cmd:
run