first commit
This commit is contained in:
32
金壶/appV1/utils/models/index.js
Normal file
32
金壶/appV1/utils/models/index.js
Normal file
@@ -0,0 +1,32 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user