人情事件.http 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. ### 新增人情事件
  2. POST {{api_url}}/favor/add
  3. Content-Type: application/json
  4. {
  5. "favorItemList": [
  6. {
  7. "returnGift": {
  8. "title": "100斤猪肉",
  9. "type": "T",
  10. "amount": 1300
  11. },
  12. "givePersonId": 2,
  13. "giveGift": {
  14. "title": "1万",
  15. "type": "M",
  16. "amount": 10000
  17. },
  18. "remark": "恭喜"
  19. },
  20. {
  21. "receivePersonId": 1,
  22. "returnGift": {
  23. "title": "200斤猪肉",
  24. "type": "T",
  25. "amount": 2300
  26. },
  27. "givePersonId": 3,
  28. "giveGift": {
  29. "title": "2万",
  30. "type": "M",
  31. "amount": 20000
  32. },
  33. "remark": "恭喜"
  34. },
  35. {
  36. "receivePersonId": 1,
  37. "returnGift": {
  38. "title": "300斤猪肉",
  39. "type": "T",
  40. "amount": 2300
  41. },
  42. "givePersonId": 3,
  43. "giveGift": {
  44. "title": "3万",
  45. "type": "M",
  46. "amount": 30000
  47. },
  48. "remark": "恭喜"
  49. }
  50. ],
  51. "holdDate": "2024-08-01",
  52. "title": "八一建党节",
  53. "holdPersonId": 1,
  54. "incomeAmount": 1999.99,
  55. "payAmount": 99.99,
  56. "remark": "祝贺"
  57. }
  58. ### 查询人情事件详情
  59. GET {{api_url}}/favor/detail/2
  60. ### 修改人情事件
  61. POST http://localhost:8080/favor/update
  62. Content-Type: application/json
  63. {
  64. "id": 1,
  65. "holdDate": "2024-08-01",
  66. "title": "八一建党节1",
  67. "holdPersonId": 1,
  68. "incomeAmount": 11999.99,
  69. "payAmount": 199.99,
  70. "remark": "祝贺1",
  71. "favorItemList": [
  72. {
  73. "id": 9,
  74. "favorId": 1,
  75. "receivePersonId": 1,
  76. "givePersonId": 6,
  77. "remark": "恭喜恭喜恭喜",
  78. "returnGift": {
  79. "id": 16,
  80. "title": "10斤牛肉",
  81. "type": "T",
  82. "amount": 160.00
  83. },
  84. "giveGift": {
  85. "id": 15,
  86. "title": "¥2000",
  87. "type": "M",
  88. "amount": 2000.00
  89. }
  90. },
  91. {
  92. "favorId": 1,
  93. "receivePersonId": 1,
  94. "givePersonId": 7,
  95. "remark": "恭喜发财",
  96. "returnGift": {
  97. "title": "面粉",
  98. "type": "T",
  99. "amount": 25.00
  100. },
  101. "giveGift": {
  102. "title": "¥400",
  103. "type": "M",
  104. "amount": 400.00
  105. }
  106. }
  107. ]
  108. }
  109. ### 删除人情事件
  110. POST {{api_url}}/favor/delete/1
  111. ### 查询人情事件列表
  112. GET {{api_url}}/favor/listPage
  113. Content-Type: application/json
  114. {
  115. "page": {
  116. "pageNo": 1,
  117. "pageSize": 10
  118. }
  119. }