活动暂存

This commit is contained in:
Caiyanpeng committed 2022-02-16 18:22:27 +08:00
1 parent e231d3540e
commit 1148e29379
30 files changed
+3478 -29

No files matched your search

+33
View File
@@ -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;
}
//
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 43b1d699511a9e340a85aac88a8bbd0c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: