MCPcopy
hub / github.com/YMFE/yapi / listByInterStatus

Method listByInterStatus

server/models/interface.js:256–273  ·  view source on GitHub ↗
(catid, status)

Source from the content-addressed store, hash-verified

254 }
255
256 listByInterStatus(catid, status) {
257 let option = {};
258 if (status === 'open') {
259 option = {
260 catid: catid,
261 api_opened: true
262 };
263 } else {
264 option = {
265 catid: catid
266 };
267 }
268 return this.model
269 .find(option)
270 .select()
271 .sort({ title: 1 })
272 .exec();
273 }
274
275 del(id) {
276 return this.model.remove({

Callers 5

copyMethod · 0.80
listByOpenMethod · 0.80
handleListClassMethod · 0.80
handleListClassMethod · 0.80
handleListClassMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected