dengjunjie
2024-10-24 48e865c8ed5902ae34f133a29dfade36d3f018d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_IBasicService;
 
namespace WIDESEA_WMSServer.Controllers
{
    [Route("api/WCS")]
    [AllowAnonymous, ApiController]
    public class WCSInterfaceController : Controller
    {
        private readonly ILocationInfoService _locationInfoService;
        public WCSInterfaceController(ILocationInfoService locationInfoService)
        {
            _locationInfoService = locationInfoService;
        }
        [HttpPost, Route("GetPosition")]
        public WebResponseContent GetPosition(string position)
        {
            return _locationInfoService.GetPosition(position);
        }
    }
}