(body)
| 223 | } |
| 224 | |
| 225 | function createSchemaTable(body) { |
| 226 | let template = ``; |
| 227 | let dataSource = schema.schemaTransformToTable(json_parse(body)); |
| 228 | template += `<table> |
| 229 | <thead class="ant-table-thead"> |
| 230 | <tr> |
| 231 | ${tableHeader(columns)} |
| 232 | </tr> |
| 233 | </thead>`; |
| 234 | |
| 235 | template += `<tbody className="ant-table-tbody">${tableBody(dataSource, columns, 0)} |
| 236 | </tbody> |
| 237 | </table> |
| 238 | `; |
| 239 | |
| 240 | return template; |
| 241 | } |
| 242 | |
| 243 | function createResponse(res_body, res_body_is_json_schema, res_body_type) { |
| 244 | let resTitle = `\n### 返回数据\n\n`; |
no test coverage detected