From 0a6ce62d9a74c7b969d3d8396236485a6a99649f Mon Sep 17 00:00:00 2001 From: sulu Date: Tue, 14 Nov 2023 22:54:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 25 + .gitignore | 365 ++ AutoDispatching.sln | 22 + AutoDispatching/AutoDispatching.csproj | 20 + AutoDispatching/Dockerfile | 20 + AutoDispatching/Program.cs | 6 + .../Properties/launchSettings.json | 38 + AutoDispatching/appsettings.Development.json | 8 + AutoDispatching/appsettings.json | 9 + AutoDispathingWork/AutoDispathingWork.csproj | 23 + AutoDispathingWork/CloseWorker.cs | 64 + AutoDispathingWork/Dockerfile | 18 + .../Dto/Configuration/ClientOptions.cs | 36 + AutoDispathingWork/Dto/LoginResponse.cs | 62 + AutoDispathingWork/Dto/LoginResult.cs | 7 + .../Dto/QueryRequest/CloseReq.cs | 11 + .../Dto/QueryRequest/DispatchReq.cs | 16 + .../Dto/QueryRequest/QueryReq.cs | 14 + .../Dto/QueryRequest/UserQuery.cs | 24 + .../Dto/QueryResponse/CloseResp.cs | 9 + .../Dto/QueryResponse/DispatchResp.cs | 9 + .../Dto/QueryResponse/QueryResp.cs | 4043 +++++++++++++++++ .../Dto/QueryResponse/UserResp.cs | 166 + AutoDispathingWork/Dto/SpiderResponse.cs | 16 + AutoDispathingWork/Program.cs | 21 + .../Properties/launchSettings.json | 12 + AutoDispathingWork/Services/SpiderServices.cs | 294 ++ AutoDispathingWork/Worker.cs | 71 + .../appsettings.Development.json | 8 + AutoDispathingWork/appsettings.json | 19 + 30 files changed, 5456 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitignore create mode 100644 AutoDispatching.sln create mode 100644 AutoDispatching/AutoDispatching.csproj create mode 100644 AutoDispatching/Dockerfile create mode 100644 AutoDispatching/Program.cs create mode 100644 AutoDispatching/Properties/launchSettings.json create mode 100644 AutoDispatching/appsettings.Development.json create mode 100644 AutoDispatching/appsettings.json create mode 100644 AutoDispathingWork/AutoDispathingWork.csproj create mode 100644 AutoDispathingWork/CloseWorker.cs create mode 100644 AutoDispathingWork/Dockerfile create mode 100644 AutoDispathingWork/Dto/Configuration/ClientOptions.cs create mode 100644 AutoDispathingWork/Dto/LoginResponse.cs create mode 100644 AutoDispathingWork/Dto/LoginResult.cs create mode 100644 AutoDispathingWork/Dto/QueryRequest/CloseReq.cs create mode 100644 AutoDispathingWork/Dto/QueryRequest/DispatchReq.cs create mode 100644 AutoDispathingWork/Dto/QueryRequest/QueryReq.cs create mode 100644 AutoDispathingWork/Dto/QueryRequest/UserQuery.cs create mode 100644 AutoDispathingWork/Dto/QueryResponse/CloseResp.cs create mode 100644 AutoDispathingWork/Dto/QueryResponse/DispatchResp.cs create mode 100644 AutoDispathingWork/Dto/QueryResponse/QueryResp.cs create mode 100644 AutoDispathingWork/Dto/QueryResponse/UserResp.cs create mode 100644 AutoDispathingWork/Dto/SpiderResponse.cs create mode 100644 AutoDispathingWork/Program.cs create mode 100644 AutoDispathingWork/Properties/launchSettings.json create mode 100644 AutoDispathingWork/Services/SpiderServices.cs create mode 100644 AutoDispathingWork/Worker.cs create mode 100644 AutoDispathingWork/appsettings.Development.json create mode 100644 AutoDispathingWork/appsettings.json diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..cd967fc --- /dev/null +++ b/.dockerignore @@ -0,0 +1,25 @@ +**/.dockerignore +**/.env +**/.git +**/.gitignore +**/.project +**/.settings +**/.toolstarget +**/.vs +**/.vscode +**/.idea +**/*.*proj.user +**/*.dbmdl +**/*.jfm +**/azds.yaml +**/bin +**/charts +**/docker-compose* +**/Dockerfile* +**/node_modules +**/npm-debug.log +**/obj +**/secrets.dev.yaml +**/values.dev.yaml +LICENSE +README.md \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb736a1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,365 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore +.idea/ +.vs/ +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates +bin/ + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Oo]ut/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd \ No newline at end of file diff --git a/AutoDispatching.sln b/AutoDispatching.sln new file mode 100644 index 0000000..86d75cf --- /dev/null +++ b/AutoDispatching.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoDispatching", "AutoDispatching\AutoDispatching.csproj", "{2C965E22-EBA5-4F50-A979-C11AD28B61B2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoDispathingWork", "AutoDispathingWork\AutoDispathingWork.csproj", "{39E15372-E957-4785-ABE7-D160ECC6440C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2C965E22-EBA5-4F50-A979-C11AD28B61B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2C965E22-EBA5-4F50-A979-C11AD28B61B2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2C965E22-EBA5-4F50-A979-C11AD28B61B2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2C965E22-EBA5-4F50-A979-C11AD28B61B2}.Release|Any CPU.Build.0 = Release|Any CPU + {39E15372-E957-4785-ABE7-D160ECC6440C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {39E15372-E957-4785-ABE7-D160ECC6440C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {39E15372-E957-4785-ABE7-D160ECC6440C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {39E15372-E957-4785-ABE7-D160ECC6440C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/AutoDispatching/AutoDispatching.csproj b/AutoDispatching/AutoDispatching.csproj new file mode 100644 index 0000000..8af374d --- /dev/null +++ b/AutoDispatching/AutoDispatching.csproj @@ -0,0 +1,20 @@ + + + + net8.0 + enable + enable + Linux + + + + + .dockerignore + + + + + + + + diff --git a/AutoDispatching/Dockerfile b/AutoDispatching/Dockerfile new file mode 100644 index 0000000..730ab1f --- /dev/null +++ b/AutoDispatching/Dockerfile @@ -0,0 +1,20 @@ +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +WORKDIR /app +EXPOSE 80 +EXPOSE 443 + +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +WORKDIR /src +COPY ["AutoDispatching/AutoDispatching.csproj", "AutoDispatching/"] +RUN dotnet restore "AutoDispatching/AutoDispatching.csproj" +COPY . . +WORKDIR "/src/AutoDispatching" +RUN dotnet build "AutoDispatching.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "AutoDispatching.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "AutoDispatching.dll"] diff --git a/AutoDispatching/Program.cs b/AutoDispatching/Program.cs new file mode 100644 index 0000000..ec8e4f4 --- /dev/null +++ b/AutoDispatching/Program.cs @@ -0,0 +1,6 @@ +var builder = WebApplication.CreateBuilder(args); +var app = builder.Build(); + +app.MapGet("/", () => "Hello World!"); + +app.Run(); \ No newline at end of file diff --git a/AutoDispatching/Properties/launchSettings.json b/AutoDispatching/Properties/launchSettings.json new file mode 100644 index 0000000..de1345c --- /dev/null +++ b/AutoDispatching/Properties/launchSettings.json @@ -0,0 +1,38 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:26851", + "sslPort": 44330 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5048", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:7273;http://localhost:5048", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/AutoDispatching/appsettings.Development.json b/AutoDispatching/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/AutoDispatching/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/AutoDispatching/appsettings.json b/AutoDispatching/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/AutoDispatching/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +} diff --git a/AutoDispathingWork/AutoDispathingWork.csproj b/AutoDispathingWork/AutoDispathingWork.csproj new file mode 100644 index 0000000..e13fb30 --- /dev/null +++ b/AutoDispathingWork/AutoDispathingWork.csproj @@ -0,0 +1,23 @@ + + + + net8.0 + enable + enable + dotnet-WorkerService1-16724269-88FF-4E7A-9946-5155FD173413 + Linux + WorkerService1 + + + + + + + + + + + .dockerignore + + + diff --git a/AutoDispathingWork/CloseWorker.cs b/AutoDispathingWork/CloseWorker.cs new file mode 100644 index 0000000..854fcc1 --- /dev/null +++ b/AutoDispathingWork/CloseWorker.cs @@ -0,0 +1,64 @@ +using Microsoft.Extensions.Options; +using WorkerService1.Dto.Configuration; +using WorkerService1.Services; + +namespace WorkerService1; + +public class CloseWorker : BackgroundService +{ + private readonly ILogger _logger; + private readonly SpiderServices _spiderServices; + + private readonly IServiceProvider _serviceProvider; + + public CloseWorker(ILogger logger, SpiderServices spiderServices, IServiceProvider serviceProvider) + { + _logger = logger; + _spiderServices = spiderServices; + _serviceProvider = serviceProvider; + } + + protected override async Task ExecuteAsync(CancellationToken stoppingToken) + { + while (!stoppingToken.IsCancellationRequested) + { + if (_logger.IsEnabled(LogLevel.Information)) + { + _logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now); + } + + try + { + await Handle(); + } + catch (Exception e) + { + _logger.LogError("执行控制器发生错误,错误信息:ex{}", e.StackTrace); + } + finally + { + using var scope = _serviceProvider.CreateScope(); + var options = scope.ServiceProvider.GetRequiredService>(); + await Task.Delay(options.CurrentValue.Delay, stoppingToken); + } + } + } + + private async Task Handle() + { + var listRes = await _spiderServices.GetTaskList(3); + if (listRes.IsSuccess) + { + var needDispose = listRes.Result?.records; + //轮询列表,看有没有符合状态的进行处理 + if (needDispose?.Any() ?? false) + { + foreach (var item in needDispose) + { + //2.结案操作 + var result = await _spiderServices.CloseFile(item.caseNumber, ""); + } + } + } + } +} \ No newline at end of file diff --git a/AutoDispathingWork/Dockerfile b/AutoDispathingWork/Dockerfile new file mode 100644 index 0000000..62f17b6 --- /dev/null +++ b/AutoDispathingWork/Dockerfile @@ -0,0 +1,18 @@ +FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base +WORKDIR /app + +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +WORKDIR /src +COPY ["WorkerService1/WorkerService1.csproj", "WorkerService1/"] +RUN dotnet restore "WorkerService1/WorkerService1.csproj" +COPY . . +WORKDIR "/src/WorkerService1" +RUN dotnet build "WorkerService1.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "WorkerService1.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "WorkerService1.dll"] diff --git a/AutoDispathingWork/Dto/Configuration/ClientOptions.cs b/AutoDispathingWork/Dto/Configuration/ClientOptions.cs new file mode 100644 index 0000000..9173bc8 --- /dev/null +++ b/AutoDispathingWork/Dto/Configuration/ClientOptions.cs @@ -0,0 +1,36 @@ +using System.Text.Json.Serialization; + +namespace WorkerService1.Dto.Configuration; + +public class ClientOptions +{ + public string ApiGateway { get; set; } = "http://121.4.75.240/"; + [JsonPropertyName("username")] + public string UserName { get; set; } = "ganquanjiedao"; + public string Password { get; set; } = "12345678a"; + public int Delay { get; set; } = 1000; + public string LoginApi { get; set; } = "api/auth/v5/users/login"; + public string GetTaskApi { get; set; } = "api/megcity/v1/events/queryByWaterFall"; + + public string GetUserApi { get; set; } = "api/galaxy/v1/auth/users/query"; + + public string DiposeOrder { get; set; } = "api/megcity/v1/events/dispatch/{0}"; + public string CloseFileApi { get; set; } = "api/megcity/v1/events/pass"; + + //登录接口 + public string LoginUrl => $"{ApiGateway}{LoginApi}"; + + //案件接口 + public string GetTaskUrl => $"{ApiGateway}{GetTaskApi}"; + + + + //获取用户接口 + + public string GetUserUrl => $"{ApiGateway}{GetUserApi}"; + public string DiposeOrderUrl => $"{ApiGateway}{DiposeOrder}"; + + public string CloseFileUrl => $"{ApiGateway}{CloseFileApi}"; + + +} \ No newline at end of file diff --git a/AutoDispathingWork/Dto/LoginResponse.cs b/AutoDispathingWork/Dto/LoginResponse.cs new file mode 100644 index 0000000..922256e --- /dev/null +++ b/AutoDispathingWork/Dto/LoginResponse.cs @@ -0,0 +1,62 @@ +using System.Text.Json.Serialization; + +namespace WorkerService1.Dto; + +// {"code":0,"msg":"成功","data":{"token":"sXMHBPcPEBqrHCBfAREgMoffLbGutKszqfclcYJoXRvonLHsZiVZXcNgjwiD","expireTime":86400000,"user":{"organization":{"users":[],"orgName":"甘泉街道","subOrgs":[],"userCount":0,"orderCode":0,"orgLevel":1,"userTotalCount":0,"permit":true,"id":"6e9232ef-7b84-11e8-86b1-6c92bf4e6960"},"online":false,"passWDInit":false,"ip":"","sso":false,"userName":"ganquanjiedao","roles":[{"users":[],"remark":"","roleName":"高级管理员","permissions":[],"id":"0c772d50-a4af-439f-a18a-8fd332343d5e"}],"pkiId":"","creator":"73d82f01-dc1e-4666-bc79-3e59fc574cee","isApp":false,"thumb":"","phoneNo":"","employeeId":"","enabled":true,"userRealName":"ganquan","clientAppId":"megcity-web","datas":{},"id":"27465e20-6942-4569-8141-2ff5c264111e"}}} +public class LoginResponse +{ + [JsonPropertyName("code")] public int Code { get; set; } + [JsonPropertyName("msg")] public string? Msg { get; set; } + [JsonPropertyName("data")] public LoginResultData? Data { get; set; } +} + +public class LoginResultData +{ + [JsonPropertyName("token")] public string? Token { get; set; } + [JsonPropertyName("expireTime")] public int ExpireTime { get; set; } + [JsonPropertyName("user")] public LoginResultDataUser? User { get; set; } +} + +public class LoginResultDataUser +{ + [JsonPropertyName("organization")] public LoginResultDataUserOrganization? Organization { get; set; } + [JsonPropertyName("online")] public bool Online { get; set; } + [JsonPropertyName("passWDInit")] public bool PassWDInit { get; set; } + [JsonPropertyName("ip")] public string? Ip { get; set; } + [JsonPropertyName("sso")] public bool Sso { get; set; } + [JsonPropertyName("userName")] public string? UserName { get; set; } + [JsonPropertyName("roles")] public LoginResultDataUserRole[]? Roles { get; set; } + [JsonPropertyName("pkiId")] public string? PkiId { get; set; } + [JsonPropertyName("creator")] public string? Creator { get; set; } + [JsonPropertyName("isApp")] public bool IsApp { get; set; } + [JsonPropertyName("thumb")] public string? Thumb { get; set; } + [JsonPropertyName("phoneNo")] public string? PhoneNo { get; set; } + [JsonPropertyName("employeeId")] public string? EmployeeId { get; set; } + [JsonPropertyName("enabled")] public bool Enabled { get; set; } + [JsonPropertyName("userRealName")] public string? UserRealName { get; set; } + [JsonPropertyName("clientAppId")] public string? ClientAppId { get; set; } + [JsonPropertyName("datas")] public object? Datas { get; set; } + [JsonPropertyName("id")] public string? Id { get; set; } +} + +public class LoginResultDataUserOrganization +{ + [JsonPropertyName("users")] public object[]? Users { get; set; } + [JsonPropertyName("orgName")] public string? OrgName { get; set; } + [JsonPropertyName("subOrgs")] public object[]? SubOrgs { get; set; } + [JsonPropertyName("userCount")] public int UserCount { get; set; } + [JsonPropertyName("orderCode")] public int OrderCode { get; set; } + [JsonPropertyName("orgLevel")] public int OrgLevel { get; set; } + [JsonPropertyName("userTotalCount")] public int UserTotalCount { get; set; } + [JsonPropertyName("permit")] public bool Permit { get; set; } + [JsonPropertyName("id")] public string? Id { get; set; } +} + +public class LoginResultDataUserRole +{ + [JsonPropertyName("users")] public object[]? Users { get; set; } + [JsonPropertyName("remark")] public string? Remark { get; set; } + [JsonPropertyName("roleName")] public string? RoleName { get; set; } + [JsonPropertyName("permissions")] public object[]? Permissions { get; set; } + [JsonPropertyName("id")] public string? Id { get; set; } +} \ No newline at end of file diff --git a/AutoDispathingWork/Dto/LoginResult.cs b/AutoDispathingWork/Dto/LoginResult.cs new file mode 100644 index 0000000..1dbb482 --- /dev/null +++ b/AutoDispathingWork/Dto/LoginResult.cs @@ -0,0 +1,7 @@ +namespace WorkerService1.Dto; + +public class LoginResult +{ + public string? Token { get; set; } + public string? Message { get; set; } +} \ No newline at end of file diff --git a/AutoDispathingWork/Dto/QueryRequest/CloseReq.cs b/AutoDispathingWork/Dto/QueryRequest/CloseReq.cs new file mode 100644 index 0000000..bf3a8c4 --- /dev/null +++ b/AutoDispathingWork/Dto/QueryRequest/CloseReq.cs @@ -0,0 +1,11 @@ +using System.Text.Json.Serialization; + +namespace WorkerService1.Dto.QueryRequest; + +public class CloseReq +{ + [JsonPropertyName("caseNumber")] + public string CaseNumber { get; set; } + [JsonPropertyName("suggestion")] + public string Suggestion { get; set; } +} \ No newline at end of file diff --git a/AutoDispathingWork/Dto/QueryRequest/DispatchReq.cs b/AutoDispathingWork/Dto/QueryRequest/DispatchReq.cs new file mode 100644 index 0000000..f8b7fc5 --- /dev/null +++ b/AutoDispathingWork/Dto/QueryRequest/DispatchReq.cs @@ -0,0 +1,16 @@ +using System.Text.Json.Serialization; + +namespace WorkerService1.Dto.QueryRequest; + +public class DispatchReq +{ + // {"acceptTypeCode":"A2-01-10","target":2,"handlerId":"66fa9261-16f6-49aa-a391-5848f40301e0","typeCode":"A2-01-10"} + [JsonPropertyName("acceptTypeCode")] + public string AcceptTypeCode { get; set; } = "A2-01-10"; + [JsonPropertyName("target")] + public int Target { get; set; } = 2; + [JsonPropertyName("handlerId")] + public string HandlerId { get; set; } = "66fa9261-16f6-49aa-a391-5848f40301e0"; + [JsonPropertyName("typeCode")] + public string TypeCode { get; set; } = "A2-01-10"; +} \ No newline at end of file diff --git a/AutoDispathingWork/Dto/QueryRequest/QueryReq.cs b/AutoDispathingWork/Dto/QueryRequest/QueryReq.cs new file mode 100644 index 0000000..41e7b88 --- /dev/null +++ b/AutoDispathingWork/Dto/QueryRequest/QueryReq.cs @@ -0,0 +1,14 @@ +using System.Text.Json.Serialization; + +namespace WorkerService1.Dto.QueryRequest; + +public class QueryReq +{ + [JsonPropertyName("state")] public int[]? State { get; set; } + [JsonPropertyName("pageNo")] public int PageNo { get; set; } + [JsonPropertyName("pageSize")] public int PageSize { get; set; } + + [JsonPropertyName("sortType")] public int[]? SortType { get; set; } + [JsonPropertyName("createStartTime")] public long CreateStartTime { get; set; } + [JsonPropertyName("createEndTime")] public long CreateEndTime { get; set; } +} \ No newline at end of file diff --git a/AutoDispathingWork/Dto/QueryRequest/UserQuery.cs b/AutoDispathingWork/Dto/QueryRequest/UserQuery.cs new file mode 100644 index 0000000..8622290 --- /dev/null +++ b/AutoDispathingWork/Dto/QueryRequest/UserQuery.cs @@ -0,0 +1,24 @@ +using System.Text.Json.Serialization; + +namespace WorkerService1.Dto.QueryRequest; + +public class UserQuery +{ + // {"pageNo":1,"pageSize":20,"condition":{"roleIds":["a2e267c0-d88d-4ecb-a4b5-d904e85dfbb6"],"enabled":"null"}} + [JsonPropertyName("pageNo")] + public int PageNo { get; set; } = 1; + [JsonPropertyName("pageSize")] + public int PageSize { get; set; } = 20; + [JsonPropertyName("condition")] + public Condition Condition { get; set; } = new Condition(); + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } = null; + +} + +public class Condition +{ + [JsonPropertyName("roleIds")] + public string[] RoleIds { get; set; } = new string[] { "a2e267c0-d88d-4ecb-a4b5-d904e85dfbb6" }; +} + diff --git a/AutoDispathingWork/Dto/QueryResponse/CloseResp.cs b/AutoDispathingWork/Dto/QueryResponse/CloseResp.cs new file mode 100644 index 0000000..0edbcf6 --- /dev/null +++ b/AutoDispathingWork/Dto/QueryResponse/CloseResp.cs @@ -0,0 +1,9 @@ +namespace WorkerService1.Dto.QueryResponse; + +public class CloseResp +{ + public int code { get; set; } + public string msg { get; set; } + + public object data { get; set; } +} \ No newline at end of file diff --git a/AutoDispathingWork/Dto/QueryResponse/DispatchResp.cs b/AutoDispathingWork/Dto/QueryResponse/DispatchResp.cs new file mode 100644 index 0000000..ad61e15 --- /dev/null +++ b/AutoDispathingWork/Dto/QueryResponse/DispatchResp.cs @@ -0,0 +1,9 @@ +namespace WorkerService1.Dto.QueryResponse; + +public class DispatchResp +{ + public int code { get; set; } + public string msg { get; set; } + + public object data { get; set; } +} \ No newline at end of file diff --git a/AutoDispathingWork/Dto/QueryResponse/QueryResp.cs b/AutoDispathingWork/Dto/QueryResponse/QueryResp.cs new file mode 100644 index 0000000..5b4ec9a --- /dev/null +++ b/AutoDispathingWork/Dto/QueryResponse/QueryResp.cs @@ -0,0 +1,4043 @@ +namespace WorkerService1.Dto.QueryResponse; + +// { +// "code": 0, +// "msg": "SUCCESS", +// "data": { +// "pageNo": 1, +// "pageSize": 50, +// "totalPage": 1, +// "totalRecords": 47, +// "showPage": 1, +// "showRecords": 47, +// "records": [ +// { +// "caseNumber": "2311101000002", +// "typeCode": "A2-05-06", +// "acceptTypeCode": "A2-05-06", +// "createTime": 1699594918000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.19296875, +// "y": 0.625 +// }, +// { +// "x": 0.16796875, +// "y": 0.6888888888888889 +// }, +// { +// "x": 0.1078125, +// "y": 0.8763888888888889 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.011505648493766785, +// "y": 0.6380790286593967 +// }, +// { +// "x": 0.8449338912963867, +// "y": 0.6380790286593967 +// }, +// { +// "x": 0.8449338912963867, +// "y": 0.8220611572265625 +// }, +// { +// "x": 0.011505648493766785, +// "y": 0.8220611572265625 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cfda981690d95&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---23-_fdc86a561ec0_meta", +// "fileUri": "weed://23,fdc86a561ec0_meta", +// "startTime": 1699594618000, +// "endTime": 1699594918000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311101000001", +// "typeCode": "B2-01-98", +// "acceptTypeCode": "B2-01-98", +// "createTime": 1699585949000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.45078125, +// "y": 0.5208333333333334 +// }, +// { +// "x": 0.46640625, +// "y": 0.48194444444444445 +// }, +// { +// "x": 0.5859375, +// "y": 0.4791666666666667 +// }, +// { +// "x": 0.58671875, +// "y": 0.5319444444444444 +// }, +// { +// "x": 0.4625, +// "y": 0.5388888888888889 +// } +// ], +// "id": "33" +// }, +// "causeArea": [ +// { +// "x": 0.498850679397583, +// "y": 0.46954485575358074 +// }, +// { +// "x": 0.5460625171661377, +// "y": 0.46954485575358074 +// }, +// { +// "x": 0.5460625171661377, +// "y": 0.5247744242350261 +// }, +// { +// "x": 0.498850679397583, +// "y": 0.5247744242350261 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cfc8b45e8fdb6&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---21-_fca8f9d19784_meta", +// "fileUri": "weed://21,fca8f9d19784_meta", +// "startTime": 1699585649000, +// "endTime": 1699585949000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311091000005", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1699515350000, +// "address": "合阳小区150弄大门口", +// "roi": { +// "point_list": [ +// { +// "x": 0.17265625, +// "y": 0.49583333333333335 +// }, +// { +// "x": 0.146875, +// "y": 0.9972222222222222 +// }, +// { +// "x": 0.915625, +// "y": 0.9986111111111111 +// }, +// { +// "x": 0.91484375, +// "y": 0.7013888888888888 +// }, +// { +// "x": 0.7703125, +// "y": 0.5083333333333333 +// }, +// { +// "x": 0.65625, +// "y": 0.475 +// } +// ], +// "id": "52" +// }, +// "causeArea": [ +// { +// "x": 0.10295295715332031, +// "y": 0.5671126047770182 +// }, +// { +// "x": 0.6314330101013184, +// "y": 0.5671126047770182 +// }, +// { +// "x": 0.6314330101013184, +// "y": 1 +// }, +// { +// "x": 0.10295295715332031, +// "y": 1 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cf63aaf148dd3&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---21-_f6592b474ce1_meta", +// "fileUri": "weed://21,f6592b474ce1_meta", +// "startTime": 1699515050000, +// "endTime": 1699515350000 +// }, +// "deviceId": "14324898752889856", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311091000004", +// "typeCode": "A2-05-06", +// "acceptTypeCode": "A2-05-06", +// "createTime": 1699512759000, +// "address": "宜川路351弄66号东", +// "roi": { +// "point_list": [ +// { +// "x": 0.6, +// "y": 0.6013888888888889 +// }, +// { +// "x": 0.446875, +// "y": 0.6 +// }, +// { +// "x": 0.44296875, +// "y": 0.6875 +// }, +// { +// "x": 0.37578125, +// "y": 0.6986111111111111 +// }, +// { +// "x": 0.365625, +// "y": 0.6375 +// }, +// { +// "x": 0.24375, +// "y": 0.625 +// }, +// { +// "x": 0.1984375, +// "y": 0.7041666666666667 +// }, +// { +// "x": 0.1203125, +// "y": 0.7527777777777778 +// }, +// { +// "x": 0.115625, +// "y": 0.9777777777777777 +// }, +// { +// "x": 0.3359375, +// "y": 0.9888888888888889 +// }, +// { +// "x": 0.32734375, +// "y": 0.7569444444444444 +// }, +// { +// "x": 0.34296875, +// "y": 0.7527777777777778 +// }, +// { +// "x": 0.36953125, +// "y": 0.9847222222222223 +// }, +// { +// "x": 0.52578125, +// "y": 0.9888888888888889 +// }, +// { +// "x": 0.52890625, +// "y": 0.7527777777777778 +// }, +// { +// "x": 0.54765625, +// "y": 0.7583333333333333 +// }, +// { +// "x": 0.54453125, +// "y": 0.9888888888888889 +// }, +// { +// "x": 0.7484375, +// "y": 0.9680555555555556 +// }, +// { +// "x": 0.70859375, +// "y": 0.7277777777777777 +// }, +// { +// "x": 0.6546875, +// "y": 0.7097222222222223 +// }, +// { +// "x": 0.6015625, +// "y": 0.7 +// } +// ], +// "id": "12" +// }, +// "causeArea": [ +// { +// "x": 0.0976642906665802, +// "y": 0.6972967359754775 +// }, +// { +// "x": 0.846740436553955, +// "y": 0.6972967359754775 +// }, +// { +// "x": 0.846740436553955, +// "y": 1 +// }, +// { +// "x": 0.0976642906665802, +// "y": 1 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cf294a1180023&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---21-_f2b303da54f4_meta", +// "fileUri": "weed://21,f2b303da54f4_meta", +// "startTime": 1699512459000, +// "endTime": 1699512759000 +// }, +// "deviceId": "14324854723642368", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311091000003", +// "typeCode": "A2-05-06", +// "acceptTypeCode": "A2-05-06", +// "createTime": 1699511582000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.19296875, +// "y": 0.625 +// }, +// { +// "x": 0.16796875, +// "y": 0.6888888888888889 +// }, +// { +// "x": 0.1078125, +// "y": 0.8763888888888889 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.10563257932662964, +// "y": 0.6900858137342665 +// }, +// { +// "x": 0.8584179878234863, +// "y": 0.6900858137342665 +// }, +// { +// "x": 0.8584179878234863, +// "y": 0.961604732937283 +// }, +// { +// "x": 0.10563257932662964, +// "y": 0.961604732937283 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cf08bdfc1dcc2&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---21-_f0aae95046a3_meta", +// "fileUri": "weed://21,f0aae95046a3_meta", +// "startTime": 1699511282000, +// "endTime": 1699511582000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311091000002", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1699511255000, +// "address": "合阳小区150弄大门口", +// "roi": { +// "point_list": [ +// { +// "x": 0.3375, +// "y": 0.7069444444444445 +// }, +// { +// "x": 0.36171875, +// "y": 0.7097222222222223 +// }, +// { +// "x": 0.39765625, +// "y": 0.6875 +// }, +// { +// "x": 0.52265625, +// "y": 0.6861111111111111 +// }, +// { +// "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.42583408355712893, +// "y": 0.625594245062934 +// }, +// { +// "x": 0.4835377216339111, +// "y": 0.625594245062934 +// }, +// { +// "x": 0.4835377216339111, +// "y": 0.7151383293999566 +// }, +// { +// "x": 0.42583408355712893, +// "y": 0.7151383293999566 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cefb50bf1d53d&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---21-_efc8155351fa_meta", +// "fileUri": "weed://21,efc8155351fa_meta", +// "startTime": 1699511075000, +// "endTime": 1699511255000 +// }, +// "deviceId": "14324898752889856", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311091000001", +// "typeCode": "A2-05-06", +// "acceptTypeCode": "A2-05-06", +// "createTime": 1699498053000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.19296875, +// "y": 0.625 +// }, +// { +// "x": 0.16796875, +// "y": 0.6888888888888889 +// }, +// { +// "x": 0.1078125, +// "y": 0.8763888888888889 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.2086390256881714, +// "y": 0.6115050421820747 +// }, +// { +// "x": 0.6692705154418945, +// "y": 0.6115050421820747 +// }, +// { +// "x": 0.6692705154418945, +// "y": 0.7384293450249566 +// }, +// { +// "x": 0.2086390256881714, +// "y": 0.7384293450249566 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Ceb06cacad8aa&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---21-_eb25b0ddbb57_meta", +// "fileUri": "weed://21,eb25b0ddbb57_meta", +// "startTime": 1699497753000, +// "endTime": 1699498053000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311081000004", +// "typeCode": "A2-05-06", +// "acceptTypeCode": "A2-05-06", +// "createTime": 1699432074000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.19296875, +// "y": 0.625 +// }, +// { +// "x": 0.16796875, +// "y": 0.6888888888888889 +// }, +// { +// "x": 0.1078125, +// "y": 0.8763888888888889 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.1836094856262207, +// "y": 0.745849609375 +// }, +// { +// "x": 0.8954440116882324, +// "y": 0.745849609375 +// }, +// { +// "x": 0.8954440116882324, +// "y": 0.9837601555718316 +// }, +// { +// "x": 0.1836094856262207, +// "y": 0.9837601555718316 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Ce77d65e5965d&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---21-_e79a17b51538_meta", +// "fileUri": "weed://21,e79a17b51538_meta", +// "startTime": 1699431774000, +// "endTime": 1699432074000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311081000003", +// "typeCode": "B2-01-98", +// "acceptTypeCode": "B2-01-98", +// "createTime": 1699430774000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.45078125, +// "y": 0.5208333333333334 +// }, +// { +// "x": 0.46640625, +// "y": 0.48194444444444445 +// }, +// { +// "x": 0.5859375, +// "y": 0.4791666666666667 +// }, +// { +// "x": 0.58671875, +// "y": 0.5319444444444444 +// }, +// { +// "x": 0.4625, +// "y": 0.5388888888888889 +// } +// ], +// "id": "33" +// }, +// "causeArea": [ +// { +// "x": 0.5016433715820312, +// "y": 0.4884767744276259 +// }, +// { +// "x": 0.546635103225708, +// "y": 0.4884767744276259 +// }, +// { +// "x": 0.546635103225708, +// "y": 0.5216083526611328 +// }, +// { +// "x": 0.5016433715820312, +// "y": 0.5216083526611328 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Ce656d413932f&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---21-_e6740ea0f3a1_meta", +// "fileUri": "weed://21,e6740ea0f3a1_meta", +// "startTime": 1699430474000, +// "endTime": 1699430774000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311081000001", +// "typeCode": "B2-01-98", +// "acceptTypeCode": "B2-01-98", +// "createTime": 1699405095000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.45078125, +// "y": 0.5208333333333334 +// }, +// { +// "x": 0.46640625, +// "y": 0.48194444444444445 +// }, +// { +// "x": 0.5859375, +// "y": 0.4791666666666667 +// }, +// { +// "x": 0.58671875, +// "y": 0.5319444444444444 +// }, +// { +// "x": 0.4625, +// "y": 0.5388888888888889 +// } +// ], +// "id": "33" +// }, +// "causeArea": [ +// { +// "x": 0.5145945072174072, +// "y": 0.47744250827365453 +// }, +// { +// "x": 0.5844542980194092, +// "y": 0.47744250827365453 +// }, +// { +// "x": 0.5844542980194092, +// "y": 0.5219768948025174 +// }, +// { +// "x": 0.5145945072174072, +// "y": 0.5219768948025174 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Ce38fed74b7af&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---21-_e3ac9a863513_meta", +// "fileUri": "weed://21,e3ac9a863513_meta", +// "startTime": 1699404795000, +// "endTime": 1699405095000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311061000005", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1699248922000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0, +// "y": 0.5153129577636719 +// }, +// { +// "x": 0.1167366623878479, +// "y": 0.5153129577636719 +// }, +// { +// "x": 0.1167366623878479, +// "y": 0.7608637491861979 +// }, +// { +// "x": 0, +// "y": 0.7608637491861979 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cce93f60c4164&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---18-_ceb28e39043a_meta", +// "fileUri": "weed://18,ceb28e39043a_meta", +// "startTime": 1699248622000, +// "endTime": 1699248922000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311061000004", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1699248820000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.31171875, +// "y": 0.7375 +// }, +// { +// "x": 0.2984375, +// "y": 0.8222222222222222 +// }, +// { +// "x": 0.7328125, +// "y": 0.8208333333333333 +// }, +// { +// "x": 0.7234375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.61640625, +// "y": 0.7361111111111112 +// }, +// { +// "x": 0.6109375, +// "y": 0.65 +// }, +// { +// "x": 0.4484375, +// "y": 0.65 +// }, +// { +// "x": 0.42265625, +// "y": 0.7402777777777778 +// } +// ], +// "id": "51" +// }, +// "causeArea": [ +// { +// "x": 0.5675284385681152, +// "y": 0.6267940097384983 +// }, +// { +// "x": 0.6086472034454345, +// "y": 0.6267940097384983 +// }, +// { +// "x": 0.6086472034454345, +// "y": 0.7068120744493273 +// }, +// { +// "x": 0.5675284385681152, +// "y": 0.7068120744493273 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cce4fc7b1c9f3&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---18-_ce63689e1106_meta", +// "fileUri": "weed://18,ce63689e1106_meta", +// "startTime": 1699248640000, +// "endTime": 1699248820000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311061000003", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1699238337000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0, +// "y": 0.5096410539415147 +// }, +// { +// "x": 0.11670963764190674, +// "y": 0.5096410539415147 +// }, +// { +// "x": 0.11670963764190674, +// "y": 0.7618143717447917 +// }, +// { +// "x": 0, +// "y": 0.7618143717447917 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Ccac15a3a3b9f&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---18-_cade17dfc38f_meta", +// "fileUri": "weed://18,cade17dfc38f_meta", +// "startTime": 1699238037000, +// "endTime": 1699238337000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311061000002", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1699237821000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.4691189765930176, +// "y": 0.38061341179741753 +// }, +// { +// "x": 0.8519363403320312, +// "y": 0.38061341179741753 +// }, +// { +// "x": 0.8519363403320312, +// "y": 0.933467780219184 +// }, +// { +// "x": 0.4691189765930176, +// "y": 0.933467780219184 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cca20c70a9a75&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---18-_ca3ff49a5677_meta", +// "fileUri": "weed://18,ca3ff49a5677_meta", +// "startTime": 1699237521000, +// "endTime": 1699237821000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311061000001", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1699230926000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0, +// "y": 0.5077662150065104 +// }, +// { +// "x": 0.1166608452796936, +// "y": 0.5077662150065104 +// }, +// { +// "x": 0.1166608452796936, +// "y": 0.7636883205837673 +// }, +// { +// "x": 0, +// "y": 0.7636883205837673 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cc307bf56a368&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---18-_c326431e2ac1_meta", +// "fileUri": "weed://18,c326431e2ac1_meta", +// "startTime": 1699230626000, +// "endTime": 1699230926000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311031000008", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1699001277000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0, +// "y": 0.5053539276123047 +// }, +// { +// "x": 0.108509361743927, +// "y": 0.5053539276123047 +// }, +// { +// "x": 0.108509361743927, +// "y": 0.7529181586371527 +// }, +// { +// "x": 0, +// "y": 0.7529181586371527 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cc18fc9ddf3a5&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---18-_c1ae946df30f_meta", +// "fileUri": "weed://18,c1ae946df30f_meta", +// "startTime": 1699000977000, +// "endTime": 1699001277000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311031000007", +// "typeCode": "B2-01-98", +// "acceptTypeCode": "B2-01-98", +// "createTime": 1699000521000, +// "address": "宜川路351弄66号东", +// "roi": { +// "point_list": [ +// { +// "x": 0.4859375, +// "y": 0.4791666666666667 +// }, +// { +// "x": 0.6046875, +// "y": 0.475 +// }, +// { +// "x": 0.60078125, +// "y": 0.41944444444444445 +// }, +// { +// "x": 0.4859375, +// "y": 0.4263888888888889 +// } +// ], +// "id": "34" +// }, +// "causeArea": [ +// { +// "x": 0.4919928550720215, +// "y": 0.42913186815049914 +// }, +// { +// "x": 0.5364473342895508, +// "y": 0.42913186815049914 +// }, +// { +// "x": 0.5364473342895508, +// "y": 0.4861069573296441 +// }, +// { +// "x": 0.4919928550720215, +// "y": 0.4861069573296441 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cc06c200d6137&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---18-_c08b9f484868_meta", +// "fileUri": "weed://18,c08b9f484868_meta", +// "startTime": 1699000221000, +// "endTime": 1699000521000 +// }, +// "deviceId": "14324854723642368", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311031000006", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1698992971000, +// "address": "合阳小区150弄大门口", +// "roi": { +// "point_list": [ +// { +// "x": 0.17265625, +// "y": 0.49583333333333335 +// }, +// { +// "x": 0.146875, +// "y": 0.9972222222222222 +// }, +// { +// "x": 0.915625, +// "y": 0.9986111111111111 +// }, +// { +// "x": 0.91484375, +// "y": 0.7013888888888888 +// }, +// { +// "x": 0.7703125, +// "y": 0.5083333333333333 +// }, +// { +// "x": 0.65625, +// "y": 0.475 +// } +// ], +// "id": "52" +// }, +// "causeArea": [ +// { +// "x": 0.17010126113891602, +// "y": 0.5017389509412977 +// }, +// { +// "x": 0.8151801109313965, +// "y": 0.5017389509412977 +// }, +// { +// "x": 0.8151801109313965, +// "y": 1 +// }, +// { +// "x": 0.17010126113891602, +// "y": 1 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cbdab52dc4f02&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_bdc81fa3a756_meta", +// "fileUri": "weed://16,bdc81fa3a756_meta", +// "startTime": 1698992671000, +// "endTime": 1698992971000 +// }, +// "deviceId": "14324898752889856", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311031000005", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1698992750000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 6.243580628506606e-7, +// "y": 0.5010227627224393 +// }, +// { +// "x": 0.29892380237579347, +// "y": 0.5010227627224393 +// }, +// { +// "x": 0.29892380237579347, +// "y": 0.83829345703125 +// }, +// { +// "x": 6.243580628506606e-7, +// "y": 0.83829345703125 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cbcfc48f444c1&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_bd1b2eac3de7_meta", +// "fileUri": "weed://16,bd1b2eac3de7_meta", +// "startTime": 1698992450000, +// "endTime": 1698992750000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311031000004", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698991787000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.31171875, +// "y": 0.7375 +// }, +// { +// "x": 0.2984375, +// "y": 0.8222222222222222 +// }, +// { +// "x": 0.7328125, +// "y": 0.8208333333333333 +// }, +// { +// "x": 0.7234375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.61640625, +// "y": 0.7361111111111112 +// }, +// { +// "x": 0.6109375, +// "y": 0.65 +// }, +// { +// "x": 0.4484375, +// "y": 0.65 +// }, +// { +// "x": 0.42265625, +// "y": 0.7402777777777778 +// } +// ], +// "id": "51" +// }, +// "causeArea": [ +// { +// "x": 0.5881219387054444, +// "y": 0.6616871727837457 +// }, +// { +// "x": 0.6305920124053955, +// "y": 0.6616871727837457 +// }, +// { +// "x": 0.6305920124053955, +// "y": 0.7333631727430555 +// }, +// { +// "x": 0.5881219387054444, +// "y": 0.7333631727430555 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cbc0e17190fbc&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_bc206f68826b_meta", +// "fileUri": "weed://16,bc206f68826b_meta", +// "startTime": 1698991607000, +// "endTime": 1698991787000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311031000003", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1698979357000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.301703143119812, +// "y": 0.4751155429416233 +// }, +// { +// "x": 0.5756273746490479, +// "y": 0.4751155429416233 +// }, +// { +// "x": 0.5756273746490479, +// "y": 0.8925325181749132 +// }, +// { +// "x": 0.301703143119812, +// "y": 0.8925325181749132 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cba3ae7ae3ea8&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_ba58645580aa_meta", +// "fileUri": "weed://16,ba58645580aa_meta", +// "startTime": 1698979057000, +// "endTime": 1698979357000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311031000002", +// "typeCode": "B2-01-98", +// "acceptTypeCode": "B2-01-98", +// "createTime": 1698972039000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.50859375, +// "y": 0.49444444444444446 +// }, +// { +// "x": 0.559375, +// "y": 0.49583333333333335 +// }, +// { +// "x": 0.5625, +// "y": 0.41805555555555557 +// }, +// { +// "x": 0.50625, +// "y": 0.42777777777777776 +// } +// ], +// "id": "35" +// }, +// "causeArea": [ +// { +// "x": 0.5303625106811524, +// "y": 0.44585274590386287 +// }, +// { +// "x": 0.5630361557006835, +// "y": 0.44585274590386287 +// }, +// { +// "x": 0.5630361557006835, +// "y": 0.48036939832899306 +// }, +// { +// "x": 0.5303625106811524, +// "y": 0.48036939832899306 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cb8ae3c1472dc&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_b8cc60d00793_meta", +// "fileUri": "weed://16,b8cc60d00793_meta", +// "startTime": 1698971739000, +// "endTime": 1698972039000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311031000001", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1698971723000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.030922913551330568, +// "y": 0.4902479383680556 +// }, +// { +// "x": 0.22559809684753418, +// "y": 0.4902479383680556 +// }, +// { +// "x": 0.22559809684753418, +// "y": 0.7967398749457465 +// }, +// { +// "x": 0.030922913551330568, +// "y": 0.7967398749457465 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cb83fe054f735&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_b85e09856cc9_meta", +// "fileUri": "weed://16,b85e09856cc9_meta", +// "startTime": 1698971423000, +// "endTime": 1698971723000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311021000006", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698911793000, +// "address": "宜川路351弄66号东", +// "roi": { +// "point_list": [ +// { +// "x": 0.6, +// "y": 0.6013888888888889 +// }, +// { +// "x": 0.446875, +// "y": 0.6 +// }, +// { +// "x": 0.44296875, +// "y": 0.6875 +// }, +// { +// "x": 0.37578125, +// "y": 0.6986111111111111 +// }, +// { +// "x": 0.365625, +// "y": 0.6375 +// }, +// { +// "x": 0.24375, +// "y": 0.625 +// }, +// { +// "x": 0.1984375, +// "y": 0.7041666666666667 +// }, +// { +// "x": 0.1203125, +// "y": 0.7527777777777778 +// }, +// { +// "x": 0.115625, +// "y": 0.9777777777777777 +// }, +// { +// "x": 0.3359375, +// "y": 0.9888888888888889 +// }, +// { +// "x": 0.32734375, +// "y": 0.7569444444444444 +// }, +// { +// "x": 0.34296875, +// "y": 0.7527777777777778 +// }, +// { +// "x": 0.36953125, +// "y": 0.9847222222222223 +// }, +// { +// "x": 0.52578125, +// "y": 0.9888888888888889 +// }, +// { +// "x": 0.52890625, +// "y": 0.7527777777777778 +// }, +// { +// "x": 0.54765625, +// "y": 0.7583333333333333 +// }, +// { +// "x": 0.54453125, +// "y": 0.9888888888888889 +// }, +// { +// "x": 0.7484375, +// "y": 0.9680555555555556 +// }, +// { +// "x": 0.70859375, +// "y": 0.7277777777777777 +// }, +// { +// "x": 0.6546875, +// "y": 0.7097222222222223 +// }, +// { +// "x": 0.6015625, +// "y": 0.7 +// } +// ], +// "id": "12" +// }, +// "causeArea": [ +// { +// "x": 0.1515350103378296, +// "y": 0.7810270521375868 +// }, +// { +// "x": 0.19394664764404296, +// "y": 0.7810270521375868 +// }, +// { +// "x": 0.19394664764404296, +// "y": 0.8467327541775174 +// }, +// { +// "x": 0.1515350103378296, +// "y": 0.8467327541775174 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cb51f776d1f39&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_b531c6929ee8_meta", +// "fileUri": "weed://16,b531c6929ee8_meta", +// "startTime": 1698911613000, +// "endTime": 1698911793000 +// }, +// "deviceId": "14324854723642368", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311021000005", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698906223000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.31171875, +// "y": 0.7375 +// }, +// { +// "x": 0.2984375, +// "y": 0.8222222222222222 +// }, +// { +// "x": 0.7328125, +// "y": 0.8208333333333333 +// }, +// { +// "x": 0.7234375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.61640625, +// "y": 0.7361111111111112 +// }, +// { +// "x": 0.6109375, +// "y": 0.65 +// }, +// { +// "x": 0.4484375, +// "y": 0.65 +// }, +// { +// "x": 0.42265625, +// "y": 0.7402777777777778 +// } +// ], +// "id": "51" +// }, +// "causeArea": [ +// { +// "x": 0.5518452644348144, +// "y": 0.5970118628607856 +// }, +// { +// "x": 0.6019459724426269, +// "y": 0.5970118628607856 +// }, +// { +// "x": 0.6019459724426269, +// "y": 0.6787878672281901 +// }, +// { +// "x": 0.5518452644348144, +// "y": 0.6787878672281901 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cb49336a3e573&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_b4a6882ca1c6_meta", +// "fileUri": "weed://16,b4a6882ca1c6_meta", +// "startTime": 1698906043000, +// "endTime": 1698906223000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311021000004", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1698893422000, +// "address": "合阳小区150弄大门口", +// "roi": { +// "point_list": [ +// { +// "x": 0.17265625, +// "y": 0.49583333333333335 +// }, +// { +// "x": 0.146875, +// "y": 0.9972222222222222 +// }, +// { +// "x": 0.915625, +// "y": 0.9986111111111111 +// }, +// { +// "x": 0.91484375, +// "y": 0.7013888888888888 +// }, +// { +// "x": 0.7703125, +// "y": 0.5083333333333333 +// }, +// { +// "x": 0.65625, +// "y": 0.475 +// } +// ], +// "id": "52" +// }, +// "causeArea": [ +// { +// "x": 0.10505242347717285, +// "y": 0.5100261688232421 +// }, +// { +// "x": 0.7239205360412597, +// "y": 0.5100261688232421 +// }, +// { +// "x": 0.7239205360412597, +// "y": 1 +// }, +// { +// "x": 0.10505242347717285, +// "y": 1 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cb29966764760&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_b2b8e602ffbe_meta", +// "fileUri": "weed://16,b2b8e602ffbe_meta", +// "startTime": 1698893122000, +// "endTime": 1698893422000 +// }, +// "deviceId": "14324898752889856", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311021000003", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1698892705000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.0021980803459882734, +// "y": 0.523619884914822 +// }, +// { +// "x": 0.21012723445892334, +// "y": 0.523619884914822 +// }, +// { +// "x": 0.21012723445892334, +// "y": 0.8356285942925348 +// }, +// { +// "x": 0.0021980803459882734, +// "y": 0.8356285942925348 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Cb1756bf17c22&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_b1924e3b932b_meta", +// "fileUri": "weed://16,b1924e3b932b_meta", +// "startTime": 1698892405000, +// "endTime": 1698892705000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311021000002", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1698890893000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.22393240928649902, +// "y": 0.5238442738850911 +// }, +// { +// "x": 0.44884824752807617, +// "y": 0.5238442738850911 +// }, +// { +// "x": 0.44884824752807617, +// "y": 0.8957440694173177 +// }, +// { +// "x": 0.22393240928649902, +// "y": 0.8957440694173177 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Caf8b734dc956&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---16-_afa85ee8a848_meta", +// "fileUri": "weed://16,afa85ee8a848_meta", +// "startTime": 1698890593000, +// "endTime": 1698890893000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311021000001", +// "typeCode": "A2-04-09", +// "acceptTypeCode": "A2-04-09", +// "createTime": 1698885323000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.00007996534695848822, +// "y": 0.5227838304307726 +// }, +// { +// "x": 0.21125531196594238, +// "y": 0.5227838304307726 +// }, +// { +// "x": 0.21125531196594238, +// "y": 0.8301631503634983 +// }, +// { +// "x": 0.00007996534695848822, +// "y": 0.8301631503634983 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Ca9d0f8db09d8&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---14-_a9eddcba3a26_meta", +// "fileUri": "weed://14,a9eddcba3a26_meta", +// "startTime": 1698885023000, +// "endTime": 1698885323000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000078", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698828996000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.31171875, +// "y": 0.7375 +// }, +// { +// "x": 0.2984375, +// "y": 0.8222222222222222 +// }, +// { +// "x": 0.7328125, +// "y": 0.8208333333333333 +// }, +// { +// "x": 0.7234375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.61640625, +// "y": 0.7361111111111112 +// }, +// { +// "x": 0.6109375, +// "y": 0.65 +// }, +// { +// "x": 0.4484375, +// "y": 0.65 +// }, +// { +// "x": 0.42265625, +// "y": 0.7402777777777778 +// } +// ], +// "id": "51" +// }, +// "causeArea": [ +// { +// "x": 0.6005354881286621, +// "y": 0.6618516710069444 +// }, +// { +// "x": 0.6396817684173584, +// "y": 0.6618516710069444 +// }, +// { +// "x": 0.6396817684173584, +// "y": 0.7265651279025608 +// }, +// { +// "x": 0.6005354881286621, +// "y": 0.7265651279025608 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Ca96696f87a26&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---14-_a9790211afcb_meta", +// "fileUri": "weed://14,a9790211afcb_meta", +// "startTime": 1698828816000, +// "endTime": 1698828996000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000077", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698820417000, +// "address": "名都花园志丹路151弄155号南", +// "roi": { +// "point_list": [ +// { +// "x": 0.0234375, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.00234375, +// "y": 0.6444444444444445 +// }, +// { +// "x": 0.00390625, +// "y": 0.8416666666666667 +// }, +// { +// "x": 0.2515625, +// "y": 0.9069444444444444 +// }, +// { +// "x": 0.4515625, +// "y": 0.9347222222222222 +// }, +// { +// "x": 0.94140625, +// "y": 0.8180555555555555 +// }, +// { +// "x": 0.77578125, +// "y": 0.5791666666666667 +// }, +// { +// "x": 0.509375, +// "y": 0.5958333333333333 +// }, +// { +// "x": 0.4078125, +// "y": 0.6027777777777777 +// }, +// { +// "x": 0.38984375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.375, +// "y": 0.6458333333333334 +// }, +// { +// "x": 0.371875, +// "y": 0.6138888888888889 +// }, +// { +// "x": 0.3359375, +// "y": 0.6166666666666667 +// }, +// { +// "x": 0.334375, +// "y": 0.6513888888888889 +// }, +// { +// "x": 0.321875, +// "y": 0.6527777777777778 +// }, +// { +// "x": 0.31796875, +// "y": 0.6 +// } +// ], +// "id": "14" +// }, +// "causeArea": [ +// { +// "x": 0.4859012126922607, +// "y": 0.7140936109754774 +// }, +// { +// "x": 0.5452122211456298, +// "y": 0.7140936109754774 +// }, +// { +// "x": 0.5452122211456298, +// "y": 0.7647516038682726 +// }, +// { +// "x": 0.4859012126922607, +// "y": 0.7647516038682726 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2Ca90a2e9c5f61&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---14-_a91e10f3c993_meta", +// "fileUri": "weed://14,a91e10f3c993_meta", +// "startTime": 1698820237000, +// "endTime": 1698820417000 +// }, +// "deviceId": "14324899274163200", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000045", +// "typeCode": "B2-01-98", +// "acceptTypeCode": "B2-01-98", +// "createTime": 1698794742000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.45078125, +// "y": 0.5208333333333334 +// }, +// { +// "x": 0.46640625, +// "y": 0.48194444444444445 +// }, +// { +// "x": 0.5859375, +// "y": 0.4791666666666667 +// }, +// { +// "x": 0.58671875, +// "y": 0.5319444444444444 +// }, +// { +// "x": 0.4625, +// "y": 0.5388888888888889 +// } +// ], +// "id": "33" +// }, +// "causeArea": [ +// { +// "x": 0.4983633518218994, +// "y": 0.48923077053493924 +// }, +// { +// "x": 0.5452874183654786, +// "y": 0.48923077053493924 +// }, +// { +// "x": 0.5452874183654786, +// "y": 0.530176501803928 +// }, +// { +// "x": 0.4983633518218994, +// "y": 0.530176501803928 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C847586a5ca09&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---12-_84979f8bda0f_meta", +// "fileUri": "weed://12,84979f8bda0f_meta", +// "startTime": 1698794442000, +// "endTime": 1698794742000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000036", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698790506000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.4959703922271729, +// "y": 0.5743371751573351 +// }, +// { +// "x": 0.5616868019104004, +// "y": 0.5743371751573351 +// }, +// { +// "x": 0.5616868019104004, +// "y": 0.67598876953125 +// }, +// { +// "x": 0.4959703922271729, +// "y": 0.67598876953125 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C731718022310&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---10-_732a0f099854_meta", +// "fileUri": "weed://10,732a0f099854_meta", +// "startTime": 1698790326000, +// "endTime": 1698790506000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000029", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698787866000, +// "address": "合阳小区150弄大门口", +// "roi": { +// "point_list": [ +// { +// "x": 0.3375, +// "y": 0.7069444444444445 +// }, +// { +// "x": 0.36171875, +// "y": 0.7097222222222223 +// }, +// { +// "x": 0.39765625, +// "y": 0.6875 +// }, +// { +// "x": 0.52265625, +// "y": 0.6861111111111111 +// }, +// { +// "x": 0.534375, +// "y": 0.6972222222222222 +// }, +// { +// "x": 0.596875, +// "y": 0.7069444444444445 +// }, +// { +// "x": 0.60390625, +// "y": 0.8708333333333333 +// }, +// { +// "x": 0.33671875, +// "y": 0.8319444444444445 +// } +// ], +// "id": "26" +// }, +// "causeArea": [ +// { +// "x": 0.48544964790344236, +// "y": 0.6237070719401042 +// }, +// { +// "x": 0.5519887924194335, +// "y": 0.6237070719401042 +// }, +// { +// "x": 0.5519887924194335, +// "y": 0.7306293063693576 +// }, +// { +// "x": 0.48544964790344236, +// "y": 0.7306293063693576 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C6af7f70cb925&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---8-_6b0a5a84c7e3_meta", +// "fileUri": "weed://8,6b0a5a84c7e3_meta", +// "startTime": 1698787686000, +// "endTime": 1698787866000 +// }, +// "deviceId": "14324898752889856", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000028", +// "typeCode": "B2-01-98", +// "acceptTypeCode": "B2-01-98", +// "createTime": 1698787237000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.45078125, +// "y": 0.5208333333333334 +// }, +// { +// "x": 0.46640625, +// "y": 0.48194444444444445 +// }, +// { +// "x": 0.5859375, +// "y": 0.4791666666666667 +// }, +// { +// "x": 0.58671875, +// "y": 0.5319444444444444 +// }, +// { +// "x": 0.4625, +// "y": 0.5388888888888889 +// } +// ], +// "id": "33" +// }, +// "causeArea": [ +// { +// "x": 0.5012503623962402, +// "y": 0.4798249986436632 +// }, +// { +// "x": 0.5497101306915283, +// "y": 0.4798249986436632 +// }, +// { +// "x": 0.5497101306915283, +// "y": 0.5459707472059462 +// }, +// { +// "x": 0.5012503623962402, +// "y": 0.5459707472059462 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C6930bc8804c1&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---8-_694ea1294a91_meta", +// "fileUri": "weed://8,694ea1294a91_meta", +// "startTime": 1698786937000, +// "endTime": 1698787237000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000021", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698784486000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.45792713165283205, +// "y": 0.628507317437066 +// }, +// { +// "x": 0.4915574550628662, +// "y": 0.628507317437066 +// }, +// { +// "x": 0.4915574550628662, +// "y": 0.6793708801269531 +// }, +// { +// "x": 0.45792713165283205, +// "y": 0.6793708801269531 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C5cfa868ad5b8&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---8-_5d0eea3d5e9e_meta", +// "fileUri": "weed://8,5d0eea3d5e9e_meta", +// "startTime": 1698784306000, +// "endTime": 1698784486000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000019", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698783803000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.5873856544494629, +// "y": 0.6794630262586806 +// }, +// { +// "x": 0.6377851009368897, +// "y": 0.6794630262586806 +// }, +// { +// "x": 0.6377851009368897, +// "y": 0.7321868896484375 +// }, +// { +// "x": 0.5873856544494629, +// "y": 0.7321868896484375 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C599ce68bdc3a&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---8-_59b0b831eea7_meta", +// "fileUri": "weed://8,59b0b831eea7_meta", +// "startTime": 1698783623000, +// "endTime": 1698783803000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000010", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698776475000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.5867368698120117, +// "y": 0.677024417453342 +// }, +// { +// "x": 0.6374879837036133, +// "y": 0.677024417453342 +// }, +// { +// "x": 0.6374879837036133, +// "y": 0.7332873026529948 +// }, +// { +// "x": 0.5867368698120117, +// "y": 0.7332873026529948 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C3b3cf791003e&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---6-_3b528d00cec4_meta", +// "fileUri": "weed://6,3b528d00cec4_meta", +// "startTime": 1698776295000, +// "endTime": 1698776475000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000009", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698776183000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.45762200355529786, +// "y": 0.6287628173828125 +// }, +// { +// "x": 0.49112472534179685, +// "y": 0.6287628173828125 +// }, +// { +// "x": 0.49112472534179685, +// "y": 0.6799477895100912 +// }, +// { +// "x": 0.45762200355529786, +// "y": 0.6799477895100912 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C3a0bd1a4a87f&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---6-_3a1dd9dd58f6_meta", +// "fileUri": "weed://6,3a1dd9dd58f6_meta", +// "startTime": 1698776003000, +// "endTime": 1698776183000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000003", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698769101000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.5853785514831543, +// "y": 0.675849109225803 +// }, +// { +// "x": 0.6425919532775879, +// "y": 0.675849109225803 +// }, +// { +// "x": 0.6425919532775879, +// "y": 0.7309663560655382 +// }, +// { +// "x": 0.5853785514831543, +// "y": 0.7309663560655382 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C25f8a5c26a7a&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---5-_260afe17a8a0_meta", +// "fileUri": "weed://5,260afe17a8a0_meta", +// "startTime": 1698768921000, +// "endTime": 1698769101000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000002", +// "typeCode": "B2-01-98", +// "acceptTypeCode": "B2-01-98", +// "createTime": 1698769087000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.45078125, +// "y": 0.5208333333333334 +// }, +// { +// "x": 0.46640625, +// "y": 0.48194444444444445 +// }, +// { +// "x": 0.5859375, +// "y": 0.4791666666666667 +// }, +// { +// "x": 0.58671875, +// "y": 0.5319444444444444 +// }, +// { +// "x": 0.4625, +// "y": 0.5388888888888889 +// } +// ], +// "id": "33" +// }, +// "causeArea": [ +// { +// "x": 0.5021638870239258, +// "y": 0.47742703755696614 +// }, +// { +// "x": 0.5502769470214843, +// "y": 0.47742703755696614 +// }, +// { +// "x": 0.5502769470214843, +// "y": 0.5392229292127821 +// }, +// { +// "x": 0.5021638870239258, +// "y": 0.5392229292127821 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C25d2d3902ee7&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---5-_25f2f34c6259_meta", +// "fileUri": "weed://5,25f2f34c6259_meta", +// "startTime": 1698768787000, +// "endTime": 1698769087000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2311011000001", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698768838000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.45763282775878905, +// "y": 0.6248090955946181 +// }, +// { +// "x": 0.49651622772216797, +// "y": 0.6248090955946181 +// }, +// { +// "x": 0.49651622772216797, +// "y": 0.6813922458224826 +// }, +// { +// "x": 0.45763282775878905, +// "y": 0.6813922458224826 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C2559ca408e68&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---5-_256c02d52c8b_meta", +// "fileUri": "weed://5,256c02d52c8b_meta", +// "startTime": 1698768658000, +// "endTime": 1698768838000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2310311000019", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698761622000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.4929366111755371, +// "y": 0.5516220940483941 +// }, +// { +// "x": 0.5556382179260254, +// "y": 0.5516220940483941 +// }, +// { +// "x": 0.5556382179260254, +// "y": 0.6754347059461806 +// }, +// { +// "x": 0.4929366111755371, +// "y": 0.6754347059461806 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C16df015800e9&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---5-_16f2e5a0279e_meta", +// "fileUri": "weed://5,16f2e5a0279e_meta", +// "startTime": 1698761442000, +// "endTime": 1698761622000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2310311000018", +// "typeCode": "B2-01-98", +// "acceptTypeCode": "B2-01-98", +// "createTime": 1698761203000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.45078125, +// "y": 0.5208333333333334 +// }, +// { +// "x": 0.46640625, +// "y": 0.48194444444444445 +// }, +// { +// "x": 0.5859375, +// "y": 0.4791666666666667 +// }, +// { +// "x": 0.58671875, +// "y": 0.5319444444444444 +// }, +// { +// "x": 0.4625, +// "y": 0.5388888888888889 +// } +// ], +// "id": "33" +// }, +// "causeArea": [ +// { +// "x": 0.4988424301147461, +// "y": 0.4742371453179253 +// }, +// { +// "x": 0.547465705871582, +// "y": 0.4742371453179253 +// }, +// { +// "x": 0.547465705871582, +// "y": 0.5228624131944445 +// }, +// { +// "x": 0.4988424301147461, +// "y": 0.5228624131944445 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C15cda7e3b85b&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---5-_15ebd4c0cd19_meta", +// "fileUri": "weed://5,15ebd4c0cd19_meta", +// "startTime": 1698760903000, +// "endTime": 1698761203000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2310311000017", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698760761000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.5859990596771241, +// "y": 0.684348381890191 +// }, +// { +// "x": 0.6423850536346436, +// "y": 0.684348381890191 +// }, +// { +// "x": 0.6423850536346436, +// "y": 0.7285448710123698 +// }, +// { +// "x": 0.5859990596771241, +// "y": 0.7285448710123698 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C14f080734d2d&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---5-_1502146ba9d2_meta", +// "fileUri": "weed://5,1502146ba9d2_meta", +// "startTime": 1698760581000, +// "endTime": 1698760761000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2310311000008", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698752282000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.48691983222961427, +// "y": 0.5663486904568142 +// }, +// { +// "x": 0.5504248142242432, +// "y": 0.5663486904568142 +// }, +// { +// "x": 0.5504248142242432, +// "y": 0.6692958407931857 +// }, +// { +// "x": 0.48691983222961427, +// "y": 0.6692958407931857 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C069a381dcddd&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---4-_06ad45557dbd_meta", +// "fileUri": "weed://4,06ad45557dbd_meta", +// "startTime": 1698752102000, +// "endTime": 1698752282000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// }, +// { +// "caseNumber": "2310311000005", +// "typeCode": "A2-01-10", +// "acceptTypeCode": "A2-01-10", +// "createTime": 1698748728000, +// "address": "合阳小区150弄16号北", +// "roi": { +// "point_list": [ +// { +// "x": 0.30859375, +// "y": 0.7291666666666666 +// }, +// { +// "x": 0.41796875, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.4328125, +// "y": 0.6361111111111111 +// }, +// { +// "x": 0.625, +// "y": 0.6305555555555555 +// }, +// { +// "x": 0.63828125, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.740625, +// "y": 0.7319444444444444 +// }, +// { +// "x": 0.7453125, +// "y": 0.875 +// }, +// { +// "x": 0.2625, +// "y": 0.8527777777777777 +// } +// ], +// "id": "25" +// }, +// "causeArea": [ +// { +// "x": 0.5878280162811279, +// "y": 0.6301150851779513 +// }, +// { +// "x": 0.6373274803161622, +// "y": 0.6301150851779513 +// }, +// { +// "x": 0.6373274803161622, +// "y": 0.7274208068847656 +// }, +// { +// "x": 0.5878280162811279, +// "y": 0.7274208068847656 +// } +// ], +// "causeImage": { +// "uri": "/core/v5/resources/data?uri=weed%3A%2F%2F3%2C0315c293d94d&contentType=image/jpeg&token=WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", +// "isAutoUpload": true +// }, +// "causeVideo": { +// "objectName": "http://33.10.72.100:8080/v5/objectStorage/megcity-alarm-vedios/weed---4-_0328d7910dcf_meta", +// "fileUri": "weed://4,0328d7910dcf_meta", +// "startTime": 1698748548000, +// "endTime": 1698748728000 +// }, +// "deviceId": "14324898787623936", +// "state": 1, +// "disposalStatus": 1 +// } +// ] +// } +// } +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 records { get; set; } +} + +public class QueryRecords +{ + public string caseNumber { get; set; } + public string typeCode { get; set; } + public int state { get; set; } + public string deviceId { get; set; } + public int disposalStatus { get; set; } +} \ No newline at end of file diff --git a/AutoDispathingWork/Dto/QueryResponse/UserResp.cs b/AutoDispathingWork/Dto/QueryResponse/UserResp.cs new file mode 100644 index 0000000..f514f66 --- /dev/null +++ b/AutoDispathingWork/Dto/QueryResponse/UserResp.cs @@ -0,0 +1,166 @@ +using System.Text.Json.Serialization; + +namespace WorkerService1.Dto.QueryResponse; + +public class UserResp +{ +// { +// "code": 0, +// "msg": "成功", +// "data": { +// "pageNo": 1, +// "pageSize": 20, +// "totalRecords": 3, +// "records": [ +// { +// "organization": { +// "users": [], +// "orgName": "甘泉街道", +// "subOrgs": [], +// "userCount": 0, +// "orderCode": 0, +// "orgLevel": 1, +// "userTotalCount": 0, +// "permit": true, +// "id": "6e9232ef-7b84-11e8-86b1-6c92bf4e6960" +// }, +// "online": false, +// "passWDInit": true, +// "ip": "", +// "sso": false, +// "userName": "md123", +// "roles": [ +// { +// "users": [], +// "remark": "禁止编辑删除角色,否则影响系统正常使用", +// "roleName": "执法人员", +// "permissions": [], +// "id": "a2e267c0-d88d-4ecb-a4b5-d904e85dfbb6" +// } +// ], +// "pkiId": "", +// "creator": "27465e20-6942-4569-8141-2ff5c264111e", +// "isApp": false, +// "thumb": "", +// "phoneNo": "", +// "employeeId": "", +// "enabled": true, +// "userRealName": "名都物业", +// "datas": {}, +// "id": "1942ec57-5019-411d-b85f-a67055797e0f" +// }, +// { +// "organization": { +// "users": [], +// "orgName": "甘泉街道", +// "subOrgs": [], +// "userCount": 0, +// "orderCode": 0, +// "orgLevel": 1, +// "userTotalCount": 0, +// "permit": true, +// "id": "6e9232ef-7b84-11e8-86b1-6c92bf4e6960" +// }, +// "online": false, +// "passWDInit": false, +// "ip": "", +// "sso": false, +// "userName": "zgc123", +// "roles": [ +// { +// "users": [], +// "remark": "禁止编辑删除角色,否则影响系统正常使用", +// "roleName": "执法人员", +// "permissions": [], +// "id": "a2e267c0-d88d-4ecb-a4b5-d904e85dfbb6" +// } +// ], +// "pkiId": "", +// "creator": "27465e20-6942-4569-8141-2ff5c264111e", +// "isApp": false, +// "thumb": "", +// "phoneNo": "", +// "employeeId": "", +// "enabled": true, +// "userRealName": "朱龚超", +// "datas": {}, +// "id": "01edee4a-f345-4060-a33a-34bbd9b55247" +// }, +// { +// "organization": { +// "users": [], +// "orgName": "甘泉街道", +// "subOrgs": [], +// "userCount": 0, +// "orderCode": 0, +// "orgLevel": 1, +// "userTotalCount": 0, +// "permit": true, +// "id": "6e9232ef-7b84-11e8-86b1-6c92bf4e6960" +// }, +// "online": false, +// "passWDInit": false, +// "ip": "", +// "sso": false, +// "userName": "gm123", +// "roles": [ +// { +// "users": [], +// "remark": "", +// "roleName": "高级管理员", +// "permissions": [], +// "id": "0c772d50-a4af-439f-a18a-8fd332343d5e" +// }, +// { +// "users": [], +// "remark": "禁止编辑删除角色,否则影响系统正常使用", +// "roleName": "执法人员", +// "permissions": [], +// "id": "a2e267c0-d88d-4ecb-a4b5-d904e85dfbb6" +// } +// ], +// "pkiId": "", +// "creator": "27465e20-6942-4569-8141-2ff5c264111e", +// "isApp": false, +// "thumb": "", +// "phoneNo": "18721100373", +// "employeeId": "12138", +// "enabled": true, +// "userRealName": "张辉", +// "datas": {}, +// "id": "66fa9261-16f6-49aa-a391-5848f40301e0" +// } +// ], +// "totalPage": 1 +// } +// } + + [JsonPropertyName("code")] public int Code { get; set; } + [JsonPropertyName("msg")] public string Msg { get; set; } + [JsonPropertyName("data")] public Data Data { get; set; } +} + +public class Data +{ + [JsonPropertyName("pageNo")] + public int PageNo { get; set; } + [JsonPropertyName("pageSize")] + public int PageSize { get; set; } + [JsonPropertyName("totalRecords")] + public int TotalRecords { get; set; } + [JsonPropertyName("records")] + public Record[] Records { get; set; } + [JsonPropertyName("totalPage")] + public int TotalPage { get; set; } + +} + +public class Record +{ + [JsonPropertyName("id")] + public string Id { get; set; } + [JsonPropertyName("userName")] + public string UserName { get; set; } + [JsonPropertyName("userRealName")] + public string UserRealName { get; set; } +} \ No newline at end of file diff --git a/AutoDispathingWork/Dto/SpiderResponse.cs b/AutoDispathingWork/Dto/SpiderResponse.cs new file mode 100644 index 0000000..05a25f9 --- /dev/null +++ b/AutoDispathingWork/Dto/SpiderResponse.cs @@ -0,0 +1,16 @@ +namespace WorkerService1.Dto; + +public class SpiderResponse where T : class +{ + public bool IsSuccess { get; set; } + public SpiderResponseCode Code { get; set; } + public string? Message { get; set; } + public T? Result { get; set; } +} + +public enum SpiderResponseCode +{ + Success = 0, + Fail = 1, + Exception = 2 +} \ No newline at end of file diff --git a/AutoDispathingWork/Program.cs b/AutoDispathingWork/Program.cs new file mode 100644 index 0000000..81c2493 --- /dev/null +++ b/AutoDispathingWork/Program.cs @@ -0,0 +1,21 @@ +using WorkerService1; +using WorkerService1.Dto.Configuration; +using WorkerService1.Services; + + +var builder = Host.CreateApplicationBuilder(args); +var config = new ConfigurationManager() + .AddJsonFile("appsettings.json", false, true) + .Build(); + +builder.Services.AddSingleton(config); +builder.Services.Configure(config.GetSection("ClientOptions")); +builder.Services.AddHttpClient(); +builder.Services.AddMemoryCache(); +builder.Services.AddLogging(); +builder.Services.AddSingleton(); +builder.Services.AddHostedService(); +builder.Services.AddHostedService(); + +var host = builder.Build(); +host.Run(); \ No newline at end of file diff --git a/AutoDispathingWork/Properties/launchSettings.json b/AutoDispathingWork/Properties/launchSettings.json new file mode 100644 index 0000000..e5d9dbd --- /dev/null +++ b/AutoDispathingWork/Properties/launchSettings.json @@ -0,0 +1,12 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "profiles": { + "WorkerService1": { + "commandName": "Project", + "dotnetRunMessages": true, + "environmentVariables": { + "DOTNET_ENVIRONMENT": "Development" + } + } + } +} diff --git a/AutoDispathingWork/Services/SpiderServices.cs b/AutoDispathingWork/Services/SpiderServices.cs new file mode 100644 index 0000000..277156a --- /dev/null +++ b/AutoDispathingWork/Services/SpiderServices.cs @@ -0,0 +1,294 @@ +using System.Net.Http.Json; +using System.Text; +using System.Text.Json; +using Microsoft.Extensions.Caching.Memory; +using Microsoft.Extensions.Options; +using WorkerService1.Dto; +using WorkerService1.Dto.Configuration; +using WorkerService1.Dto.QueryRequest; +using WorkerService1.Dto.QueryResponse; + +namespace WorkerService1.Services; + +public class SpiderServices +{ + private readonly IHttpClientFactory _httpClientFactory; + private readonly IOptionsMonitor _optionsMonitor; + private readonly IMemoryCache _memoryCache; + private readonly ILogger _logger; + private readonly IServiceProvider _serviceProvider; + + public SpiderServices(IHttpClientFactory httpClientFactory, IOptionsMonitor optionsMonitor, + IMemoryCache memoryCache, ILogger logger, IServiceProvider serviceProvider) + { + _httpClientFactory = httpClientFactory; + _optionsMonitor = optionsMonitor; + _memoryCache = memoryCache; + _logger = logger; + _serviceProvider = serviceProvider; + } + + private IOptionsMonitor OptionsMonitor => _serviceProvider.CreateScope().ServiceProvider + .GetRequiredService>(); + + + + public async Task> Login() + { + using var client = _httpClientFactory.CreateClient(); + var loginApi = OptionsMonitor.CurrentValue.LoginUrl; + var json = $@" + {{""userName"":""{_optionsMonitor.CurrentValue.UserName}"",""userPwd"":""{_optionsMonitor.CurrentValue.Password}"",""type"":""account"",""clientAppId"":""megcity-web""}} + "; + client.DefaultRequestHeaders.Add("Module-Alias", "pending-forward"); + client.DefaultRequestHeaders.Add("Module-Source", "megcity-web"); + client.DefaultRequestHeaders.Add("Origin", "http://121.4.75.240"); + var response = await client.PostAsync(loginApi, new StringContent(json, Encoding.UTF8, "application/json")); + var respJsonStr = await response.Content.ReadAsStringAsync(); + _logger.LogInformation("登录返回: {tokenRes}", respJsonStr); + var tokenRes = JsonSerializer.Deserialize(respJsonStr); + if (response.IsSuccessStatusCode) + { + if (tokenRes?.Code == 0) + { + _logger.LogInformation("成功登录, token: {token}", tokenRes?.Data?.Token); + return new SpiderResponse() + { + IsSuccess = true, + Result = tokenRes.Data, + Code = SpiderResponseCode.Success, + Message = "成功登录" + }; + } + } + + return new SpiderResponse() + { + IsSuccess = false, + Result = null, + Code = SpiderResponseCode.Fail, + Message = "登录失败" + }; + } + + public async Task GetToken() + { + return await _memoryCache.GetOrCreateAsync(nameof(GetToken), async entry => + { + var loginRes = await Login(); + if (!loginRes.IsSuccess) return null; + entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(loginRes.Result?.ExpireTime ?? 0); + return loginRes.Result?.Token; + }); + } + + + public async Task> GetTaskList(int state) + { + // "headers": { + // "accept": "application/json, text/plain, */*", + // "accept-language": "zh-CN,zh;q=0.9", + // "authorization": "WVPCDLzQeRWYySPkQMuLAislgqfQJuubaHmDnfgyRkSxNCpbwzTgOrvtjSeg", + // "client-app-id": "megcity-web", + // "content-type": "application/json;charset=UTF-8", + // "module-alias": "pending-forward", + // "module-source": "megcity-web" + // }, + // "referrer": "http://33.10.72.100/megcity/", + // "referrerPolicy": "strict-origin-when-cross-origin", + var token = await GetToken(); + using var client = _httpClientFactory.CreateClient(); + client.DefaultRequestHeaders.Add("authorization", $"{token}"); + client.DefaultRequestHeaders.Add("accept-language", "zh-CN,zh;q=0.9"); + client.DefaultRequestHeaders.Add("client-app-id", "megcity-web"); + client.DefaultRequestHeaders.Add("module-alias", "pending-forward"); + client.DefaultRequestHeaders.Add("module-source", "megcity-web"); + // var beginTime = DateTime.Now.AddMonths(-1); + var startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); + var beginTs = (long)(DateTime.Now.AddMonths(-1) - startTime).TotalMilliseconds; + var endTs = (long)(DateTime.Now - startTime).TotalMilliseconds; + var body = new QueryReq + { + State = new int[] { state }, + PageNo = 1, + PageSize = 50, + SortType = new int[] { 20, 10 }, + CreateStartTime = (long)beginTs, + CreateEndTime = (long)endTs + }; + // {"state":[3],"pageNo":1,"pageSize":50,"sortType":[40,10],"handleStartTime":1697293650750,"handleEndTime":1699885650750} + // {"state":[1],"pageNo":1,"pageSize":50,"sortType":[20,10],"createStartTime":1697290618034,"createEndTime":1699882618034} + // {\"state\":[1],\"pageNo\":1,\"pageSize\":50,\"sortType\":[20,10],\"createStartTime\":1697204639551,\"createEndTime\":1697204639551} + var taskPath = OptionsMonitor.CurrentValue.GetTaskUrl; + var response = await client.PostAsync(taskPath, + new StringContent(JsonSerializer.Serialize(body), Encoding.UTF8, "application/json")); + var respJsonStr = await response.Content.ReadAsStringAsync(); + _logger.LogInformation("获得列表返回json: {respJsonStr}", respJsonStr); + var spiderRes = JsonSerializer.Deserialize(respJsonStr); + if (response.IsSuccessStatusCode) + { + if (spiderRes?.code == 0) + { + _logger.LogInformation("成功获取监控结果"); + + return new SpiderResponse() + { + IsSuccess = true, + Result = spiderRes.data, + Code = SpiderResponseCode.Success, + Message = "成功获取监控结果" + }; + } + } + + return new SpiderResponse() + { + IsSuccess = false, + Result = null, + Code = SpiderResponseCode.Fail, + Message = "获取监控结果失败" + }; + } + + + // {"pageNo":1,"pageSize":20,"condition":{"roleIds":["a2e267c0-d88d-4ecb-a4b5-d904e85dfbb6"],"enabled":"null"}} + public async Task> GetUsers() + { + var token = await GetToken(); + using var client = _httpClientFactory.CreateClient(); + client.DefaultRequestHeaders.Add("authorization", $"{token}"); + client.DefaultRequestHeaders.Add("accept-language", "zh-CN,zh;q=0.9"); + client.DefaultRequestHeaders.Add("client-app-id", "megcity-web"); + client.DefaultRequestHeaders.Add("module-alias", "pending-forward"); + client.DefaultRequestHeaders.Add("module-source", "megcity-web"); + var request = new UserQuery(); + var userPath = OptionsMonitor.CurrentValue.GetUserUrl; + var response = await client.PostAsync(userPath, + new StringContent(JsonSerializer.Serialize(request), Encoding.UTF8, "application/json")); + var respJsonStr = await response.Content.ReadAsStringAsync(); + _logger.LogInformation("获得列表返回json: {respJsonStr}", respJsonStr); + var spiderRes = JsonSerializer.Deserialize(respJsonStr); + if (response.IsSuccessStatusCode) + { + if (spiderRes?.Code == 0) + { + _logger.LogInformation("成功获取监控结果"); + + return new SpiderResponse() + { + IsSuccess = true, + Result = spiderRes.Data, + Code = SpiderResponseCode.Success, + Message = "成功获取监控结果" + }; + } + } + + return new SpiderResponse() + { + IsSuccess = false, + Result = null, + Code = SpiderResponseCode.Fail, + Message = "获取监控结果失败" + }; + } + + //{"acceptTypeCode":"A2-01-10","target":2,"handlerId":"66fa9261-16f6-49aa-a391-5848f40301e0","typeCode":"A2-01-10"} + //{ "code": 0, "msg": "SUCCESS", "data": {} } + public async Task> DispatchTask(string caseNumber, string handlerId, string typeCode) + { + var token = await GetToken(); + using var client = _httpClientFactory.CreateClient(); + client.DefaultRequestHeaders.Add("authorization", $"{token}"); + client.DefaultRequestHeaders.Add("accept-language", "zh-CN,zh;q=0.9"); + client.DefaultRequestHeaders.Add("client-app-id", "megcity-web"); + client.DefaultRequestHeaders.Add("module-alias", "pending-forward"); + client.DefaultRequestHeaders.Add("module-source", "megcity-web"); + var request = new DispatchReq + { + AcceptTypeCode = typeCode, + Target = 2, + HandlerId = handlerId, + TypeCode = typeCode + }; + var dispatchPath = string.Format(OptionsMonitor.CurrentValue.DiposeOrderUrl, caseNumber); + + var response = await client.PostAsync(dispatchPath, + new StringContent(JsonSerializer.Serialize(request), Encoding.UTF8, "application/json")); + var respJsonStr = await response.Content.ReadAsStringAsync(); + _logger.LogInformation("获得列表返回json: {respJsonStr}", respJsonStr); + var spiderRes = JsonSerializer.Deserialize(respJsonStr); + + if (response.IsSuccessStatusCode) + { + if (spiderRes?.code == 0) + { + _logger.LogInformation("成功分发任务"); + + return new SpiderResponse() + { + IsSuccess = true, + Result = spiderRes.data, + Code = SpiderResponseCode.Success, + Message = "成功分发任务" + }; + } + } + + return new SpiderResponse() + { + IsSuccess = false, + Result = null, + Code = SpiderResponseCode.Fail, + Message = "分发任务失败" + }; + } + + + // api/megcity/v1/events/pass + public async Task> CloseFile(string caseNumber, string suggestion) + { + var token = await GetToken(); + using var client = _httpClientFactory.CreateClient(); + client.DefaultRequestHeaders.Add("authorization", $"{token}"); + client.DefaultRequestHeaders.Add("accept-language", "zh-CN,zh;q=0.9"); + client.DefaultRequestHeaders.Add("client-app-id", "megcity-web"); + client.DefaultRequestHeaders.Add("module-alias", "pending-forward"); + client.DefaultRequestHeaders.Add("module-source", "megcity-web"); + + var form = new MultipartFormDataContent(); + //Region为请求文件接口需要的参数,根据调用接口参数而定 + form.Add(new StringContent(caseNumber), "caseNumber"); + form.Add(new StringContent(suggestion), "suggestion"); + var closeFile = OptionsMonitor.CurrentValue.CloseFileUrl; + + var response = await client.PostAsync(closeFile, form); + var respJsonStr = await response.Content.ReadAsStringAsync(); + _logger.LogInformation("结案响应: {respJsonStr}", respJsonStr); + var spiderRes = JsonSerializer.Deserialize(respJsonStr); + + if (response.IsSuccessStatusCode) + { + if (spiderRes?.code == 0) + { + _logger.LogInformation("成功结案"); + + return new SpiderResponse() + { + IsSuccess = true, + Result = spiderRes.data, + Code = SpiderResponseCode.Success, + Message = "成功结案" + }; + } + } + + return new SpiderResponse() + { + IsSuccess = false, + Result = null, + Code = SpiderResponseCode.Fail, + Message = "结案失败" + }; + } +} \ No newline at end of file diff --git a/AutoDispathingWork/Worker.cs b/AutoDispathingWork/Worker.cs new file mode 100644 index 0000000..3db89c0 --- /dev/null +++ b/AutoDispathingWork/Worker.cs @@ -0,0 +1,71 @@ +using Microsoft.Extensions.Options; +using WorkerService1.Dto.Configuration; +using WorkerService1.Services; + +namespace WorkerService1; + +public class Worker : BackgroundService +{ + private readonly ILogger _logger; + private readonly SpiderServices _spiderServices; + private readonly IServiceProvider _serviceProvider; + + public Worker(ILogger logger,IServiceProvider serviceProvider, SpiderServices spiderServices) + { + _logger = logger; + _serviceProvider = serviceProvider; + _spiderServices = spiderServices; + } + + protected override async Task ExecuteAsync(CancellationToken stoppingToken) + { + while (!stoppingToken.IsCancellationRequested) + { + if (_logger.IsEnabled(LogLevel.Information)) + { + _logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now); + } + + try + { + await Handle(); + } + catch (Exception e) + { + _logger.LogError("执行控制器发生错误,错误信息:ex{}", e.StackTrace); + } + finally + { + using var scope = _serviceProvider.CreateScope(); + var options = scope.ServiceProvider.GetRequiredService>(); + await Task.Delay(options.CurrentValue.Delay, stoppingToken); + } + } + } + + private async Task Handle() + { + var listRes = await _spiderServices.GetTaskList(1); + if (listRes.IsSuccess) + { + var needDispose = listRes.Result?.records.Where(x => x.disposalStatus == 1); + //轮询列表,看有没有符合状态的进行处理 + if (needDispose?.Any() ?? false) + { + //处理逻辑 + //1.查询角色是 城管?的用户 + var users = await _spiderServices.GetUsers(); + var cityManager = users.Result?.Records; + if (cityManager?.Any() ?? false) + { + foreach (var item in needDispose) + { + //2.进行派单操作 + var result = + await _spiderServices.DispatchTask(item.caseNumber, cityManager.First().Id, item.typeCode); + } + } + } + } + } +} \ No newline at end of file diff --git a/AutoDispathingWork/appsettings.Development.json b/AutoDispathingWork/appsettings.Development.json new file mode 100644 index 0000000..b2dcdb6 --- /dev/null +++ b/AutoDispathingWork/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/AutoDispathingWork/appsettings.json b/AutoDispathingWork/appsettings.json new file mode 100644 index 0000000..770f522 --- /dev/null +++ b/AutoDispathingWork/appsettings.json @@ -0,0 +1,19 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "ClientOptions": { + "ApiGateway": "http://121.4.75.240/", + "UserName": "ganquanjiedao", + "Password": "12345678a", + "Delay": 2000, + "LoginApi": "api/auth/v5/users/login", + "GetTaskApi": "api/megcity/v1/events/queryByWaterFall", + "GetUserApi": "api/galaxy/v1/auth/users/query", + "DiposeOrder": "api/megcity/v1/events/dispatch/{0}", + "CloseFileApi": "api/megcity/v1/events/pass" + } +}