1 changed files with 23 additions and 0 deletions
@ -0,0 +1,23 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
const serviceTitle = '/auth' |
||||
|
//GET 传参需要用 params
|
||||
|
//POST 传参需要用 data
|
||||
|
|
||||
|
|
||||
|
// 艺术家登录
|
||||
|
export function login(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}/creatorLogin`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 艺术家登出
|
||||
|
export function logout(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}/creatorLogout`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
Loading…
Reference in new issue