You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
789 B
32 lines
789 B
3 years ago
|
/*
|
||
|
* @Author: ch
|
||
|
* @Date: 2022-05-04 18:24:03
|
||
|
* @LastEditors: ch
|
||
|
* @LastEditTime: 2022-05-04 22:42:08
|
||
|
* @Description: file content
|
||
|
*/
|
||
|
import {axiosTk} from "../axiosTk";
|
||
|
import { ToAsyncAwait } from "../utils";
|
||
|
|
||
|
|
||
|
const BASE_URL = '/mall/base';
|
||
|
/**
|
||
|
* 获取收货地址
|
||
|
*/
|
||
|
export const ApiGetAddress = () =>
|
||
|
ToAsyncAwait(axiosTk.get(`${BASE_URL}/receiveAddress`));
|
||
|
/**
|
||
|
* 新增收货地址
|
||
|
*/
|
||
|
export const ApiPostAddress = (data) =>
|
||
|
ToAsyncAwait(axiosTk.post(`${BASE_URL}/receiveAddress`, data));
|
||
|
/**
|
||
|
* 收货地址修改
|
||
|
*/
|
||
|
export const ApiPutAddress = (data) =>
|
||
|
ToAsyncAwait(axiosTk.put(`${BASE_URL}/receiveAddress`, data));
|
||
|
/**
|
||
|
* 收货删除
|
||
|
*/
|
||
|
export const ApiDeleteAddress = (data) =>
|
||
|
ToAsyncAwait(axiosTk.delete(`${BASE_URL}/receiveAddress?idList=${data.idList}`));
|