{"size": 1939, "ext": "js", "max_stars_repo_path": "src/api/System/index.js", "max_stars_repo_name": "dgiot/dgiot-amis-dashboard", "max_stars_repo_stars_event_min_datetime": "2022-03-20T09:38:14.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-20T09:38:14.000Z", "max_issues_repo_path": "src/api/System/index.js", "max_issues_repo_name": "dgiot/dgiot-amis-dashboard", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/System/index.js", "max_forks_repo_name": "dgiot/dgiot-amis-dashboard", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.1583333333, "max_line_length": 58, "alphanum_fraction": 0.5611139763}
import request from '@/utils/request/request'
export async function Startdashboard(dashboardId, data) {
  return request({
    url: `dashboard?dashboardId=${dashboardId}`,
    method: 'post',
    data: data,
  })
}
export async function post_tree(params) {
  return request({
    url: 'tree',
    method: 'post',
    data: params,
  })
}

export function getNode() {
  return request({
    url: 'nodes',
    method: 'get',
    params: {},
  })
}

export function joinNode(action, node) {
  return request({
    url: 'cluster?action=' + action,
    method: 'post',
    data: {
      node: node,
    },
  })
}

export function Getapp(node, start, length) {
  return request({
    url: 'plugin',
    method: 'get',
    params: {
      node: node,
      start: start,
      length: length,
    },
  })
}

export function Getmodule(app) {
  return request({
    url: 'plugin/' + app,
    method: 'post',
    params: {
      Action: 'modules',
    },
  })
}

export function Getstart(app) {
  return request({
    url: 'plugin/' + app,
    method: 'post',
    params: {
      Action: 'start',
    },
  })
}

export function Getstop(app) {
  return request({
    url: 'plugin/' + app,
    method: 'post',
    params: {
      Action: 'stop',
    },
  })
}

export function GetReload(app) {
  return request({
    url: 'plugin/' + app,
    method: 'post',
    params: {
      Action: 'reload',
    },
  })
}

export function Compile(code) {
  return request({
    url: 'compile',
    method: 'post',
    data: {
      code: code,
    },
  })
}

export function subupadte(channelId, action) {
  return request({
    url: `control/channel`,
    method: 'post',
    params: {
      id: channelId,
      action: action,
    },
  })
}

/**
 * @api http://114.117.171.233/swagger/#/System/post_trace
 * @param params
 * @return {*}
 */
export function postTrace(params) {
  return request({
    url: `trace`,
    method: 'post',
    data: params,
  })
}
