{"size": 562, "ext": "js", "max_stars_repo_path": "vue-element-admin/src/api/dept.js", "max_stars_repo_name": "emacle/vue-php-admin", "max_stars_repo_stars_event_min_datetime": "2019-04-18T09:44:26.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-23T08:42:20.000Z", "max_issues_repo_path": "vue-element-admin/src/api/dept.js", "max_issues_repo_name": "emacle/vue-php-admin", "max_issues_repo_issues_event_min_datetime": "2020-05-18T09:48:38.000Z", "max_issues_repo_issues_event_max_datetime": "2020-06-30T01:33:46.000Z", "max_forks_repo_path": "vue-element-admin/src/api/dept.js", "max_forks_repo_name": "emacle/vue-php-admin", "max_forks_repo_forks_event_min_datetime": "2019-06-24T10:27:19.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-15T08:37:51.000Z"}
{"max_stars_count": 62, "max_issues_count": 4, "max_forks_count": 9, "avg_line_length": 15.1891891892, "max_line_length": 37, "alphanum_fraction": 0.5978647687}
import request from '@/utils/request'

// 操作：列出机构
export function getDeptList(form) {
  return request({
    url: '/sys/dept/depts',
    method: 'get',
    data: form
  })
}

// 添加按钮
export function createDept(form) {
  return request({
    url: '/sys/dept/depts',
    method: 'post',
    data: form
  })
}

// 编辑按钮
export function updateDept(form) {
  return request({
    url: '/sys/dept/depts',
    method: 'put',
    data: form
  })
}

// 删除按钮
export function deleteDept(id) {
  return request({
    url: `/sys/dept/depts/${id}`,
    method: 'delete'
  })
}
