企获客基础班本接口方法等描述

This commit is contained in:
唐明明
2020-11-30 15:23:15 +08:00
parent 0dad32b021
commit f559da991e
20 changed files with 613 additions and 2 deletions

13
apis/interfaces/auth.js Normal file
View 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
View 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
})