企获客基础班本接口方法等描述
This commit is contained in:
13
apis/interfaces/auth.js
Normal file
13
apis/interfaces/auth.js
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
/*
|
||||
* 授权
|
||||
*/
|
||||
import {req} from "../request"
|
||||
|
||||
const authPhone = data => req({url: "auth/mini", method: "POST", data: data}) //登录
|
||||
const authInfo = data => req({url: "auth/mini/info", method: "POST", data: data}) //完善用户信息
|
||||
|
||||
export default({
|
||||
authPhone,
|
||||
authInfo
|
||||
})
|
||||
12
apis/interfaces/file.js
Normal file
12
apis/interfaces/file.js
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
/*
|
||||
* 公用接口
|
||||
*/
|
||||
|
||||
import {upload} from "../request"
|
||||
|
||||
const uploadImg = (imgPaht, data) => upload({url: "storage", key: "image", path: imgPaht, data: data}) //上传图片
|
||||
|
||||
export default({
|
||||
uploadImg
|
||||
})
|
||||
Reference in New Issue
Block a user