You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
701 B
23 lines
701 B
// 统一请求路径前缀在libs/axios.js中修改
|
|
import { getProxyRequest } from '@/libs/axios';
|
|
|
|
// proxy
|
|
export const proxy = 'http://admin.hiver.cc:18090';
|
|
|
|
export const hello = () => {
|
|
return getProxyRequest(`${proxy}/Iot/Hello`)
|
|
}
|
|
|
|
export const getIotRange = (ip, port, i) => {
|
|
i = i - 1;
|
|
return getProxyRequest(`${proxy}/Iot/GetIotRange?ip=${ip}&port={$port}&i=${i}`)
|
|
}
|
|
|
|
export const setIotRange = (ip, port, i, code) => {
|
|
i = i - 1;
|
|
return getProxyRequest(`${proxy}/Iot/SetIotRange?ip=${ip}&port=${port}&i=${i}&code=${code}`)
|
|
}
|
|
|
|
export const getIotValue = (ip, port, code) => {
|
|
return getProxyRequest(`${proxy}/Iot/GetIotValue?ip=${ip}&port=${port}&code=${code}`)
|
|
}
|
|
|