import { get, post, del } from '/@/utils/request';
import { get as getRule } from '/@/utils/request_rule';
export default {
  getList: (data: any) => get('/policy/policy/list', data),
  del: (id: number) => del(`/policy/policy/delete?id=${id}`),
  add: (data: any) => post('/policy/policy/save', data),
  edit: (data: any) => post('/policy/policy/save', data),
  detail: (id: number) => get(`/policy/policy/detail?id=${id}`),
  saveParam: (data: object) => post('/policy/policy/saveParam', data),
  setStatus: (data: any) => post('/policy/policy/setStatus', data),
  log: {
    getList: (data: any) => getRule("/api/v1/logs/runs", data),
  }
} 