10 lines
345 B
TypeScript
10 lines
345 B
TypeScript
import { adminApi } from '@/api/client'
|
|||
|
|
import type { PageResult } from '@/types/common'
|
||
|
|
import type { Product } from '@/types/manager'
|
||
|
|
|
||
|
|
export const managerProductsApi = {
|
||
|
|
list(params: { page: number; size: number; keyword?: string }): Promise<PageResult<Product> | Product[]> {
|
||
|
|
return adminApi.get('/manager/products', { params })
|
||
|
|
}
|
||
|
|
}
|