import fetch from '@/api/fetch';

// 获取微信功能列表
export const fetchList = entity =>
  fetch({
    url: '/appFunction/appFunction4Page',
    method: 'post',
    data: entity,
  });

// 获取菜单授权用户列表
export const fetchAuthUserList = entity =>
  fetch({
    url: '/appFunction/appFunction4AuthorList',
    method: 'post',
    data: entity,
  });

// 更新授权用户
export const updateAuthList = entity =>
  fetch({
    url: '/appFunction/appFunction4Author',
    method: 'post',
    data: entity,
  });
