接口配置更新
This commit is contained in:
parent
0b96ff4ff7
commit
eb12d8f38a
@ -5222,12 +5222,50 @@ export const IoTDBDynamicObjectPagedResultDtoSchema = {
|
||||
additionalProperties: false
|
||||
} as const;
|
||||
|
||||
export const IoTPlatformAccountInfoInputSchema = {
|
||||
required: ['ioTPlatformType'],
|
||||
type: 'object',
|
||||
properties: {
|
||||
ioTPlatformType: {
|
||||
'$ref': '#/components/schemas/IoTPlatformTypeEnum'
|
||||
}
|
||||
},
|
||||
additionalProperties: false,
|
||||
description: '平台账号信息输入'
|
||||
} as const;
|
||||
|
||||
export const IoTPlatformAccountInfoOutputSchema = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
ioTPlatformType: {
|
||||
'$ref': '#/components/schemas/IoTPlatformTypeEnum'
|
||||
},
|
||||
ioTPlatformAccount: {
|
||||
type: 'string',
|
||||
description: '平台账号',
|
||||
nullable: true
|
||||
},
|
||||
ioTPlatformPhoneNumber: {
|
||||
type: 'string',
|
||||
description: '平台账号手机号',
|
||||
nullable: true
|
||||
}
|
||||
},
|
||||
additionalProperties: false,
|
||||
description: '平台账号信息'
|
||||
} as const;
|
||||
|
||||
export const IoTPlatformProductInfoInputSchema = {
|
||||
required: ['ioTPlatformType'],
|
||||
type: 'object',
|
||||
properties: {
|
||||
ioTPlatformType: {
|
||||
'$ref': '#/components/schemas/IoTPlatformTypeEnum'
|
||||
},
|
||||
ioTPlatformAccount: {
|
||||
type: 'string',
|
||||
description: '平台账号',
|
||||
nullable: true
|
||||
}
|
||||
},
|
||||
additionalProperties: false,
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -2600,11 +2600,37 @@ export type IoTDBDynamicObjectPagedResultDto = {
|
||||
totalCount?: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* 平台账号信息输入
|
||||
*/
|
||||
export type IoTPlatformAccountInfoInput = {
|
||||
ioTPlatformType: IoTPlatformTypeEnum;
|
||||
};
|
||||
|
||||
/**
|
||||
* 平台账号信息
|
||||
*/
|
||||
export type IoTPlatformAccountInfoOutput = {
|
||||
ioTPlatformType?: IoTPlatformTypeEnum;
|
||||
/**
|
||||
* 平台账号
|
||||
*/
|
||||
ioTPlatformAccount?: (string) | null;
|
||||
/**
|
||||
* 平台账号手机号
|
||||
*/
|
||||
ioTPlatformPhoneNumber?: (string) | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* 产品信息输入
|
||||
*/
|
||||
export type IoTPlatformProductInfoInput = {
|
||||
ioTPlatformType: IoTPlatformTypeEnum;
|
||||
/**
|
||||
* 平台账号
|
||||
*/
|
||||
ioTPlatformAccount?: (string) | null;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -6309,6 +6335,16 @@ export type PostAggregationIoTplatformGetIoTplatformProductInfoAsyncResponse = (
|
||||
|
||||
export type PostAggregationIoTplatformGetIoTplatformProductInfoAsyncError = unknown;
|
||||
|
||||
export type PostAggregationIoTplatformGetIoTplatformAccountInfoAsyncData = {
|
||||
query?: {
|
||||
input?: IoTPlatformAccountInfoInput;
|
||||
};
|
||||
};
|
||||
|
||||
export type PostAggregationIoTplatformGetIoTplatformAccountInfoAsyncResponse = (Array<IoTPlatformAccountInfoOutput>);
|
||||
|
||||
export type PostAggregationIoTplatformGetIoTplatformAccountInfoAsyncError = unknown;
|
||||
|
||||
export type PostAggregationIoTplatformGetIoTplatformProductPropertyInfoAsyncData = {
|
||||
query?: {
|
||||
input?: IoTPlatformProductPropertyInfoInput;
|
||||
|
||||
@ -79,12 +79,12 @@ export const querySchema = computed(() => [
|
||||
},
|
||||
componentProps: {
|
||||
api: postOneNetProductListAsync,
|
||||
params: (formValues: any) => ({
|
||||
params: {
|
||||
body: {
|
||||
pageIndex: 1,
|
||||
pageSize: 1000,
|
||||
},
|
||||
}),
|
||||
},
|
||||
labelField: 'productName',
|
||||
valueField: 'ioTPlatformProductId',
|
||||
immediate: true,
|
||||
@ -134,12 +134,12 @@ export const querySchema = computed(() => [
|
||||
},
|
||||
componentProps: {
|
||||
api: postCtWingProductListAsync,
|
||||
params: (formValues: any) => ({
|
||||
params: {
|
||||
body: {
|
||||
pageIndex: 1,
|
||||
pageSize: 1000,
|
||||
},
|
||||
}),
|
||||
},
|
||||
labelField: 'productName',
|
||||
valueField: 'ioTPlatformProductId',
|
||||
immediate: true,
|
||||
@ -434,15 +434,15 @@ export const addDeviceFormSchema: any = computed(() => [
|
||||
},
|
||||
triggerFields: ['ioTPlatform', 'oneNETAccountId'],
|
||||
},
|
||||
componentProps: {
|
||||
componentProps: (formValues: any) => ({
|
||||
api: postOneNetProductListAsync,
|
||||
params: (formValues: any) => ({
|
||||
params: {
|
||||
body: {
|
||||
pageIndex: 1,
|
||||
pageSize: 1000,
|
||||
oneNETAccountId: formValues.oneNETAccountId,
|
||||
oneNETAccountId: formValues?.oneNETAccountId,
|
||||
},
|
||||
}),
|
||||
},
|
||||
labelField: 'productName',
|
||||
valueField: 'ioTPlatformProductId',
|
||||
immediate: true,
|
||||
@ -472,8 +472,8 @@ export const addDeviceFormSchema: any = computed(() => [
|
||||
return [];
|
||||
},
|
||||
placeholder: `${$t('common.pleaseSelect')}${$t('abp.deviceInfos.ioTPlatformProductName')}`,
|
||||
},
|
||||
rules: z.string().optional(),
|
||||
rules: z.string().optional(),
|
||||
}),
|
||||
},
|
||||
{
|
||||
component: 'ApiSelect',
|
||||
@ -499,13 +499,12 @@ export const addDeviceFormSchema: any = computed(() => [
|
||||
},
|
||||
componentProps: {
|
||||
api: postCtWingProductListAsync,
|
||||
params: (formValues: any) => ({
|
||||
params: {
|
||||
body: {
|
||||
pageIndex: 1,
|
||||
pageSize: 1000,
|
||||
ctWingAccountId: formValues.ctWingAccountId,
|
||||
},
|
||||
}),
|
||||
},
|
||||
labelField: 'productName',
|
||||
valueField: 'ioTPlatformProductId',
|
||||
immediate: true,
|
||||
@ -800,13 +799,12 @@ export const editDeviceFormSchemaEdit: any = computed(() => [
|
||||
},
|
||||
componentProps: {
|
||||
api: postOneNetProductListAsync,
|
||||
params: (formValues: any) => ({
|
||||
params: {
|
||||
body: {
|
||||
pageIndex: 1,
|
||||
pageSize: 1000,
|
||||
oneNETAccountId: formValues.oneNETAccountId,
|
||||
},
|
||||
}),
|
||||
},
|
||||
labelField: 'productName',
|
||||
valueField: 'ioTPlatformProductId',
|
||||
immediate: true,
|
||||
@ -863,13 +861,12 @@ export const editDeviceFormSchemaEdit: any = computed(() => [
|
||||
},
|
||||
componentProps: {
|
||||
api: postCtWingProductListAsync,
|
||||
params: (formValues: any) => ({
|
||||
params: {
|
||||
body: {
|
||||
pageIndex: 1,
|
||||
pageSize: 1000,
|
||||
ctWingAccountId: formValues.ctWingAccountId,
|
||||
},
|
||||
}),
|
||||
},
|
||||
labelField: 'productName',
|
||||
valueField: 'ioTPlatformProductId',
|
||||
immediate: true,
|
||||
@ -1106,13 +1103,12 @@ export const batchAddDeviceFormSchema: any = computed(() => [
|
||||
},
|
||||
componentProps: {
|
||||
api: postOneNetProductListAsync,
|
||||
params: (formValues: any) => ({
|
||||
params: {
|
||||
body: {
|
||||
pageIndex: 1,
|
||||
pageSize: 1000,
|
||||
oneNETAccountId: formValues.oneNETAccountId,
|
||||
},
|
||||
}),
|
||||
},
|
||||
labelField: 'productName',
|
||||
valueField: 'ioTPlatformProductId',
|
||||
immediate: true,
|
||||
@ -1169,13 +1165,12 @@ export const batchAddDeviceFormSchema: any = computed(() => [
|
||||
},
|
||||
componentProps: {
|
||||
api: postCtWingProductListAsync,
|
||||
params: (formValues: any) => ({
|
||||
params: {
|
||||
body: {
|
||||
pageIndex: 1,
|
||||
pageSize: 1000,
|
||||
ctWingAccountId: formValues.ctWingAccountId,
|
||||
},
|
||||
}),
|
||||
},
|
||||
labelField: 'productName',
|
||||
valueField: 'ioTPlatformProductId',
|
||||
immediate: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user