You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-app/common/api/index.js

30 lines
627 B

3 years ago
/*
* @Author: ch
* @Date: 2022-03-17 16:37:45
* @LastEditors: ch
* @LastEditTime: 2022-03-28 18:09:39
3 years ago
* @Description: file content
*/
import {Request, ToAsyncAwait} from '@/common/utils';
/**
* 获取测试信息
* @param {*} params
*/
const ApiGetBannerData = (params) =>
3 years ago
ToAsyncAwait(Request.get('/edu-course/carousel/app',params));
const ApiPostLogin = (data) => ToAsyncAwait(Request.post('/user/login', data));
const ApiGetCode = (params) => ToAsyncAwait(Request.get('/user/login/verificationCode', params));
export {
ApiGetBannerData,
// 登录
ApiPostLogin,
// 获取短信验证码
ApiGetCode
}
3 years ago