代码更新
This commit is contained in:
30
api/shop.js
Normal file
30
api/shop.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import http from '@/http/http.js'
|
||||
const request = http.request
|
||||
|
||||
/**
|
||||
* 获取店铺详情
|
||||
* @returns
|
||||
*/
|
||||
export function getShopInfo(data, urlType = 'account') {
|
||||
return request({
|
||||
url: `${urlType}/admin/shopInfo/detail`,
|
||||
method: "GET",
|
||||
data: {
|
||||
...data
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改店铺详情
|
||||
* @returns
|
||||
*/
|
||||
export function editShopInfo(data, urlType = 'account') {
|
||||
return request({
|
||||
url: `${urlType}/admin/shopInfo`,
|
||||
method: "PUT",
|
||||
data: {
|
||||
...data
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user