diff --git a/mock-config.json b/mock-config.json index 1406b5d..6980291 100644 --- a/mock-config.json +++ b/mock-config.json @@ -81,16 +81,26 @@ "method": "GET", "path": "/api/user/address/list", "response": { - "list|2": [ + "list": [ { - "id|+1": 1, - "name": "刘先生", - "phone": "134****7788", - "fullAddress": "山东省济南市某某区幸福小区5号10楼1003室", - "isDefault|1": [true, false], - "locationStatus|1": ["正常", "选中地址为高亮跳回"], + "id": 1, + "name": "张伟", + "phone": "13812345678", + "fullAddress": "北京市朝阳区光华路8号", + "isDefault": true, + "locationStatus": "正常", "canEdit": true, "canDelete": true + }, + { + "id": 2, + "name": "李芳", + "phone": "13987654321", + "fullAddress": "上海市浦东新区陆家嘴环路100号", + "isDefault": false, + "locationStatus": "正常", + "canEdit": true, + "canDelete": false } ] }, @@ -140,8 +150,11 @@ "method": "POST", "path": "/api/user/address/add", "response": { - "id": "@increment", - "message": "地址新增成功" + "code": 200, + "message": "地址新增成功", + "result": { + "id": 10086 + } }, "swagger": { "summary": "新增收货地址", @@ -155,7 +168,7 @@ "code": 200, "message": "地址新增成功", "result": { - "id": 3 + "id": 10086 } } }