24 lines
490 B
TypeScript
24 lines
490 B
TypeScript
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')
|
|
} |