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

Method listCount

server/models/log.js:122–136  ·  view source on GitHub ↗
(typeid, type, selectValue)

Source from the content-addressed store, hash-verified

120 });
121 }
122 listCount(typeid, type, selectValue) {
123 const params = {
124 type: type,
125 typeid: typeid
126 };
127
128 if (selectValue === 'wiki') {
129 params['data.type'] = selectValue;
130 }
131
132 if (selectValue && !isNaN(selectValue)) {
133 params['data.interface_id'] = +selectValue;
134 }
135 return this.model.countDocuments(params);
136 }
137
138 listWithCatid(typeid, type, interfaceId) {
139 const params = {

Callers 5

listMethod · 0.45
listMethod · 0.45
listByCatMethod · 0.45
listMethod · 0.45
groupDataStatisMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected