1
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user