53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
import Http from "../http/index";
|
|
import config from "../config/index"
|
|
|
|
export default class userService {
|
|
async login (data = {}, headers = {}) {
|
|
return await (new Http()).post({
|
|
url: config.apiList.login,
|
|
data: data,
|
|
headers: headers
|
|
})
|
|
}
|
|
|
|
async add (data = {}, headers = {}) {
|
|
return await (new Http()).post({
|
|
url: config.apiList.add,
|
|
data: data,
|
|
headers: headers
|
|
})
|
|
}
|
|
|
|
async history (data = {}, headers = {}) {
|
|
return await (new Http()).post({
|
|
url: config.apiList.history,
|
|
data: data,
|
|
headers: headers
|
|
})
|
|
}
|
|
|
|
async changeStatus (data = {}, headers = {}) {
|
|
return await (new Http()).post({
|
|
url: config.apiList.changeStatus,
|
|
data: data,
|
|
headers: headers
|
|
})
|
|
}
|
|
|
|
async Statistics (data = {}, headers = {}) {
|
|
return await (new Http()).post({
|
|
url: config.apiList.Statistics,
|
|
data: data,
|
|
headers: headers
|
|
})
|
|
}
|
|
|
|
async edit (data = {}, headers = {}) {
|
|
return await (new Http()).post({
|
|
url: config.apiList.edit,
|
|
data: data,
|
|
headers: headers
|
|
})
|
|
}
|
|
|
|
} |