?
Rap針對(duì)如下頁(yè)面結(jié)構(gòu)維護(hù)著一個(gè)巨大的Json結(jié)構(gòu)的樹(shù)形結(jié)構(gòu)侵状。每次的增刪改查都會(huì)操作這個(gè)Json樹(shù),并會(huì)將此樹(shù)拆分存儲(chǔ)到不同的詳細(xì)表中缨硝。
{
"createDateStr": "2017-09-21",
"user": {
"name": "admin",
"id": 1
},
"id": 1,
"version": "0.0.0.12",
"introduction": "測(cè)試創(chuàng)建第一個(gè)rap項(xiàng)目",
"name": "第一個(gè)rap項(xiàng)目",
"moduleList": [
{
"id": 1,
"introduction": "",
"name": "第一個(gè)模塊",
"pageList": [
{
"id": 1,
"introduction": "",
"name": "第一個(gè)頁(yè)面",
"actionList": [
{
"id": 2,
"name": "第一個(gè)測(cè)試接口",
"description": "",
"requestType": "1",
"requestUrl": "http:\/\/localhost:8080\/getUser",
"responseTemplate": "",
"requestParameterList": [
{
"id": 6,
"identifier": "req1",
"name": "接口1-請(qǐng)求參數(shù)1",
"remark": "備注:請(qǐng)求參數(shù)1",
"parameterList": [
],
"validator": "",
"dataType": "number"
},
{
"id": 5,
"identifier": "req2",
"name": "接口1-請(qǐng)求參數(shù)2",
"remark": "備注:請(qǐng)求參數(shù)2",
"parameterList": [
],
"validator": "",
"dataType": "string"
}
],
"responseParameterList": [
{
"id": 7,
"identifier": "date",
"name": "接口1-日期類型返回值",
"remark": "@mock=@DATE",
"parameterList": [
],
"validator": "",
"dataType": "string"
},
{
"id": 8,
"identifier": "id|+1",
"name": "接口1-響應(yīng)數(shù)據(jù)1",
"remark": "@mock=100",
"parameterList": [
],
"validator": "",
"dataType": "number"
}
]
},
{
"id": 3,
"name": "第二個(gè)測(cè)試接口",
"description": "",
"requestType": "1",
"requestUrl": "http:\/\/localhost:8080\/getUser",
"responseTemplate": "",
"requestParameterList": [
{
"id": 9,
"identifier": "req3",
"name": "接口2-請(qǐng)求參數(shù)",
"remark": "備注:接口2-請(qǐng)求參數(shù)",
"parameterList": [
],
"validator": "",
"dataType": "number"
},
{
"id": 10,
"identifier": "req4",
"name": "接口2-請(qǐng)求參數(shù)",
"remark": "備注:接口2-請(qǐng)求參數(shù)",
"parameterList": [
],
"validator": "",
"dataType": "string"
}
],
"responseParameterList": [
{
"id": 11,
"identifier": "date2",
"name": "接口2-響應(yīng)參數(shù)",
"remark": "@mock=@DATE",
"parameterList": [
],
"validator": "",
"dataType": "string"
},
{
"id": 12,
"identifier": "id2|+1",
"name": "接口2-響應(yīng)參數(shù)",
"remark": "@mock=100",
"parameterList": [
],
"validator": "",
"dataType": "number"
}
]
}
]
},
{
"id": 2,
"introduction": "",
"name": "第二個(gè)頁(yè)面",
"actionList": [
{
"id": 7,
"name": "第三個(gè)測(cè)試接口",
"description": "",
"requestType": "1",
"requestUrl": "",
"responseTemplate": "",
"requestParameterList": [
],
"responseParameterList": [
]
}
]
}
]
}
]
}