结果页面移除划船记录&设备断开扔保留之前的厂商序列号

This commit is contained in:
lishuo committed 2022-07-18 14:31:14 +08:00
1 parent 2697103479
commit 5b39dd985b
12 files changed
+92 -87

No files matched your search

@@ -0,0 +1,30 @@
using System;
namespace Assets.Scripts.Apis.Models
{
public class DeviceDetail
{
public int Id { get; set; }
public string Name { get; set; }
public int? AntManufacturerId { get; set; }
public int? AntModelId { get; set; }
public string AdvertisingData { get; set; }
public bool SupportsBluetooth { get; set; }
public bool SupportsAnt { get; set; }
//public SensorType SensorType { get; set; }
public int? PairingHelpId { get; set; }
public int? BestPracticesId { get; set; }
public DateTime Updated { get; set; }
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7d697543a3cdf6f46adc75828232116d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+4
View File
@@ -293,6 +293,10 @@ namespace Assets.Scripts.Apis
{
return await GetAsync<JsonResult<JObject>>("/home/getversions");
}
public async Task<JsonResult<List<DeviceDetail>>> GetDeviceList()
{
return await GetAsync<JsonResult<List<DeviceDetail>>>("/home/GetDeviceList");
}
public async Task<JsonResult<JObject>> ResetPassword(string phone, string captcha, string newPwd)
{
return await PostAsync<JsonResult<JObject>>("NoAuth/v1/ResetPassword", new {phone,captcha,newPwd });