This commit is contained in:
张成
2025-10-10 00:37:30 +08:00
parent b39b206c4c
commit 81aa1d49fd
6 changed files with 58 additions and 439 deletions

View File

@@ -1,6 +1,5 @@
export default {
const gameCommentsServer = {
// 获取球局评论列表
getGameCommentsList: (params) => {
return window.framework.http.post('/game_comments/page', params)
@@ -50,4 +49,14 @@ export default {
getCommentReplies: (params) => {
return window.framework.http.get('/game_comments/replies', params)
}
}
}
// 添加简写方法名别名,保持向后兼容
gameCommentsServer.page = gameCommentsServer.getGameCommentsList
gameCommentsServer.all = gameCommentsServer.getAllGameComments
gameCommentsServer.add = gameCommentsServer.addGameComment
gameCommentsServer.edit = gameCommentsServer.updateGameComment
gameCommentsServer.del = gameCommentsServer.deleteGameComment
gameCommentsServer.exportCsv = gameCommentsServer.exportGameComments
export default gameCommentsServer