(option, page, limit)
| 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 = {}; |