login.js 1.17 KB
import request from '@/utils/request'


export function doLogin (data) {
    return request({
        method: 'post',
        url: '/doLogin',
        data
    })
}

export function verifyCode () {
    return request({
        method: 'get',
        url: '/verifyCode',
    })
}
// 获取当前用户登录的信息
export function getCurrentUserInfo () {
    return request({
        method: 'get',
        url: '/getSysUserDo',
    })
}

// 忘记密码
export function forgetPassword (data) {
    return request({
        method: 'post',
        url: '/system/sysUser/forgetPassword',
        data
    })
}

// 入驻
export function settle (data) {
    return request({
        method: 'post',
        url: '/settle',
        data: data
    })
}

// 获取当前登录用户有权限的分店列表
export function getOrganizationUserList () {
    return request({
        url: '/getOrganizationUserList',
        method: 'get'
    })
}

// 重新设置当前登录用户信息
export function setOrganizationId (organizationId) {
    return request({
        url: '/setOrganizationId',
        method: 'get',
        params: {
            organizationId: organizationId
        }
    })
}