{"size": 835, "ext": "js", "max_stars_repo_path": "src/api/application/module.js", "max_stars_repo_name": "takaximina/dagl", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/application/module.js", "max_issues_repo_name": "takaximina/dagl", "max_issues_repo_issues_event_min_datetime": "2021-03-09T14:54:10.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-12T19:02:06.000Z", "max_forks_repo_path": "src/api/application/module.js", "max_forks_repo_name": "takaximina/dagl", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 16.0576923077, "max_line_length": 41, "alphanum_fraction": 0.5173652695}
import $http from '@/libs/axios'

/* 查询
 * @id APPid
 */
export const listAppPower = (data) => {
  return $http.request({
    api: 'user',
    url: '/app/listAppPower',
    data,
    method: 'post'
  })
};
/* 保存
 * @appId     APPid
 * @code      权限编码
 * @name      权限名称
 * @id        权限id
 * @parentId  权限父级id
 */
export const saveAppPower = (data) => {
  return $http.request({
    api: 'user',
    url: '/app/saveAppPower',
    data,
    method: 'post'
  })
};
/* 保存
 * @id        权限id
 */
export const deleteAppPower = (data) => {
  return $http.request({
    api: 'user',
    url: '/app/deleteAppPower',
    data,
    method: 'post'
  })
};
/* 排序
 * @id        权限id
 * @sort      排序
 */
export const powerSort = (data) => {
  return $http.request({
    api: 'user',
    url: '/app/power/sort',
    data,
    method: 'post'
  })
};
