interfaceMethod.js 1.23 KB
import { post, del } from '../../utils/http'
// 获取接口方法列表
export function getInterfaceList(params) {
  return post('/workflow/event/interface/list', params)
}
// 新增接口
export function addInterface(params) {
  return post('/workflow/event/interface', params)
}
// 编辑接口
export function editInterface(params) {
  return post('/workflow/event/interface', params)
}
// 删除接口
export function delInterface(params) {
  return del(`/workflow/event/interface/${params}`)
}
// 获取实现类
export function getImplements(params) {
  return post('/workflow/event/interface/find/implements', params)
}
// 获取实现类的方法
export function getImplementMethod(params) {
  return post('/workflow/event/interface/find/all/methods', params)
}
// 查询接口方法列表
export function getMethod(params) {
  return post('/workflow/event/interface/list/method', params)
}
// 新增方法
export function addMethod(params) {
  return post('/workflow/event/interface/add/method', params)
}
// 编辑方法
export function editMethod(params) {
  return post('/workflow/event/interface/modify/method', params)
}
// 删除方法
export function delMethod(params) {
  return post('/workflow/event/interface/delete/method', params)
}