import { request } from '@eciol/request'; import { useUserStoreWithOut } from '@/store/modules/user'; import { ClientService } from './typing'; enum Api { GetClientList = '/api/ClientInfo/QueryPage', } /** * 客户管理列表 * @param data */ function getClientList(data: ClientService.GetClientListParams) { const { getCompanyId } = useUserStoreWithOut(); return request.post( { url: Api.GetClientList, data: { ...data, orgId: getCompanyId }, }, { showLoading: true, }, ); } export { getClientList }; export type { ClientService } from './typing';