对战界面&3d模型
This commit is contained in:
1 parent
4665feab7c
commit
597929cd32
130 files changed
+48220
-20627
No files matched your search
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
|
||||
namespace Assets.Scripts.Apis
|
||||
{
|
||||
public class GameRoomApi : ApiBase
|
||||
{
|
||||
public JsonResult<object> Add(GameRoomModel record, List<string> fileNames)
|
||||
{
|
||||
var result = Upload("GameRoom/Add", record, fileNames);
|
||||
var jsonResult = JsonConvert.DeserializeObject<JsonResult<object>>(result);
|
||||
return jsonResult;
|
||||
}
|
||||
|
||||
public async Task<JsonResult<List<GameRoomModel>>> GetList(int pageIndex, int pageSize,int? id = null)
|
||||
{
|
||||
return await GetAsync<JsonResult<List<GameRoomModel>>>($"GameRoom/GetList?pageIndex={pageIndex}&pageSize={pageSize}&id={id}");
|
||||
}
|
||||
|
||||
public async Task<JsonResult<JObject>> GetDetail(int id)
|
||||
{
|
||||
return await GetAsync<JsonResult<JObject>>($"GameRoom/GetDetail?Id={id}");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 21c3d62ae7900454aa0f6c1e95a0ceac
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Apis.Models
|
||||
{
|
||||
public class GameRoomModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public DateTime StartTime { get; set; }
|
||||
public int CloseTime { get; set; }
|
||||
public int MaxMembers { get; set; }
|
||||
public int UserId { get; set; }
|
||||
public string NickName { get; set; }
|
||||
public int Status { get; set; }
|
||||
public string WxHeadImg { get; set; }
|
||||
public string MapRouteName { get; set; }
|
||||
public bool Enable3D { get; set; }
|
||||
public bool EnableAR { get; set; }
|
||||
public bool IsLock { get; set; }
|
||||
public string AltitudeGraph { get; set; }
|
||||
public double AverageGrade { get; set; }
|
||||
public double Distance { get; set; }
|
||||
public double TotalClimb { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 509cf709d01091e4396af46896c7fef5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in new issue
Block a user