wangzhibo
2026-05-09 53418655c061ac26f66058253f39200aced1ab1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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; }
}