32 lines
707 B
JavaScript
32 lines
707 B
JavaScript
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)=>{
|
|
return request.post('/user/address/lists', data);
|
|
}
|
|
|
|
// 地址详情
|
|
export const addressDetailApi = (data)=>{
|
|
return request.post('/user/address/detail', data);
|
|
} |