// 系统权限-菜单管理-贾增超
import http from '@/apis/axios'
const api = 'admin/menu/'

const actionAPI = 'admin/action/'
export default {
  // 分页查询
  list: (data, params) => http(api + 'query', data, 'post', params),
  create: (data, params) => http(api + 'create', data, 'post', params),
  // 菜单删除
  menudel: (data, params) => http(api + 'delete', data, 'post', params),
  // 更新
  update: (data, params) => http(api + 'edit', data, 'post', params),
  // 菜单状态
  menustatus: (data, params) => http(api + 'status', data, 'post', params),

  // 按钮
  // 添加
  actionadd: (data, params) => http(actionAPI + 'menuactioncreate', data, 'post', params),
  // 列表
  actionList: (data, params) => http(actionAPI + 'menuaction', data, 'post', params),
  // 更新
  actionedit: (data, params) => http(actionAPI + 'edit', data, 'post', params),
  // 状态
  actionstatus: (data, params) => http(actionAPI + 'status', data, 'post', params),
  // 删除
  actiondel: (data, params) => http(actionAPI + 'menuactiondel', data, 'post', params),

  actionQuery:(data,params) => http(actionAPI + "query",data,'post',params)
}
