17 lines
351 B
TypeScript
17 lines
351 B
TypeScript
import { get } from '@/utils/request'
|
|
|
|
export interface ShopCascadeParams {
|
|
parent_id?: number
|
|
shop_name?: string
|
|
}
|
|
|
|
export interface ShopCascadeItem {
|
|
id: number
|
|
shop_name: string
|
|
has_children: boolean
|
|
}
|
|
|
|
export function getShopCascade(params?: ShopCascadeParams) {
|
|
return get<ShopCascadeItem[]>('/api/admin/shops/cascade', { params })
|
|
}
|