MCPcopy Index your code
hub / github.com/YMFE/yapi / listByOptionWithPage

Method listByOptionWithPage

server/models/interface.js:242–254  ·  view source on GitHub ↗
(option, page, limit)

Source from the content-addressed store, hash-verified

240 }
241
242 listByOptionWithPage(option, page, limit) {
243 page = parseInt(page);
244 limit = parseInt(limit);
245 return this.model
246 .find(option)
247 .sort({index: 1})
248 .skip((page - 1) * limit)
249 .limit(limit)
250 .select(
251 '_id title uid path method project_id catid edit_uid api_opened status add_time up_time, index, tag'
252 )
253 .exec();
254 }
255
256 listByInterStatus(catid, status) {
257 let option = {};

Callers 2

listMethod · 0.80
listByCatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected