import { httpProvider } from './http' ; export class SearchProvider { static async searchArticles ( keyword ) { return httpProvider . get ( '/search/article' , { params : { keyword } , } ) ; } static getRecords ( params ) { return httpProvider . get ( '/search' , { params } ) ; } static deleteRecord ( id ) { return httpProvider . delete ( '/search/' + id ) ; } }