api-test.http 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ### 新增人情事件
  2. POST http://localhost:8080/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 http://localhost:8080/favor/detail/1
  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": 1,
  60. "favorId": 1,
  61. "receivePersonId": 1,
  62. "givePersonId": 2,
  63. "remark": "恭喜1",
  64. "returnGift": {
  65. "id": 2,
  66. "title": "1000斤猪肉",
  67. "type": "T",
  68. "amount": 10300.00
  69. },
  70. "giveGift": {
  71. "id": 1,
  72. "title": "11万",
  73. "type": "M",
  74. "amount": 110000.00
  75. }
  76. },
  77. {
  78. "favorId": 1,
  79. "receivePersonId": 1,
  80. "givePersonId": 6,
  81. "remark": "恭喜3",
  82. "returnGift": {
  83. "title": "300斤猪肉",
  84. "type": "T",
  85. "amount": 3300.00
  86. },
  87. "giveGift": {
  88. "title": "3万",
  89. "type": "M",
  90. "amount": 30000.00
  91. }
  92. }
  93. ]
  94. }