using Assets.Scripts.Apis.Models; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; namespace Assets.Scripts.Apis { public class MapInterruptRecordApi:ApiBase { /// /// 上传骑行记录到服务端 /// /// public JsonResult Add(MapInterruptRecord interruptRecord, List fileNames) { var result = Upload("MapRecord/AddMapInterruptRecord", interruptRecord, fileNames); var jsonResult = JsonConvert.DeserializeObject>(result); return jsonResult; } public async Task>> GetMapInterruptRecord(string keyword, int pageIndex, int pageSize, string type) { return await GetAsync>>($"MapRecord/v1/GetList?keyword={keyword}&pageIndex={pageIndex}&pageSize={pageSize}&type={type}"); } /// /// 通过ID获取设备商 /// /// /// public JsonResult GetAntManufacturer(int id) { return Get>($"MapRecord/GetAntManufacturerById?id={id}"); } } }