import fetch from '@/api/fetch';

// 登录
export const login = entity =>
  fetch({
    url: '/login/manager/login.do',
    method: 'post',
    data: entity,
  });
// 登出
export const logout = () =>
  fetch({
    url: '/login/manager/appLoginOut',
    method: 'get',
  });
// 修改密码
export const changePwd = entity =>
  fetch({
    url: '/admin/admin4ResetPwd',
    method: 'post',
    data: { ...entity, type: 3 },
  });
