1.新增游戏管理接口和菜单

2.创建对接第三方文档
This commit is contained in:
2026-04-22 18:44:55 +08:00
parent d3ee3faec4
commit 40277e677d
14 changed files with 1373 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
import request from '@/utils/http'
/**
* 游戏管理 API
*/
export default {
list(params: Record<string, unknown>) {
return request.get<Api.Common.ApiPage>({
url: '/core/dice/game/DiceGame/index',
params
})
},
read(id: number | string) {
return request.get<Api.Common.ApiData>({
url: '/core/dice/game/DiceGame/read?id=' + id
})
},
save(params: Record<string, unknown>) {
return request.post({
url: '/core/dice/game/DiceGame/save',
data: params
})
},
update(params: Record<string, unknown>) {
return request.put({
url: '/core/dice/game/DiceGame/update',
data: params
})
},
delete(params: Record<string, unknown>) {
return request.del({
url: '/core/dice/game/DiceGame/destroy',
data: params
})
}
}