init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
export interface IncidentListParams {
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
pageSize?: number;
|
||||
pageNum?: number;
|
||||
oneid?: string;
|
||||
incident_time?: object;
|
||||
}
|
||||
|
||||
|
||||
export async function getIncidentListApi(params: IncidentListParams) {
|
||||
return usePost('/incident/list', params, { timeout: 600000 })
|
||||
}
|
||||
|
||||
|
||||
export async function getGen6IncidentListApi(params: IncidentListParams,code:string) {
|
||||
return usePost('/gen6/list', params, { timeout: 600000 ,headers:{'X-Encrypted-Timestamp':code}}) //,headers:{'X-Encrypted-Timestamp':code}
|
||||
}
|
||||
|
||||
|
||||
export async function getGen5IncidentListApi(params: IncidentListParams,code:string) {
|
||||
return usePost('/gen5/list', params, { timeout: 600000, headers:{'X-Encrypted-Timestamp':code} })
|
||||
}
|
||||
Reference in New Issue
Block a user