RAP-数据组织结构

Rap针对如下页面结构维护着一个巨大的Json结构的树形结构。每次的增删改查都会操作这个Json树,并会将此树拆分存储到不同的详细表中。





{

"createDateStr": "2017-09-21",

"user": {

"name": "admin",

"id": 1

},

"id": 1,

"version": "0.0.0.12",

"introduction": "测试创建第一个rap项目",

"name": "第一个rap项目",

"moduleList": [

{

"id": 1,

"introduction": "",

"name": "第一个模块",

"pageList": [

{

"id": 1,

"introduction": "",

"name": "第一个页面",

"actionList": [

{

"id": 2,

"name": "第一个测试接口",

"description": "",

"requestType": "1",

"requestUrl": "http:\/\/localhost:8080\/getUser",

"responseTemplate": "",

"requestParameterList": [

{

"id": 6,

"identifier": "req1",

"name": "接口1-请求参数1",

"remark": "备注:请求参数1",

"parameterList": [

],

"validator": "",

"dataType": "number"

},

{

"id": 5,

"identifier": "req2",

"name": "接口1-请求参数2",

"remark": "备注:请求参数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-响应数据1",

"remark": "@mock=100",

"parameterList": [

],

"validator": "",

"dataType": "number"

}

]

},

{

"id": 3,

"name": "第二个测试接口",

"description": "",

"requestType": "1",

"requestUrl": "http:\/\/localhost:8080\/getUser",

"responseTemplate": "",

"requestParameterList": [

{

"id": 9,

"identifier": "req3",

"name": "接口2-请求参数",

"remark": "备注:接口2-请求参数",

"parameterList": [

],

"validator": "",

"dataType": "number"

},

{

"id": 10,

"identifier": "req4",

"name": "接口2-请求参数",

"remark": "备注:接口2-请求参数",

"parameterList": [

],

"validator": "",

"dataType": "string"

}

],

"responseParameterList": [

{

"id": 11,

"identifier": "date2",

"name": "接口2-响应参数",

"remark": "@mock=@DATE",

"parameterList": [

],

"validator": "",

"dataType": "string"

},

{

"id": 12,

"identifier": "id2|+1",

"name": "接口2-响应参数",

"remark": "@mock=100",

"parameterList": [

],

"validator": "",

"dataType": "number"

}

]

}

]

},

{

"id": 2,

"introduction": "",

"name": "第二个页面",

"actionList": [

{

"id": 7,

"name": "第三个测试接口",

"description": "",

"requestType": "1",

"requestUrl": "",

"responseTemplate": "",

"requestParameterList": [

],

"responseParameterList": [

]

}

]

}

]

}

]

}

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,868评论 18 139
  • 国家电网公司企业标准(Q/GDW)- 面向对象的用电信息数据交换协议 - 报批稿:20170802 前言: 排版 ...
    庭说阅读 11,121评论 6 13
  • 工厂模式类似于现实生活中的工厂可以产生大量相似的商品,去做同样的事情,实现同样的效果;这时候需要使用工厂模式。简单...
    舟渔行舟阅读 7,827评论 2 17
  • 卖安徽大饼的大姐,前天便通知我了:“明天我不出摊啦,过年了,要歇歇。” 我说:“是要歇歇,一年到头了。” 大姐:“...
    费廖沙阅读 402评论 0 0
  • 最近,总被一些炙热的温暖包裹着,那种一触即破的情感,蜷缩在眸子里,盘踞在心灵间,总想找个...
    王双凤阅读 365评论 0 3