优化店铺商品及分类管理
This commit is contained in:
@@ -3,8 +3,10 @@ import type { ApiResult, PageResult } from '@/api';
|
||||
import type { Goods, GoodsParam } from './model';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
export async function getCount() {
|
||||
const res = await request.get(MODULES_API_URL + '/shop/goods/data');
|
||||
export async function getCount(params: GoodsParam) {
|
||||
const res = await request.get(MODULES_API_URL + '/shop/goods/data', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user