mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-12 19:02:49 +00:00
15 lines
354 B
TypeScript
15 lines
354 B
TypeScript
import request from '@/utils/request'
|
|
|
|
/**
|
|
* 支付
|
|
*/
|
|
export function pay(data : AnyObject) {
|
|
return request.post(`pay`, data, { showErrorMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 获取支付信息
|
|
*/
|
|
export function getPayInfo(tradeType : string, tradeId : number) {
|
|
return request.get(`pay/info/${tradeType}/${tradeId}`, {}, { showErrorMessage: true })
|
|
} |