一些细节修改

This commit is contained in:
Caiyanpeng committed 2021-07-23 15:04:46 +08:00
1 parent 1c2afb4125
commit ae3f9d2101
16 files changed
+812 -195

No files matched your search

+11 -2
View File
@@ -60,9 +60,9 @@ namespace Assets.Scripts.Apis
data = Newtonsoft.Json.JsonConvert.DeserializeObject<List<MapCompetitionModel>>(JsonConvert.SerializeObject(list.data))
};
}
public async Task<JsonResult<List<MapCompetition>>> GetCompetitionListV2(string name, int pageIndex, int pageSize, string status = "", int order = 1, bool self = false)
public async Task<JsonResult<List<MapCompetition>>> GetCompetitionListV2(string name, int pageIndex, int pageSize, string status = "", int order = 1, bool self = false, int activity = 0)
{
var list = await GetAsync<JsonResult<dynamic>>($"/MapCompetition/v2/GetList?pageIndex={ pageIndex }&pageSize={ pageSize }&name={ name }&status={ status }&order={order}&self={self}");
var list = await GetAsync<JsonResult<dynamic>>($"/MapCompetition/v2/GetList?pageIndex={ pageIndex }&pageSize={ pageSize }&name={ name }&status={ status }&order={order}&self={self}&activity={activity}");
return new JsonResult<List<MapCompetition>>
{
result = list.result,
@@ -91,5 +91,14 @@ namespace Assets.Scripts.Apis
};
return await PostAsync<JsonResult>($"/MapCompetition/ApplyMapCompetition", param);
}
//取消报名比赛
public async Task<JsonResult> CancelMapCompetition(int id)
{
var param = new
{
id = id,
};
return await PostAsync<JsonResult>($"/MapCompetition/CancelMapCompetition", param);
}
}
}
@@ -63,6 +63,10 @@ namespace Assets.Scripts.Apis.Models
public double MaxElevation { get; set; }
public string AltitudeGraph { get; set; }
public string RouteCover { get; set; }
public string SponsorCoverage { get; set; }
public string BannerPreview { get; set; }
public bool HasJoin { get; set; }
public int ApplyCount { get; set; }
}
public class CompetitionPlayer
{