33 lines
465 B
JavaScript
33 lines
465 B
JavaScript
import {http_use,http_post} from '../http.js'
|
|
import api from '../api'
|
|
|
|
class X_index {
|
|
|
|
async x_index() {
|
|
|
|
let res = await http_post(api.x_index, {
|
|
|
|
})
|
|
return res
|
|
}
|
|
async x_article(id){
|
|
|
|
let res = await http_post(api.x_article,{
|
|
|
|
})
|
|
return res
|
|
}
|
|
async x_activity(id,limit,page,loading = true){
|
|
|
|
let res = await http_post(api.x_activity,{
|
|
id,
|
|
limit,
|
|
page
|
|
},loading)
|
|
return res
|
|
}
|
|
}
|
|
|
|
export default new X_index
|
|
|