w-vue-middle
Version:
统一公共服务组件
65 lines (61 loc) • 1.41 kB
JavaScript
/*
* @Author: Jason Liu
* @Date: 2023-08-15 09:19:12
* @Desc:
*/
const $axios = require("../axios").default
/**
* @descripttion: api监控列表-详情
* @return {*}
*/
export function apiCallDetail(params = {
apiCallRecordId: undefined, //监控记录ID,有记录ID话。另外两个参数不需要
apiPath: undefined, //API地址
requestId: undefined, //请求ID
}) {
return $axios({
url: `${$service.dataService}/api/call/detail`,
method: 'get',
params: params
})
}
/**
* @Author: Jason Liu
* @description: 获取API详情
*/
export function findApiById(params = {
apiId: undefined,
}) {
return $axios({
url: `${$service.dataService}/api/findApiById`,
method: 'get',
params: params
})
}
/**
* @Author: Jason Liu
* @description: 获取测试参数
*/
export function getTestParam(params = {
apiId: undefined,
arrangeApiId: undefined
}) {
return $axios({
url: `${$service.dataService}/getTestParam`,
method: 'get',
params: params
})
}
/**
* @Author: Jason Liu
* @description:获取Api测试内容
*/
export function getApiTestData(params = {
apiId: undefined,
}) {
return $axios({
url: `${$service.dataService}/api/getApiTestData`,
method: 'get',
params: params
})
}