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