瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
1.8 KiB

  1. /**
  2. * 同城群相关接口配置
  3. * 对应后端 YaoDuGroupController
  4. */
  5. const api = {
  6. /**
  7. * 获取同城群列表
  8. * 对应后端: GET /group/list
  9. * @param {String} classId - 城市ID
  10. * @param {String} title - 群名称搜索关键词
  11. * @param {Object} bean - 分页排序参数
  12. */
  13. groupList: {
  14. url: '/city/group/list',
  15. method: 'GET',
  16. auth: false,
  17. showLoading: false
  18. },
  19. /**
  20. * 获取同城群详情
  21. * 对应后端: GET /group/queryById
  22. * @param {String} id - 群组ID
  23. */
  24. groupDetail: {
  25. url: '/city/group/queryById',
  26. method: 'GET',
  27. auth: false,
  28. showLoading: true,
  29. loadingTitle: '加载中...'
  30. },
  31. /**
  32. * 加入同城群
  33. * 对应后端: POST /city/group/join
  34. * 需要登录token
  35. * @param {Object} group - 群组信息对象
  36. */
  37. groupJoin: {
  38. url: '/city/group/join',
  39. method: 'GET',
  40. auth: true,
  41. limit: 1000,
  42. },
  43. /**
  44. * 编辑同城群新增或更新
  45. * 对应后端: POST /group/saveOrUpdate
  46. * 需要登录token
  47. * @param {Object} group - 群组信息对象
  48. */
  49. groupSaveOrUpdate: {
  50. url: '/city/group/saveOrUpdate',
  51. method: 'POST',
  52. auth: true,
  53. limit: 1000,
  54. showLoading: true,
  55. loadingTitle: '保存中...'
  56. },
  57. /**
  58. * 删除同城群
  59. * 对应后端: DELETE /city/group/delete
  60. * 需要登录token
  61. * @param {String} id - 群组ID
  62. */
  63. groupDelete: {
  64. url: '/city/group/delete',
  65. method: 'DELETE',
  66. auth: true,
  67. limit: 1000,
  68. showLoading: true,
  69. loadingTitle: '删除中...'
  70. },
  71. /**
  72. * 获取我发布的同城群列表
  73. * 对应后端: GET /city/group/getMyPublishedList
  74. * 需要登录token
  75. * @param {Object} bean - 分页排序参数
  76. */
  77. getMyPublishedList: {
  78. url: '/city/group/getMyPublishedList',
  79. method: 'GET',
  80. auth: true,
  81. showLoading: false
  82. }
  83. }
  84. export default api