You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
316 B
JavaScript
26 lines
316 B
JavaScript
import http from './interface'
|
|
|
|
// 登录
|
|
export const login = (data) => {
|
|
return http.request({
|
|
url: '/api/user/login',
|
|
method: 'POST',
|
|
data
|
|
})
|
|
}
|
|
// 验证码
|
|
export const code = (data) => {
|
|
return http.request({
|
|
url: '/api/user/send',
|
|
method: 'POST',
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
export default {
|
|
login,
|
|
code
|
|
|
|
}
|