Files
henan-backend/ruoyi-ui/src/api/game/olympus/rewardPool/api.js
T
2026-09-21 19:21:35 +08:00

27 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import request from '@/utils/request'
// 奖池配置快照(总池 + 各箱子池),按身份 audience=common/anchor/robot/white
export function getPoolConfig(params) {
return request({ url: '/admin/olympus/rewardPool/config', method: 'get', params })
}
// 逐箱注水/抽水(type=1 注水 / 2 抽水,含 audience、remark)
export function adjustPool(data) {
return request({ url: '/admin/olympus/rewardPool/adjust', method: 'post', data })
}
// 批量按一轮花费比例注水/抽水:{ audience, type, ratio, remark },每箱金额=一轮总花费(底注×模式倍数×总回合数)×ratio%
export function adjustPoolBatch(data) {
return request({ url: '/admin/olympus/rewardPool/adjustBatch', method: 'post', data })
}
// 重置人工调整:该身份所有箱子注水/抽水累计归零,只保留真实水位(下注−返奖):{ audience, remark }
export function adjustPoolReset(data) {
return request({ url: '/admin/olympus/rewardPool/adjustReset', method: 'post', data })
}
// 奖池调整历史(分页,params 含 audience)
export function getPoolLogs(params) {
return request({ url: '/admin/olympus/rewardPool/adjustLog', method: 'get', params })
}