import request from '@/utils/request'
import qs from 'qs'

export const HttpReq = {
  // 后台管理接口列表
  backstageApi: {
    getLinkSrcList: function(params) {
      return request({
        url: 'word/getAll?' + qs.stringify(params, { indices: false }),
        method: 'get'
      })
    },
    updateLinkSrc: function(data) {
      return request({
        url: 'word/updateIfUp',
        method: 'post',
        data: data
      }).then((res) => {
        return res
      })
    },
    // 获取所有软件工具
    addLinkSrc: function(data) {
      return request({
        url: 'word/add',
        method: 'post',
        data: data
      }).then((res) => {
        return res
      })
    },
    api: null
  },
  // web端接口列表
  webClientApi: {
  }
}

