Blame view

src/api/jkfw.js 844 Bytes
蔡俊立 committed
1
import request from '@/utils/request'
2
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
蔡俊立 committed
3 4

// 新增平台接口
5 6 7 8 9 10 11 12
export function addSysInterface (data) {
  return request({
    url: SERVER.SERVERAPI + "/rest/system/ptjk/addSysInterface",
    method: 'post',
    data
  })
}

蔡俊立 committed
13
// 编辑平台接口
14 15 16 17 18 19 20
export function editSysInterface (data) {
  return request({
    url: SERVER.SERVERAPI + "/rest/system/ptjk/editSysInterface",
    method: 'post',
    data
  })
}
蔡俊立 committed
21
// 接口调取
22 23 24 25 26 27 28
export function interfaceRetrieve (data) {
  return request({
    url: SERVER.SERVERAPI + "/rest/system/ptjk/interfaceRetrieve",
    method: 'post',
    data
  })
}
蔡俊立 committed
29 30

// 获取平台接口列表
31
export function getSysInterfaceList (data) {
蔡俊立 committed
32
  return request({
33
    url: SERVER.SERVERAPI + "/rest/system/ptjk/getSysInterfaceList",
蔡俊立 committed
34 35 36 37 38
    method: 'post',
    data
  })
}