|
@@ -71,7 +71,7 @@ function commonParams() {
|
|
|
// chart
|
|
|
export async function queryPropertyData(params: any, options?: { [key: string]: any }) {
|
|
|
return request<API.DeviceTimeType>(
|
|
|
- `/sgadmin/duoduo-service/duoduoenv-service/spaceAdjust/queryPropertyData?${commonParams()}`,
|
|
|
+ `/sgadmin/duoduo-service/duoduoenv-service/spaceAdjust/queryPropertyData`,
|
|
|
{
|
|
|
method: 'GET',
|
|
|
params: params,
|
|
@@ -82,9 +82,7 @@ export async function queryPropertyData(params: any, options?: { [key: string]:
|
|
|
export async function queryEnvironmentParam(body: any, otherParam: { [key: string]: any }) {
|
|
|
//api/duoduo-service/object-service/object/floor/queryParam
|
|
|
return request<API.EnvironmentParam>(
|
|
|
- `/sgadmin/duoduo-service/object-service/object/floor/queryParam?endTime=${
|
|
|
- otherParam.endTime
|
|
|
- }&startTime=${otherParam.startTime}¶m=${otherParam.param}&${commonParams()}`,
|
|
|
+ `/sgadmin/duoduo-service/object-service/object/floor/queryParam?endTime=${otherParam.endTime}&startTime=${otherParam.startTime}¶m=${otherParam.param}`,
|
|
|
{
|
|
|
method: 'POST',
|
|
|
headers: {
|
|
@@ -98,7 +96,7 @@ export async function queryEnvironmentParam(body: any, otherParam: { [key: strin
|
|
|
export async function queryEquipStatistics(params: any, options?: { [key: string]: any }) {
|
|
|
//
|
|
|
return request<API.EnvironmentParam>(
|
|
|
- `/sgadmin/duoduo-service/object-service/object/equipment/queryEquipStatistics?${commonParams()}`,
|
|
|
+ `/sgadmin/duoduo-service/object-service/object/equipment/queryEquipStatistics`,
|
|
|
{
|
|
|
method: 'GET',
|
|
|
headers: {
|
|
@@ -128,21 +126,18 @@ export async function querySpace(body: any, options?: { [key: string]: any }) {
|
|
|
}
|
|
|
|
|
|
export async function checkToken(header: any, options?: { [key: string]: any }) {
|
|
|
- return request<API.EnvironmentParam>(
|
|
|
- `/sgadmin/duoduo-service/setup-service/user/zjCheckToken?${commonParams()}`,
|
|
|
- {
|
|
|
- method: 'GET',
|
|
|
- headers: {
|
|
|
- 'Content-Type': 'application/json',
|
|
|
- ...header,
|
|
|
- },
|
|
|
- ...(options || {}),
|
|
|
+ return request<API.EnvironmentParam>(`/sgadmin/duoduo-service/setup-service/user/zjCheckToken`, {
|
|
|
+ method: 'GET',
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/json',
|
|
|
+ ...header,
|
|
|
},
|
|
|
- );
|
|
|
+ ...(options || {}),
|
|
|
+ });
|
|
|
}
|
|
|
//http://10.100.28.79/sgadmin/sso//auth/zjFreshCheckToken
|
|
|
export async function reFreshCheckToken(header: any, options?: { [key: string]: any }) {
|
|
|
- return request<API.EnvironmentParam>(`/sgadmin/sso/auth/zjFreshCheckToken?${commonParams()}`, {
|
|
|
+ return request<API.EnvironmentParam>(`/sgadmin/sso/auth/zjFreshCheckToken`, {
|
|
|
method: 'GET',
|
|
|
headers: {
|
|
|
'Content-Type': 'application/json',
|