前后台交互数据模块

``` 说明:按页分组,只传有签字的页 page:页数,从0开始 data:单页内的数据集合,顺序排列,后台按顺序插入pdf key:数据类型 textRecord(文本),imgRecord(图片),drawRecord(签名等),writeRecord(圈批):属于后端需要执行pdf操作的对象 textView,imgView,drawView,writeView:属于前端渲染和后台解析验签信息的数据 current:是否是本次新增的对象,true是本次新增的数据,false,是以前的数据 id:签字id,同一次签批的各项数据id相同,由前端随机生成(大小写字母+数字) data:对象集合: 其中textView,imgView,drawView,writeView :中新增的width,height,x,y 是后端解析验签信息使用的,其余的前端可在这4个里面任意新增自己所需要的。 textRecord,imgRecord,drawRecord,writeRecord 里面的data,仍然使用以前的数据 由于path、svg、img等数据字符串较长,本次使用索引机制, textRecord、textView 两个属于文本,不需要索引机制 imgRecord、imgView 新增的索引key命名为 img drawRecord、drawView 新增的索引key命名为 draw writeRecord、writeView 新增的索引key命名为write 注:索引的值由前端随机生成(大小写字母+数字) [{ "page": 0, "data": [{ "key": "textRecord", "id":"BHD7df", "current": false, "data": {} }, { "key": "textView", "id":"BHD7df", "current": false, "data": { "width": 0.1, "height": 0.1, "x": 0.1, "y": 0.1 } }, { "key": "imgRecord", "id":"JU383gt", "current": false, "data": { "img": "key1" } }, { "key": "imgView", "id":"JU383gt", "current": false, "data": { "width": 0.1, "height": 0.1, "x": 0.1, "y": 0.1, "img": "key2" } }, { "key": "drawRecord", "id":"lo0F54", "current": true, "data": { "draw": "key3" } }, { "key": "drawView", "id":"lo0F54", "current": true, "data": { "width": 0.1, "height": 0.1, "x": 0.1, "y": 0.1, "draw": "key4" } }, { "key": "writeRecord", "id":"K8fr0h6", "current": true, "data": { "write": "key5" } }, { "key": "writeView", "id":"K8fr0h6", "current": true, "data": { "width": 0.1, "height": 0.1, "x": 0.1, "y": 0.1, "write": "key6" } }] }, { "page": 1, "data": [] }] 说明:这是索引内容的对象数据,特别说明,每次保存新增的就返回的key和value,以前的旧数据,value设置为null,这样可以提供效率 { "key1": null, "key2": "<svg>svg</svg>" } ```