|
|
@ -1,9 +1,13 @@
|
|
|
|
using Entity.Base;
|
|
|
|
using Entity.Api.Resp;
|
|
|
|
|
|
|
|
using Entity.Base;
|
|
|
|
using Entity.DbModel.System.SysBaseObject;
|
|
|
|
using Entity.DbModel.System.SysBaseObject;
|
|
|
|
using Entity.Dto.Req;
|
|
|
|
using Entity.Dto.Req;
|
|
|
|
|
|
|
|
using HybirdFrameworkCore.Entity;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using Service.Init;
|
|
|
|
using OfficeOpenXml.FormulaParsing.Excel.Functions.Text;
|
|
|
|
|
|
|
|
using Service.Station;
|
|
|
|
using Service.System;
|
|
|
|
using Service.System;
|
|
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WebStarter.Controllers.System
|
|
|
|
namespace WebStarter.Controllers.System
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -73,19 +77,53 @@ namespace WebStarter.Controllers.System
|
|
|
|
await _sysConfigService.BatchDeleteConfig(input);
|
|
|
|
await _sysConfigService.BatchDeleteConfig(input);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
/// <summary>
|
|
|
|
[Route("/api/sysConfig/GetStationNo")]
|
|
|
|
/// 站点基础信息
|
|
|
|
public string GetStationNo()
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
[HttpGet("StationBaseInfo")]
|
|
|
|
|
|
|
|
public async Task<Result<StationBaseInfoResp>> StationBaseInfo()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
StationBaseInfoResp stationBaseInfoResp = new StationBaseInfoResp
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return StaticStationInfo.StationName;
|
|
|
|
StationNo = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
StationName = _sysConfigService.Get(StationParamConst.StationName),
|
|
|
|
|
|
|
|
StationType = _sysConfigService.Get(StationParamConst.StationType),
|
|
|
|
|
|
|
|
StationSn = _sysConfigService.Get(StationParamConst.StationSn),
|
|
|
|
|
|
|
|
StationLocation = _sysConfigService.Get(StationParamConst.StationLocation),
|
|
|
|
|
|
|
|
Longitude = _sysConfigService.Get(StationParamConst.Longitude),
|
|
|
|
|
|
|
|
Latitude = _sysConfigService.Get(StationParamConst.Latitude),
|
|
|
|
|
|
|
|
AreaCode = _sysConfigService.Get(StationParamConst.AreaCode),
|
|
|
|
|
|
|
|
AreaName = _sysConfigService.Get(StationParamConst.AreaName),
|
|
|
|
|
|
|
|
Operatetionstime = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
Operatetionetime = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
Sevstatus = Convert.ToSByte(_sysConfigService.Get(StationParamConst.StationNo)),
|
|
|
|
|
|
|
|
Status = Convert.ToSByte(_sysConfigService.Get(StationParamConst.StationNo)),
|
|
|
|
|
|
|
|
LaunchTime = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
ContactWay = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
Principal = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
StationCompany = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
SocialCreditCode = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
StationSftVer = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
SupplierCode = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
StationVersion = _sysConfigService.Get(StationParamConst.StationNo),
|
|
|
|
|
|
|
|
HardwareVersion = Convert.ToSByte(_sysConfigService.Get(StationParamConst.StationNo)),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
return Result<StationBaseInfoResp>.Success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 站点编辑
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
[HttpPost("StationInfoEditor")]
|
|
|
|
|
|
|
|
public void StationInfoEditor()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
}
|
|
|
|
[Route("/api/sysConfig/SetStationNo/{stationNo}")]
|
|
|
|
|
|
|
|
public bool SetStationNo(string stationNo)
|
|
|
|
[HttpPost]
|
|
|
|
|
|
|
|
[Route("/api/sysFile/uploadAvatar")]
|
|
|
|
|
|
|
|
public async Task<Result<SysFile>> UploadAvatar([Required] IFormFile file)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
StaticStationInfo.StationName = stationNo;
|
|
|
|
return Result<SysFile>.Success();
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|