| | |
| | | using LFServer.Models; |
| | | using LFServer.cs; |
| | | using LFServer.Models; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | public class ExportController : ApiController |
| | | { |
| | | [HttpPost] |
| | | public void Start([FromBody]ExportArgs args) |
| | | public string Start([FromBody]ExportArgs args) |
| | | { |
| | | if (args == null || |
| | | string.IsNullOrWhiteSpace(args.layers)|| |
| | | (args.xmin == 0 && args.ymin == 0 && args.xmax == 0 && args.ymax == 0)) |
| | | { |
| | | return; |
| | | return null; |
| | | } |
| | | |
| | | args.SetDefault(); |
| | | return ExportUtil.Generate(args); |
| | | } |
| | | } |
| | | } |