import apolloClient from "@/utils/graphql"; import gql from "graphql-tag"; //全部 export function getCourse(params) { return apolloClient.query({ query: gql` query vars( $staffId: Int! $types: [CourseType] $keyword: String $pageIn: PageIn ) { findCourse( staffId: $staffId types: $types keyword: $keyword pageIn: $pageIn ) { ls { id name courseType } pageOut { total index size } } } `, variables: params, }); } //停用 export function getDeletedItem(params) { return apolloClient.query({ query: gql` query vars( $staffId: Int! $itemType: ItemType! $keyword: String $pageIn: PageIn! ) { findDeletedItem( staffId: $staffId itemType: $itemType keyword: $keyword pageIn: $pageIn ) { ls { id name modifyTime } pageOut { total index size } } } `, variables: params, }); }