AutoDispatching/AutoDispathingWork/Dto/QueryResponse/QueryResp.cs
2023-11-19 17:06:38 +08:00

152 lines
3.5 KiB
C#

namespace WorkerService1.Dto.QueryResponse;
public class QueryResp
{
public int code { get; set; }
public string msg { get; set; }
public QueryRespData data { get; set; }
}
public class QueryRespData
{
public int pageNo { get; set; }
public int pageSize { get; set; }
public int totalPage { get; set; }
public int totalRecords { get; set; }
public int showPage { get; set; }
public int showRecords { get; set; }
public List<QueryRecords> records { get; set; }
}
/// <summary>
///
/// ``` json
/// {
/// "caseNumber": "2311171000022",
/// "typeCode": "A2-01-10",
/// "acceptTypeCode": "A2-01-10",
/// "createTime": 1700211434000,
/// "address": "合阳小区150弄大门口",
/// "roi": {
/// "point_list": [
/// {
/// "x": 0.3375,
/// "y": 0.7069444444444445
/// },
/// {
/// "x": 0.35546875,
/// "y": 0.6569444444444444
/// },
/// {
/// "x": 0.440625,
/// "y": 0.6
/// },
/// {
/// "x": 0.5078125,
/// "y": 0.5458333333333333
/// },
/// {
/// "x": 0.534375,
/// "y": 0.6972222222222222
/// },
/// {
/// "x": 0.54296875,
/// "y": 0.7125
/// },
/// {
/// "x": 0.54140625,
/// "y": 0.8694444444444445
/// },
/// {
/// "x": 0.321875,
/// "y": 0.8694444444444445
/// }
/// ],
/// "id": "26"
/// },
/// "causeArea": [
/// {
/// "x": 0.47037081718444823,
/// "y": 0.5797762129041883
/// },
/// {
/// "x": 0.525736951828003,
/// "y": 0.5797762129041883
/// },
/// {
/// "x": 0.525736951828003,
/// "y": 0.6335258483886719
/// },
/// {
/// "x": 0.47037081718444823,
/// "y": 0.6335258483886719
/// }
/// ],
/// "causeImage": {
/// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C018a1bc9f8db4c&amp;contentType=image/jpeg&amp;token=RAFBGWLcDAbCytvXBwZGXDUDJXxzsTHycSakqcrUNRXFOgOQBTfQtDQhIgOf",
/// "isAutoUpload": true
/// },
/// "causeVideo": {
/// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---46-_018a2d8442b3b4_meta",
/// "fileUri": "weed://46,018a2d8442b3b4_meta",
/// "startTime": 1700211254000,
/// "endTime": 1700211434000
/// },
/// "deviceId": "14324898752889856",
/// "state": 1,
/// "disposalStatus": 1
///}
/// ```
/// </summary>
public class QueryRecords
{
public string caseNumber { get; set; }
public string typeCode { get; set; }
public string acceptTypeCode { get; set; }
public long createTime { get; set; }
public string address { get; set; }
public Roi roi { get; set; }
public List<CauseArea> causeArea { get; set; }
public CauseImage causeImage { get; set; }
public CauseVideo causeVideo { get; set; }
public string deviceId { get; set; }
public int state { get; set; }
public int disposalStatus { get; set; }
}
public class Roi
{
public List<PointList> point_list { get; set; }
public string id { get; set; }
}
public class PointList
{
public double x { get; set; }
public double y { get; set; }
}
public class CauseImage
{
public string uri { get; set; }
public bool isAutoUpload { get; set; }
}
public class CauseVideo
{
public string objectName { get; set; }
public string fileUri { get; set; }
public long startTime { get; set; }
public long endTime { get; set; }
}
public class CauseArea
{
public double x { get; set; }
public double y { get; set; }
}