{"size": 708, "ext": "js", "max_stars_repo_path": "src/api/service_transaction.js", "max_stars_repo_name": "marccorpus/visa-system-frontend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/service_transaction.js", "max_issues_repo_name": "marccorpus/visa-system-frontend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/service_transaction.js", "max_forks_repo_name": "marccorpus/visa-system-frontend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.7, "max_line_length": 52, "alphanum_fraction": 0.6313559322}
import request from "@/utils/request";

export function transactionServices(id) {
  return request({
    url: `/service_transactions/transactions/${id}`,
    method: "get"
  });
}

export function update(data, id) {
  return request({
    url: `/service_transactions/${id}`,
    method: "patch",
    data
  });
}

export function batchUpdate(data) {
  return request({
    url: `/service_transactions/batch`,
    method: "patch",
    data
  });
}

export function destroy(data, id) {
  return request({
    url: `/service_transactions/${id}`,
    method: "delete",
    data
  });
}

export function restore(id) {
  return request({
    url: `/service_transactions/${id}/restore`,
    method: "patch"
  });
}
