24 lines
466 B
JavaScript
24 lines
466 B
JavaScript
import BaseServe from "./BaseServe";
|
|
|
|
export default class IndexServe extends BaseServe {
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
async home (data = {}, headers = {}) {
|
|
return await this.http.get({
|
|
url: this.config.urlList.index,
|
|
data: data,
|
|
headers: headers
|
|
})
|
|
}
|
|
|
|
async mechanism (data = {}, headers = {}) {
|
|
return await this.http.get({
|
|
url: this.config.urlList.mechanism,
|
|
data: data,
|
|
headers: headers
|
|
})
|
|
}
|
|
}
|