(interfaceData)
| 193 | |
| 194 | /* 渲染获取字符串 */ |
| 195 | function renderMustache(interfaceData) { |
| 196 | const temp = fs.readFileSync(require.resolve(DEFAULT_TEMPLATE_PATH), 'utf-8').toString(); |
| 197 | const renderString = Mustache.render(temp, { result: interfaceData }); |
| 198 | return renderString; |
| 199 | } |
| 200 | |
| 201 | /* 根据接口类型分类 */ |
| 202 | function sortByTags(paths, result) { |
no test coverage detected