12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { fetchApi, fetchApi_get as fetchApiGet } from '@/apis/'
- import { thanos } from '@/conf/config'
- // 新增策略
- export async function create (params) {
- const url = `${thanos}/thanos-admin/api/v1/dsl/create`
- return fetchApi(url, params)
- }
- // 测试策略
- export async function test (params) {
- const url = `${thanos}/thanos-admin//api/v1/dsl/test`
- return fetchApi(url, params)
- }
- // 获取策略详情
- export async function detail (params) {
- const url = `${thanos}/thanos-admin/api/v1/dsl/query`
- return fetchApiGet(url, params)
- }
- // 更新
- export async function update (params) {
- const url = `${thanos}/thanos-admin/api/v1/dsl/update`
- return fetchApi(url, params)
- }
- export async function delItem (params) {
- const url = `${thanos}/thanos-admin/api/v1/dsl/delete`
- return fetchApi(url, params)
- }
- // 查询所有分组
- export async function groupList (params) {
- const url = `${thanos}/thanos-admin/api/v1/group/list?_from=strategies`
- return fetchApi(url, params)
- }
- // 查询分组详情
- export async function groupDetail (params) {
- const url = `${thanos}/thanos-admin/api/v1/group/query?_from=strategies`
- return fetchApi(url, params)
- }
|