mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 05:33:48 +08:00
41 lines
795 B
JavaScript
41 lines
795 B
JavaScript
/*
|
||
* 登录
|
||
*
|
||
* @Author: 1024创新实验室-主任:卓大
|
||
* @Date: 2022-09-03 21:59:58
|
||
* @Wechat: zhuda1024
|
||
* @Email: lab1024@163.com
|
||
* @Copyright 1024创新实验室 ( https://1024lab.net ),Since 2012
|
||
*/
|
||
import { getRequest, postRequest } from '@/lib/smart-request';
|
||
|
||
export const loginApi = {
|
||
/**
|
||
* 登录 @author 卓大
|
||
*/
|
||
login: (param) => {
|
||
return postRequest('/login', param);
|
||
},
|
||
|
||
/**
|
||
* 退出登录 @author 卓大
|
||
*/
|
||
logout: () => {
|
||
return getRequest('/login/logout');
|
||
},
|
||
|
||
/**
|
||
* 获取验证码 @author 卓大
|
||
*/
|
||
getCaptcha: () => {
|
||
return getRequest('/login/getCaptcha');
|
||
},
|
||
|
||
/**
|
||
* 获取登录信息 @author 卓大
|
||
*/
|
||
getLoginInfo: () => {
|
||
return getRequest('/login/getLoginInfo');
|
||
},
|
||
};
|