30 lines
580 B
TypeScript
30 lines
580 B
TypeScript
import Axios from 'axios'
|
|
|
|
const host = "http://192.168.3.159"
|
|
|
|
const config = {}
|
|
export interface res<T> { code: number, msg: string, data: T }
|
|
export const login = Axios.create({
|
|
baseURL: host + ":9005",
|
|
...config
|
|
})
|
|
|
|
export const professionalquery = Axios.create({
|
|
baseURL: host + ":9001",
|
|
...config
|
|
})
|
|
|
|
export const schoolquery = Axios.create({
|
|
baseURL: host + ":9002",
|
|
...config
|
|
})
|
|
|
|
export const voluntary = Axios.create({
|
|
baseURL: host + ":9003",
|
|
...config
|
|
})
|
|
|
|
export const zixun = Axios.create({
|
|
baseURL: host + ":9007",
|
|
...config
|
|
}) |