Commit 091c103a authored by 赵啸非's avatar 赵啸非

添加apipost生成接口文档逻辑

parent 0aa14217
......@@ -117,7 +117,7 @@
"value": "123456"
}
],
"raw":"{\n\t\"loginName\": \"qixgyzp\",\n\t\"password\": \"ccfxeecffldl\",\n\t\"securityCode\": \"rjkw\"\n}",
"raw":"",
"raw_para":[
],
......@@ -1984,6 +1984,47 @@
}
</#if>
</#list>
<#if table.subTable?? && table.tplCategory=="sub" >
,
{
"description": "${table.subTable.functionName}列表",
"is_checked": 1,
"key": "${table.subTable.className?uncap_first}List",
"type": "array",
"not_null": "-1",
"field_type": "array",
"value": ""
}
<#list table.subTable.columns as column >
<#if !column.isSuperColumn(column.javaField)>
,
{
"value": "",
"not_null": "-1",
"is_checked": 1,
"key": "array[0].${column.javaField}",
<#if column.javaType=="String">
"field_type":"string",
"type":"string",
<#elseif column.javaType == "Long"|| column.javaType=="Integer">
"field_type":"integer",
"type":"integer",
<#elseif column.javaType == "BigDecimal">
"field_type":"number",
"type":"number",
<#elseif column.javaType == "Date">
"field_type":"string",
"type":"string",
<#else>
"field_type":"string",
"type":"string",
</#if>
"description": "${column.columnComment}"
}
</#if>
</#list>
</#if>
],
"raw":"",
"raw_para":[],
......@@ -2402,6 +2443,15 @@
"body":{
"mode":"json",
"parameter":[
{
"description": "数组根节点",
"is_checked": 1,
"key": "array",
"type": "array",
"not_null": "1",
"field_type": "array",
"value": ""
},
{
"description":"${table.pkColumn.javaField}为空时为新增,否则为更新",
"field_type":"integer",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment