product:优化管理后台相关的接口

area:增加地区列表界面
This commit is contained in:
YunaiV
2022-12-23 18:47:59 +08:00
parent 92dde0b48b
commit 7a4a6a3046
31 changed files with 401 additions and 339 deletions

View File

@ -26,18 +26,10 @@ export function deleteSpu(id) {
})
}
// 获得商品spu
export function getSpu(id) {
return request({
url: '/product/spu/get?id=' + id,
method: 'get'
})
}
// 获得商品 SPU 详情
export function getSpuDetail(id) {
return request({
url: '/product/spu/get/detail?id=' + id,
url: '/product/spu/get-detail?id=' + id,
method: 'get'
})
}

View File

@ -0,0 +1,17 @@
import request from '@/utils/request'
// 获得地区树
export function getAreaTree() {
return request({
url: '/system/area/tree',
method: 'get'
})
}
// 获得 IP 对应的地区名
export function getAreaByIp(ip) {
return request({
url: '/system/area/get-by-ip?ip=' + ip,
method: 'get'
})
}