import { resultSuccess } from '../_util';

const pushObjectGroupInfo = [
  {
    userGroupId: 1,
    name: '测试1',
    total: 20,
    userList: [
      {
        id: 33,
        realname: 'test111',
        username: '3133',
      },
      {
        id: 34,
        realname: 'test222',
        username: '3134',
      },
      {
        id: 35,
        realname: 'test333',
        username: '3135',
      },
      {
        id: 36,
        realname: 'test444',
        username: '3136',
      },
      {
        id: 37,
        realname: 'test555',
        username: '3137',
      },
      {
        id: 38,
        realname: 'test666',
        username: '3138',
      },
      {
        id: 39,
        realname: 'test777',
        username: '3139',
      },
      {
        id: 40,
        realname: 'test888',
        username: '3140',
      },
      {
        id: 41,
        realname: 'test999',
        username: '3141',
      },
      {
        id: 42,
        realname: 'test1000',
        username: '3142',
      },
      {
        id: 33,
        realname: 'test111',
        username: '3133',
      },
      {
        id: 34,
        realname: 'test222',
        username: '3134',
      },
      {
        id: 35,
        realname: 'test333',
        username: '3135',
      },
      {
        id: 36,
        realname: 'test444',
        username: '3136',
      },
      {
        id: 37,
        realname: 'test555',
        username: '3137',
      },
      {
        id: 38,
        realname: 'test666',
        username: '3138',
      },
      {
        id: 39,
        realname: 'test777',
        username: '3139',
      },
      {
        id: 40,
        realname: 'test888',
        username: '3140',
      },
      {
        id: 41,
        realname: 'test999',
        username: '3141',
      },
      {
        id: 42,
        realname: 'test1000',
        username: '3142',
      },
    ],
  },
  {
    userGroupId: 2,
    name: '测试2',
    total: 3,
    userList: [
      {
        id: 43,
        realname: 'test111',
        username: '3143',
      },
      {
        id: 44,
        realname: 'test222',
        username: '3144',
      },
      {
        id: 45,
        realname: 'test333',
        username: '3145',
      },
    ],
  },
];

const pushObjectUserInfo = [
  {
    id: 1,
    realname: 'test111',
    username: '3133',
  },
  {
    id: 2,
    realname: 'test222',
    username: '3134',
  },
  {
    id: 3,
    realname: 'test333',
    username: '3135',
  },
  {
    id: 4,
    realname: 'test444',
    username: '3136',
  },
];

export default [
  {
    url: '/eye_api_bak/api/userGroup/queryUserGroupDetailByIds',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(pushObjectGroupInfo);
    },
  },
  {
    url: '/eye_api_bak/api/user/queryAvailableUserList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(pushObjectUserInfo);
    },
  },
];
