需要开发 IM
This commit is contained in:
52
api/my-index.js
Normal file
52
api/my-index.js
Normal file
@@ -0,0 +1,52 @@
|
||||
import http from '@/utils/request'
|
||||
|
||||
/** 添加银行卡 */
|
||||
export const addUserAddress = data => {
|
||||
return http({
|
||||
url: '/api/service/userCard',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/** 修改银行卡 */
|
||||
export const updateUserAddress = data => {
|
||||
return http({
|
||||
url: '/api/service/userCard',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/** 获取用户银行卡列表 */
|
||||
export const getUserAddress = data => {
|
||||
return http({
|
||||
url: '/api/service/userCard/list',
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/** 删除银行卡 */
|
||||
export const deleteUserAddress = id => {
|
||||
return http({
|
||||
url: `/api/service/userCard/${id}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
/** 获取用户银行卡详情 */
|
||||
export const getUserAddressDetail = id => {
|
||||
return http({
|
||||
url: `/api/service/userCard/details/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/** 获取用户支付密码详细信息 */
|
||||
export const getUserPayPwd = () => {
|
||||
return http({
|
||||
url: '/api/service/userPassword/details',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user