refactor(bootstrap): migrate mypage-index globals to seed files
This commit is contained in:
15
SVSim.Bootstrap/Models/Seed/BannerSeed.cs
Normal file
15
SVSim.Bootstrap/Models/Seed/BannerSeed.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.Bootstrap.Models.Seed;
|
||||
|
||||
public sealed class BannerSeed
|
||||
{
|
||||
[JsonPropertyName("id")] public int Id { get; set; }
|
||||
[JsonPropertyName("image_name")] public string ImageName { get; set; } = "";
|
||||
[JsonPropertyName("click")] public string Click { get; set; } = "";
|
||||
[JsonPropertyName("status")] public string Status { get; set; } = "";
|
||||
[JsonPropertyName("change_time")] public int ChangeTime { get; set; }
|
||||
[JsonPropertyName("remaining_time")] public int RemainingTime { get; set; }
|
||||
[JsonPropertyName("image_paths")] public JsonElement ImagePaths { get; set; }
|
||||
}
|
||||
24
SVSim.Bootstrap/Models/Seed/ColosseumSeed.cs
Normal file
24
SVSim.Bootstrap/Models/Seed/ColosseumSeed.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.Bootstrap.Models.Seed;
|
||||
|
||||
public sealed class ColosseumSeed
|
||||
{
|
||||
[JsonPropertyName("id")] public int Id { get; set; } = 1;
|
||||
[JsonPropertyName("colosseum_id")] public string ColosseumId { get; set; } = "";
|
||||
[JsonPropertyName("colosseum_name")] public string ColosseumName { get; set; } = "";
|
||||
[JsonPropertyName("card_pool_name")] public string CardPoolName { get; set; } = "";
|
||||
[JsonPropertyName("deck_format")] public string DeckFormat { get; set; } = "";
|
||||
[JsonPropertyName("start_time")] public string StartTime { get; set; } = "";
|
||||
[JsonPropertyName("end_time")] public string EndTime { get; set; } = "";
|
||||
[JsonPropertyName("now_round")] public string NowRound { get; set; } = "";
|
||||
[JsonPropertyName("is_display_tips")] public string IsDisplayTips { get; set; } = "";
|
||||
[JsonPropertyName("tips_id")] public string TipsId { get; set; } = "";
|
||||
[JsonPropertyName("is_colosseum_period")] public bool IsColosseumPeriod { get; set; }
|
||||
[JsonPropertyName("is_round_period")] public bool IsRoundPeriod { get; set; }
|
||||
[JsonPropertyName("is_normal_two_pick")] public string IsNormalTwoPick { get; set; } = "";
|
||||
[JsonPropertyName("is_special_mode")] public string IsSpecialMode { get; set; } = "";
|
||||
[JsonPropertyName("is_all_card_enabled")] public int IsAllCardEnabled { get; set; }
|
||||
[JsonPropertyName("sales_period_info")] public JsonElement SalesPeriodInfo { get; set; }
|
||||
}
|
||||
12
SVSim.Bootstrap/Models/Seed/MasterPointRankingPeriodSeed.cs
Normal file
12
SVSim.Bootstrap/Models/Seed/MasterPointRankingPeriodSeed.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.Bootstrap.Models.Seed;
|
||||
|
||||
public sealed class MasterPointRankingPeriodSeed
|
||||
{
|
||||
[JsonPropertyName("id")] public int Id { get; set; }
|
||||
[JsonPropertyName("period_num")] public int PeriodNum { get; set; }
|
||||
[JsonPropertyName("necessary_score")] public long NecessaryScore { get; set; }
|
||||
[JsonPropertyName("begin_time")] public string BeginTime { get; set; } = "";
|
||||
[JsonPropertyName("end_time")] public string EndTime { get; set; } = "";
|
||||
}
|
||||
19
SVSim.Bootstrap/Models/Seed/SealedSeasonSeed.cs
Normal file
19
SVSim.Bootstrap/Models/Seed/SealedSeasonSeed.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.Bootstrap.Models.Seed;
|
||||
|
||||
public sealed class SealedSeasonSeed
|
||||
{
|
||||
[JsonPropertyName("id")] public int Id { get; set; } = 1;
|
||||
[JsonPropertyName("enable")] public int Enable { get; set; }
|
||||
[JsonPropertyName("crystal_cost")] public int CrystalCost { get; set; }
|
||||
[JsonPropertyName("rupy_cost")] public int RupyCost { get; set; }
|
||||
[JsonPropertyName("ticket_cost")] public int TicketCost { get; set; }
|
||||
[JsonPropertyName("deck_using_num_min")] public int DeckUsingNumMin { get; set; }
|
||||
[JsonPropertyName("schedule_id")] public int ScheduleId { get; set; }
|
||||
[JsonPropertyName("is_join")] public bool IsJoin { get; set; }
|
||||
[JsonPropertyName("is_deck_code_maintenance")] public bool IsDeckCodeMaintenance { get; set; }
|
||||
[JsonPropertyName("pack_info")] public JsonElement PackInfo { get; set; }
|
||||
[JsonPropertyName("sales_period_info")] public JsonElement SalesPeriodInfo { get; set; }
|
||||
}
|
||||
10
SVSim.Bootstrap/Models/Seed/SpecialDeckFormatSeed.cs
Normal file
10
SVSim.Bootstrap/Models/Seed/SpecialDeckFormatSeed.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.Bootstrap.Models.Seed;
|
||||
|
||||
public sealed class SpecialDeckFormatSeed
|
||||
{
|
||||
[JsonPropertyName("id")] public int Id { get; set; }
|
||||
[JsonPropertyName("deck_format")] public string DeckFormat { get; set; } = "";
|
||||
[JsonPropertyName("end_time")] public string EndTime { get; set; } = "";
|
||||
}
|
||||
Reference in New Issue
Block a user