对接接口
This commit is contained in:
24
src/api/bank.ts
Normal file
24
src/api/bank.ts
Normal file
@ -0,0 +1,24 @@
|
||||
import { http } from '@/http/alova'
|
||||
import type { IAddBankCardParams } from '@/api/types/bank'
|
||||
|
||||
/**
|
||||
* 添加银行卡
|
||||
*/
|
||||
export function addBankCard(data: IAddBankCardParams) {
|
||||
return http.Post('/storeapi/user/addBank', data)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除银行卡
|
||||
*/
|
||||
export function deleteBankCard(id: number) {
|
||||
return http.Post('/storeapi/user/delBank', { id })
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取银行卡列表
|
||||
*/
|
||||
export function getBankCardList() {
|
||||
return http.Post<any>('/storeapi/user/checkBank')
|
||||
}
|
||||
Reference in New Issue
Block a user