36 lines
608 B
JavaScript
36 lines
608 B
JavaScript
import {
|
|
http_use,
|
|
http_post
|
|
} from '../http.js'
|
|
class service {
|
|
//更新用户信息
|
|
async getList(parames) {
|
|
let res = await http_post('/service/getList', parames)
|
|
return res
|
|
}
|
|
|
|
async getInfo(id) {
|
|
let res = await http_post('/service/getInfo', {
|
|
id
|
|
})
|
|
return res
|
|
}
|
|
|
|
async add(parames) {
|
|
let res = await http_post("/service/add",parames)
|
|
return res
|
|
}
|
|
|
|
async express(parames) {
|
|
let res = await http_post("/service/express",parames)
|
|
return res
|
|
}
|
|
|
|
async cancel(parames) {
|
|
let res = await http_post("/service/cancel",parames)
|
|
return res
|
|
}
|
|
|
|
}
|
|
export default new service
|