import api from '../index'

export default {
  tree: (data?: { keyword?: string }) => api.get('magic-api/sys/menu/tree', { params: data }),

  save: (data: any) => api.post('magic-api/sys/menu/save', data),

  delete: (id: number) => api.post('magic-api/sys/menu/delete', { id }),
}
