赛事首页和列表
This commit is contained in:
1 parent
eed2d13624
commit
d9d66ab96c
51 files changed
+14690
-229
No files matched your search
@@ -60,6 +60,16 @@ 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)
|
||||
{
|
||||
var list = await GetAsync<JsonResult<dynamic>>($"/MapCompetition/v2/GetList?pageIndex={ pageIndex }&pageSize={ pageSize }&name={ name }&status={ status }&order={order}&self={self}");
|
||||
return new JsonResult<List<MapCompetition>>
|
||||
{
|
||||
result = list.result,
|
||||
errMsg = list.errMsg,
|
||||
data = Newtonsoft.Json.JsonConvert.DeserializeObject<List<MapCompetition>>(JsonConvert.SerializeObject(list.data))
|
||||
};
|
||||
}
|
||||
//查询比赛详情
|
||||
public JsonResult<MapCompetitionDetailModel> GetCompetitionDetail(int id)
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Assets.Scripts.Apis.Models
|
||||
//public string EndTimeVlaue { get; set; }
|
||||
|
||||
public int Status { get; set; }
|
||||
public object StatusVlaue { get; set; }
|
||||
public string StatusVlaue { get; set; }
|
||||
public string Title { get; set; }
|
||||
public double TotalDistance { get; set; }
|
||||
public bool applyed { get; set; }
|
||||
@@ -56,7 +56,13 @@ namespace Assets.Scripts.Apis.Models
|
||||
public int MaxMembers { get; set; }
|
||||
//报名参赛的选手
|
||||
public List<CompetitionPlayer> UserList {get;set; }
|
||||
|
||||
public double Distance { get; set; }
|
||||
public double AverageGrade { get; set; }
|
||||
public double EleDifference { get; set; }
|
||||
public double? TotalClimb { get; set; }
|
||||
public double MaxElevation { get; set; }
|
||||
public string AltitudeGraph { get; set; }
|
||||
public string RouteCover { get; set; }
|
||||
}
|
||||
public class CompetitionPlayer
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user