|
|
- /**
- * 同城群相关接口配置
- * 对应后端 YaoDuGroupController
- */
- const api = {
- /**
- * 获取同城群列表
- * 对应后端: GET /group/list
- * @param {String} classId - 城市ID
- * @param {String} title - 群名称(搜索关键词)
- * @param {Object} bean - 分页排序参数
- */
- groupList: {
- url: '/city/group/list',
- method: 'GET',
- auth: false,
- showLoading: false
- },
-
- /**
- * 获取同城群详情
- * 对应后端: GET /group/queryById
- * @param {String} id - 群组ID
- */
- groupDetail: {
- url: '/city/group/queryById',
- method: 'GET',
- auth: false,
- showLoading: true,
- loadingTitle: '加载中...'
- },
-
- /**
- * 编辑同城群(新增或更新)
- * 对应后端: POST /group/saveOrUpdate
- * 需要登录token
- * @param {Object} group - 群组信息对象
- */
- groupSaveOrUpdate: {
- url: '/city/group/saveOrUpdate',
- method: 'POST',
- auth: true,
- limit: 1000,
- showLoading: true,
- loadingTitle: '保存中...'
- },
-
- /**
- * 删除同城群
- * 对应后端: DELETE /city/group/delete
- * 需要登录token
- * @param {String} id - 群组ID
- */
- groupDelete: {
- url: '/city/group/delete',
- method: 'DELETE',
- auth: true,
- limit: 1000,
- showLoading: true,
- loadingTitle: '删除中...'
- },
-
- /**
- * 获取我发布的同城群列表
- * 对应后端: GET /city/group/getMyPublishedList
- * 需要登录token
- * @param {Object} bean - 分页排序参数
- */
- getMyPublishedList: {
- url: '/city/group/getMyPublishedList',
- method: 'GET',
- auth: true,
- showLoading: false
- }
- }
-
- export default api
|