{"size": 533, "ext": "js", "max_stars_repo_path": "modules/00_Admin/Admin.UI/src/api/role.js", "max_stars_repo_name": "HmmmWoo/Mkh", "max_stars_repo_stars_event_min_datetime": "2021-07-26T01:19:39.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-26T01:19:39.000Z", "max_issues_repo_path": "modules/00_Admin/Admin.UI/src/api/role.js", "max_issues_repo_name": "HmmmWoo/Mkh", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "modules/00_Admin/Admin.UI/src/api/role.js", "max_forks_repo_name": "HmmmWoo/Mkh", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.0357142857, "max_line_length": 52, "alphanum_fraction": 0.6454033771}
const urls = {
  QUERY_BIND_MENUS: 'Role/QueryBindMenus',
  UPDATE_BIND_MENUS: 'Role/UpdateBindMenus',
  SELECT: 'Role/Select',
}
export default http => {
  /** 查询角色绑定的菜单信息 */
  const queryBindMenus = params => {
    return http.get(urls.QUERY_BIND_MENUS, params)
  }

  /** 更新角色绑定的菜单信息 */
  const updateBindMenus = params => {
    return http.post(urls.UPDATE_BIND_MENUS, params)
  }

  /** 下拉列表 */
  const select = () => {
    return http.get(urls.SELECT)
  }

  return {
    queryBindMenus,
    updateBindMenus,
    select,
  }
}
