using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using WIDESEA_Core; using WIDESEA_Core.BaseController; using WIDESEA_IBasicService; using WIDESEA_Model.Models; namespace WIDESEA_WMSServer.Controllers.Basic { [Route("api/CachePoint")] [ApiController] public class CachePointController : ApiBaseController { public CachePointController(ICachePointService service) : base(service) { } [HttpPost, Route("GetEndPoints"), AllowAnonymous] public WebResponseContent GetEndPoints() { return Service.GetEndPoints(); } //查询缓存架状态 [HttpPost, Route("GetHCJStaue"), AllowAnonymous] public WebResponseContent GetHCJStaue(string stationcode) { return Service.GetHCJStaue(stationcode); } [HttpPost,Route("UpdateHCJStaue"),AllowAnonymous] public WebResponseContent UpdateHCJStaue([FromBody]SaveModel saveModel) { return Service.UpdateHCJStaue(saveModel); } [HttpPost, Route("PrintStatusUp")] public WebResponseContent PrintStatusUp(string pointCode) { return Service.PrintStatusUp(pointCode); } } }