using BoardApp.Services;
|
|
namespace BoardApp.Models;
|
|
public sealed class LoginViewModel
|
{
|
public string BasePath { get; set; } = "/board";
|
}
|
|
public sealed class HomeViewModel
|
{
|
public string BasePath { get; set; } = "/board";
|
public string Username { get; set; } = "";
|
public List<ScenarioService.HomeCategory> Categories { get; set; } = new();
|
public string ScenarioImagesJson { get; set; } = "{}";
|
}
|
|
public sealed class UserScenariosViewModel
|
{
|
public string BasePath { get; set; } = "/board";
|
public string Username { get; set; } = "";
|
public List<BoardApp.Config.PageDef> AllPages { get; set; } = new();
|
public List<BoardApp.Config.UserScenario> UserScenarios { get; set; } = new();
|
public int StaytimeMin { get; set; }
|
public int StaytimeMax { get; set; }
|
}
|
|
public sealed class ViewSlide
|
{
|
public string Id { get; set; } = "";
|
public string Title { get; set; } = "";
|
public int Staytime { get; set; }
|
public string BoardUrl { get; set; } = "";
|
}
|
|
public sealed class ScenarioViewModel
|
{
|
public string BasePath { get; set; } = "/board";
|
public string DocumentTitle { get; set; } = "";
|
public string ScenarioId { get; set; } = "";
|
public string ScenarioName { get; set; } = "";
|
public string ScenarioImage { get; set; } = "";
|
public List<ViewSlide> Slides { get; set; } = new();
|
public string SlidesJson { get; set; } = "[]";
|
public int StartIndex { get; set; }
|
}
|
|
public sealed class WarehouseCalendarViewModel
|
{
|
public string BasePath { get; set; } = "/board";
|
public string Username { get; set; } = "";
|
public int Year { get; set; }
|
public int Month { get; set; }
|
public string MonthTitle { get; set; } = "";
|
public string TodayKey { get; set; } = "";
|
public int PrevYear { get; set; }
|
public int PrevMonth { get; set; }
|
public int NextYear { get; set; }
|
public int NextMonth { get; set; }
|
public List<string> WeekdayLabels { get; set; } = new();
|
public List<List<WarehouseCalendarService.CalendarCell>> Rows { get; set; } = new();
|
public string? DataError { get; set; }
|
}
|
|