mirror of
https://gitee.com/bootx/dax-pay-h5
synced 2026-08-11 23:25:34 +08:00
refactor(gateway): API 前缀 /client/gateway 改为 /unipay/gateway
对齐后端 H5 公开面路径迁移。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -57,7 +57,7 @@ export interface CashierItemPublic {
|
||||
/** 查询网关订单 */
|
||||
export function getGatewayOrder(orderNo: string): Promise<GatewayOrderInfo> {
|
||||
return http.request<GatewayOrderInfo>({
|
||||
url: '/client/gateway/order',
|
||||
url: '/unipay/gateway/order',
|
||||
method: RequestEnum.GET,
|
||||
params: { orderNo },
|
||||
}, {
|
||||
@@ -78,7 +78,7 @@ export function getAggregateMeta(params: {
|
||||
runtime?: string
|
||||
}): Promise<AggregatePayMeta> {
|
||||
return http.request<AggregatePayMeta>({
|
||||
url: '/client/gateway/aggregate/meta',
|
||||
url: '/unipay/gateway/aggregate/meta',
|
||||
method: RequestEnum.GET,
|
||||
params,
|
||||
}, {
|
||||
@@ -96,7 +96,7 @@ export function aggregatePay(data: {
|
||||
clientIp?: string
|
||||
}): Promise<AggregatePayResult> {
|
||||
return http.request<AggregatePayResult>({
|
||||
url: '/client/gateway/aggregate/pay',
|
||||
url: '/unipay/gateway/aggregate/pay',
|
||||
method: RequestEnum.POST,
|
||||
data,
|
||||
}, {
|
||||
@@ -116,7 +116,7 @@ export function generateGatewayAuthUrl(data: {
|
||||
returnPath: string
|
||||
}): Promise<GatewayAuthUrlResult> {
|
||||
return http.request<GatewayAuthUrlResult>({
|
||||
url: '/client/gateway/auth/generate-url',
|
||||
url: '/unipay/gateway/auth/generate-url',
|
||||
method: RequestEnum.POST,
|
||||
data,
|
||||
}, {
|
||||
@@ -131,7 +131,7 @@ export function listCashierItems(params: {
|
||||
clientEnv?: string
|
||||
}): Promise<CashierItemPublic[]> {
|
||||
return http.request<CashierItemPublic[]>({
|
||||
url: '/client/gateway/cashier/items',
|
||||
url: '/unipay/gateway/cashier/items',
|
||||
method: RequestEnum.GET,
|
||||
params,
|
||||
}, {
|
||||
@@ -156,7 +156,7 @@ export function cashierPay(data: {
|
||||
clientIp?: string
|
||||
}): Promise<AggregatePayResult> {
|
||||
return http.request<AggregatePayResult>({
|
||||
url: '/client/gateway/cashier/pay',
|
||||
url: '/unipay/gateway/cashier/pay',
|
||||
method: RequestEnum.POST,
|
||||
data: {
|
||||
...data,
|
||||
|
||||
Reference in New Issue
Block a user