瑶都万能墙
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.

76 lines
1.5 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 /group/saveOrUpdate
  34. * 需要登录token
  35. * @param {Object} group - 群组信息对象
  36. */
  37. groupSaveOrUpdate: {
  38. url: '/city/group/saveOrUpdate',
  39. method: 'POST',
  40. auth: true,
  41. limit: 1000,
  42. showLoading: true,
  43. loadingTitle: '保存中...'
  44. },
  45. /**
  46. * 删除同城群
  47. * 对应后端: DELETE /city/group/delete
  48. * 需要登录token
  49. * @param {String} id - 群组ID
  50. */
  51. groupDelete: {
  52. url: '/city/group/delete',
  53. method: 'DELETE',
  54. auth: true,
  55. limit: 1000,
  56. showLoading: true,
  57. loadingTitle: '删除中...'
  58. },
  59. /**
  60. * 获取我发布的同城群列表
  61. * 对应后端: GET /city/group/getMyPublishedList
  62. * 需要登录token
  63. * @param {Object} bean - 分页排序参数
  64. */
  65. getMyPublishedList: {
  66. url: '/city/group/getMyPublishedList',
  67. method: 'GET',
  68. auth: true,
  69. showLoading: false
  70. }
  71. }
  72. export default api