活动暂存
This commit is contained in:
1 parent
e231d3540e
commit
1148e29379
30 files changed
+3478
-29
No files matched your search
@@ -0,0 +1,33 @@
|
||||
using Assets.Scripts.Apis.Models;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Assets.Scripts.Apis
|
||||
{
|
||||
public class ActivityApi : ApiBase
|
||||
{
|
||||
public async Task<JsonResult<object>> GetCurrentActivityList()
|
||||
{
|
||||
var result = await GetAsync<JsonResult<object>>($"MapRouteActivityRecord/GetCurrentActivityList");
|
||||
return result;
|
||||
}
|
||||
|
||||
public async Task<JsonResult<object>> JoinActivity(int id)
|
||||
{
|
||||
var result = await PostAsync<JsonResult<object>>($"MapRouteActivityRecord/Add", new { id });
|
||||
return result;
|
||||
}
|
||||
|
||||
public async Task<JsonResult<object>> GetMapRouteRecordById(int id, int activityId)
|
||||
{
|
||||
var result = await GetAsync<JsonResult<object>>($"MapRouteActivityRecord/GetMapRouteRecordById");
|
||||
return result;
|
||||
}
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43b1d699511a9e340a85aac88a8bbd0c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in new issue
Block a user