purchase-let/api/user.js

32 lines
705 B
JavaScript
Raw Normal View History

2024-04-28 18:08:57 +08:00
import request from '@/utils/request';
// 密码登录
export const userLoginApi = (data)=>{
return request.post('/login/account', data);
}
// 添加地址
export const addressCreateApi = (data)=>{
return request.post('/user/address/create', data);
}
// 修改地址
export const addressEditApi = (data)=>{
return request.post('/user/address/edit', data);
}
// 删除地址
export const addressDeleteApi = (data)=>{
return request.post('/user/address/delete', data);
}
// 地址列表
export const addressListsApi = (data)=>{
2024-04-29 10:44:50 +08:00
return request.get('/user/address/lists', data);
2024-04-28 18:08:57 +08:00
}
// 地址详情
export const addressDetailApi = (data)=>{
2024-04-29 10:44:50 +08:00
return request.get('/user/address/detail', data);
2024-04-28 18:08:57 +08:00
}