From 23d80c1b64f23ede237ab8e89ebc2ee2aaf43f26 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 19 七月 2023 19:32:10 +0800 Subject: [PATCH] 销售模块接口联调 --- src/api/common/address.js | 30 ++++++++++++++++++------------ 1 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/api/common/address.js b/src/api/common/address.js index f61d263..12ecb36 100644 --- a/src/api/common/address.js +++ b/src/api/common/address.js @@ -8,10 +8,11 @@ }) } // 娣诲姞鍥藉 -export function getAddCountry() { +export function getAddCountry(data) { return request({ url: "/api/country/add", - method: "post" + method: "post", + data }) } // 鍒犻櫎鍥藉 @@ -23,17 +24,19 @@ }) } // 璁剧疆鍥藉 -export function getSetCountry() { +export function getSetCountry(data) { return request({ url: "/api/country/set", - method: "put" + method: "put", + data }) } // 鏇存柊鍥藉 -export function getUpdateCountry() { +export function getUpdateCountry(data) { return request({ url: "/api/country/update", - method: "put" + method: "put", + data }) } @@ -45,10 +48,11 @@ }) } // 娣诲姞鐪佷唤 -export function getAddProvince() { +export function getAddProvince(data) { return request({ url: "/api/province/add", - method: "post" + method: "post", + data }) } // 鍒犻櫎鐪佷唤 @@ -60,16 +64,18 @@ }) } // 璁剧疆鐪佷唤 -export function getSetProvince() { +export function getSetProvince(data) { return request({ url: "/api/province/set", - method: "put" + method: "put", + data }) } // 鏇存柊鐪佷唤 -export function getUpdateProvince() { +export function getUpdateProvince(data) { return request({ url: "/api/province/update", - method: "put" + method: "put", + data }) } -- Gitblit v1.8.0