text: import request from '@/utils/request'
  
  export function fetchList(query) {
    return request({
      url: '/vue-element-admin/relay/list',
      method: 'get',
      params: query
    })
  }
  
  export function fetchArticle(id) {
    return request({
      url: '/vue-element-admin/relay/detail',
      method: 'get',
      params: { id }
    })
  }
  
  export function fetchPv(pv) {
    return request({
      url: '/vue-element-admin/relay/pv',
      method: 'get',
      params: { pv }
    })
  }
  
  export function createArticle(data) {
    return request({
      url: '/vue-element-admin/relay/create',
      method: 'post',
      data
    })
  }
  
  export function updateArticle(data) {
    return request({
      url: '/vue-element-admin/relay/update',
      method: 'post',
      data
    })
  }
  