This commit is contained in:
2023-12-18 09:42:27 +08:00
commit fdaf4f84aa
817 changed files with 229866 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import Mock from 'mockjs'
// 登录
export function login () {
return {
// isOpen: false,
url: '/sys/login',
type: 'post',
data: {
'msg': 'success',
'code': 0,
'expire': Mock.Random.natural(60 * 60 * 1, 60 * 60 * 12),
'token': Mock.Random.string('abcdefghijklmnopqrstuvwxyz0123456789', 32)
}
}
}
// 退出
export function logout () {
return {
// isOpen: false,
url: '/sys/logout',
type: 'post',
data: {
'msg': 'success',
'code': 0
}
}
}