liuchuanwei 2 месяцев назад
Родитель
Сommit
a85ab1f133
2 измененных файлов с 75 добавлено и 1 удалено
  1. 60 0
      人员.http
  2. 15 1
      人情事件.http

+ 60 - 0
人员.http

@@ -0,0 +1,60 @@
+### 新增人员
+POST {{api_url}}/person/add
+Content-Type: application/json
+
+{
+  "name": "李四",
+  "callName": "四哥",
+  "gender": 1,
+  "mateId": 77,
+  "birthday": "1990-01-01",
+  "phone": "13800000000",
+  "address": "北京市朝阳区",
+  "remark": "李四嫂"
+}
+
+### 查询人员详情
+GET {{api_url}}/person/detail/75
+
+### 修改人员
+POST http://localhost:8080/person/update
+Content-Type: application/json
+
+{
+  "id": 79,
+  "name": "李四",
+  "callName": "四哥",
+  "gender": 1,
+  "mateId": 77,
+  "birthday": "1990-01-01",
+  "phone": "13800000000",
+  "address": "北京市朝阳区",
+  "remark": "李四"
+}
+
+
+### 删除人员
+POST {{api_url}}/person/delete?id=77&ids=
+
+### 分页查询
+GET {{api_url}}/person/listPage
+Content-Type: application/json
+
+{
+  "page": {
+    "pageNo": 1,
+    "pageSize": 10
+  }
+}
+
+
+### 下拉查询
+GET {{api_url}}/person/listOption
+Content-Type: application/json
+
+{
+  "page": {
+    "pageNo": 1,
+    "pageSize": 10
+  }
+}

+ 15 - 1
人情事件.http

@@ -5,7 +5,6 @@ Content-Type: application/json
 {
   "favorItemList": [
     {
-      "receivePersonId": 1,
       "returnGift": {
         "title": "100斤猪肉",
         "type": "T",
@@ -33,6 +32,21 @@ Content-Type: application/json
         "amount": 20000
       },
       "remark": "恭喜"
+    },
+    {
+      "receivePersonId": 1,
+      "returnGift": {
+        "title": "300斤猪肉",
+        "type": "T",
+        "amount": 2300
+      },
+      "givePersonId": 3,
+      "giveGift": {
+        "title": "3万",
+        "type": "M",
+        "amount": 30000
+      },
+      "remark": "恭喜"
     }
   ],
   "holdDate": "2024-08-01",