修改活动逻辑;增加一些接口;可弹多个广告
This commit is contained in:
1 parent
1148e29379
commit
1b3743a135
12 files changed
+212
-18
No files matched your search
@@ -11,15 +11,15 @@ namespace Assets.Scripts.Apis
|
||||
{
|
||||
public class ActivityApi : ApiBase
|
||||
{
|
||||
public async Task<JsonResult<object>> GetCurrentActivityList()
|
||||
public async Task<JsonResult<List<ActivityModel>>> GetCurrentActivityList()
|
||||
{
|
||||
var result = await GetAsync<JsonResult<object>>($"MapRouteActivityRecord/GetCurrentActivityList");
|
||||
var result = await GetAsync<JsonResult<List<ActivityModel>>>($"MapRouteActivityRecord/GetCurrentActivityList");
|
||||
return result;
|
||||
}
|
||||
|
||||
public async Task<JsonResult<object>> JoinActivity(int id)
|
||||
{
|
||||
var result = await PostAsync<JsonResult<object>>($"MapRouteActivityRecord/Add", new { id });
|
||||
var result = await PostAsync<JsonResult<object>>($"MapRouteActivityRecord/Add", new { activityId = id });
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Assets.Scripts.Apis.Models
|
||||
{
|
||||
public class ActivityModel
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string BannerUrl { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DetailUrl { get; set; }
|
||||
/// <summary>
|
||||
/// 点亮中国
|
||||
/// </summary>
|
||||
public string Content { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CreateTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string EndTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string IsDelete { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string IsPublic { get; set; }
|
||||
/// <summary>
|
||||
/// 点亮中国
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// 点亮中国
|
||||
/// </summary>
|
||||
public string Strategy { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string JsonConfig { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public double TotalTicks { get; set; }
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 688cf851c22dcdd4b83924371a8f9c85
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -28,5 +28,6 @@ namespace Assets.Scripts.Apis.Models
|
||||
/// 活动链接
|
||||
/// </summary>
|
||||
public string Url { get; set; }
|
||||
public int? ActivityId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user