fix: 回调配置, 调整信用位置, 套餐
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m55s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m55s
This commit is contained in:
@@ -8,12 +8,23 @@ import type {
|
||||
AgentRechargeQueryParams,
|
||||
AgentRechargeListResponse,
|
||||
CreateAgentRechargeRequest,
|
||||
AgentRechargePaymentMethods,
|
||||
AgentRechargePaymentStatusResponse,
|
||||
ConfirmOfflinePaymentRequest,
|
||||
RejectAgentRechargeRequest,
|
||||
BaseResponse
|
||||
} from '@/types/api'
|
||||
|
||||
export class AgentRechargeService extends BaseService {
|
||||
/**
|
||||
* 获取代理在线充值可用支付方式和金额限制
|
||||
*/
|
||||
static getPaymentMethods(): Promise<BaseResponse<AgentRechargePaymentMethods>> {
|
||||
return this.get<BaseResponse<AgentRechargePaymentMethods>>(
|
||||
'/api/admin/agent-recharges/payment-methods'
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取代理充值订单列表
|
||||
* @param params 查询参数
|
||||
@@ -32,6 +43,15 @@ export class AgentRechargeService extends BaseService {
|
||||
return this.getOne<AgentRecharge>(`/api/admin/agent-recharges/${id}`)
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询在线充值支付及钱包到账状态
|
||||
*/
|
||||
static getPaymentStatus(id: number): Promise<BaseResponse<AgentRechargePaymentStatusResponse>> {
|
||||
return this.getOne<AgentRechargePaymentStatusResponse>(
|
||||
`/api/admin/agent-recharges/${id}/payment-status`
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建代理充值订单
|
||||
* @param data 创建充值订单请求参数
|
||||
|
||||
Reference in New Issue
Block a user