test.http 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. // 创建活动
  2. POST http://127.0.0.1:8000/admin/activity?_token=f5d8d788f5bffba8fa544aa711b147e4
  3. Content-Type: application/json
  4. {
  5. "id": 15,
  6. "name": "devName",
  7. "StartTime": "2025-10-11 00:00:00",
  8. "EndTime": "2025-10-12 00:00:00",
  9. "LotteryStartTime": "00:00:00",
  10. "LotteryEndTime": "00:00:00",
  11. "Cost": 0,
  12. "DailyNum": 0,
  13. "DeviceNum": 0,
  14. "IpNum": 0,
  15. "Pic": {
  16. "pc": "https://www.jianyu360.cn/shareFile/file/2024/04/29/202404291729480041o49DOzu.png",
  17. "app": "https://www.jianyu360.cn/shareFile/file/2024/04/29/20240429173053004I8CZyhA3.png"
  18. },
  19. "Rule": [
  20. {
  21. "text": "this is a rule "
  22. }
  23. ],
  24. "ShareCopy": {
  25. "PC": {
  26. "title": "test pc title",
  27. "subtitle": "test pc subtitle",
  28. "pic": "https://jybx3-webtest.jydev.jianyu360.com/images/ddshare.png",
  29. "href": "/swordfish/frontPage/activity/free/202402?id=Qw==&share=1&m=5"
  30. },
  31. "APP": {
  32. "title": "test app title",
  33. "subtitle": "test app subtitle",
  34. "pic": "https://jybx3-webtest.jydev.jianyu360.com/images/ddshare.png",
  35. "href": "/jyapp/frontPage/activity/free/202402?id=Qw==&share=1&m=5"
  36. },
  37. "H5": {
  38. "title": "test h5 title",
  39. "subtitle": "test h5 subtitle",
  40. "pic": "https://jybx3-webtest.jydev.jianyu360.com/images/ddshare.png",
  41. "href": "/jyapp/frontPage/activity/free/202402?id=Qw==&share=1&m=5"
  42. },
  43. "WX": {
  44. "title": "test wx title",
  45. "subtitle": "test wx subtitle",
  46. "pic": "https://jybx3-webtest.jydev.jianyu360.com/images/ddshare.png",
  47. "href": "/weixin/frontPage/activity/free/202402?id=Qw==&share=1&m=5"
  48. }
  49. },
  50. "State": 0,
  51. "Mold": 1,
  52. "OrderType": ""
  53. }
  54. ### 活动列表
  55. GET http://127.0.0.1:8000/admin/activity?_token=f5d8d788f5bffba8fa544aa711b147e4
  56. Content-Type: application/json
  57. {
  58. "limit": 1
  59. }
  60. ### 更新活动
  61. PUT http://127.0.0.1:8000/admin/activity/18
  62. Content-Type: application/json
  63. {
  64. "EndTime": "2025-10-12 00:00:00"
  65. }
  66. ### 配置项
  67. GET http://127.0.0.1:8000/admin/activity-config
  68. Content-Type: application/json
  69. ### 设置活动奖品
  70. POST http://127.0.0.1:8000/admin/activity?_token=f5d8d788f5bffba8fa544aa711b147e4
  71. Content-Type: application/json
  72. {
  73. "ActiveId": 15,
  74. "LpiList":
  75. }
  76. ### 修改奖品
  77. ### 查询活动奖品
  78. ### 删除活动奖品
  79. ### 兑换码导入
  80. ### 兑换码数量统计
  81. ### 兑换码更新
  82. ### 基础奖品信息列表
  83. ### 基础奖品信息增加
  84. ### 基础奖品信息修改
  85. ### 产品赠送规则列表
  86. ### 产品赠送规则新增
  87. ### 产品赠送规则修改
  88. ### 产品赠送规则删除