项目初始化
This commit is contained in:
21
sheep/api/migration/app.js
Normal file
21
sheep/api/migration/app.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import request from '@/sheep/request';
|
||||
|
||||
// TODO 芋艿:小程序直播还不支持
|
||||
export default {
|
||||
//小程序直播
|
||||
mplive: {
|
||||
getRoomList: (ids) =>
|
||||
request({
|
||||
url: 'app/mplive/getRoomList',
|
||||
method: 'GET',
|
||||
params: {
|
||||
ids: ids.join(','),
|
||||
}
|
||||
}),
|
||||
getMpLink: () =>
|
||||
request({
|
||||
url: 'app/mplive/getMpLink',
|
||||
method: 'GET'
|
||||
}),
|
||||
},
|
||||
};
|
10
sheep/api/migration/index.js
Normal file
10
sheep/api/migration/index.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const files = import.meta.glob('./*.js', { eager: true });
|
||||
let api = {};
|
||||
Object.keys(files).forEach((key) => {
|
||||
api = {
|
||||
...api,
|
||||
[key.replace(/(.*\/)*([^.]+).*/gi, '$2')]: files[key].default,
|
||||
};
|
||||
});
|
||||
|
||||
export default api;
|
18
sheep/api/migration/third.js
Normal file
18
sheep/api/migration/third.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import request from '@/sheep/request';
|
||||
|
||||
export default {
|
||||
// 苹果相关
|
||||
apple: {
|
||||
// 第三方登录
|
||||
login: (data) =>
|
||||
request({
|
||||
url: 'third/apple/login',
|
||||
method: 'POST',
|
||||
data,
|
||||
custom: {
|
||||
showSuccess: true,
|
||||
loadingMsg: '登陆中',
|
||||
},
|
||||
}),
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user