import { adminApi } from '@/api/client' import type { IdType, UserInfo } from '@/types/common' import type { CustomerCreateRequest, CustomerPage } from '@/types/manager' export interface CustomerListParams { page: number size: number keyword?: string hasOrder?: boolean } export const managerCustomersApi = { list(params: CustomerListParams): Promise { return adminApi.get('/manager/customers', { params }) }, detail(id: IdType): Promise { return adminApi.get(`/manager/customers/${id}`) }, create(data: CustomerCreateRequest): Promise { return adminApi.post('/manager/customers', data) } }