管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-03-14 4e2e497696cc0e7866bab056cd056d509b7d6c6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using ExportMap.cs;
using ExportMap.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
 
namespace ExportMap.Controllers
{
    public class ConvertController : ApiController
    {
        [HttpPost]
        public ResponseMsg<int> ToTileset([FromBody]XYZArgs args)
        {
            try
            {
                if (null == args || null == args.ids || args.ids.Count == 0)
                {
                    return ResponseMsg<int>.fail("请输入元数据id");
                }
 
                int count = ConvertUtils.Convert(args.ids);
 
                return ResponseMsg<int>.success("成功", count);
            }
            catch (Exception ex)
            {
                LogOut.Error(ex.StackTrace);
                return ResponseMsg<int>.fail(ex.Message);
            }
        }
    }
}