用户中心接口,商品接口

This commit is contained in:
唐明明
2022-01-06 16:53:44 +08:00
parent 53a6f0b149
commit 178fdb4b46
10 changed files with 132 additions and 179 deletions

View File

@@ -5,9 +5,7 @@
* moduleName: 订单
*/
import {
request
} from '../index'
import { request } from '../index'
export {

27
apis/interfaces/store.js Normal file
View File

@@ -0,0 +1,27 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 商城
*/
import { request } from '../index'
// 商城
const mall = () =>{
return request({
url: 'mall'
})
}
// 商品详情
const goods = (id) => {
return request({
url: 'mall/goods/' + id
})
}
export {
mall,
goods
}

19
apis/interfaces/user.js Normal file
View File

@@ -0,0 +1,19 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 用户
*/
import { request } from '../index'
// 用户
const info = () =>{
return request({
url: 'user/info'
})
}
export {
info
}