修复已知问题
This commit is contained in:
@@ -8,7 +8,7 @@ import { MODULES_API_URL } from '@/config/setting';
|
||||
*/
|
||||
export async function pageShopCount(params: ShopCountParam) {
|
||||
const res = await request.get<ApiResult<PageResult<ShopCount>>>(
|
||||
MODULES_API_URL + '/shop/shop-count/page',
|
||||
MODULES_API_URL + '/mall/shop-count/page',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -24,7 +24,7 @@ export async function pageShopCount(params: ShopCountParam) {
|
||||
*/
|
||||
export async function listShopCount(params?: ShopCountParam) {
|
||||
const res = await request.get<ApiResult<ShopCount[]>>(
|
||||
MODULES_API_URL + '/shop/shop-count',
|
||||
MODULES_API_URL + '/mall/shop-count',
|
||||
{
|
||||
params
|
||||
}
|
||||
@@ -40,7 +40,7 @@ export async function listShopCount(params?: ShopCountParam) {
|
||||
*/
|
||||
export async function addShopCount(data: ShopCount) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-count',
|
||||
MODULES_API_URL + '/mall/shop-count',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -54,7 +54,7 @@ export async function addShopCount(data: ShopCount) {
|
||||
*/
|
||||
export async function updateShopCount(data: ShopCount) {
|
||||
const res = await request.put<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-count',
|
||||
MODULES_API_URL + '/mall/shop-count',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
@@ -68,7 +68,7 @@ export async function updateShopCount(data: ShopCount) {
|
||||
*/
|
||||
export async function removeShopCount(id?: number) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-count/' + id
|
||||
MODULES_API_URL + '/mall/shop-count/' + id
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
@@ -81,7 +81,7 @@ export async function removeShopCount(id?: number) {
|
||||
*/
|
||||
export async function removeBatchShopCount(data: (number | undefined)[]) {
|
||||
const res = await request.delete<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-count/batch',
|
||||
MODULES_API_URL + '/mall/shop-count/batch',
|
||||
{
|
||||
data
|
||||
}
|
||||
@@ -97,7 +97,7 @@ export async function removeBatchShopCount(data: (number | undefined)[]) {
|
||||
*/
|
||||
export async function getShopCount(id: number) {
|
||||
const res = await request.get<ApiResult<ShopCount>>(
|
||||
MODULES_API_URL + '/shop/shop-count/' + id
|
||||
MODULES_API_URL + '/mall/shop-count/' + id
|
||||
);
|
||||
if (res.data.code === 0 && res.data.data) {
|
||||
return res.data.data;
|
||||
|
||||
Reference in New Issue
Block a user