人情事件.http 2.1 KB

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