对接接口

This commit is contained in:
wangxiaowei
2025-12-17 23:34:08 +08:00
parent 018a784a8c
commit df863a2f41
19 changed files with 792 additions and 389 deletions

24
src/api/bank.ts Normal file
View 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')
}