You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.9 KiB
82 lines
2.9 KiB
using Common.Shared.Application.BaseModels; |
|
using Common.Shared.Application.SafetyFirePro.RequestDto; |
|
using Common.Shared.Application.SafetyFirePro.ResponseDto; |
|
using Microsoft.AspNetCore.Authorization; |
|
using Microsoft.AspNetCore.Mvc; |
|
using System.Text.Json; |
|
using ThirdPartyServices.DomainService.ShenZhouShengAn; |
|
|
|
namespace ThirdPartyServices.API.Controllers.ShenZhouShengAn |
|
{ |
|
/// <summary> |
|
/// 用于太阳宫看板的综合安全态势模块-神州晟安公司接口 |
|
/// </summary> |
|
[Route("api/[controller]/[action]")] |
|
[ApiController] |
|
public class SunPalaceBoardSafetyController : ControllerBase |
|
{ |
|
private readonly ILogger<SunPalaceBoardSafetyController> _logger; |
|
|
|
private readonly ISunPalaceBoardSafetyService _secSituationService; |
|
|
|
public SunPalaceBoardSafetyController(ILogger<SunPalaceBoardSafetyController> logger, ISunPalaceBoardSafetyService secSituationService) |
|
{ |
|
_logger = logger; |
|
_secSituationService = secSituationService; |
|
} |
|
|
|
/// <summary> |
|
/// 生产风险识别(盾安云数据)智慧建筑的看板上使用 |
|
/// </summary> |
|
/// <returns></returns> |
|
[HttpGet("productionRisk")] |
|
public async Task<ApiResult<DangerRiskAreaResDto>> GetProductionRiskEchart() |
|
{ |
|
return await _secSituationService.GetProductionRiskEchart(); |
|
} |
|
|
|
/// <summary> |
|
/// 获取指定区域ID的隐患数据 |
|
/// </summary> |
|
/// <param name="regionId">返回本区域隐患(不包含下属子区域隐患)</param> |
|
/// <param name="pRegionId">返回本区域及下属子区域隐患</param> |
|
/// <returns></returns> |
|
[HttpGet("new/dangerInfo")] |
|
public async Task<ApiResult<DangerInfoRootResDto>> GetDangerInfoEchart(string? regionId, string? pRegionId) |
|
{ |
|
return await _secSituationService.GetDangerInfos(regionId, pRegionId); |
|
} |
|
|
|
/// <summary> |
|
///获得四色图图层列表 |
|
/// </summary> |
|
/// <returns></returns> |
|
[HttpGet("listFloor")] |
|
public async Task<ApiResult<FloorResDto>> GetListFloor() |
|
{ |
|
return await _secSituationService.GetListFloor(); |
|
} |
|
|
|
/// <summary> |
|
/// 获得四色图区域列表 |
|
/// </summary> |
|
/// <param name="floorId">图层id</param> |
|
/// <returns></returns> |
|
[HttpGet("getRiskMapInfo")] |
|
public async Task<ApiResult<RootReqDto>> GetRiskMapInfo(int floorId) |
|
{ |
|
return await _secSituationService.GetRiskMapInfo(floorId); |
|
} |
|
|
|
/// <summary> |
|
/// 获得危险作业(施工)数据 |
|
/// </summary> |
|
/// <param name="dto"></param> |
|
/// <returns></returns> |
|
[HttpPost("ledger")] |
|
public async Task<ApiResult<LedgerDto>> GetLedger(WorkTaskQueryParamsDto dto) |
|
{ |
|
return await _secSituationService.GetLedger(dto); |
|
} |
|
} |
|
} |