index.ts
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { RequestBodyEnum, RequestParams as OriginRequestParams } from "@/enums/httpEnum"
export enum PublicInterfaceStateEnum {
PUBLISH = 1,
UN_PUBLISH = 0
}
export interface ParamsItemType {
key: string
required: boolean
value: string
mores: boolean
}
export interface PublicInterfaceRequestParams {
Body: {
requestParamsBodyType?: RequestBodyEnum
[RequestBodyEnum.XML]: string
[RequestBodyEnum.JSON]: string
[RequestBodyEnum.FORM_DATA]: ParamsItemType[]
[RequestBodyEnum.X_WWW_FORM_URLENCODED]: ParamsItemType[]
}
Header: ParamsItemType[]
Params: ParamsItemType[]
}
export interface PublicInterfaceRecord {
id: string,
creator: string,
createTime: string,
updater: string,
updateTime: string,
enabled: boolean,
tenantId: string,
interfaceName: string,
requestContentType: number,
requestOriginUrl: string,
requestHttpType: string,
requestParamsBodyType: string,
requestUrl: string,
requestParams: string,
filter?:string//FT 新增一个字段filter
}
export interface GetDeviceListParams {
organizationId?: string
deviceProfileId?: string
deviceType?: string
}
export interface DeviceAttributesDetail {
dataType: {
specs: Recordable
type: string
}
}
export interface DeviceAttributesRecord {
name: string,
identifier: string
detail: DeviceAttributesDetail
}