|
@@ -1,5 +1,5 @@
|
|
### 新增人情事件
|
|
### 新增人情事件
|
|
-POST http://localhost:8080/favor/add
|
|
|
|
|
|
+POST {{api_url}}/favor/add
|
|
Content-Type: application/json
|
|
Content-Type: application/json
|
|
|
|
|
|
{
|
|
{
|
|
@@ -44,7 +44,7 @@ Content-Type: application/json
|
|
}
|
|
}
|
|
|
|
|
|
### 查询人情事件详情
|
|
### 查询人情事件详情
|
|
-GET http://localhost:8080/favor/detail/1
|
|
|
|
|
|
+GET {{api_url}}/favor/detail/2
|
|
|
|
|
|
### 修改人情事件
|
|
### 修改人情事件
|
|
POST http://localhost:8080/favor/update
|
|
POST http://localhost:8080/favor/update
|
|
@@ -60,39 +60,54 @@ Content-Type: application/json
|
|
"remark": "祝贺1",
|
|
"remark": "祝贺1",
|
|
"favorItemList": [
|
|
"favorItemList": [
|
|
{
|
|
{
|
|
- "id": 1,
|
|
|
|
|
|
+ "id": 9,
|
|
"favorId": 1,
|
|
"favorId": 1,
|
|
"receivePersonId": 1,
|
|
"receivePersonId": 1,
|
|
- "givePersonId": 2,
|
|
|
|
- "remark": "恭喜1",
|
|
|
|
|
|
+ "givePersonId": 6,
|
|
|
|
+ "remark": "恭喜恭喜恭喜",
|
|
"returnGift": {
|
|
"returnGift": {
|
|
- "id": 2,
|
|
|
|
- "title": "1000斤猪肉",
|
|
|
|
|
|
+ "id": 16,
|
|
|
|
+ "title": "10斤牛肉",
|
|
"type": "T",
|
|
"type": "T",
|
|
- "amount": 10300.00
|
|
|
|
|
|
+ "amount": 160.00
|
|
},
|
|
},
|
|
"giveGift": {
|
|
"giveGift": {
|
|
- "id": 1,
|
|
|
|
- "title": "11万",
|
|
|
|
|
|
+ "id": 15,
|
|
|
|
+ "title": "¥2000",
|
|
"type": "M",
|
|
"type": "M",
|
|
- "amount": 110000.00
|
|
|
|
|
|
+ "amount": 2000.00
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
"favorId": 1,
|
|
"favorId": 1,
|
|
"receivePersonId": 1,
|
|
"receivePersonId": 1,
|
|
- "givePersonId": 6,
|
|
|
|
- "remark": "恭喜3",
|
|
|
|
|
|
+ "givePersonId": 7,
|
|
|
|
+ "remark": "恭喜发财",
|
|
"returnGift": {
|
|
"returnGift": {
|
|
- "title": "300斤猪肉",
|
|
|
|
|
|
+ "title": "面粉",
|
|
"type": "T",
|
|
"type": "T",
|
|
- "amount": 3300.00
|
|
|
|
|
|
+ "amount": 25.00
|
|
},
|
|
},
|
|
"giveGift": {
|
|
"giveGift": {
|
|
- "title": "3万",
|
|
|
|
|
|
+ "title": "¥400",
|
|
"type": "M",
|
|
"type": "M",
|
|
- "amount": 30000.00
|
|
|
|
|
|
+ "amount": 400.00
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
]
|
|
-}
|
|
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+### 删除人情事件
|
|
|
|
+POST {{api_url}}/favor/delete/1
|
|
|
|
+
|
|
|
|
+### 查询人情事件列表
|
|
|
|
+GET {{api_url}}/favor/listPage
|
|
|
|
+Content-Type: application/json
|
|
|
|
+
|
|
|
|
+{
|
|
|
|
+ "page": {
|
|
|
|
+ "pageNo": 1,
|
|
|
|
+ "pageSize": 10
|
|
|
|
+ }
|
|
|
|
+}
|