import request from "../../common/request"

export default class MenuService {
  save (inputForm) {
    return request({
      url: `/sys/menu/save`,
      method: 'post',
      data: inputForm
    })
  }

  delete (ids) {
    return request({
      url: '/sys/menu/delete',
      method: 'delete',
      params: {ids: ids}
    })
  }

  queryById (id) {
    return request({
      url: `/sys/menu/queryById`,
      method: 'get',
      params: {id: id}
    })
  }

  treeData (params) {
    return request({
      url: `/sys/menu/treeData`,
      method: 'get',
      params: params
    })
  }
}
